/* ==========================================================================
   Golfclub Leitershofen e.V. – Design System
   „Golf im Park" · Tiefgrün, Sand, Wappen-Gold · Playfair Display + Inter
   Aufgebaut auf dem Design-System der Golf-Resort-Adendorf-Seite.
   ========================================================================== */

:root {
  --green-deep: #16351F;
  --green: #2F6B3D;
  --green-light: #6AA878;
  --green-pale: #E4EEE4;
  --sand: #F5F2E9;
  --cream: #FBFAF5;
  --gold: #C9A227;
  --gold-light: #E8D48A;
  --wappen-red: #C8232C;
  --wappen-blue: #2A3B7D;
  --slate: #2B2B28;
  --gray-text: #5C6058;
  --gray-line: #E0DFD6;
  --white: #FFFFFF;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  --fs-h1: clamp(2.6rem, 6vw, 4.4rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.2rem);
  --fs-h3: clamp(1.5rem, 2.6vw, 2rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);

  --radius: 18px;
  --radius-pill: 40px;
  --shadow: 0 4px 24px rgba(22, 53, 31, .08);
  --shadow-hover: 0 24px 60px -16px rgba(22, 53, 31, .3);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* height:auto ist Pflicht, sobald Bilder width/height tragen – sonst zieht der
   Browser sie auf die Attributhöhe, statt das Seitenverhältnis zu halten.
   Komponenten mit eigener Höhe (.media-card img, .p-photo, .logo-mark img,
   .sponsor-tile img) haben Klassenselektoren und setzen sich durch. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--green-deep);
  line-height: 1.12;
  font-weight: 600;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }
section { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow-x: clip; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::after { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.section-head p { margin-top: 16px; font-size: var(--fs-lead); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-deep);
  color: var(--white);
  font-weight: 600; font-size: 1.02rem; letter-spacing: .3px;
  border: none; border-radius: var(--radius-pill);
  padding: 16px 36px; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .3s;
  will-change: transform;
  text-align: center;
}
.btn .btn-label { position: relative; z-index: 2; }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  z-index: 1;
}
.btn:hover { box-shadow: 0 16px 36px -12px rgba(22, 53, 31, .5); transform: translateY(-2px); }
.btn:hover::after { transform: translateY(0); }
.btn:hover .btn-label, .btn:hover .btn-arrow { color: var(--green-deep); }
.btn:active { transform: scale(.98); }

.btn--gold { background: var(--gold); color: var(--green-deep); }
.btn--gold::after { background: var(--green-deep); }
.btn--gold:hover .btn-label, .btn--gold:hover .btn-arrow { color: var(--white); }
.btn--outline { background: transparent; color: var(--green-deep); box-shadow: inset 0 0 0 2px var(--green-deep); }
.btn--outline::after { background: var(--green-deep); }
.btn--outline:hover .btn-label, .btn--outline:hover .btn-arrow { color: var(--white); }
.btn--white { background: var(--white); color: var(--green-deep); }
.btn--white::after { background: var(--gold); }
.btn--sm { padding: 11px 24px; font-size: .92rem; }
.btn--lg { padding: 20px 48px; font-size: 1.12rem; }
.btn-arrow { display: inline-block; transition: transform .35s var(--ease-out); position: relative; z-index: 2; }
.btn:hover .btn-arrow { transform: translateX(6px); }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--green); font-size: .98rem;
}
.link-more:hover .btn-arrow { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, transform .45s var(--ease-out), height .4s;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 245, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(224, 223, 214, .8);
  height: 70px;
}
.site-header.is-hidden { transform: translateY(-110%); }

.header-inner {
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

/* Logo: echtes Vereinswappen (Bavarian Hills) */
.logo { display: flex; align-items: center; gap: 13px; }
.logo .logo-mark {
  width: 54px; height: 54px; flex: 0 0 54px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(22, 53, 31, .14);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .4s var(--ease-out);
}
.logo .logo-mark img { width: 88%; height: 88%; object-fit: contain; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.07); }
.logo .logo-text { line-height: 1.15; }
.logo .logo-text strong { display: block; font-family: var(--font-head); color: var(--green-deep); font-size: 1.1rem; }
.logo .logo-text span { font-size: .66rem; text-transform: uppercase; letter-spacing: 2.4px; color: var(--gold); font-weight: 700; }
@media (max-width: 400px) { .logo .logo-text strong { font-size: .95rem; } }

/* Über dem Bild-Hero (nur Startseite) steht die Navigation auf dunklem
   Grund – solange nicht gescrollt wurde, also heller Text. */
body.has-hero .site-header:not(.is-scrolled) .logo .logo-text strong { color: var(--sand); }
body.has-hero .site-header:not(.is-scrolled) .logo .logo-mark { background: rgba(251, 250, 245, .92); }
body.has-hero .site-header:not(.is-scrolled) .main-nav a { color: var(--sand); }
body.has-hero .site-header:not(.is-scrolled) .main-nav a:hover { background: rgba(251, 250, 245, .16); color: var(--white); }
body.has-hero .site-header:not(.is-scrolled) .burger span { background: var(--sand); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: .95rem; color: var(--slate);
  padding: 9px 13px; border-radius: 20px;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--green-pale); color: var(--green-deep); }
.main-nav a.is-active { color: var(--green-deep); font-weight: 700; }
.main-nav a.nav-ext::after { content: " ↗"; font-size: .8em; color: var(--gold); }
.main-nav .btn { margin-left: 10px; }

.burger { display: none; background: none; border: none; cursor: pointer; width: 48px; height: 48px; z-index: 1102; position: relative; }
.burger span { display: block; width: 26px; height: 2px; background: var(--green-deep); margin: 6px auto; transition: transform .4s var(--ease-out), opacity .3s; }
.burger.is-open span { background: var(--sand); }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--green-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 36px 48px;
  clip-path: circle(0% at calc(100% - 48px) 42px);
  transition: clip-path .65s var(--ease-out);
  pointer-events: none;
  overflow-y: auto;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 48px) 42px); pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  color: var(--sand); padding: 7px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .5s var(--ease-out), color .25s;
}
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .btn { margin-top: 24px; align-self: flex-start; font-family: var(--font-body); font-size: 1rem; }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------------------
   HERO: gepinnte Bühne mit echten Platzaufnahmen (Ken-Burns + Überblendung)
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  height: 190vh; height: 190svh;
}
.hero-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #1E4A2C 0%, #16351F 55%, #0D2415 100%);
}

.hero-slides { position: absolute; inset: 0; z-index: 2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.hero-slide.is-live { opacity: 1; }
.hero-pin.is-ready .hero-slide.is-live { animation: kenBurns 16s ease-out forwards; }
@keyframes kenBurns {
  from { transform: scale(1.13); }
  to   { transform: scale(1.005); }
}

/* Die Aufnahmen sind hell (Himmel, Wasser, Sand). Damit die hellen Texte
   darauf sicher lesen, liegt ein kräftiger, mehrlagiger Schleier darüber:
   oben für die Navigation, in der Mitte hinter der Headline, unten für den
   Scroll-Hinweis. */
.hero-vignette {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(9, 26, 15, .72) 0%, rgba(9, 26, 15, .3) 22%, rgba(9, 26, 15, .22) 55%, rgba(9, 26, 15, .78) 100%),
    radial-gradient(ellipse 70% 46% at 50% 47%, rgba(9, 26, 15, .58) 0%, rgba(9, 26, 15, .22) 55%, rgba(9, 26, 15, 0) 100%),
    radial-gradient(ellipse at center, rgba(9, 26, 15, 0) 38%, rgba(9, 26, 15, .5) 100%);
}

/* Ladeanimation: Golfball umkreist die Fahne (rein CSS, keine Assets) */
.hero-loader {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity .9s ease;
}
.hero-pin.is-ready .hero-loader { opacity: 0; pointer-events: none; }

.loader-spinner { position: relative; width: 118px; height: 118px; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(245, 242, 233, .14); }
.loader-arc {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(201, 162, 39, .25);
  animation: loaderSpin 1.6s linear infinite;
  will-change: transform;
}
.loader-orbit {
  position: absolute; inset: 0;
  animation: loaderSpin 2.6s cubic-bezier(.45, .1, .55, .9) infinite;
  will-change: transform;
}
.loader-ball {
  position: absolute; top: -12px; left: 50%;
  width: 24px; height: 24px; margin-left: -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #F2F2EE 45%, #CDCFC9 85%, #B9BBB5 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .4);
}
.loader-ball::after {
  content: ""; position: absolute; inset: 16%;
  border-radius: 50%;
  background-image: radial-gradient(rgba(0, 0, 0, .15) 1px, transparent 1.2px);
  background-size: 6px 6px;
}
.loader-flag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); }
.loader-flag .pole { display: block; width: 2.5px; height: 40px; background: linear-gradient(to bottom, #F4F4F4, #C9C9C9); }
.loader-flag .flag {
  position: absolute; top: 0; left: 2.5px;
  width: 23px; height: 14px;
  background: var(--wappen-red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: 0 50%;
  animation: flagWave 2.2s ease-in-out infinite;
}
.loader-flag::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 15px; height: 5px; margin-left: -7.5px;
  border-radius: 50%; background: #08160C;
}
@keyframes flagWave {
  0%, 100% { transform: scaleX(1) skewY(0deg); }
  50% { transform: scaleX(.92) skewY(-3deg); }
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader-caption {
  color: rgba(245, 242, 233, .75);
  font-size: .82rem; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 600;
  animation: loaderPulse 2.2s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* Hero-Inhalte */
.hero-title {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}
.hero-crest {
  width: clamp(84px, 11vw, 132px); height: auto;
  margin-bottom: clamp(16px, 2.5vw, 28px);
  filter: drop-shadow(0 6px 22px rgba(9, 26, 15, .55));
}
.hero-title h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  color: var(--sand);
  text-shadow: 0 4px 40px rgba(9, 26, 15, .85);
}
.hero-title h1 em { font-style: italic; color: var(--gold-light); }
.hero-title .hero-sub {
  margin-top: 16px;
  font-size: clamp(.9rem, 1.5vw, 1.15rem);
  letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600;
  text-shadow: 0 2px 18px rgba(9, 26, 15, .9);
}

.hero-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 11;
  color: var(--sand); font-size: .78rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(9, 26, 15, .8);
}
.hero-hint .tee-icon {
  width: 30px; height: 50px; margin: 0 auto 10px;
  border: 2px solid var(--sand); border-radius: 18px; position: relative;
}
.hero-hint .tee-icon::after {
  content: ""; position: absolute; top: 9px; left: 50%;
  width: 5px; height: 10px; margin-left: -2.5px; border-radius: 3px;
  background: var(--gold-light);
  animation: teeDrop 1.8s infinite var(--ease-out);
}
@keyframes teeDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-final {
  position: absolute; inset: 0; z-index: 14;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  opacity: 0; pointer-events: none;
}
.hero-final.is-live { pointer-events: auto; }
.hero-final h2 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); color: var(--white); text-shadow: 0 4px 30px rgba(22, 53, 31, .7); }
.hero-final h2 em { font-style: italic; color: var(--gold-light); }
.hero-final p { color: var(--sand); font-size: var(--fs-lead); margin: 16px auto 30px; max-width: 620px; text-shadow: 0 2px 14px rgba(22, 53, 31, .7); }
.hero-final .final-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-veil {
  position: absolute; inset: 0; z-index: 13;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(22, 53, 31, .3), rgba(22, 53, 31, .6));
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Page-Hero (Unterseiten)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, var(--green-pale), var(--cream));
}
.page-hero h1 { max-width: 900px; }
.page-hero .lead { max-width: 720px; margin-top: 18px; font-size: var(--fs-lead); }
.page-hero .hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.breadcrumb { font-size: .88rem; margin-bottom: 20px; }
.breadcrumb span.sep { color: var(--gray-line); margin: 0 6px; }
.breadcrumb .current { color: var(--slate); }

/* Panoramastreifen unter dem Seitenkopf – nur für echte Panoramen (Seiten-
   verhältnis um 3:1). Der Streifen ist bei 1456px rund 3,5:1 breit, schneidet
   also oben und unten weg, was darüber hinausgeht. */
.page-banner {
  height: clamp(190px, 30vw, 420px);
  background-size: cover; background-position: center;
  position: relative;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9, 26, 15, .12), rgba(9, 26, 15, .28));
}

/* Vollbild-Variante: Aufnahmen, bei denen nichts wegfallen darf – etwa das
   Gruppenfoto der Jugend, dem ein Zuschnitt Köpfe und Füße nehmen würde.
   Das Bild behält sein Seitenverhältnis, egal wie schmal der Schirm wird. */
.page-photo { padding: clamp(28px, 4vw, 48px) 0 0; }
.page-photo figure {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-pale);
}
.page-photo img { width: 100%; height: auto; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .5; pointer-events: none;
  will-change: transform;
}
.blob--green { background: rgba(106, 168, 120, .35); }
.blob--gold { background: rgba(201, 162, 39, .2); }

/* --------------------------------------------------------------------------
   Cards & Grids
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--gold-light); }
.card h3, .card h4 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card .link-more { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.icon-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 16px;
  transition: transform .45s var(--ease-out), background .3s;
}
.card:hover .icon-bubble { transform: scale(1.1) rotate(-6deg); background: var(--gold-light); }

/* Bildkacheln für die vier Bereiche der Anlage */
.media-card {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  color: var(--white);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.media-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 26, 15, .85) 0%, rgba(9, 26, 15, .3) 45%, rgba(9, 26, 15, .05) 75%);
  transition: opacity .45s;
}
.media-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.media-card:hover img { transform: scale(1.07); }
.media-card .mc-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 26px 24px;
}
.media-card h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  text-shadow: 0 2px 14px rgba(9, 26, 15, .7);
}
.media-card p {
  color: rgba(245, 242, 233, .9); font-size: .92rem; margin-top: 6px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .4s, margin-top .4s;
}
.media-card:hover p, .media-card:focus-visible p { max-height: 130px; opacity: 1; }
.media-card .mc-arrow {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(251, 250, 245, .15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
  transition: background .35s, transform .45s var(--ease-out);
}
.media-card:hover .mc-arrow { background: var(--gold); color: var(--green-deep); transform: rotate(45deg); }
@media (hover: none) {
  .media-card p { max-height: 130px; opacity: 1; }
}

/* Status-Chips */
.status-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 30px; padding: 10px 20px;
  font-size: .92rem; font-weight: 600; color: var(--slate);
}
.status-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #58B368; animation: pulse 2s infinite; }
.status-chip.is-closed .dot { background: var(--wappen-red); animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 179, 104, .4); }
  50% { box-shadow: 0 0 0 6px rgba(88, 179, 104, 0); }
}

/* Marquee */
.marquee { overflow: hidden; padding: 22px 0; white-space: nowrap; background: var(--green-deep); }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--sand); padding: 0 30px;
}
.marquee-track span em { font-style: italic; color: var(--gold); }

/* --------------------------------------------------------------------------
   Tabellen (Greenfee, Trainerpreise, Platzdaten)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); overflow: hidden; min-width: 340px; }
.price-table caption {
  caption-side: top; text-align: left;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
  color: var(--green-deep); padding: 0 0 12px;
}
.price-table th {
  font-family: var(--font-head); text-align: left;
  background: var(--green-deep); color: var(--sand);
  padding: 15px 20px; font-size: 1rem; font-weight: 600;
}
.price-table th.num, .price-table td.num { text-align: right; }
.price-table td { padding: 13px 20px; border-bottom: 1px solid var(--gray-line); font-size: .96rem; vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--green-pale); }
.price-table .pr { font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.price-table .pr small { display: block; font-weight: 500; color: var(--gray-text); font-size: .82rem; }
.price-table td small { color: var(--gray-text); }
@media (max-width: 640px) {
  .price-table th, .price-table td { padding: 11px 12px; font-size: .88rem; }
}

/* Greenfee auf dem Handy: die dreispaltige Tabelle wird zu gestapelten
   Blöcken. Vorher scrollte der Kasten waagerecht (min-width: 460px), was auf
   einem 390px-Schirm bedeutet, dass die Hälfte der Preise unsichtbar ist. */
@media (max-width: 620px) {
  .price-table--stack { min-width: 0; }

  /* Der grüne Kopfbalken bleibt als Titel stehen, die Spaltenköpfe wandern
     als Beschriftung in die Zeilen. */
  .price-table--stack thead tr { display: block; }
  .price-table--stack thead th { display: block; }
  .price-table--stack thead th.num { display: none; }

  .price-table--stack tbody tr { display: block; padding: 15px 18px 16px; border-bottom: 1px solid var(--gray-line); }
  .price-table--stack tbody tr:last-child { border-bottom: none; }
  .price-table--stack tbody tr:hover td { background: transparent; }
  .price-table--stack tbody td { display: block; padding: 0; border: none; }

  .price-table--stack tbody td:first-child {
    font-weight: 700; color: var(--green-deep); font-size: 1rem;
    margin-bottom: 10px;
  }
  /* „mit Mitglied" steht unten an jedem Preis, oben wäre es doppelt */
  .price-table--stack tbody td:first-child br,
  .price-table--stack tbody td:first-child small { display: none; }

  .price-table--stack tbody td.num {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 14px;
    padding: 7px 0;
    border-top: 1px dashed var(--gray-line);
    text-align: right;
  }
  .price-table--stack tbody td.num::before {
    content: attr(data-label);
    grid-column: 1; grid-row: 1;
    text-align: left;
    font-family: var(--font-body);
    font-size: .78rem; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--gray-text);
    white-space: nowrap;
  }
  .price-table--stack tbody td.num b { grid-column: 2; grid-row: 1; font-size: 1.08rem; }
  .price-table--stack tbody td.num small { grid-column: 2; grid-row: 2; display: block; }
  .price-table--stack tbody td.num small::before {
    content: "mit Mitglied ";
    font-weight: 500;
  }
}

.footnotes { font-size: .88rem; margin-top: 18px; color: var(--gray-text); }
.footnotes li { margin-bottom: 4px; list-style: none; }

/* Definitionsliste: Öffnungszeiten, Kontaktblöcke */
.info-list { display: grid; gap: 0; }
.info-list > div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--gray-line);
}
.info-list > div:last-child { border-bottom: none; }
.info-list dt { font-weight: 600; color: var(--green-deep); }
.info-list dd { text-align: right; color: var(--gray-text); }
.info-list .is-closed dd { color: var(--wappen-red); font-weight: 600; }
/* Auf schmalen Schirmen würden lange Werte („11:30 – 14:30 & 17:00 – 21:00 Uhr")
   sonst auf wenige Zeichen pro Zeile zusammengequetscht. */
@media (max-width: 560px) {
  .info-list > div { flex-direction: column; gap: 2px; }
  .info-list dd { text-align: left; }
}

/* Personenkarten (Vorstand, Team, Trainer) */
.person {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.person:hover { transform: translateY(-4px); border-color: var(--gold-light); box-shadow: var(--shadow); }
.person .p-role {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 2px;
  font-weight: 700; color: var(--gold); display: block; margin-bottom: 4px;
}
.person .p-name { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--green-deep); font-weight: 600; line-height: 1.25; }
.person .p-meta { display: block; font-size: .9rem; line-height: 1.5; margin-top: 6px; }
.person .p-initial {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
  background: var(--green-pale); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
}
.person .p-photo {
  width: 68px; height: 68px; flex: 0 0 68px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  box-shadow: 0 0 0 2px var(--gold-light);
  transition: box-shadow .35s, transform .4s var(--ease-out);
}
.person:hover .p-photo { box-shadow: 0 0 0 3px var(--gold); transform: scale(1.04); }

/* Porträt mit Bild */
.portrait {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 720px) { .portrait { grid-template-columns: 1fr; } .portrait img { max-width: 260px; } }

/* Downloads / Dokumentenlinks */
.doc-link {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 14px; padding: 15px 20px;
  color: var(--slate); font-weight: 600; font-size: .96rem;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s var(--ease-out);
}
.doc-link:hover { transform: translateX(4px); border-color: var(--gold); box-shadow: var(--shadow); }
.doc-link .doc-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: var(--green-pale); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.doc-link .doc-meta { display: block; font-weight: 400; font-size: .82rem; color: var(--gray-text); }
.doc-link .doc-arrow { margin-left: auto; padding-left: 10px; color: var(--gold); font-size: 1.1rem; }
@media (max-width: 480px) {
  .doc-link { padding: 13px 15px; font-size: .9rem; gap: 11px; }
  .doc-link .doc-icon { width: 34px; height: 34px; flex-basis: 34px; }
}

/* Eingebettete Inhalte (Livecam, Turnierkalender, Karte) */
.embed-frame {
  position: relative; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-line); background: var(--white);
  box-shadow: var(--shadow);
}
.embed-frame iframe { display: block; width: 100%; border: 0; }
.embed-frame--16x9 { aspect-ratio: 16 / 9; }
.embed-frame--16x9 iframe { height: 100%; }
.embed-frame--map { aspect-ratio: 16 / 10; }
.embed-frame--map iframe { height: 100%; }
.embed-frame--tall iframe { height: 720px; }
@media (max-width: 640px) { .embed-frame--tall iframe { height: 560px; } }

.embed-note { font-size: .85rem; margin-top: 10px; color: var(--gray-text); }

/* Sponsorenband */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px;
}
.sponsor-tile {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 14px; padding: 18px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s var(--ease-out);
}
.sponsor-tile img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .68;
  transition: filter .4s, opacity .4s, transform .4s var(--ease-out);
}
.sponsor-tile:hover { transform: translateY(-4px); border-color: var(--gold-light); box-shadow: var(--shadow); }
.sponsor-tile:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* Stats */
.stats-band { background: var(--green-deep); }
.stats-band .stat h3 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); color: var(--gold); }
.stats-band .stat p { color: var(--green-pale); margin-top: 6px; font-size: .95rem; }

/* Zeitstrahl (Clubgeschichte) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--gold), var(--green-light));
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--gold);
}
.tl-year {
  font-family: var(--font-head); font-size: 1.35rem; color: var(--green-deep);
  font-weight: 700; display: block; margin-bottom: 5px;
}

/* Textabschnitte mit langen Fließtexten */
.prose h3 { margin: 34px 0 12px; }
.prose h4 { margin: 26px 0 10px; font-size: 1.15rem; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 18px 20px; }
.prose ul li { margin-bottom: 6px; }
.prose > *:first-child { margin-top: 0; }

/* Hinweisbox */
.notice {
  background: var(--green-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  font-size: .96rem;
}
.notice strong { color: var(--green-deep); }

/* Formulare */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--green-deep); margin-bottom: 6px; letter-spacing: .3px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem; color: var(--slate);
  background: var(--white);
  border: 1.5px solid var(--gray-line); border-radius: 12px;
  padding: 13px 15px; outline: none; appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 107, 61, .12);
}

/* CTA-Band */
.cta-band {
  background: linear-gradient(120deg, var(--green-deep) 0%, var(--green) 100%);
  border-radius: 26px;
  padding: clamp(44px, 7vw, 80px) clamp(28px, 6vw, 72px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, .35);
}
.cta-band::after {
  content: ""; position: absolute; left: -60px; bottom: -100px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(251, 250, 245, .18);
}
.cta-band h2 { color: var(--sand); margin-bottom: 12px; }
.cta-band p { color: var(--green-pale); max-width: 620px; margin: 0 auto 28px; font-size: var(--fs-lead); }
.cta-band > * { position: relative; z-index: 2; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: var(--green-pale);
  padding: clamp(56px, 8vw, 90px) 0 36px;
  margin-top: clamp(60px, 9vw, 110px);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h6 {
  color: var(--gold); font-family: var(--font-body);
  font-weight: 700; font-size: .85rem; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 2px;
}
.site-footer a { color: var(--green-pale); display: block; padding: 4px 0; font-size: .95rem; transition: color .25s, transform .3s var(--ease-out); }
.site-footer a:hover { color: var(--gold); transform: translateX(4px); }
.footer-brand p { font-size: .95rem; line-height: 1.7; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo .logo-mark { background: transparent; box-shadow: none; }
.footer-brand .logo .logo-text strong { color: var(--sand); }
.footer-brand .logo:hover { transform: none; }
.footer-brand a { display: inline; padding: 0; }
.footer-brand a:hover { transform: none; }
.footer-contact { margin-top: 14px; font-size: .95rem; }
.footer-contact a { display: block; }
.footer-bottom {
  margin-top: 52px; padding-top: 22px;
  border-top: 1px solid rgba(228, 238, 228, .15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: rgba(228, 238, 228, .6);
}
.footer-claim { color: var(--gold); font-family: var(--font-head); font-style: italic; font-size: 1rem; }

/* Floating CTA Dock */
.cta-dock {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  transform: translateY(140%);
  transition: transform .6s var(--ease-out);
}
.cta-dock.is-visible { transform: none; }
.cta-dock .btn { box-shadow: 0 14px 40px -8px rgba(22, 53, 31, .6); }
@media (max-width: 640px) {
  .cta-dock { right: 16px; bottom: 16px; left: 16px; }
  .cta-dock .btn { width: 100%; }
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(44px); will-change: transform, opacity; }
[data-reveal="left"] { transform: translateX(-54px); }
[data-reveal="right"] { transform: translateX(54px); }
[data-reveal="scale"] { transform: scale(.9); }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

.split-lines .line-wrap { overflow: hidden; display: block; }
.split-lines .line-inner { display: block; will-change: transform; }

/* Page transition */
.page-transition {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background: var(--green-deep);
  clip-path: circle(0% at 50% 50%);
}
.page-transition.is-in { animation: ptIn .55s var(--ease-out) forwards; }
.page-transition.is-out { animation: ptOut .7s .05s var(--ease-out) forwards; }
@keyframes ptIn { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(150% at 50% 50%); } }
@keyframes ptOut { from { clip-path: circle(150% at 50% 50%); } to { clip-path: circle(0% at 50% 50%); } }

.text-center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }
::selection { background: var(--gold); color: var(--green-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 3000;
  background: var(--green-deep); color: var(--sand);
  padding: 12px 22px; border-radius: 30px; font-weight: 600;
}
.skip-link:focus { left: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-stage { height: auto !important; }
  html { scroll-behavior: auto; }
}
