/* Layout-CSS aus dem OpenDesign-Prototyp «Winterlebnis» — 1:1 übernommen
   (Tokens liegen in tokens.css). Port-Zusatz am Ende markiert. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 16px; }
.lead { color: var(--muted); max-width: 58ch; }
.kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); background: var(--ice); }

/* ---------- Footer ---------- */
footer { background: var(--pine-deep); color: #e8eef2; padding: 48px 0; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: baseline; justify-content: space-between; }
footer strong { font-size: 1.05rem; color: #fff; }
footer p { color: rgba(232,238,242,.82); max-width: 46ch; }
footer a { color: #f2c99a; text-decoration-thickness: 1px; text-underline-offset: 3px; }
footer a:hover { color: #ffd9ae; }
footer a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

/* ---------- Anfrage ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-form { margin-top: 36px; max-width: 640px; }
.form-row { margin-bottom: 24px; }
.form-row label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.form-row label .opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.form-row input,
.form-row textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color .18s ease;
}
.form-row input:hover,
.form-row textarea:hover { border-color: var(--muted); }
.form-row input:focus-visible,
.form-row textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--pine); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; gap: 0 24px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.contact-side { margin-top: 20px; font-size: 0.95rem; color: var(--muted); }
.contact-side a { color: var(--pine); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-side a:hover { color: var(--pine-deep); }
.contact-side a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.form-confirm {
  display: none; margin-top: 24px; padding: 20px;
  background: var(--ice); border: 1px solid var(--border); border-radius: var(--radius);
}
.form-confirm.show { display: block; }
.form-confirm strong { color: var(--pine); }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin-top: 32px; max-width: 760px; counter-reset: step; }
.steps li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps-num { font-weight: 700; color: var(--amber-deep); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.steps-text strong { font-size: 1.08rem; font-weight: 600; }
.steps-text span { display: block; color: var(--muted); font-size: 0.96rem; margin-top: 2px; }

/* ---------- Nordlicht ---------- */
.aurora {
  position: relative; min-height: 480px; padding: 0;
  display: flex; align-items: flex-end; color: #fff;
}
.aurora-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,16,26,.72) 0%, rgba(10,16,26,.15) 55%, rgba(10,16,26,.05) 100%);
}
.aurora-content { position: relative; z-index: 1; padding: 0 20px 48px; }
.aurora-content p { max-width: 52ch; font-size: 1.05rem; color: rgba(255,255,255,.94); }
.aurora-content p + p { margin-top: 10px; }

/* ---------- Touren ---------- */
.tours { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tour-grid { display: grid; gap: 24px; margin-top: 36px; }
.tour-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.tour-img { width: 100%; height: 220px; object-fit: cover; }
.tour-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-body h3 { font-size: 1.15rem; }
.tour-body p { color: var(--muted); font-size: 0.96rem; }
.tour-price {
  margin-top: auto; padding-top: 12px;
  font-weight: 600; color: var(--pine); font-size: 0.98rem;
}
@media (min-width: 640px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } .tour-img { height: 200px; } }
.tour-note { margin-top: 20px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Leistungen ---------- */
.services-list { list-style: none; margin-top: 28px; max-width: 720px; }
.services-list li { display: flex; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--border); }
.services-list li:last-of-type { border-bottom: 1px solid var(--border); }
.services-num { font-weight: 700; color: var(--amber-deep); font-variant-numeric: tabular-nums; }
.services-body strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.services-body span { color: var(--muted); font-size: 0.98rem; }
.services-side { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }

/* ---------- Persönlich ---------- */
.about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-img { width: 100%; height: 260px; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }
.about-text p + p { margin-top: 12px; }
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .about-img { height: 420px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 0;
  display: flex; align-items: flex-end; color: #fff;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,22,30,.78) 0%, rgba(14,22,30,.30) 45%, rgba(14,22,30,.12) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding: 0 20px 56px; }
.brand-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; margin-bottom: 20px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); margin-bottom: 12px; }
.hero-sub { font-size: clamp(1.05rem, 2.5vw, 1.3rem); max-width: 34ch; color: rgba(255,255,255,.92); margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero .btn-primary { background: #fff; color: var(--pine-deep); }
.hero .btn-primary:hover { background: #e9f1f6; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); }
.hero-note { font-size: 0.9rem; color: rgba(255,255,255,.78); }
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-content { padding-bottom: 72px; }
}

/* --- Scroll-Reveal: weich und dezent, nur mit JS aktiv --- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease-out, transform .65s ease-out; will-change: opacity, transform; }
.js .reveal.reveal-img { transform: translateX(-20px); }
.js .reveal.reveal-text { transform: translateX(20px); }
.js .reveal.in { opacity: 1; transform: none; }
.js .d1 { transition-delay: .07s; } .js .d2 { transition-delay: .14s; }
.js .d3 { transition-delay: .21s; } .js .d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Port-Zusatz (nicht im Prototyp) ----------
   Formularfelder im StreamField: vollbreite Felder via grid-column statt
   eigenem Block ausserhalb des Grids — optisch identisch zum Prototyp. */
.form-grid .form-row--full { grid-column: 1 / -1; }

/* --- Kundenfeedback Timo, 02.09.: Touren-Karten schlanker; «Mehr anzeigen» wieder
   entfernt — Beschrieb immer sichtbar, mehr Abstand zwischen den Karten
   (Timo: «lassen es immer angezeigt, einfach mit etwas mehr Abstand») --- */
.tour-grid { gap: 40px; }
.tour-body { gap: 10px; }
.tour-meta { font-size: 0.88rem; }

/* --- Kundenfeedback Timo, 02.09.: Pflichtfeld-Validierung + Interessen-Checkboxes --- */
.form-row input:user-invalid,
.form-row textarea:user-invalid { border-color: #b3402f; }
.form-checks { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-checks legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.form-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.98rem; cursor: pointer; }
.form-check input[type="checkbox"] {
  width: 20px; height: 20px; margin: 0; flex-shrink: 0;
  accent-color: var(--pine); cursor: pointer;
}
.form-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* --- Kundenfeedback Timo (via ChatGPT), 02.09.: Rechtsseiten + Formular-Hinweis --- */
.form-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); max-width: 52ch; }
.form-note a { color: var(--pine); }
.footer-legal { margin-top: 6px; font-size: 0.88rem; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-block { padding: 56px 0 64px; }
.text-block .wrap { max-width: 760px; }
.text-block h2 { font-size: 1.5rem; }
.text-block h3 { font-size: 1.15rem; margin-top: 1.6em; }
.text-block p { color: var(--muted); }
