/* ===== Landingpages =====
   Ergaenzt site.css (Kopie aus der Website) um das, was nur die Landingpages brauchen. */

/* Sprungmarken im Kopf: sanft scrollen, und das Ziel nicht unter dem klebenden Kopf verstecken. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
.landing section[id] { scroll-margin-top: 74px; }

/* Klebender Kopf: site.css setzt overflow-x: hidden auf html und body. Damit wird body zum
   Scroll-Container, der selbst nie scrollt, und position: sticky am Kopf greift nicht.
   clip schneidet genauso ab, ohne Scroll-Container. Browser ohne clip behalten hidden. */
html, body { overflow-x: clip; }

/* ===== Kopf ohne Menue (Section "HeaderBar"): rechts nur der Knopf zum Interessenformular =====
   Auf Handys zeigt der Knopf nur noch sein Symbol (erhobene Hand), das sonst vor dem Text steht. */
.header-bar { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); }
.header-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--color-navy);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.header-bar__cta:hover { background: var(--color-navy-deep); color: #fff; text-decoration: none; }
/* Das Logo darf nicht schrumpfen, sonst wird der Schriftzug gestaucht. */
.brand { flex-shrink: 0; }
/* Erhobene Hand vor dem Text der Knoepfe zum Interessenformular (Partial _IconHand). */
.icon-hand {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Gleicher Knopf unter dem Einleitungstext, sandfarben auf dem dunklen Kasten. */
.intro-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
}
/* Platzbedarf (gemessen): Logo und Knopf samt Text rund 570 px. */
/* Handys: Logo und Knopftext passen nicht nebeneinander. Der Knopf wird zum runden Symbol,
   der Text bleibt unsichtbar fuer Screenreader stehen. */
@media (max-width: 570px) {
    .header-inner { gap: 1rem; }
    .header-bar__cta {
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 50%;
    }
    .header-bar__cta .icon-hand { width: 24px; height: 24px; }
    .header-bar__cta-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
/* Sehr schmale Handys: Schriftzug etwas kleiner, damit Logo und Knopf nebeneinander passen. */
@media (max-width: 380px) {
    .brand-logo { height: 28px; }
}

/* Aufruf zum Interessenformular im Kopf: gefuellter Navy-Knopf statt Textlink.
   Zwei Klassen plus Element, damit die Regel ".main-nav > a" aus site.css nicht gewinnt. */
.main-nav > a.nav-cta {
    padding: 0.6rem 1.1rem;
    background: var(--color-navy);
    color: #fff;
    border-radius: var(--radius);
}
.main-nav > a.nav-cta:hover { background: var(--color-navy-deep); color: #fff; }
@media (max-width: 920px) {
    .main-nav > a.nav-cta { margin: 0.5rem 1.5rem 0; }
}

/* Abschnitt mit hellem Himmel im Foto (Interesse): etwas staerker abgedunkelt als
   .section--photo, damit Titel und Text in Weiss lesbar bleiben. */
.section--photo-shade::before { background: rgba(0, 20, 40, 0.3); }

/* ===== Fuss: Text neben dem Logo und die Links unten buendig mit der Unterkante des Logos =====
   site.css zentriert beides senkrecht. Mit "last baseline" steht die letzte Textzeile auf der
   Logokante (ein Bild hat keine Grundlinie, es zaehlt seine Unterkante). flex-end davor als
   Rueckfall fuer Browser ohne "last baseline". Ab 620 px abwaerts stapelt site.css den Fuss. */
.footer-inner,
.footer-brand { align-items: flex-end; align-items: last baseline; }
/* Gestapelt (schmale Schirme): Impressum und Datenschutz ueber dem Logo statt darunter. */
@media (max-width: 620px) {
    .footer-inner { align-items: flex-start; }
    .footer-nav { order: -1; }
}

/* ===== Formulare (Interesse und Kontakt) ===== */
/* Interessenformular: eine Spalte ueber die volle Breite (contact-layout aus site.css hat
   sonst zwei – das Kontaktformular am Seitenende nutzt sie fuer "Direkt erreichen"). */
.form-stack { grid-template-columns: minmax(0, 1fr); }
.form-stack .form-card { padding: clamp(1.5rem, 3vw, 2.25rem); }

/* Name, E-Mail und Telefon nebeneinander. */
.form-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.25rem;
}

/* Tour links, Zeitraum rechts. */
.interest-choices {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
    margin-top: 0.6rem;
}

.interest-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.interest-options legend { padding: 0; font-weight: 600; color: var(--color-navy); }
.interest-options__hint { margin: 0.1rem 0 0.7rem; font-size: 0.85rem; color: var(--color-sand-dark); }
/* Eine Auswahl pro Zeile, alle gleich breit. */
.interest-options__list { display: flex; flex-direction: column; gap: 0.5rem; }

/* Auswahl als Schaltflaeche mit sichtbarem Haekchen – angekreuzt navy gefuellt.
   Feste Mindesthoehe: Die Touren haben zwei Zeilen (Name und Fahrkoennen), die Zeitraeume nur
   eine. Mit gleicher Hoehe und gleich vielen Eintraegen stehen beide Spalten Zeile fuer Zeile
   auf einer Linie. Der Wert liegt knapp ueber der natuerlichen Hoehe einer Tour-Zeile. */
.interest-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.9rem;
    padding: 0.65rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-navy);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.interest-option:hover { border-color: var(--color-sand-dark); }
.interest-option input { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--color-navy); cursor: pointer; }
.interest-option__text { display: flex; flex-direction: column; line-height: 1.3; }
.interest-option__title { font-weight: 500; }
.interest-option__note { font-size: 0.82rem; color: var(--color-muted); }
.interest-option:has(input:checked) { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.interest-option:has(input:checked) input { accent-color: var(--color-sand); }
.interest-option:has(input:checked) .interest-option__note { color: rgba(255, 255, 255, 0.75); }
.interest-option:has(input:focus-visible) { outline: 2px solid var(--color-navy); outline-offset: 2px; }

/* Freitext unter der Auswahl, beschriftet wie die Fragen darueber. */
.interest-message { margin: 1.5rem 0 0; }
.interest-message label { margin-bottom: 0.6rem; color: var(--color-navy); }

/* Datenschutzhinweis unter dem Absende-Knopf. */
.form-note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--color-charcoal); }
.form-note a { color: var(--color-navy); text-decoration: underline; }

@media (max-width: 760px) {
    .form-fields,
    .interest-choices { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Danke-Dialog nach dem Absenden ===== */
.thanks-modal {
    width: min(30rem, calc(100vw - 2rem));
    padding: 0;
    border: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    color: var(--color-charcoal);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.thanks-modal::backdrop { background: rgba(0, 18, 39, 0.6); }
/* Beim Senden gibt es nichts zum Anklicken, der Fokus liegt auf dem Dialog selbst: ohne Rahmen. */
.thanks-modal:focus { outline: none; }
.thanks-modal__body {
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border-top: 4px solid var(--color-sand-mid);
    text-align: center;
}
.thanks-modal__icon {
    width: 3.25rem; height: 3.25rem;
    margin: 0 auto 1rem;
    padding: 0.7rem;
    border-radius: 50%;
    background: var(--color-sand);
    fill: var(--color-navy);
    display: block;
}
.thanks-modal h2 {
    margin: 0 0 0.75rem;
    font-size: 1.45rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.02em; color: var(--color-navy);
}
.thanks-modal p { margin: 0 0 1.5rem; }
/* Senden: drehender Ring statt Haekchen, ohne Knopf darunter. */
.thanks-modal__spinner {
    display: block;
    width: 3.25rem; height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 4px solid var(--color-sand);
    border-top-color: var(--color-navy);
    animation: thanks-spin 0.9s linear infinite;
}
@keyframes thanks-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .thanks-modal__spinner { animation-duration: 2.4s; }
}
.thanks-modal [data-state="sending"] p { margin-bottom: 0.25rem; }
/* Fehler: Ausrufezeichen auf hellem Rot statt Haekchen auf Sand. */
.thanks-modal__icon--error { background: #f6d6d1; fill: #a33a2b; }
/* Ohne JavaScript bleibt der Dialog offen, aber nicht modal: dann als Kasten ueber dem
   Formular statt schwebend, und ohne Schliessen-Knopf, der ohne Skript nichts taete. */
.thanks-modal:not(:modal) { position: static; margin: 0 auto 1.5rem; box-shadow: var(--shadow); }
html:not(.js) .thanks-modal__close { display: none; }
