/* ============================================================================
   style.css — dillhotel, Ferienwohnungen & Apartments in Ilsede
   JumpX-Standard: statisch, mobile-first, ein einziges Stylesheet.

   Schriften stehen bewusst HIER und nicht in einer eigenen fonts.css:
   zwei getrennte CSS-Dateien wären zwei render-blockierende Requests.
   Beide WOFF2 liegen lokal unter /assets/fonts/ — kein Google-Hotlink
   (DSGVO, siehe references/dsgvo.md im Skill).
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marke — Werte direkt aus dem Logo ausgelesen (Pixelprobe), nicht geschätzt. */
  --blau:        #1a3b66;
  --blau-dunkel: #12294a;
  --blau-tint:   #eef3fa;
  --orange:      #f28512;
  --orange-dark: #d97209;
  --orange-tint: #fff3e6;

  /* Flächen / Text */
  --bg:      #ffffff;
  --bg-alt:  #fbf9f6;   /* warmer Sandton statt Grau: passt zum Holz auf den Fotos */
  --card:    #ffffff;
  --text:    #1c2430;
  --muted:   #5b6472;
  --border:  #e8e6e1;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max:       1180px;

  --font:         "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(18,41,74,.06);
  --shadow:    0 8px 24px rgba(18,41,74,.08);
  --shadow-lg: 0 18px 48px rgba(18,41,74,.14);
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
/* <picture> ist nur ein Auswahl-Wrapper für die WebP-Variante und darf im Layout
   nicht mitspielen — sonst greifen Höhenregeln am <img> ins Leere. */
picture { display: contents; }

a { color: var(--blau); }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blau);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.section   { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt  { background: var(--bg-alt); }
.section--tint { background: var(--blau-tint); }

/* Kleine orangefarbene Vorzeile über den Überschriften — Element aus dem Entwurf. */
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .5rem;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blau); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, summary, input, textarea):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--blau); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn--light { background: #fff; color: var(--blau); }
.btn--light:hover { background: var(--orange-tint); color: var(--blau); }
.btn svg { flex: 0 0 auto; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px;
}
.logo img { width: 168px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
/* Bewusst ".site-nav ul a" und nicht ".site-nav a": der orange CTA-Button steht
   als Geschwister NEBEN der Liste. Mit dem weiteren Selektor würde die
   Textfarbe der Menüpunkte die weiße Button-Schrift überschreiben — der Button
   sah dadurch dunkel auf Orange aus. */
.site-nav ul a {
  font-family: var(--font-display); font-weight: 500; font-size: .97rem;
  color: var(--text); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--orange-dark); border-bottom-color: var(--orange); }
/* aria-current="page" statt einer Extra-Klasse: der Zustand steht damit einmal
   im Markup und ist gleichzeitig für Screenreader korrekt ausgezeichnet. */
.site-nav ul a[aria-current="page"] { color: var(--blau); border-bottom-color: var(--orange); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--blau); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav[data-offen="ja"] { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--border); }
  .site-nav ul a { display: block; padding: .85rem 0; border-bottom: 0; }
  .site-nav ul a[aria-current="page"] { color: var(--orange-dark); }
  .nav-cta { margin-top: .9rem; justify-content: center; }
}

/* ------------------------------------------------------------------- Hero */
.hero { background: var(--bg-alt); overflow: hidden; }
.hero-grid {
  display: grid; gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.hero-logo { width: min(330px, 78%); height: auto; margin: 0 0 1rem; }
.hero h1 { margin-bottom: .7rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-bild img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10; object-fit: cover;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}

/* Kopfbereich der Unterseiten. Bewusst linksbündig im normalen Container:
   ein zusätzlich zentrierter Textblock würde gegenüber dem Inhalt darunter
   um gut 150 px einrücken und sähe aus wie ein Layoutfehler. */
.seiten-hero__inner { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.seiten-hero__inner h1 { max-width: 20ch; }

/* Streifen mit drei Vorteilen direkt unter dem Hero */
.hero-usp { background: #fff; border-top: 1px solid var(--border); }
.hero-usp .container { display: grid; gap: 1.25rem; padding-block: 1.5rem; }
.usp-item { display: flex; align-items: center; gap: .85rem; }
.usp-item strong { font-family: var(--font-display); color: var(--blau); display: block; font-size: .98rem; }
.usp-item span { font-size: .88rem; color: var(--muted); }
@media (min-width: 780px) { .hero-usp .container { grid-template-columns: repeat(3, 1fr); } }

/* Runder Icon-Kreis in Orange — durchgängiges Motiv der Seite. */
.icon-kreis {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-tint); color: var(--orange);
}
.icon-kreis--gross { width: 60px; height: 60px; }

/* ------------------------------------------------------------------ Karten */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 620px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 1rem 0 .4rem; }
.card p  { margin: 0; color: var(--muted); font-size: .95rem; }
.card--zentriert { text-align: center; }
.card--zentriert .icon-kreis { margin-inline: auto; }

/* --------------------------------------------------- Zwei-Spalten-Abschnitt */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--bild-links > :first-child { order: 2; }
}
.split-bild img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover;
}

/* -------------------------------------------------------- Entfernungen/Lage */
.entfernungen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 1.75rem 0; }
@media (min-width: 620px) { .entfernungen { grid-template-columns: repeat(4, 1fr); } }
.entfernung { text-align: center; }
.entfernung .icon-kreis { margin-inline: auto; margin-bottom: .5rem; }
.entfernung strong { display: block; font-family: var(--font-display); color: var(--blau); }
.entfernung span { font-size: .88rem; color: var(--muted); }

/* Schematische Karte: bewusst selbst gezeichnetes SVG statt Google-Maps-iFrame.
   Ein iFrame würde die IP jedes Besuchers ohne Einwilligung an Google senden
   (DSGVO); ein OSM-Kachel-Embed wäre ebenfalls ein externer Request. Das SVG
   kostet null Requests, ist auf jedem Display scharf und zeigt genau das,
   worauf es ankommt: wo Ilsede im Verhältnis zu den Nachbarstädten liegt. */
.karte {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm);
}
.karte svg { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------- Galerie */
/* Waagerechter Streifen mit Scroll-Snap. Kein Slider-Skript, kein Framework:
   der Browser scrollt selbst, die Pfeile schubsen nur per scrollBy nach.
   Ohne JS bleibt die Galerie voll benutzbar (wischen/scrollen). */
.galerie-wrap { position: relative; }
.galerie {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 30%);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .75rem; scrollbar-width: thin;
}
.galerie figure { margin: 0; scroll-snap-align: start; }
.galerie img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.galerie figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.galerie-btn {
  position: absolute; top: 38%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; cursor: pointer;
  display: none; place-items: center; box-shadow: var(--shadow);
}
.galerie-btn:hover { background: var(--orange-dark); }
.galerie-btn--vor { right: -12px; }
.galerie-btn--zurueck { left: -12px; }
@media (min-width: 780px) {
  .galerie-btn { display: grid; }
  .galerie { grid-auto-columns: minmax(280px, 25%); }
}

/* --------------------------------------------------------- Apartment-Block */
.apartment { border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.apartment:first-of-type { border-top: 0; padding-top: 0; }
.apartment__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .5rem; }
.apartment__kopf h2 { margin: 0; }
.merkmale { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .75rem 0 1.25rem; }
.merkmale li {
  font-size: .85rem; background: var(--blau-tint); color: var(--blau);
  border-radius: 999px; padding: .3rem .8rem;
}

/* ------------------------------------------------------ Ausstattungs-Leiste */
.leiste {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: grid; gap: 1.25rem;
}
/* Sechs Punkte in drei Spalten (2 Reihen). Bei vier Spalten bliebe die zweite
   Reihe halb leer und der Streifen sähe abgebrochen aus. */
@media (min-width: 780px) { .leiste { grid-template-columns: repeat(3, 1fr); } }
/* In der Leiste oben ausrichten statt mittig: sobald ein Untertitel zweizeilig
   umbricht, stünde er sonst als einziger auf einer anderen Höhe als die übrigen. */
.leiste .usp-item { align-items: flex-start; }

/* --------------------------------------------------------------- CTA-Band */
.cta-band {
  background: var(--blau); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }
/* :where() statt ".cta-band a" — das hat Spezifität 0, dadurch gewinnt jede
   .btn--*-Regel. Vorher stand hier ".cta-band a { color:#fff }": das hat die
   Schrift des weißen Buttons "Anfrage senden" auf Weiß gezogen, der Button war
   leer. Dasselbe Muster hatte zuvor schon den orangen Nav-Button erwischt —
   deshalb hier grundsätzlich lösen und nicht nur den Einzelfall. */
:where(.cta-band) a { color: #fff; }
.cta-band__aktion { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cta-band__tel { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1.6fr 1fr; }
  .cta-band__aktion { align-items: flex-end; }
}

/* -------------------------------------------------- Vergleichstabelle */
/* Zimmer gegen Apartment. Der einzige Unterschied ist die Küche — das "nein"
   wird deshalb farblich hervorgehoben statt nur klein mitzulaufen: wer die
   Tabelle überfliegt, soll genau diese Zeile sehen. */
.vergleich {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  background: #fff; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); font-size: .96rem;
  min-width: 30rem;   /* darunter wird umbrochen statt gequetscht (Wrapper scrollt) */
}
.vergleich th, .vergleich td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.vergleich thead th {
  background: var(--blau); color: #fff;
  font-family: var(--font-display); font-weight: 600;
}
.vergleich tbody th { font-weight: 500; color: var(--text); }
.vergleich td { color: var(--muted); }
.vergleich td.nein { color: var(--orange-dark); font-weight: 600; }
.vergleich tbody tr:last-child th, .vergleich tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------- FAQ */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .95rem 1.2rem; margin-bottom: .75rem; background: #fff;
}
.faq details[open] { border-color: var(--orange); }
.faq summary {
  font-family: var(--font-display); font-weight: 600; color: var(--blau);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* --------------------------------------------------------------- Formular */
.formular { display: grid; gap: 1rem; max-width: 640px; }
.feld { display: grid; gap: .35rem; }
.feld label { font-family: var(--font-display); font-weight: 500; font-size: .93rem; color: var(--blau); }
.feld input, .feld textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); width: 100%;
}
.feld input:focus, .feld textarea:focus { border-color: var(--orange); }
.feld textarea { min-height: 150px; resize: vertical; }
.feld-zwei { display: grid; gap: 1rem; }
@media (min-width: 620px) { .feld-zwei { grid-template-columns: 1fr 1fr; } }
.einwilligung { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.einwilligung input { width: 18px; height: 18px; margin-top: .25rem; flex: 0 0 auto; }
/* Honeypot: für Menschen unsichtbar, für Bots ein verlockendes Feld.
   Kein display:none — manche Bots ignorieren so ausgeblendete Felder gezielt. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis {
  border-left: 4px solid var(--orange); background: var(--orange-tint);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.25rem;
}

/* Kontaktdaten-Block */
.kontaktdaten { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.kontaktdaten li { display: flex; gap: .85rem; align-items: flex-start; }
.kontaktdaten a { text-decoration: none; font-weight: 500; }
.kontaktdaten a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- Rechtstexte */
.rechtstext { max-width: 75ch; }
.rechtstext h2 { margin-top: 2rem; font-size: 1.4rem; }
.rechtstext h3 { margin-top: 1.5rem; color: var(--text); font-size: 1.05rem; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--blau-dunkel); color: rgba(255,255,255,.78); }
/* Ebenfalls :where(): falls im Footer je ein Button landet, soll er seine
   eigene Farbe behalten (siehe Begründung beim CTA-Band). */
:where(.site-footer) a { color: rgba(255,255,255,.86); text-decoration: none; }
:where(.site-footer) a:hover { color: var(--orange); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer strong { color: #fff; font-family: var(--font-display); display: block; margin-bottom: .6rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-logo { width: 160px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.1rem; font-size: .85rem; }

/* Bewegungsreduzierung respektieren. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
