/* ═══════════════════════════════════════════════════════════════
   Terra Haven Retreats · Raster und Abschnitte
   Abstände macht das Layout mit gap, nicht jedes Element mit
   eigenen Margins.
   ═══════════════════════════════════════════════════════════════ */

/* Der Seitenrand wird genau hier gesetzt, einmal. */
.th-wrap {
  width: 100%;
  max-width: var(--th-max);
  margin-inline: auto;
  padding-inline: var(--th-gutter);
}
.th-wrap-narrow { max-width: 980px; }
.th-wrap-text   { max-width: 760px; }

/* Abschnitte tragen ihren Grund selbst — hell heißt arbeiten,
   dunkel heißt zeigen. Vertikaler Abstand nie per Kurzform,
   sonst fällt der Seitenrand weg. */
.th-section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.th-section-tight { padding-block: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); }

.th-light { background: var(--th-paper); color: var(--th-ink); }
/* Zwei helle Abschnitte hintereinander ergeben sonst den doppelten
   Abstand — einer reicht. */
.th-light + .th-light, .th-dark + .th-dark { padding-top: 0; }
.th-dark  { background: var(--th-olive); color: var(--th-cream); }
.th-deep  { background: var(--th-olive-deep); color: var(--th-cream); }

/* ── Spalten ──────────────────────────────────────────────────
   Stapeln unter 700px zu einer Spalte. Kein min-width, das
   breiter als das Telefon ist.                                 */
.th-cols { display: grid; gap: var(--th-s6); align-items: start; }
.th-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.th-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.th-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .th-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .th-cols-2, .th-cols-3, .th-cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Inhalt links, Beiwerk rechts — kippt früh, weil die schmale
   Spalte sonst zur Textwurst wird. */
.th-split { display: grid; gap: var(--th-s7); align-items: start;
            grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
@media (max-width: 860px) { .th-split { grid-template-columns: minmax(0, 1fr); } }

.th-stack { display: flex; flex-direction: column; gap: var(--th-s4); }
.th-row   { display: flex; align-items: center; gap: var(--th-s4); flex-wrap: wrap; }
.th-between { display: flex; align-items: center; justify-content: space-between;
              gap: var(--th-s6); flex-wrap: wrap; }

/* ── Kopfzeile ────────────────────────────────────────────────
   Klebt oben, respektiert die Statusleiste auf dem Telefon.     */
.th-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  padding-block: var(--th-s3);
}
.th-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--th-s6);
  min-height: 64px;
  padding: 0 var(--th-s3) 0 var(--th-s6);
  border-radius: var(--th-r-xl);
}
.th-wordmark { font-family: var(--th-serif); font-size: 1.25rem; line-height: 1.05;
               letter-spacing: var(--th-ls-tight); }
.th-slogan   { font-size: 9px; font-weight: 500; letter-spacing: 0.17em;
               text-transform: uppercase; color: var(--th-accent-text); margin-top: 3px; }
.th-on-dark .th-slogan { color: var(--th-accent-bright); }

.th-nav { display: flex; align-items: center; gap: var(--th-s7);
          font-size: var(--th-fs-base); font-weight: 500; color: oklch(0.38 0.015 96); }
.th-nav a { display: inline-flex; align-items: center; min-height: var(--th-tap);
            transition: color var(--th-dur) var(--th-ease); }
.th-nav a:hover { color: var(--th-ink); }
.th-on-dark .th-nav { color: var(--th-cream-dim); }
.th-on-dark .th-nav a:hover { color: var(--th-cream-bright); }

/* Unter 960px verschwindet die Navigation hinter dem Menü —
   die Wortmarke und „Direkt buchen“ bleiben immer sichtbar. */
@media (max-width: 960px) { .th-nav { display: none; } }
@media (min-width: 961px) and (max-width: 1100px) { .th-nav { gap: var(--th-s5); } .th-header-bar { gap: var(--th-s4); } }
.th-nav a, .th-header-bar > .th-btn { white-space: nowrap; }

/* ── Karte ────────────────────────────────────────────────────
   Nicht alles ist eine Karte. Rahmen, Füllung und Radius sagen
   „eigenes Objekt“ — sparsam einsetzen.                         */
.th-card {
  border: 1px solid var(--th-hairline);
  border-radius: var(--th-r-xl);
  background: var(--th-surface);
  padding: var(--th-s7) var(--th-s8);
}
.th-card-flat { border: 1px solid var(--th-hairline); border-radius: var(--th-r-xl);
                background: none; padding: var(--th-s7) var(--th-s8); }

/* ── Liste mit Trennlinien ────────────────────────────────── */
.th-list > * { padding-block: var(--th-s3); border-top: 1px solid var(--th-hairline-soft); }
.th-list > *:first-child { border-top: none; padding-top: 0; }
.th-on-dark .th-list > * { border-top-color: oklch(0.945 0.016 88 / 15%); }

/* Breite Tabellen scrollen in ihrem eigenen Kasten, nie die Seite. */
.th-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
