/* Grundeinstellungen für die ganze Seite */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Anker-Links sanft scrollen statt hart springen */
html {
    scroll-behavior: smooth;
}


/* Zentrale Design-Variablen – einmal definieren, überall per var(--name) nutzen */
:root {
    --schwarz: #16181d;       /* tiefer/neutraler als das alte #1a1a1a */
    --grau-900: #2a2d34;      /* dunkle Flächen, Hover */
    --grau-600: #5a6069;      /* Fließtext (statt überall #666) */
    --grau-300: #d9dce1;      /* Rahmen, Linien */
    --grau-100: #f5f6f8;      /* helle Sektions-Hintergründe */
    --gelb: #f5c800;          /* Akzent (bleibt) */
    --gelb-dunkel: #d9b200;   /* Hover für gelbe Buttons */
    --weiss: #ffffff;
    --radius: 10px;
    --schatten: 0 4px 20px rgba(0, 0, 0, 0.07);
}


body {
    font-family: 'Inter', 'Segoe UI', sans-serif;   /* Inter, Segoe UI nur als Fallback */
    color: var(--schwarz);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;            /* glattere Schrift auf Mac/Chrome */
}

/* Header-Bereich oben */
header {
    background-color: #1a1a1a;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Firmenname links */
.logo {
    color: #f5c800;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation rechts */
nav a {
    color: white;
    text-decoration: none;
    margin-left: 32px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: #f5c800;
}

/* Telefonnummer im Header - gelber Akzent */
.header-tel {
    color: var(--gelb);
    font-weight: 700;
}

/* Lucide-Icons an die umgebende Schrift anpassen */
.logo svg,
.kachel h3 svg,
.header-tel svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    margin-right: 5px;
}

#chat-button svg {
    width: 26px;
    height: 26px;
}



/* Hero-Bereich */
.hero {
    background: linear-gradient(135deg, #16181d 0%, #23262e 100%);
    color: var(--weiss);
    padding: 120px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -0.5px;     /* grosse Inter-Headlines wirken edler */
    font-weight: 800;
    margin-bottom: 20px;
}

/* gelbes Akzentwort in der Hero-Ueberschrift */
.akzent {
    color: var(--gelb);
}

.hero p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
}

/* Vertrauenszeile unter dem Button */
.hero-trust {
    margin-top: 22px;
    font-size: 0.9rem;
    color: #b6bbc2;
}

.hero-trust .sterne {
    color: var(--gelb);
    letter-spacing: 1px;
}

/* Button */
.btn {
    background-color: var(--gelb);
    color: var(--schwarz);
    padding: 15px 34px;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    background-color: var(--gelb-dunkel);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 200, 0, 0.35);
}


/* Leistungen-Bereich */
/* Wrapper haelt Ueberschrift + Kachel-Reihe zusammen */
.leistungen-wrapper {
    padding: 80px 40px;
    background-color: var(--grau-100);
    text-align: center;
}

.leistungen-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
}

.leistungen {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.kachel {
    flex: 1;
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border-top: 3px solid transparent;
}

.kachel:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    border-top-color: var(--gelb);
}

.kachel h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.kachel p {
    color: #666;
    line-height: 1.6;
}

/* Über Uns-Bereich */
.ueber-uns {
    padding: 80px 40px;
    background-color: white;
    text-align: center;
}

.ueber-uns h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.ueber-uns>p {
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.zahlen {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.zahl {
    text-align: center;
}

.zahl-gross {
    font-size: 2.5rem;
    color: #f5c800;
    font-weight: 700;
    display: block;
}

.zahl-text {
    color: #666;
    font-size: 0.9rem;
}

/* Bewertungen / Testimonials */
.bewertungen {
    padding: 80px 40px;
    background-color: white;
    text-align: center;
}

.bewertungen h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.bewertungs-karten {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.bewertung {
    flex: 1;
    background: var(--grau-100);
    padding: 28px;
    border-radius: var(--radius);
    text-align: left;
}

.bewertung .sterne {
    color: var(--gelb);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.bewertung p {
    color: var(--grau-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.bewertung-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--schwarz);
}

/* Kontakt-Bereich */
.kontakt {
    padding: 80px 40px;
    background-color: #f9f9f9;
    text-align: center;
}

.kontakt h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

/* gelbe Akzentlinie unter den Sektions-Ueberschriften */
.leistungen-wrapper h2::after,
.ueber-uns h2::after,
.kontakt h2::after,
.bewertungen h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--gelb);
    margin: 14px auto 0 auto;
}

.kontakt>p {
    color: #666;
    margin-bottom: 40px;
}

.kontakt-formular {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.kontakt-formular input,
.kontakt-formular textarea {
    padding: 13px 16px;
    border: 1px solid var(--grau-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    border-color: var(--gelb);
    box-shadow: 0 0 0 3px rgba(245, 200, 0, 0.18);
    outline: none;
}

.kontakt-formular textarea {
    resize: vertical;
}


/* Auf kleinen Bildschirmen untereinander */
@media (max-width: 768px) {
    .leistungen {
        flex-direction: column;
    }

    .bewertungs-karten {
        flex-direction: column;
    }

    .hero {
        padding: 70px 22px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    header {
        padding: 16px 20px;
    }

    nav a {
        margin-left: 18px;
    }

    .leistungen-wrapper,
    .ueber-uns,
    .kontakt,
    .bewertungen {
        padding: 56px 22px;
    }

    .zahlen {
        flex-wrap: wrap;
        gap: 28px;
    }
}

/* Chat-Button unten rechts */
#chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #f5c800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Chat-Fenster */
#chat-fenster {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
}

#chat-header {
    background: #1a1a1a;
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#chat-schliessen {
    cursor: pointer;
}

#chat-verlauf {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

#chat-eingabe {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    gap: 8px;
}

#chat-eingabe input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    /* Maus-Cursor bleibt immer Texteingabe-Cursor – auch wenn der Button daneben gesperrt ist */
    cursor: text;
    /* Eingabemarke (blinkender Strich) immer dunkel halten */
    caret-color: #1a1a1a;
    /* Hintergrund und Textfarbe explizit setzen – verhindert Chrome Dark-Mode-Override */
    background-color: white;
    color: #1a1a1a;
}

#chat-eingabe button {
    background: #f5c800;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

/* Senden-Button während des Wartens ausgegraut – ohne disabled-Attribut (Chrome-Fix) */
#chat-eingabe button.laden {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Quick-Reply-Buttons (Vorschläge unter der Begrüßung) */
#quick-replies {
    display: flex;
    flex-wrap: wrap;
    /* bei Platzmangel umbrechen */
    gap: 8px;
    margin: 4px 0 12px 0;
}

.quick-reply {
    background: white;
    border: 1px solid #f5c800;
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 16px;
    /* runde „Pillen"-Form */
    font-size: 0.8rem;
    cursor: pointer;
}

.quick-reply:hover {
    background: #f5c800;
}

.quick-reply-hinweis {
    width: 100%;
    /* nimmt die ganze Zeile ein, Buttons rutschen darunter */
    font-size: 0.72rem;
    color: #888;
    /* dezent grau */
    margin-bottom: 2px;
}



/* Nachrichten im Chat */
.nachricht {
    display: flex;
    margin-bottom: 12px;
}

.nachricht.user {
    justify-content: flex-end;
}

.nachricht.bot {
    justify-content: flex-start;
}

.nachricht-inhalt {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.nachricht.user .nachricht-inhalt {
    background-color: #f5c800;
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
}

.nachricht.bot .nachricht-inhalt {
    background-color: #f0f0f0;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

/* Animation für die drei Tipp-Punkte */
@keyframes tipp-puls {

    0%,
    60%,
    100% {
        opacity: 0.2;
    }

    30% {
        opacity: 1;
    }
}

.punkte span {
    display: inline-block;
    animation: tipp-puls 1.2s infinite;
}

.punkte span:nth-child(2) {
    animation-delay: 0.2s;
}

.punkte span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Fehler-Sprechblase im Bot-Stil, aber rötlich */
.nachricht-inhalt.fehler {
    background-color: #fde8e8;
    color: #b00020;
}

/* Markdown-Formatierung im Chat */
.nachricht-inhalt p {
    margin: 0 0 8px 0;
}

.nachricht-inhalt p:last-child {
    margin-bottom: 0;
}

.nachricht-inhalt strong {
    font-weight: 700;
}

.nachricht-inhalt ul {
    padding-left: 16px;
    margin: 4px 0;
}

/* Footer */
footer {
    background-color: var(--schwarz);
    color: #9aa0a8;                  /* aufgehellt -> auf Schwarz gut lesbar (WCAG) */
    text-align: center;
    padding: 24px 40px;
    font-size: 0.85rem;
}

footer a {
    color: #f5c800;
    text-decoration: none;
}
    


/* --- Rechtsseiten (Impressum / Datenschutz) --- */
.logo {
    text-decoration: none;
}

.rechtstext {
    max-width: 760px;
    margin: 0 auto;
    padding: 70px 24px 90px 24px;
    line-height: 1.7;
    color: var(--grau-600);
}

.rechtstext h1 {
    font-size: 2rem;
    color: var(--schwarz);
    margin-bottom: 24px;
}

.rechtstext h2 {
    font-size: 1.2rem;
    color: var(--schwarz);
    margin: 30px 0 10px 0;
}

.rechtstext p {
    margin-bottom: 12px;
}

.rechtstext a {
    color: var(--schwarz);
}

.rechtstext .hinweis {
    background: var(--grau-100);
    border-left: 3px solid var(--gelb);
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 8px;
    font-size: 0.82rem;
}

/* Datenschutz-Hinweis unten im Chat-Fenster */
#chat-hinweis {
    padding: 6px 12px 10px 12px;
    font-size: 0.68rem;
    color: #999;
    text-align: center;
}

/* === Mobile-Optimierung: Header + Chat-Widget === */
@media (max-width: 768px) {
    /* Header bricht sauber um: Logo oben, Navigation darunter, alles zentriert */
    header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }

    /* Navigation als umbrechende, zentrierte Reihe */
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 6px;
    }

    nav a {
        margin-left: 0;   /* Abstand kommt jetzt vom gap statt vom margin */
    }

    /* Chat-Fenster: nimmt fast die volle Breite ein und passt die Hoehe an */
    #chat-fenster {
        width: auto;
        left: 12px;
        right: 12px;
        bottom: 84px;          /* sitzt ueber dem runden Chat-Button */
        height: 72vh;
        max-height: 560px;
    }
}

/* === A11y-/Review-Fixes: echte Buttons + besserer Kontrast === */
#chat-button {
    border: none;
    font: inherit;
    padding: 0;
}

#chat-schliessen {
    border: none;
    background: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

/* Datenschutz-Hinweis dunkler -> besser lesbar (Kontrast) */
#chat-hinweis {
    color: #6b7280;
}

/* === Handy-Fix: kein Auto-Zoom beim Antippen ===
   iOS/Safari zoomt hinein, wenn ein Eingabefeld < 16px Schrift hat.
   16px verhindert das zuverlaessig. */
#chat-eingabe input,
.kontakt-formular input,
.kontakt-formular textarea {
    font-size: 16px;
}
