/* Schreibschrift für den Gruß (Allura, SIL Open Font License, lokal eingebunden). */
@font-face {
  font-family: "Allura";
  src: url("assets/fonts/allura-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Farben und Grundwerte aus dem Flyer */
:root {
  --tanne-dunkel: #242c17;
  --tanne: #2f3a1f;
  --moos: #5d6848;
  --moos-hell: #a9b593;
  --logo-gruen: #0f5b3e;
  --creme: #fdfdf3;
  --creme-dunkel: #f1f2e4;
  --text: #242c17;
  --radius-pill: 999px;
  --breite: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--tanne-dunkel);
  color: var(--text);
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--moos-hell); outline-offset: 3px; }

.inhalt { width: min(100% - 2 * var(--gutter), var(--breite)); margin-inline: auto; }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(36, 44, 23, .96);
  color: #fff;
}
.kopf .inhalt { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.marke img { width: 44px; height: 44px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 16px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Knöpfe wie auf dem Flyer */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 26px;
  border-radius: var(--radius-pill);
  background: var(--moos); color: #fff;
  text-decoration: none; text-align: center;
}
.knopf { font-weight: 700; cursor: pointer; }
.knopf:hover { background: var(--logo-gruen); }
.knopf.hell { background: var(--creme); color: var(--tanne-dunkel); }
.knopf.hell:hover { background: var(--creme-dunkel); }
.knopf.klein { min-height: 40px; padding: 6px 18px; font-size: 16px; white-space: nowrap; }

/* Hero: dunkles Feld links, Nadeln rechts, Fotokreis unten rechts */
.hero {
  position: relative; z-index: 2;
  min-height: 620px;
  color: #fff;
  background: var(--tanne-dunkel) url("assets/nadeln-hintergrund.webp") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(36, 44, 23, .76);
}
.hero .inhalt { position: relative; padding-block: clamp(32px, 4vw, 56px) clamp(40px, 4.5vw, 64px); }
.hero-kopf { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.hero-logo { width: clamp(120px, 20vw, 230px); flex: none; }
.hero h1 {
  font-size: clamp(36px, 6.4vw, 76px);
  line-height: 1.08;
  color: var(--moos-hell);
  overflow-wrap: anywhere;
}
.hero-unterzeile { display: block; color: #fff; font-weight: 400; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.2; margin-top: 6px; }
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero-zeiten { font-size: clamp(22px, 2.9vw, 34px); line-height: 1.25; margin-top: clamp(32px, 5vw, 64px); }
.hero-ort { font-size: clamp(18px, 2vw, 22px); margin-top: 8px; }
.hinweis { margin-top: 20px; }
.fakten {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px;
  list-style: none; margin: 28px 0 0; padding: 0;
}
.fakten li { display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.pikto {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--logo-gruen); color: #fff;
}
.pikto svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pikto svg.gefuellt { fill: currentColor; stroke: none; }
.pikto svg.gefuellt .vorn { stroke: var(--logo-gruen); stroke-width: 1; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 32px; }
.symbol-knopf svg { display: none; width: 26px; height: 26px; fill: currentColor; }
.hero-foto {
  position: absolute; right: 0; bottom: 0;
  width: min(23vw, 420px);
  pointer-events: none;
}

/* Abschnitte */
.abschnitt { padding-block: clamp(56px, 8vw, 96px); background: var(--creme); }
.abschnitt.alt { background: var(--creme-dunkel); }
#baeume { padding-bottom: clamp(40px, 5vw, 64px); }
#verkauf { padding-top: clamp(40px, 5vw, 64px); }
.abschnitt.dunkel { background: var(--tanne-dunkel); color: #fff; }
.abschnitt h2 {
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15;
  color: var(--logo-gruen);
}
.abschnitt.dunkel h2 { color: var(--moos-hell); }
.einleitung { max-width: 680px; margin-top: 12px; }

.raster { display: grid; gap: 24px; margin-top: 36px; }
.raster.drei { grid-template-columns: repeat(3, 1fr); }
.raster.vier { grid-template-columns: repeat(4, 1fr); }
.raster.vier .bild { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.raster.zwei { grid-template-columns: repeat(2, 1fr); align-items: start; gap: clamp(24px, 5vw, 64px); }

.karte { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.karte-text { padding: 20px 24px 26px; }
.karte h3 { font-size: 24px; line-height: 1.2; color: var(--logo-gruen); margin-bottom: 8px; }

/* Platzhalter: sichtbar markiert, damit nichts versehentlich online geht */
.platzhalter {
  display: grid; place-items: center;
  background: var(--moos-hell); color: var(--tanne-dunkel);
  font-size: 15px; text-align: center; padding: 16px;
}
.bild { aspect-ratio: 4 / 3; }
.bild.rund { aspect-ratio: 1; border-radius: 50%; max-width: 420px; width: 100%; margin-inline: auto; }
.karte-karte { aspect-ratio: 16 / 10; border-radius: 24px; }
mark {
  background: #fff0b3; color: var(--tanne-dunkel);
  padding: 1px 6px; border-radius: 4px;
}

#verkauf .einleitung { margin-top: 20px; }
.zeiten { width: 100%; border-collapse: collapse; margin-top: 28px; border-top: 1px solid #ccd0ba; }
#verkauf .hinweis { margin-top: 32px; }
.nummer { white-space: nowrap; }
#familie .raster.zwei { align-items: center; }
/* Ausgleich für die Punkte unter dem Kreis, damit der Text mittig zum Kreis steht */
@media (min-width: 901px) { #familie .raster.zwei > div:last-child { margin-bottom: 30px; } }
.zeiten th, .zeiten td { padding: 18px 0; text-align: left; border-bottom: 1px solid #ccd0ba; font-weight: 400; vertical-align: top; }
.zeiten th { padding-right: 24px; white-space: nowrap; }

/* Runde Fotogalerie */
.galerie { position: relative; width: 100%; max-width: 440px; margin-inline: auto; outline-offset: 6px; }
.galerie:focus-visible { outline: 3px solid var(--moos); }
.galerie-fenster {
  position: relative; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: var(--moos-hell);
  touch-action: pan-y;
}
.galerie-fenster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .5s ease;
}
.galerie-fenster img.aktiv { opacity: 1; }
.galerie-pfeil {
  position: absolute; top: calc(50% - 40px);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--creme); color: var(--tanne-dunkel);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.galerie-pfeil:hover { background: #fff; }
.galerie-pfeil:focus-visible, .galerie-punkte button:focus-visible { outline: 3px solid var(--moos); outline-offset: 2px; }
.galerie-pfeil svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.galerie-pfeil.zurueck { left: -8px; }
.galerie-pfeil.weiter { right: -8px; }
.galerie-punkte { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.galerie-punkte button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--logo-gruen); background: transparent;
}
.galerie-punkte button[aria-current="true"] { background: var(--logo-gruen); }
@media (prefers-reduced-motion: reduce) { .galerie-fenster img { transition: none; } }

.gruss { font-family: "Allura", "Brush Script MT", cursive; font-weight: 400; font-size: clamp(34px, 4.2vw, 46px); line-height: 1.25; margin-top: 24px; color: var(--logo-gruen); }

.kontakt-liste { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; }
.kontakt-liste li { display: flex; gap: 16px; align-items: flex-start; }
.kontakt-liste svg { flex: none; width: 30px; height: 30px; fill: currentColor; margin-top: 2px; }
.kontakt-liste a { text-decoration: none; }
.kontakt-liste a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Fußzeile */
.fuss { background: #1a2010; color: #dfe3d2; font-size: 16px; padding-block: 28px; }
.fuss .inhalt { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.fuss nav { display: flex; gap: 24px; }

.link-knopf {
  background: none; border: 0; padding: 0;
  color: inherit; font: inherit;
  text-decoration: underline; cursor: pointer;
}

/* Karte und Cookie-Banner */
.karte-karte { overflow: hidden; }
.karte-karte p { margin-bottom: 14px; font-size: 16px; }
.karte-karte:has(iframe) { padding: 0; display: block; }
.karte-karte iframe { display: block; width: 100%; height: 100%; border: 0; }

.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  background: var(--tanne); color: #fff;
  font-size: 16px; line-height: 1.45;
  padding-block: 18px;
  border-top: 1px solid var(--moos);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .inhalt { display: flex; align-items: center; gap: 16px 32px; }
.cookie-banner p { flex: 1; }
.cookie-aktionen { display: flex; gap: 12px; flex: none; }

/* Rechtsseiten */
.rechtstext { max-width: 760px; }
.rechtstext h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; color: var(--logo-gruen); }
.rechtstext h2 { font-size: 24px; margin-top: 32px; }
.rechtstext p, .rechtstext ul { margin-top: 12px; }

@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero .inhalt { padding-bottom: 24px; }
  .hero-foto { position: relative; width: min(92%, 520px); margin-left: auto; }
  .raster.vier { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-logo { display: none; }
  .nav { display: none; }
  .kopf .knopf { margin-left: auto; }
  .raster.drei, .raster.zwei { grid-template-columns: 1fr; }
  #verkauf .raster.zwei { row-gap: 64px; }
  .nur-desktop { display: none; }
  .cookie-banner .inhalt { flex-direction: column; align-items: stretch; }
  .cookie-aktionen .knopf { flex: 1; padding-inline: 12px; }
}

@media (max-width: 520px) {
  .hero-kopf { flex-direction: column; align-items: flex-start; }
  .fakten { grid-template-columns: 1fr; }
  .raster.vier { grid-template-columns: 1fr; }
  .marke span { display: none; }
  .hero-unterzeile { font-size: 21px; }
  .hero-ort { font-size: 16px; }
  /* Runde Symbol-Knöpfe links, Fotokreis rechts daneben */
  /* Knöpfe (2 × 56 px + 14 px Abstand = 126 px) mittig zur Bildhöhe (62vw × 816/735 ≈ 68.8vw) */
  .hero-aktionen { flex-direction: column; gap: 14px; margin-top: calc(34.4vw - 63px + 20px); position: relative; z-index: 1; }
  .symbol-knopf { width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; }
  .symbol-knopf svg { display: block; }
  .symbol-knopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero .inhalt { padding-bottom: 0; }
  .hero-foto { width: 62vw; margin: calc(-34.4vw - 63px) 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
