/* hundeforscherin.de — Basis-Stylesheet. Farben und Regeln: K.S.I. Design-Handbuch
   (ksi/design/README.md) — Markenfarbe seit 26.10.2026 „Ozean ruhig“ (Entscheidung Katrin/Kim). */

:root {
  --brand: #1565b0;        /* Ozeanblau (Primärfarbe; Weiß darauf ≈ 6:1) */
  --brand-dark: #10508c;
  --brand-soft: #e8f1f9;
  --cream: #f7f5f0;        /* warmes Off-White (26.10.2026, vorher Sand #f6f0e4 — passte zu Grün, neben Ozeanblau zu gelblich) */
  --line: #e6e1d8;
  --muted: #5d564a;
  --ink: #231f19;
  --ink-on-soft: #1b3a57;
  --footer-bg: #211e18;
  --footer-text: #d6cfc2;
  --footer-link: #efe9dd;
  --red: #c22f22;
  --red-soft: #faeae8;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(23px, 3.5vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }  /* height:auto: width/height-Attribute geben nur das Seitenverhältnis vor */
/* <picture> (WebP-Wrapper aus build.py) soll layout-neutral sein:
   das img bleibt direktes Flex-/Grid-Kind wie ohne Wrapper.
   source explizit boxlos — sonst macht display:contents es in manchen
   Browsern (iOS Safari) zum leeren Flex-Kind, und der Spalten-gap
   schiebt das Bild sichtbar nach rechts. */
picture { display: contents; }
source { display: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: Georgia, serif; font-weight: 700; font-size: 20px; }
.brand .dot { color: var(--red); }
.site-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-left: 12px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink); }  /* „ruhig“: Menü dunkel, Farbe nur für Hover/aktiv */
.site-nav a:hover { color: var(--brand); }
.site-nav [aria-current="page"] { font-weight: 700; color: var(--brand); }
.header-cta { margin-left: auto; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--brand); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 700px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .site-header.has-burger .nav-burger { display: block; }
  .site-header.has-burger .site-nav { display: none; }
  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; gap: 0;
    padding: 4px 0 6px; margin-top: 6px; border-top: 1px solid var(--line);
    font-size: 16px;
  }
  .site-header.nav-open .site-nav a { display: flex; align-items: center; min-height: 44px; }
  .site-header.nav-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Buttons & Badges */
.btn {
  display: inline-block; background: var(--brand); color: #ffffff;
  font-weight: 700; padding: 13px 24px; border-radius: 8px; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); color: #ffffff; }
.btn.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-outline {
  display: inline-block; border: 2px solid var(--brand); color: var(--ink);
  font-weight: 700; padding: 11px 24px; border-radius: 8px; text-decoration: none;
}
.btn-outline:hover { background: var(--brand-soft); color: var(--ink); }
/* Auf blauen/cremefarbenen Flächen wäre der Soft-Hover unsichtbar — dort weiß füllen */
.band .btn-outline:hover, .band-cream .btn-outline:hover { background: #ffffff; }
/* ... aber in weissen Karten AUF dem Band waere Weiss unsichtbar -> hellblauer Hover */
.band .card .btn-outline:hover, .band .card-img .btn-outline:hover,
.band-cream .card .btn-outline:hover, .band-cream .card-img .btn-outline:hover { background: var(--brand-soft); }
.btn-outline.btn-small { padding: 6px 15px; font-size: 14px; }
.badge {
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.badge.badge-red { background: var(--red-soft); color: var(--red); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Sections */
.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--line); }
.section.no-rule + .section, .band + .section { border-top: 0; }
.band { background: var(--brand-soft); padding-block: 48px; }
.band-cream { background: var(--cream); padding-block: 56px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.on-soft { color: var(--ink-on-soft); }
.small { font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.lead { font-size: 18px; max-width: 640px; }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; justify-content: center; }
.split > *, .split > picture > img { flex: 1 1 420px; min-width: 0; }
/* Schmale Bilder (Buchcover, Logo): zentrieren sich, sobald das Layout stapelt —
   in der Zweispaltigkeit wirkungslos, weil der Text den freien Platz füllt */
.split > img, .split > picture > img { margin-inline: auto; }
.split .text { display: flex; flex-direction: column; gap: 14px; }
/* Startseiten-Hero: Buchcover + Slogan (der Slogan ist bewusst keine Überschrift,
   damit die Seite mit der H1 beginnt) */
.split > .hero-cover, .split > picture > .hero-cover {
  flex: 0 1 300px; height: auto; max-height: 420px; object-fit: contain;
  border-radius: 10px; box-shadow: 0 14px 30px rgba(35, 31, 25, .14);
}
.hero-title {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.15;
  text-wrap: balance; color: var(--ink); font-size: clamp(26px, 4vw, 36px);
}
.split img { height: 340px; width: 100%; object-fit: cover; border-radius: 16px; }
@media (max-width: 700px) {
  /* Nur die großen Foto-Heros stauchen — Cover im .cover-wrap behalten ihr Format */
  .split > img, .split > picture > img { height: 240px; }
  .split > img[style*="max-height"], .split > picture > img[style*="max-height"] { height: auto; }
  /* Mobil: Cover kleiner, damit der erste Bildschirm nicht nur aus dem Buch besteht */
  .split > .hero-cover, .split > picture > .hero-cover { flex: 0 0 auto; height: 260px; max-height: none; width: auto; }
}
/* Angebotsliste der Startseite: auf schmalen Handys einspaltig */
@media (max-width: 480px) { .offer-list { columns: 1 !important; } }

/* Card grids */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px; background: #ffffff;
}
.card .grow { flex-grow: 1; }
.card.on-band { border-color: var(--line); }
.card-img { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #ffffff; }
.card-img img { height: 170px; width: 100%; object-fit: cover; }
.card-img .card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.price { font-weight: 700; color: var(--brand); }
.img-placeholder {
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
}

/* Prinzip-Spalten */
.principles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.principle h3 { margin-bottom: 4px; font-size: 18px; }

/* Terminlisten */
.schedule { display: flex; flex-direction: column; gap: 10px; }
.schedule-row {
  display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}
.schedule-row .date { font-weight: 700; white-space: nowrap; }
.schedule-row .what { flex: 1 1 220px; }

/* Ausklappbare Termine: Buchungslink steht neben <details> (nicht im <summary>) */
.termin {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  border: 1px solid var(--line); border-radius: 10px;
}
.termin > details { grid-column: 1; grid-row: 1; }
.termin > .btn-outline { grid-column: 2; grid-row: 1; margin: 10px 14px 0 0; }
.termin details summary {
  display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap;
  padding: 14px 18px; cursor: pointer; list-style: none;
}
.termin details summary::-webkit-details-marker { display: none; }
.termin details summary .what { flex: 1 1 200px; }
.termin details summary .chev {
  margin-left: 4px; flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s;
}
.termin:has(details[open]) { border-color: var(--brand); }
.termin details[open] summary .chev { transform: translateY(2px) rotate(225deg); }
@media (max-width: 540px) {
  /* Mobil eine Spalte: Klappzeile über die volle Breite, Buchen-Button darunter in voller Breite */
  .termin { grid-template-columns: minmax(0, 1fr); }
  .termin > .btn-outline {
    grid-column: 1; grid-row: 2; margin: 0 18px 16px;
    justify-content: center; text-align: center;
  }
  .termin details summary { gap: 4px 12px; }
  .termin details summary .date { flex: 1 1 auto; }
  .termin details summary .what { order: 3; flex: 1 1 100%; }
}
.termin-body {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin: 0 18px; padding: 14px 0 16px; border-top: 1px dashed var(--line);
}
.termin-body img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.termin-body .btn-outline { margin-left: auto; }
@media (max-width: 540px) { .termin-body .btn-outline { margin-left: 0; } }

/* Buchcover */
.book-cover {
  flex: 0 0 210px; aspect-ratio: 7 / 10; max-width: 230px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px rgba(35, 31, 25, .14);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--brand); font-weight: 700; padding: 14px;
}

/* Lightbox (Galerie) */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh;
}
dialog.lightbox::backdrop { background: rgba(33, 30, 24, .88); }
dialog.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
dialog.lightbox img { max-width: min(92vw, 1100px); max-height: 80vh; width: auto; height: auto; border-radius: 10px; }
dialog.lightbox figcaption { color: #efe9dd; font-size: 15px; text-align: center; }
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .12); color: #ffffff; border: 0; border-radius: 50%;
  width: 46px; height: 46px; font-size: 20px; cursor: pointer; line-height: 1;
}
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { top: 24px; right: 16px; transform: none; }
.lb-btn:focus-visible { outline-color: #ffffff; }
.site-footer a:focus-visible { outline-color: var(--footer-link); }

/* Rote Akzente (Entscheidung Kim 17.10.2026: Variante B fest übernommen) */
main h1::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--red); border-radius: 2px; margin-top: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--red); margin-right: 8px;
}

/* Hinweis-Popup (Unsere Angebote) */
dialog.hinweis-popup {
  border: 0; border-radius: 14px; padding: 28px 26px 24px;
  max-width: min(92vw, 480px); background: #ffffff; color: var(--ink);
  box-shadow: 0 24px 60px rgba(35, 31, 25, .3);
}
dialog.hinweis-popup::backdrop { background: rgba(33, 30, 24, .55); }
dialog.hinweis-popup h2 { margin-bottom: 10px; }
dialog.hinweis-popup p { margin-bottom: 10px; }
dialog.hinweis-popup .cta-row { margin-top: 14px; gap: 10px; }
.hp-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: 0; font-size: 18px; color: var(--muted);
  cursor: pointer; padding: 6px; line-height: 1;
  min-width: 44px; min-height: 44px; top: 4px; right: 4px;
}
.hp-close:hover { color: var(--ink); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 56px; font-size: 14px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; padding-block: 28px;
}
.site-footer .footer-top {
  padding-block: 22px 0; gap: 6px 24px;
}
.site-footer a { color: var(--footer-link); }
.footer-links { display: flex; gap: 4px 12px; align-items: center; flex-wrap: wrap; }
/* Touch-Ziele mind. 24 px (WCAG 2.2), Social-Icons 44 px */
.footer-links a { display: inline-block; padding-block: 8px; }
.footer-links .social { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; line-height: 0; }
.footer-top a { display: inline-block; padding-block: 4px; }

/* Kontakt: Adresskarten sind H2 (Gliederung), sehen aber wie H3 aus */
h2.h3 { font-size: 19px; }

/* Galerie: mobil zweispaltig, damit die Übernachtungsseite nicht endlos wird */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery-grid img { height: 130px; }
}

/* Touch-Ziele: kleine Buttons mobil mindestens 44 px hoch */
@media (max-width: 700px) {
  .btn-small { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Karten untereinander (Angebote, Gruppenkurse, Team): volle Seitenbreite, Text füllt die
   Karte aus — keine Zeilenlängen-Begrenzung (Kim, 26.10.2026) */

/* Startseite: Wegweiser unter dem Buch-Hero */
.wegweiser { border-bottom: 1px solid var(--line); }
.wegweiser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-block: 20px; }
.wegweiser-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #ffffff; color: var(--ink); font-weight: 700; text-decoration: none;
}
.wegweiser-grid a::after { content: "→"; color: var(--red); }
.wegweiser-grid a:hover { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 700px) { .wegweiser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Übernachtung: Sprungmarken */
.jumplinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.jumplinks a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px;
  color: var(--ink);
}
.jumplinks a:hover { border-color: var(--brand); background: var(--brand-soft); }
[id] { scroll-margin-top: 88px; }

/* WhatsApp-Links */
.wa-icon { display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* Telefonnummern nicht am Bindestrich umbrechen */
a[href^="tel:"]:not([class*="btn"]), a[href*="wa.me/"]:not([class*="btn"]) { white-space: nowrap; }

/* Sehr schmale Handys: Wegweiser-Kacheln kompakter, damit nichts dreizeilig umbricht */
@media (max-width: 360px) {
  .wegweiser-grid { gap: 8px; }
  .wegweiser-grid a { padding: 10px 12px; font-size: 15px; }
}
