/* ========================================
   ALLGEMEINE STYLES
   Hier Farben und Schriften ändern
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #444;
    font-weight: 300;
}

h1, h2, h3, .logo h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* HIER HAUPT-CONTAINER BREITE ÄNDERN */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION (MENÜ OBEN)
======================================== */
.navigation {
    /* HIER HINTERGRUNDFARBE DES MENÜS ÄNDERN */
    background-color: #ffffff;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigation .logo a {
    text-decoration: none;
}

.navigation .logo img {
    display: block;
    height: 64px;
    width: auto;
}

.navigation .menu {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.navigation .menu a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.navigation .menu a:hover {
    /* HIER HOVER-FARBE DER MENÜ-LINKS ÄNDERN */
    color: #6b88a6;
}

/* Hamburger-Button (nur auf dem Handy sichtbar) */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 0.75rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: #2c3e50;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.navigation.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navigation.open .menu-toggle span:nth-child(2) { opacity: 0; }
.navigation.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================================
   HERO BEREICH (GROSSES BILD MIT TEXT)
======================================== */
.hero {
    /* HIER HINTERGRUNDBILD ÄNDERN - Ersetze URL mit eigenem Bild */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/hero-bg.jpg') center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   BUTTONS
   Hier Button-Farben ändern
======================================== */
.btn {
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    /* HIER HAUPTFARBE DER BUTTONS ÄNDERN */
    background-color: #2c3e50;
    color: white;
}

.btn-primary:hover {
    /* HIER HOVER-FARBE DER BUTTONS ÄNDERN */
    background-color: #1b2836;
}

.hero .btn-primary,
.cta-section .btn-primary {
    background-color: white;
    color: #2c3e50;
}

.hero .btn-primary:hover,
.cta-section .btn-primary:hover {
    background-color: #e8eef4;
}

.btn-secondary {
    /* HIER SEKUNDÄR-BUTTON FARBE ÄNDERN */
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

/* ========================================
   SECTIONS (ABSCHNITTE)
======================================== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #2c3e50;
    margin: 1rem auto 0;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

/* ========================================
   WIE ES FUNKTIONIERT
======================================== */
.how-it-works {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-number {
    /* HIER FARBE DER SCHRITT-NUMMERN ÄNDERN */
    background-color: #2c3e50;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* ========================================
   ÜBER UNS
======================================== */
.about {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ========================================
   KONTAKT
======================================== */
.kontakt {
    padding: 5rem 0;
}

.kontakt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.kontakt-item {
    margin-bottom: 2rem;
}

.kontakt-item h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.kontakt-form button {
    width: 100%;
}

/* ========================================
   PAGE HEADER (FÜR UNTERSEITEN)
======================================== */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                url('images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header--firmen {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                       url('images/header-firmen.jpg');
    background-position: center;
    background-size: cover;
}

.page-header--legal {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                       url('images/header-legal.jpg');
    background-position: center;
    background-size: cover;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header p {
    font-weight: 300;
    font-size: 1.15rem;
    opacity: 0.9;
}

/* ========================================
   VORTEILE / BENEFITS
======================================== */
.benefits {
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    /* HIER FARBE DER KARTEN-ÜBERSCHRIFTEN ÄNDERN */
    color: #2c3e50;
}

/* ========================================
   TIMELINE (ABLAUF)
======================================== */
.process {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    /* HIER FARBE DER TIMELINE-MARKER ÄNDERN */
    background-color: #2c3e50;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2c3e50;
}

.testimonial-card p:first-child {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: bold;
    /* HIER FARBE DER AUTOR-NAMEN ÄNDERN */
    color: #2c3e50;
}

/* ========================================
   CALL TO ACTION
======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c3e50, #1b2836);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========================================
   TEXTBEREICHE (EINLEITUNG, WUNSCH, ÜBER UNS)
======================================== */
.text-section {
    padding: 5rem 0;
}

.text-section.alt {
    background-color: #f8f9fa;
}

.text-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-narrow p {
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    line-height: 1.9;
}

.text-narrow p.lead {
    font-size: 1.4rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: #2c3e50;
}

.text-narrow h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
}

.check-list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 2.2rem;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '\2665\FE0E';
    position: absolute;
    left: 0;
    color: #2c3e50;
}

.quote {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    border-left: 4px solid #2c3e50;
    background: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #2c3e50;
    text-align: left;
}

.center-button {
    text-align: center;
}

.step p + p {
    margin-top: 0.8rem;
}

.placeholder-box {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 2.5rem 2rem;
    border: 2px dashed #b8c4d0;
    border-radius: 10px;
    text-align: center;
    color: #6b7a8a;
    font-style: italic;
}

.cta-section .contact-line {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.cta-section a:not(.btn) {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.kontakt-item a {
    color: #2c3e50;
}

/* ========================================
   RECHTLICHE SEITEN (IMPRESSUM, DATENSCHUTZ)
======================================== */
.legal-content {
    padding: 4rem 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: #2c3e50;
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
    line-height: 2;
}

.legal-content a {
    color: #2c3e50;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background-color: #2c3e50;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    /* HIER HOVER-FARBE DER FOOTER-LINKS ÄNDERN */
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE (FÜR HANDY)
======================================== */
@media (max-width: 768px) {

    /* Navigation */
    .navigation {
        padding: 0.8rem 0;
    }

    .navigation .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .navigation .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 0.5rem;
    }

    .navigation.open .menu {
        display: flex;
    }

    .navigation .menu li {
        border-top: 1px solid #e3e8ed;
    }

    .navigation .menu a {
        display: block;
        padding: 0.9rem 0.5rem;
        font-size: 0.95rem;
    }

    .navigation .logo img {
        height: 52px;
    }

    /* Hero */
    .hero {
        height: 450px;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    /* Page Headers (Unterseiten) */
    .page-header {
        padding: 4rem 0 2.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }

    .section-intro {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .how-it-works,
    .about,
    .kontakt,
    .benefits,
    .process,
    .testimonials,
    .cta-section {
        padding: 3rem 0;
    }

    /* Schritte */
    .steps {
        grid-template-columns: 1fr;
    }

    /* Über uns */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text h2,
    .text-narrow h2 {
        font-size: 1.6rem;
    }

    .text-section {
        padding: 3rem 0;
    }

    .text-narrow p {
        font-size: 1.05rem;
    }

    .text-narrow p.lead {
        font-size: 1.2rem;
    }

    /* Kontakt */
    .kontakt-content {
        grid-template-columns: 1fr;
    }

    /* Benefits / Features */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline-item {
        gap: 1rem;
    }

    .timeline-marker {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* Legal */
    .legal-content {
        padding: 2.5rem 0;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.benefit-card a {
    color: #2c3e50;
    font-weight: 600;
}

/* Link-Block unten in der Karte (z. B. „Mehr für …“, „Direkt online anmelden“) */
.benefit-card {
    display: flex;
    flex-direction: column;
}
.benefit-card .card-links {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}
.benefit-card .card-links a {
    white-space: nowrap;
}

/* Zwei breite Karten pro Zeile (Mitmachen) */
.benefits-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
    .benefits-grid--2 {
        grid-template-columns: 1fr;
    }
}

.benefits-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .benefits-grid--3 {
        grid-template-columns: 1fr;
    }
}

.form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.form-hint a {
    color: #2c3e50;
}

.form-result {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ========================================
   ANMELDEFORMULAR
======================================== */
.anmeldung {
    max-width: 800px;
    margin: 0 auto;
}

.anmeldung fieldset {
    border: 1px solid #dde3ea;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 0.8rem;
    margin-bottom: 1.5rem;
}

.anmeldung legend {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2rem;
    padding: 0 0.6rem;
}

.anmeldung .field {
    display: block;
    margin-bottom: 1.1rem;
}

.anmeldung .field > span {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.anmeldung input[type="text"],
.anmeldung input[type="tel"],
.anmeldung input[type="email"],
.anmeldung input[type="number"],
.anmeldung textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccd4dc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.anmeldung input:focus,
.anmeldung textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.anmeldung .radio {
    display: inline-block;
    margin-right: 1.5rem;
    cursor: pointer;
}

.anmeldung .check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
}

.anmeldung .check input {
    margin-top: 0.35rem;
}

.anmeldung fieldset p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.anmeldung .check a {
    color: #2c3e50;
}

/* Menü mit 8 Punkten: Hamburger-Menü schon bei mittleren Breiten */
@media (max-width: 1180px) {
    .navigation .container { flex-wrap: wrap; }
    .menu-toggle { display: block; }
    .navigation .menu { display: none; flex-direction: column; width: 100%; gap: 0; padding-top: 0.5rem; }
    .navigation.open .menu { display: flex; }
    .navigation .menu li { border-top: 1px solid #e3e8ed; }
    .navigation .menu a { display: block; padding: 0.9rem 0.5rem; font-size: 0.95rem; }
}

/* ========================================
   LINKS (Standard-Blau/Lila und Unterstreichung bewusst ersetzt)
   :where() = Spezialfälle (Menü, Footer, Buttons) behalten ihre Farben
======================================== */
:where(a:not(.btn)),
:where(a:not(.btn):visited) {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

:where(a:not(.btn):hover) {
    /* HIER HOVER-FARBE DER LINKS ÄNDERN */
    color: #6b88a6;
}

/* Menü: breiterer Container, kein Zeilenumbruch in Menüpunkten, mehr Abstand zum Logo */
.navigation .container { max-width: 1400px; }
.navigation .logo { margin-right: 3rem; }
.navigation .menu { gap: 1.3rem; }
.navigation .menu a { white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.05em; }
@media (max-width: 1360px) { .navigation .container { flex-wrap: wrap; } .menu-toggle { display: block; } .navigation .menu { display: none; flex-direction: column; width: 100%; gap: 0; padding-top: 0.5rem; } .navigation.open .menu { display: flex; } .navigation .menu li { border-top: 1px solid #e3e8ed; } .navigation .menu a { display: block; padding: 0.9rem 0.5rem; font-size: 0.95rem; white-space: normal; } .navigation .logo { margin-right: 0; } }

/* Versionsnummer im Footer (bei jedem Push hochzählen: v1.x) */
.footer .version {
    margin-left: 0.75rem;
    font-size: 0.8em;
    opacity: 0.6;
}

/* Gruppenfoto (Über uns) */
.team-photo {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
}
.team-photo picture {
    display: block;
}
.team-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.team-photo figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}
