/* HEADER */
.subHeaderImg {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
}

/* ===== MAIN Layout ===== */
main {
    padding: 3rem 0 4rem;
}

/* ===== FORM CONTAINER ===== */
#landingPage {
    max-width: 1000px;
    margin: 2rem auto 0;
    background: #ffffff;
    border-radius: 2.8rem;
    padding: 2rem 2.5rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0,35,65,0.12);
    border: 2px solid #e6eef5;
    position: relative;
    z-index: 5;
}

/* ===== MOBILE ===== */
@media(max-width: 899px) {
    #landingPage {
        max-width: 95%;
        margin: 1.5rem auto 0;
        padding: 1.5rem;
    }
}

/* ===== HEADINGS ===== */
#landingPage h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0B2A4A, #1D4E6F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem; /* nur einmal setzen */
    line-height: 1.3;       /* Platz für Unterlängen wie g, y, p */
    position: relative;
    z-index: 10;
}

#landingPage .subhead {
    color: #2c455b;
    margin-bottom: 1.5rem;
    border-left: 3px solid #3b82f6;
    padding-left: 0.8rem;
    background: rgba(59,130,246,0.04);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

/* ===== STEP INDICATOR ===== */
#landingPage .step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(0,35,65,0.08);
}

#landingPage .step-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #5f7d9c;
    transition: all 0.3s;
}

#landingPage .step-item.active {
    color: #0f2b40;
    font-weight: 600;
}

#landingPage .step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2eaf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

#landingPage .step-item.active .step-number {
    background: #1e4f72;
    color: white;
}

/* ===== FORM ===== */
#landingPage .form-page { display: block; }
#landingPage .hidden { display: none; }

/* ===== GRID → FESTES 6-SPALTEN-RASTER (verhindert Überlappung) ===== */
#landingPage .grid-2 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
}

/* Normale Felder: halbe Breite (3 von 6 Spalten) */
#landingPage .grid-2 > .field-group {
    grid-column: span 3;
}

/* Firma & Email in Step 3 → volle Breite */
#landingPage .grid-2 > .two-thirds {
    grid-column: span 6;
}

/* Felder, die volle Breite einnehmen sollen */
#landingPage .grid-2 > .full-width {
    grid-column: span 6;
}

/* CLIENT GROUP → flexibel */
#landingPage .client-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: end;
}

/* MOBILE Anpassung: alles einspaltig */
@media(max-width: 899px) {
    #landingPage .grid-2 {
        grid-template-columns: 1fr;
    }
    #landingPage .grid-2 > .field-group {
        grid-column: span 1;
    }
}

/* ===== BOX-SIZING: Felder dürfen ihre Rasterzelle nicht überlaufen ===== */
#landingPage,
#landingPage *,
#landingPage *::before,
#landingPage *::after {
    box-sizing: border-box;
}

/* ===== INPUTS ===== */
#landingPage label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #2f4b68;
    margin-bottom: 0.25rem;
}

#landingPage input,
#landingPage select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbddee;
    border-radius: 12px;
    font-size: 0.9rem;
}

#landingPage input:focus,
#landingPage select:focus {
    border-color: #1e4f72;
    box-shadow: 0 0 0 2px rgba(30,79,114,0.15);
}

#landingPage #page1 .radio-group {
    margin-top: 1rem; /* Abstand zwischen Clients und Betriebsart */
}

/* ===== RADIO ===== */
#landingPage .radio-group {
    background: #f0f6fd;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid #dae6f2;
    margin-bottom: 1rem;
}

#landingPage .radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#landingPage .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer; /* Mauszeiger */
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    transition: all 0.2s;
}

#landingPage .radio-option:hover {
    background: rgba(30,79,114,0.08); /* visuelles Feedback */
}

#landingPage .radio-option input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #8aa9c9;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}

#landingPage .radio-option input[type="radio"]:checked {
    border: 4px solid #1e4f72;
}

#landingPage .radio-option.selected {
    background: rgba(30,79,114,0.1);
}

/* ===== BUTTONS ===== */
#landingPage .button-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

#landingPage button {
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

#landingPage button.primary {
    background: #1e4f72;
    color: white;
    border: 1px solid #1e4f72;
}

#landingPage button.secondary:hover {
    background: #eaf1f9;
}

/* ===== SUBMIT ===== */
#landingPage .btn-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 40px;
    font-size: 1.05rem;
    background: linear-gradient(145deg, #0b344d, #164a68);
    color: white;
    margin-top: 1rem;
}

/* ===== SPINNER ===== */
#landingPage .spinner {
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid #1e4f72;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== LANDINGPAGE CONTENT ===== */
.landing-content {
    max-width: 1000px;
    margin: 3rem auto 4rem;
    padding: 0 2rem;
}

#landingPage .radio-option input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #8aa9c9;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    cursor: pointer;  /* ← hinzufügen */
}

/* GRID: Ratgeber links / FAQs rechts */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 links, 1/3 rechts */
    gap: 2rem;
}

/* ===== LINKS: Ratgeber ===== */
.content-left h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e4f72;
}

.guide-item {
    background: #f0f6fd;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}
.guide-item:hover {
    background: #e1efff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(30,79,114,0.15);
}

/* ===== RECHTS: FAQs ===== */
.content-right h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e4f72;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dae6f2;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 1rem 1.2rem;
    font-weight: 600;
    background: #f0f6fd;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: "➕";
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}

.faq-toggle:checked + .faq-question::after {
    transform: rotate(45deg);
}

.faq-toggle:checked + .faq-question + .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer {
    display: none;
    padding: 1rem 1.2rem;
    background: white;
    font-size: 0.9rem;
    color: #2c455b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE ===== */
@media(max-width: 899px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .content-left, .content-right {
        margin-bottom: 2rem;
    }
}

/* ===== jPBX BLOCK CENTERED ===== */
.solution-block {
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
}

/* Highlights Grid */
.solution-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.highlight-item {
    background: #f0f6fd;
    padding: 0.7rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Box */
.solution-box {
    background: #f9fbfe;
    border: 1px solid #dae6f2;
    padding: 1.2rem;
    border-radius: 14px;
    margin: 1.5rem auto;
    max-width: 600px;
    text-align: left; /* wichtig: Lesbarkeit */
}

.solution-box h4 {
    text-align: center;
    margin-bottom: 0.6rem;
}

.solution-box ul {
    padding-left: 1rem;
    font-size: 0.9rem;
}

/* CTA bleibt mittig */
.solution-block .cta-box {
    text-align: center;
    margin-top: 1.5rem;
}

/* MOBILE */
@media(max-width: 900px) {
    .solution-highlights {
        grid-template-columns: 1fr;
    }
}
/* ===== FORM INTRO ===== */
.form-intro {
    display: flex;
    justify-content: center;
    margin: 4rem 0 2.5rem;
    padding: 0 1rem;
}

.form-intro-inner {
    max-width: 700px;
    text-align: center;
}

/* Badge */
.form-badge {
    display: inline-block;
    background: #e1efff;
    color: #1e4f72;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Headline */
.form-intro h2 {
    font-size: 1.8rem;
    color: #0b344d;
    margin-bottom: 0.8rem;
}

/* Text */
.form-intro p {
    color: #2c455b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Features */
.form-intro-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #1e4f72;
    flex-wrap: wrap;
}

/* OPTIONAL: leichte Animation */
.form-intro-inner {
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: #daf5dc;       /* hellgrün */
    color: #27632a;            /* dunkler Grünton */
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== HERO SECTION ===== */
.hero {
    width: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #0b2a4a, #1d4e6f);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 800px;
    animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #cce4f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.hero-benefits div {
    background: rgba(255,255,255,0.15);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-benefits div:hover {
    background: rgba(255,255,255,0.25);
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b2a4a;
    background: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: #e1efff;
    color: #1e4f72;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        padding: 3rem 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-benefits {
        flex-direction: column;
        gap: 0.8rem;
    }
    .hero-cta {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

#hero-info {
    scroll-margin-top: 110px; /* Höhe Header abziehen */
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.form-teaser {
    background: #f0f6fd;
    padding: 3rem 1rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 16px;
}

.form-teaser .teaser-inner {
    max-width: 700px;
    margin: 0 auto;
}

.form-teaser h2 {
    font-size: 1.8rem;
    color: #1e4f72;
    margin-bottom: 0.8rem;
}

.form-teaser p {
    color: #2c455b;
    font-size: 1rem;
    line-height: 1.6;
}



#landingPage .field-group label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Pfeil */
.scroll-down {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 2rem;
    animation: bounce 1.5s infinite;
}

.scroll-down a {
    color: #1e4f72;
    text-decoration: none; /* kein Unterstrich standardmäßig */
    transition: color 0.3s; /* sanfter Farbwechsel */
}

.scroll-down a:hover {
    text-decoration: none; /* Unterstrich verhindern */
    color: #164a68;         /* optional: dunklere Farbe beim Hover */
}

/* Leichte Auf- und Abbewegung */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =====================================================================
   ERGÄNZT: Info-Blöcke & Card-Grid (waren in der Vorlage nicht definiert)
   ===================================================================== */

/* Info-Textblöcke (Hero-Info & Ratgeber links) */
.info-block {
    margin-bottom: 1.8rem;
}

.info-block h2 {
    font-size: 1.8rem;
    color: #1e4f72;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.info-block h3 {
    font-size: 1.2rem;
    color: #0b344d;
    margin-bottom: 0.6rem;
}

.info-block p {
    color: #2c455b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Karten-Raster */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Einzelne Karte */
.system-card {
    background: linear-gradient(135deg, #f0f6fd, #e1efff);
    border: 1px solid #b9d4ee;
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    transition: all 0.3s;
}

.system-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(30,79,114,0.15);
}

.system-card h4 {
    color: #1e4f72;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.system-card ul {
    padding-left: 1.1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #2c455b;
}

.system-card ul li {
    margin-bottom: 0.4rem;
}

/* Hervorgehobene Karte */
.system-card.highlight {
    background: linear-gradient(135deg, #f0f6fd, #e1efff);
    border-color: #b9d4ee;
}

/* MOBILE */
@media (max-width: 899px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .info-block h2 {
        font-size: 1.5rem;
    }
}

/* =====================================================================
   RESPONSIVE-OPTIMIERUNG
   Fluide Typografie, Touch-Targets, Step-Indicator & Formular mobil
   ===================================================================== */

/* --- Fluide Überschriften: skalieren weich zwischen Mobil und Desktop --- */
#hero-info h1,
.info-block h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    line-height: 1.25;
    color: #1e4f72;
    margin-bottom: 1rem;
}

.info-block h2,
.content-left h2,
.content-right h2,
.form-teaser h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

/* Formular-Titel (war ungestylt) – mit fluider Größe und Marken-Gradient */
#landingPage .form-title {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0B2A4A, #1D4E6F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Touch-Targets: bequem mit dem Daumen treffbar (>= 44px) --- */
@media (max-width: 899px) {
    #landingPage .radio-option {
        padding: 0.55rem 0.7rem;
        min-height: 44px;
    }
    #landingPage button {
        min-height: 44px;
    }
    #landingPage .btn-submit {
        min-height: 48px;
    }
    /* 16px verhindert das Auto-Zoom beim Fokus auf iOS/Safari */
    #landingPage input,
    #landingPage select {
        font-size: 16px;
        padding: 0.7rem 0.85rem;
    }
}

/* --- Step-Indicator: bricht auf schmalen Screens sauber um --- */
@media (max-width: 600px) {
    #landingPage .step-indicator {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 0.8rem;
        border-radius: 20px;
        padding: 0.6rem 0.8rem;
    }
    #landingPage .step-line {
        display: none;            /* Verbindungslinien auf Mobil ausblenden */
    }
    #landingPage .step-item {
        font-size: 0.78rem;
    }
}

/* --- Sehr kleine Geräte: Container & Abstände schlanker --- */
@media (max-width: 380px) {
    #landingPage {
        padding: 1.2rem 1rem 1.4rem;
        border-radius: 1.6rem;
    }
    .landing-content {
        padding: 0 1rem;
    }
    #landingPage .radio-options {
        gap: 0.5rem;
    }
}