/* ===== 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; }

/* 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; }
}

/* ===== Formulare (Interesse und Kontakt) ===== */
/* Formular und "Direkt erreichen" untereinander, beide ueber die volle Breite
   (contact-layout aus site.css stellt sie sonst nebeneinander). */
.form-stack { grid-template-columns: minmax(0, 1fr); }
.form-stack .form-card { padding: clamp(1.5rem, 3vw, 2.25rem); }

/* Kontaktformular am Seitenende: schmaler und mittig, ein Formular fuer eine Nachricht
   braucht nicht die ganze Breite. */
.contact-form-narrow { max-width: 56rem; margin: 0 auto; }

/* 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; }

/* 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; }

/* "Direkt erreichen" unter dem Formular: die vier Kontaktarten nebeneinander statt
   untereinander. Gilt nur hier – im Impressum steht die Karte weiter rechts mit Liste. */
.form-stack .contact-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
}
.form-stack .contact-links a:hover { transform: translateY(-2px); }

@media (max-width: 900px) {
    .form-stack .contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .form-fields,
    .interest-choices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .form-stack .contact-links { 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); }
.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; }
/* 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; }
