/*
Theme Name: Erleben Sie Borkum
Theme URI: https://www.erleben-sie-borkum.de
Author: Patrick Otto
Description: Eigenes schlankes Theme für die Ferienwohnung auf Borkum. Ohne Page-Builder, ohne Abhängigkeiten.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: erleben-sie-borkum
*/

/* == Küsten-Editorial: Nordsee-Palette, große lesbare Schrift ============ */
:root {
  --sand: #f6efe3;
  --sand-dark: #e7dcc6;
  --foam: #fffdf8;
  --ink: #26333a;
  --ink-soft: #5b6a72;
  --sea: #17555f;
  --sea-deep: #0c343c;
  --sea-mist: #dce9e6;
  --rot: #b4492b;            /* Leuchtturm-Akzent */
  --gold: #a8802f;           /* Dünengras-Gold, sparsam */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", Verdana, sans-serif;
  --maxw: 72rem;
  --content-w: 46rem;
  --shadow-soft: 0 2px 24px rgba(12, 52, 60, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  /* Feine Papier-Anmutung statt flacher Fläche */
  background-image:
    radial-gradient(ellipse 90rem 40rem at 110% -10%, rgba(23, 85, 95, 0.05), transparent 60%),
    radial-gradient(ellipse 70rem 30rem at -20% 110%, rgba(168, 128, 47, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;      /* 19px – Zielgruppe liest gerne größer */
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sea-deep);
  line-height: 1.18;
  margin: 2.4rem 0 0.9rem;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.05rem); }
h3 { font-size: 1.35rem; }

/* Wellenlinie unter h2 auf Inhaltsseiten – dezentes Erkennungszeichen */
.content-area h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="8" viewBox="0 0 56 8"><path d="M0 4 Q 7 0, 14 4 T 28 4 T 42 4 T 56 4" fill="none" stroke="%23b4492b" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat;
  opacity: 0.85;
}

a {
  color: var(--sea);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover, a:focus { color: var(--rot); }

img { max-width: 100%; height: auto; border-radius: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Kleine Vorzeile in Kapitälchen-Optik (Eyebrow) */
.eyebrow {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

/* == Header & Navigation ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a2d34, var(--sea-deep));
  color: var(--foam);
  box-shadow: 0 2px 18px rgba(12, 52, 60, 0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.site-brand svg { flex: none; }
.site-brand .title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foam);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.site-brand .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: #9ec4be;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #9ec4be;
  border-radius: 8px;
  color: var(--foam);
  font: inherit;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: #e8f0ee;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.18s ease, color 0.18s ease;
}
.site-nav a:hover, .site-nav a:focus { background: rgba(232, 240, 238, 0.12); color: var(--foam); }
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  background: rgba(232, 240, 238, 0.14);
  box-shadow: inset 0 -2px 0 var(--rot);
  border-radius: 8px 8px 0 0;
}

/* Dropdown (CSS-only, auch per Tastatur erreichbar) */
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15.5rem;
  background: var(--sea-deep);
  border: 1px solid rgba(158, 196, 190, 0.25);
  border-radius: 0 0 12px 12px;
  padding: 0.4rem;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { font-size: 0.97rem; }
.menu-item-has-children > a::after { content: " ▾"; font-size: 0.72em; opacity: 0.8; }

/* == Hero (Startseite) =================================================== */
.hero {
  position: relative;
  min-height: min(34rem, 78vh);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--foam);
  background: var(--sea-deep) center 35% / cover no-repeat;
  isolation: isolate;
  padding: 5rem 1.25rem 7rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Dunkler Scrim für Textkontrast, unten Richtung See abdunkelnd –
     zurückhaltend, damit das Abendlicht des Fotos erhalten bleibt */
  background: linear-gradient(180deg,
    rgba(12, 52, 60, 0.42) 0%,
    rgba(12, 52, 60, 0.38) 50%,
    rgba(10, 45, 52, 0.66) 100%);
  z-index: -1;
}
.hero .eyebrow { color: #e9d9a8; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero h1 {
  color: var(--foam);
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 700;
  margin: 0 0 0.7rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: #f3e7c3; }
.hero p {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  max-width: 40rem;
  margin: 0 auto 2.2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

/* Sanfter Auftritt der Hero-Elemente */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero p, .hero .btn {
    animation: esb-rise 0.9s ease-out both;
  }
  .hero h1 { animation-delay: 0.12s; }
  .hero p { animation-delay: 0.26s; }
  .hero .btn { animation-delay: 0.4s; }
  @keyframes esb-rise {
    from { opacity: 0; transform: translateY(1.1rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* Wellen-Übergang unter dem Hero */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}
.wave-divider svg { display: block; width: 100%; height: 3.6rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0.4rem 0.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover, .btn:focus { transform: translateY(-2px); }
.btn-primary {
  background: var(--rot);
  color: var(--foam);
  box-shadow: 0 6px 20px rgba(180, 73, 43, 0.45);
}
.btn-primary:hover, .btn-primary:focus { background: #9c3d23; color: var(--foam); }
.btn-ghost {
  background: rgba(255, 253, 248, 0.10);
  color: var(--foam);
  border: 2px solid rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover, .btn-ghost:focus { background: var(--foam); color: var(--sea-deep); }

/* == Zahlen-Zeile (Startseite) =========================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: -3.4rem auto 0;    /* schwebt in den Wellenrand hinein */
  position: relative;
  z-index: 2;
  max-width: 56rem;
  padding: 0 1.25rem;
}
.fact {
  background: var(--foam);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding: 1.3rem 1rem 1.1rem;
}
.fact .zahl {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  color: var(--sea);
  line-height: 1.1;
}
.fact .label { font-size: 0.95rem; color: var(--ink-soft); }

/* == Willkommens-Sektion & Teaser-Karten (Startseite) ==================== */
.welcome {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
  text-align: center;
}
.welcome .intro { font-size: 1.3rem; }
.welcome .signatur {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sea);
  margin-top: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.6rem;
  padding: 2.5rem 0 4rem;
}
.card {
  position: relative;
  background: var(--foam);
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px rgba(12, 52, 60, 0.16);
}
.card .card-icon {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--sea-mist);
  color: var(--sea);
  margin-bottom: 0.9rem;
}
.card h2 { margin-top: 0; font-size: 1.45rem; }
.card p { color: var(--ink-soft); }
.card .more {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.card .more:hover, .card .more:focus { border-color: var(--rot); }
/* Ganze Karte klickbar über den Mehr-Link */
.card .more::after { content: ""; position: absolute; inset: 0; }

/* == Inhaltsseiten ======================================================= */
.page-title-band {
  position: relative;
  color: var(--foam);
  padding: 3.2rem 0 4.2rem;
  background:
    radial-gradient(ellipse 60rem 22rem at 85% -30%, rgba(232, 240, 238, 0.14), transparent 55%),
    linear-gradient(165deg, #0a2d34 0%, var(--sea-deep) 45%, var(--sea) 100%);
  overflow: hidden;
}
.page-title-band h1 { color: var(--foam); margin: 0; text-wrap: balance; }
.page-title-band .eyebrow { color: #e9d9a8; margin-bottom: 0.4rem; }
.page-title-band .wave-divider svg { height: 2.6rem; }
.page-title-band .wave-divider path { fill: var(--sand); }

.content-area {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 2.8rem 1.25rem 4.5rem;
}
.content-area .intro {
  font-size: 1.3rem;
  color: var(--sea-deep);
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.55;
}

/* Galerien (native WP-Galerie & Block-Galerie) */
.gallery, .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0 2.2rem;
}
.gallery-item { margin: 0; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow-soft); }
.gallery img, .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.045); }

/* Tabellen (Preisliste, Rufnummern) */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.6rem 0;
  background: var(--foam);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
th, td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--sand-dark); }
tr:last-child th, tr:last-child td { border-bottom: none; }
th {
  background: var(--sea-mist);
  color: var(--sea-deep);
  font-family: var(--font-display);
  font-weight: 600;
  width: 40%;
}

/* Hinweiskasten */
.hinweis, .content-area blockquote {
  position: relative;
  background: #fbf0e7;
  border-left: 5px solid var(--rot);
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem 1.1rem 1.6rem;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-soft);
}

/* == Wohnungs-Rundgang (Template „Wohnung") ============================== */
.content-area.content-wide { max-width: var(--maxw); }
.content-wide .intro { max-width: 46rem; }

/* Ausstattung auf einen Blick */
.ausstattung {
  background: var(--foam);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 2rem;
  margin: 2rem 0 1rem;
}
.ausstattung h2 { margin-top: 0; }
.ausstattung ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.55rem 1.5rem;
}
.ausstattung li { padding-left: 1.7rem; position: relative; }
.ausstattung li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--sea);
  border-bottom: 2.5px solid var(--sea);
  transform: rotate(-45deg);
}

/* Zimmer-Abschnitte: Bild und Text im Wechsel */
.room {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: center;
  margin: 3.5rem 0;
}
.room:nth-of-type(even) .room-media { order: 2; }
.room-media { display: grid; gap: 1rem; }
.room-media img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.room-media.zwei { grid-template-columns: 1fr 1fr; }
.room-media.hoch img { aspect-ratio: 3/4; max-width: 24rem; justify-self: center; }
.room-text h2 { margin-top: 0; }
.room-nr {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

/* Abschluss: Einladung zur Anfrage */
.cta-band {
  position: relative;
  background: linear-gradient(165deg, #0a2d34 0%, var(--sea-deep) 55%, var(--sea) 100%);
  border-radius: 16px;
  color: var(--foam);
  text-align: center;
  padding: 3rem 2rem;
  margin: 4rem 0 1rem;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.2rem;
  height: 2rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 30" preserveAspectRatio="none"><path d="M0 30 L0 18 Q 100 4, 220 16 T 460 12 T 700 18 T 940 10 T 1200 16 L1200 30 Z" fill="%23f6efe3" opacity="0.12"/></svg>') bottom / 100% 100% no-repeat;
}
.cta-band h2 { color: var(--foam); margin-top: 0; }
.cta-band p { max-width: 34rem; margin: 0.5rem auto 1.8rem; color: #cfe0dd; }

@media (max-width: 56rem) {
  .room { grid-template-columns: 1fr; gap: 1.3rem; margin: 2.8rem 0; }
  .room:nth-of-type(even) .room-media { order: 0; }
  .ausstattung { padding: 1.4rem 1.3rem; }
  .cta-band { padding: 2.4rem 1.3rem; }
  .cta-band .btn { display: block; margin: 0 auto 0.8rem; max-width: 22rem; }
}

/* == Kontaktformular ===================================================== */
.kontakt-form { display: grid; gap: 1.2rem; max-width: 34rem; margin-top: 1.5rem; }
.kontakt-form .form-zeile { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; }
.kontakt-form .form-zeile input[type="number"] { width: 5.5rem; }
@media (max-width: 34rem) { .kontakt-form .form-zeile { grid-template-columns: 1fr; } }
.kontakt-form p { margin: 0; }
.kontakt-form label { font-weight: 700; display: block; margin-bottom: 0.35rem; color: var(--sea-deep); }
.kontakt-form input, .kontakt-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.95rem;
  border: 2px solid var(--sand-dark);
  border-radius: 10px;
  background: var(--foam);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.kontakt-form input:focus, .kontakt-form textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(23, 85, 95, 0.15);
}
.form-meldung { padding: 1rem 1.3rem; border-radius: 10px; font-weight: 700; }
.form-meldung.ok { background: #e7f2e7; border: 2px solid #3c7a3c; color: #285228; }
.form-meldung.fehler { background: #fdeeea; border: 2px solid var(--rot); color: #8c3a22; }
.hp-feld { position: absolute; left: -9999px; }

/* == Lightbox ============================================================ */
.lb-zoombar { cursor: zoom-in; }

.esb-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: none;
  place-items: center;
}
.esb-lightbox[open] { display: grid; }
.esb-lightbox::backdrop { background: rgba(8, 34, 40, 0.92); }
.esb-lightbox figure { margin: 0; text-align: center; max-width: 92vw; }
.esb-lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.55);
}
.esb-lightbox figcaption {
  color: #cfe0dd;
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-top: 0.8rem;
}
.esb-lightbox button {
  position: fixed;
  background: rgba(246, 239, 227, 0.14);
  border: 2px solid rgba(246, 239, 227, 0.5);
  color: var(--foam);
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease;
}
.esb-lightbox button:hover, .esb-lightbox button:focus {
  background: rgba(246, 239, 227, 0.3);
}
.esb-lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.esb-lightbox .lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.esb-lightbox .lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.esb-lightbox .lb-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #cfe0dd;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
@media (max-width: 56rem) {
  .esb-lightbox .lb-prev { left: 0.5rem; }
  .esb-lightbox .lb-next { right: 0.5rem; }
  .esb-lightbox img { max-height: 76vh; }
}

/* == Footer ============================================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--sea-deep), #082228);
  color: #9ec4be;
  margin-top: 4.5rem;
  padding: 3.2rem 0 2.4rem;
  font-size: 0.98rem;
}
/* Dünen-Silhouette als Übergang in den Footer */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2.3rem;
  height: 2.4rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 40" preserveAspectRatio="none"><path d="M0 40 L0 28 Q 150 2, 320 22 T 640 16 Q 800 4, 950 24 T 1200 18 L1200 40 Z" fill="%230c343c"/></svg>') bottom / 100% 100% no-repeat;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}
.site-footer a { color: var(--foam); }
.site-footer a:hover, .site-footer a:focus { color: #f3e7c3; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.footer-leuchtturm { display: flex; align-items: center; gap: 0.75rem; }
.footer-leuchtturm svg { flex: none; opacity: 0.9; }

/* == Mobil =============================================================== */
@media (max-width: 56rem) {
  /* Kompakter einzeiliger Header: Marke links, Menü-Button rechts */
  .site-header .wrap {
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    gap: 0.4rem 0.8rem;
  }
  .site-brand { flex: 1; min-width: 0; gap: 0.55rem; }
  .site-brand svg { width: 26px; height: 26px; }
  .site-brand .title { font-size: clamp(0.95rem, 4.8vw, 1.12rem); white-space: nowrap; }
  .site-brand .tagline { font-size: 0.7rem; letter-spacing: 0.03em; }
  .nav-toggle { display: block; flex: none; padding: 0.3rem 0.7rem; font-size: 0.95rem; }

  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; padding-bottom: 0.6rem; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 0.7rem 0.85rem; } /* größere Tap-Flächen */
  .site-nav .sub-menu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding-left: 1.2rem;
    min-width: 0;
  }
  .site-nav .current-menu-item > a,
  .site-nav .current-menu-ancestor > a { border-radius: 8px; box-shadow: none; }

  /* iOS rendert background-attachment: fixed nicht, andere ruckeln damit */
  body { background-attachment: scroll; }

  /* Hero kompakter, Buttons in voller Breite (Daumen-freundlich) */
  .hero { min-height: 0; padding: 3.2rem 1.25rem 5.5rem; }
  .hero .eyebrow { font-size: 0.76rem; letter-spacing: 0.14em; }
  .hero p { margin-bottom: 1.6rem; }
  .hero .btn { display: block; margin: 0 auto 0.8rem; max-width: 22rem; }

  /* Fakten als 2x2-Raster statt langem Stapel */
  .facts { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: -2.6rem; }
  .fact { padding: 1rem 0.6rem 0.9rem; }
  .fact .zahl { font-size: 1.5rem; }
  .fact .label { font-size: 0.85rem; }

  .welcome { padding-top: 2.5rem; }
  .welcome .intro { font-size: 1.15rem; }
  .cards { padding-bottom: 2.5rem; }

  /* Titelbänder und Inhalt kompakter */
  .page-title-band { padding: 2rem 0 3.2rem; }
  .content-area { padding-top: 2rem; padding-bottom: 3rem; }
  .content-area .intro { font-size: 1.18rem; }

  /* Tabellen: Beschriftungsspalte nicht künstlich breit */
  th { width: auto; min-width: 9rem; }
}

/* Sehr schmale Screens: Tabellenzeilen stapeln (Label oben, Wert darunter) */
@media (max-width: 34rem) {
  table tr { display: block; }
  table th, table td { display: block; width: auto; min-width: 0; }
  table th { padding-bottom: 0.3rem; }
  table td { padding-top: 0.35rem; border-bottom: 1px solid var(--sand-dark); }
  table tr:last-child td { border-bottom: none; }

  /* Footer zentriert stapeln */
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .site-footer ul { justify-content: center; }
}

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