/* ==========================================================
   styles-ux.css
   ----------------------------------------------------------
   Ergaenzung zu styles.css. Wird NACH styles.css geladen und
   ueberschreibt gezielt einzelne Stellen. Vorteil: Ihre
   bestehende Datei bleibt unberuehrt und Sie koennen jede
   Aenderung einzeln rueckgaengig machen, indem Sie den
   entsprechenden Block hier loeschen.
========================================================== */

:root {
    /* Etwas dunkleres Blau: erreicht auf Weiss ein
       Kontrastverhaeltnis von 4.5:1 und ist damit auch bei
       kleiner Schrift und fuer sehschwache Nutzer lesbar. */
    --accent: #1d4ed8;
    --accent-dark: #1e40af;

    --ok-bg: #ecfdf5;
    --ok-line: #6ee7b7;
    --ok-text: #065f46;
    --err-bg: #fef2f2;
    --err-line: #fca5a5;
    --err-text: #991b1b;

    --focus: #f59e0b;
}

/* ==========================================================
   SCHRIFT
   styles.css verlangt "Inter", laedt die Schrift aber nirgends.
   Ergebnis: der Browser faellt auf Arial zurueck. Statt eine
   Schrift von Google-Servern nachzuladen (langsam und
   datenschutzrechtlich heikel) nutzen wir die Systemschrift.
   Sie ist sofort da, kostet null Ladezeit und sieht auf jedem
   Geraet stimmig aus.
========================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ==========================================================
   BEDIENBARKEIT
========================================================== */

/* Sichtbarer Fokusrahmen. Fehlte komplett – wer mit der
   Tastatur navigiert, sah bisher nicht, wo er sich befindet. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
}

/* Mindestgroesse fuer Tippziele auf dem Handy */
.btn,
.nav a,
.sticky-cta-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Aktiver Menuepunkt – eine Orientierungshilfe, die bisher fehlte */
.nav a.is-active {
    color: var(--accent);
    font-weight: 600;
}
.nav a.is-active::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 2px;
}
.nav a.nav-cta.is-active::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================
   SANFTES EINBLENDEN
========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================
   FAQ-AKKORDEON
   Die Startseite hatte zehn ausfuehrliche Antworten
   untereinander – auf dem Handy eine sehr lange Strecke.
   Zugeklappt bleibt der Text im HTML und damit fuer Google
   und KI-Systeme vollstaendig lesbar.
========================================================== */
.faq-accordion {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin-inline: auto;
}

.faq-accordion .faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-accordion .faq-item.is-open {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-accordion .faq-item h3 {
    margin: 0;
    font-size: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
    flex: 0 0 22px;
    height: 22px;
    position: relative;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--accent);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after  { width: 2px;  height: 14px; }
.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}
.faq-answer > p {
    overflow: hidden;
    margin: 0;
    padding: 0 20px;
    color: var(--muted);
    font-size: .97rem;
}
.faq-item.is-open .faq-answer > p {
    padding-bottom: 20px;
}

/* Ohne JavaScript bleibt alles offen und lesbar */
.no-js .faq-answer { grid-template-rows: 1fr; }

/* ==========================================================
   KONTAKTFORMULAR
========================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.contact-form-panel,
.contact-info-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-form-panel h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin-top: 6px;
}

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}
.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    transition: transform .15s ease, box-shadow .15s ease;
}
.quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.quick-whatsapp { border-color: #86efac; background: #f0fdf4; color: #14532d; }
.quick-phone    { border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }

.contact-form { display: grid; gap: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field { display: grid; gap: 6px; }

.form-field label {
    font-weight: 600;
    font-size: .92rem;
}
.form-field .req { color: #dc2626; }
.form-field .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px; /* verhindert das automatische Hineinzoomen auf iPhones */
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .14);
    outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #94a3b8; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    color: var(--muted);
}
.form-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--accent);
}
.form-check a { color: var(--accent); text-decoration: underline; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ausfuellbar.
   display:none waere zu offensichtlich – manche Bots erkennen das. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-block { width: 100%; }

.form-note {
    font-size: .84rem;
    color: var(--muted);
    margin: 0;
}

.form-alert {
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid;
}
.form-alert p { margin: 6px 0 0; font-size: .93rem; }
.form-alert ul { margin: 8px 0 0; padding-left: 20px; font-size: .93rem; }
.form-alert-success {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok-text);
}
.form-alert-error {
    background: var(--err-bg);
    border-color: var(--err-line);
    color: var(--err-text);
}

.contact-info-panel h2 { margin-top: 0; font-size: 1.25rem; }
.contact-info-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.contact-info-list li { font-size: .95rem; }
.contact-info-list strong {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 3px;
}
.contact-info-list a { color: var(--accent); }

/* ==========================================================
   KARTEN-PLATZHALTER (Klick zum Laden)
========================================================== */
.map-consent {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 260px;
    padding: 26px;
    background: var(--surface-alt);
    border: 1px dashed var(--line);
    border-radius: 14px;
}
.map-consent p { margin: 0; max-width: 44ch; font-size: .92rem; }
.map-container-sm { min-height: 220px; margin-bottom: 14px; }

/* ==========================================================
   KLEINE ERGAENZUNGEN
========================================================== */
.card-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--accent);
}
.card-link::after { content: " →"; }
.card-link:hover { text-decoration: underline; }

.price-note {
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    margin-top: 20px;
}

.internal-links {
    margin-top: 28px;
    text-align: center;
    font-size: .93rem;
    color: var(--muted);
}
.internal-links a { color: var(--accent); text-decoration: underline; }

.narrow { max-width: 760px; }
.narrow h2 { margin-top: 34px; }

.fact-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
}
.fact-list li {
    padding: 14px 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .95rem;
}
.fact-list strong {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 2px;
}

/* Preiskarten: die Auswahl war visuell kaum erkennbar */
.price-card { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-md);
}

/* Schrittliste als geordnete Liste ohne Aufzaehlungszeichen */
.steps-grid { list-style: none; padding: 0; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-hours { font-size: .86rem; opacity: .85; margin-top: 12px; }
.footer-review-note { font-size: .86rem; margin-top: 16px; opacity: .9; }
.footer-review-note a { text-decoration: underline; }

/* ==========================================================
   MOBIL
========================================================== */
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    body { font-size: 16px; }

    /* Der Sticky-CTA-Balken verdeckte sonst den Seitenabschluss */
    body { padding-bottom: 92px; }
}

@media (max-width: 560px) {
    .contact-form-panel,
    .contact-info-panel { padding: 22px 18px; }

    .faq-question { padding: 15px 16px; font-size: .97rem; }
    .faq-answer > p { padding-inline: 16px; }

    /* Auf sehr schmalen Geraeten stoerten sich die schwebende
       WhatsApp-Schaltflaeche und der CTA-Balken gegenseitig. */
    .floating-whatsapp { bottom: 96px; }
    .floating-whatsapp-text { display: none; }
}

/* ==========================================================
   DRUCK
========================================================== */
@media print {
    .site-header, .sticky-cta, .floating-whatsapp,
    .site-footer, .skip-link, .map-container { display: none !important; }
    body { padding-bottom: 0; background: #fff; }
    .faq-answer { grid-template-rows: 1fr !important; }
}
