/* ==========================================================================
   Hofgut Both Ã¢â‚¬â€ statische Nachbau-Version
   Farbschema, Typo, Layout, Header/Footer, Responsive
   ========================================================================== */

/* ----- Reset & Base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #474747;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #87af47; text-decoration: none; transition: color .2s ease; }
a:hover { color: #6d8f38; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 500;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

:root {
  --accent: #87af47;
  --accent-dark: #6d8f38;
  --text: #474747;
  --text-muted: #7a7a7a;
  --dark: #373137;
  --light: #f5f3ef;
  --border: #e6e2dc;
  /* Topbar (Kontaktzeile) + Haupt-Header in zwei Zeilen */
  --topbar-h: 42px;
  /* Header groÃƒÅ¸zÃƒÂ¼gig Ã¢â‚¬â€œ Logo bekommt ~24px Luft oben und unten */
  --header-h: 144px;
  --header-h-scrolled: 82px;
  /* Hero: ursprÃƒÂ¼ngliche groÃƒÅ¸e Startseiten-Wirkung als Referenz */
  --hero-h: clamp(680px, 100vh, 1200px);
}

/* Zentraler Offset fÃƒÂ¼r den fixed Header + Topbar Ã¢â‚¬â€ der Inhalt beginnt
   garantiert UNTERHALB des Headers, damit Hero-Bilder nicht ÃƒÂ¼berdeckt werden. */
html { scroll-padding-top: calc(var(--topbar-h) + var(--header-h)); }
body { padding-top: calc(var(--topbar-h) + var(--header-h)); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 900px; }
.container-wide   { max-width: 1360px; }

section { padding: 88px 0; }

/* ----- Topbar (Kontaktzeile) --------------------------------------------- */
.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--topbar-h);
  background: rgba(36, 32, 36, .98);
  color: #e0dcd5;
  transition: transform .35s ease, height .35s ease;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.site-topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  height: 100%;
  font-size: 13px;
  letter-spacing: .02em;
}

.topbar-link {
  color: #e0dcd5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  transition: color .2s ease;
}
.topbar-link:hover { color: var(--accent); }
.topbar-link svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Beim Scrollen: Topbar einziehen, Header oben andocken */
.is-topbar-hidden .site-topbar { transform: translateY(-100%); }

/* ----- Header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 100;
  background: rgba(55, 49, 55, .94);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  height: var(--header-h);
  transition: top .35s ease, height .35s ease, background .35s ease, box-shadow .35s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}

.site-header.is-scrolled {
  top: 0;
  height: var(--header-h-scrolled);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  background: rgba(55, 49, 55, .98);
}

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

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.site-logo img {
  height: 96px;
  width: auto;
  transition: height .35s ease;
}

.is-scrolled .site-logo img { height: 54px; }

/* header-contact wird seit der Topbar-Umstellung nicht mehr im Header verwendet */
.header-contact { display: none !important; }

/* ----- Navigation --------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav li { position: relative; white-space: nowrap; }

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 3px;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav li.active > a,
.main-nav li:hover > a { color: var(--accent); }

.main-nav li.has-children > a::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  margin-left: 4px;
  transition: transform .2s ease;
}
.main-nav li.has-children:hover > a::after { transform: rotate(225deg) translateY(-1px); }

/* Mobile-Submenu-Toggle-Button: auf Desktop unsichtbar */
.submenu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: #ffffff;
  border-radius: 4px;
  /* Top-padding = invisible hover bridge Ã¢â‚¬â€ kein AbreiÃƒÅ¸en beim Wechsel vom Link ins Dropdown */
  padding: 18px 0 6px;
  margin-top: -12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  background-clip: padding-box;
  transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
  display: block;
}

/* Hover-Bridge nur auf Desktop Ã¢â‚¬â€ auf Mobile entstehen sonst falsche Klick-Zonen
   und Pseudo-Elemente, die Submenu-Layouts stÃƒÂ¶ren kÃƒÂ¶nnten. */
@media (min-width: 1025px) {
  .main-nav li.has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: 20px;
    pointer-events: none;
  }
  .main-nav li.has-children:hover::after,
  .main-nav li.has-children:focus-within::after { pointer-events: auto; }
}

/* Wichtig: Hover-Submenu nur Desktop. Auf Mobile NICHT Ã¢â‚¬â€ sonst verschiebt
   transform: translateX(-50%) das geÃƒÂ¶ffnete Submenu nach links aus dem Viewport. */
@media (min-width: 1025px) {
  .main-nav li.has-children:hover > .submenu,
  .main-nav li.has-children:focus-within > .submenu,
  .main-nav li.has-children > .submenu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
}

.main-nav .submenu li { display: block; }

.main-nav .submenu a {
  color: #474747;
  padding: 10px 20px;
  font-size: 12px;
  display: block;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 0;
}

.main-nav .submenu a:hover {
  background: var(--accent);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ----- Hero (Startseite) -------------------------------------------------- */
.hero {
  position: relative;
  /* Section-HÃƒÂ¶he ohne Header-Offset, damit Gesamtwirkung wie zuvor bleibt */
  min-height: calc(var(--hero-h) - var(--topbar-h) - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 60px 24px 120px;
  background: #1c1a1c;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/start-bg.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,21,25,.38) 0%, rgba(25,21,25,.65) 100%);
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-eyebrow {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  color: #f5f3ef;
  letter-spacing: .02em;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 1s .2s forwards cubic-bezier(.2,.7,.2,1);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 8vw, 110px);
  font-weight: 500;
  color: #fff;
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineReveal .95s forwards cubic-bezier(.2,.7,.2,1);
}
.hero-title .line:nth-child(1) > span { animation-delay: .45s; }
.hero-title .line:nth-child(2) > span { animation-delay: .65s; }
.hero-title .line:nth-child(3) > span { animation-delay: .85s; }

@keyframes lineReveal {
  to { transform: translateY(0); }
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-align: center;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 38px;
  background: rgba(255,255,255,.6);
  margin: 10px auto 0;
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(.15); opacity: .2; }
  50%  { transform: scaleY(1);   opacity: 1;   }
  100% { transform: scaleY(.15); opacity: .2; }
}

/* ----- Inner-Page Header Banner ------------------------------------------ */
.page-banner {
  position: relative;
  padding: 60px 24px 100px;
  color: #fff;
  text-align: center;
  background: #262226 center/cover no-repeat;
  background-image: linear-gradient(rgba(30,26,30,.55), rgba(30,26,30,.65)), url('../images/aurelien-faux-J1z2zcvupHk-unsplash.jpg');
  background-position: center 35%;
  /* Section-HÃƒÂ¶he ohne Header-Offset, damit Gesamtwirkung wie zuvor bleibt */
  min-height: calc(var(--hero-h) - var(--topbar-h) - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner.pb-top        { background-position: center 22%; }
.page-banner.pb-top-strong { background-position: center 8%;  } /* sehr weit oben */
.page-banner.pb-mid        { background-position: center 38%; } /* leicht ueber Mitte */
.page-banner.pb-center     { background-position: center 50%; } /* mittig */
.page-banner.pb-below      { background-position: center 65%; } /* leicht unter Mitte */
.page-banner.pb-bottom     { background-position: center 80%; }
.page-banner.pb-left       { background-position: 25% 35%; }
.page-banner.pb-right      { background-position: 75% 35%; }
/* Sehr hochformatige Heros: Mobile rÃƒÂ¼ckt den Fokus nach oben, damit KÃƒÂ¶pfe nicht abgeschnitten werden */
@media (max-width: 768px) {
  .page-banner.pb-top        { background-position: center 18%; }
  .page-banner.pb-top-strong { background-position: center 5%;  }
  .page-banner.pb-center     { background-position: center 32%; }
  .page-banner              { background-position: center 28%; }
}
@media (max-width: 425px) {
  .page-banner.pb-top        { background-position: center 14%; }
  .page-banner.pb-top-strong { background-position: center 3%;  }
  .page-banner              { background-position: center 24%; }
}

.page-banner .eyebrow {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: .02em;
  opacity: .88;
  margin-bottom: 10px;
}

.page-banner h1 {
  font-size: clamp(36px, 7vw, 78px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

/* ----- Section Heading Pattern (eyebrow + bold) --------------------------- */
.section-heading {
  margin: 0 0 32px;
  text-align: center;
}

.section-heading .eyebrow {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #9aa685;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.section-heading h1,
.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.section-heading.left { text-align: left; }

/* ----- Content blocks ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.reversed .split-media { order: 2; }

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.split-media.pos-top-strong img { object-position: center 6%; }
.split-media.pos-top    img { object-position: center 18%; }
.split-media.pos-mid    img { object-position: center 35%; }
.split-media.pos-center img { object-position: center 50%; }
.split-media.pos-bottom img { object-position: center 80%; }
.split-media.pos-left   img { object-position: 25% center; }
.split-media.pos-right  img { object-position: 75% center; }
/* Mobile: Hochformat-Inline-Bilder leicht weiter nach oben rÃƒÂ¼cken,
   damit KÃƒÂ¶pfe von Personen/Tieren erhalten bleiben */
@media (max-width: 768px) {
  .split-media.pos-top img { object-position: center 14%; }
}
@media (max-width: 425px) {
  .split-media.pos-top img { object-position: center 10%; }
}

.split-text p { font-size: 16px; line-height: 1.85; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background .22s ease, transform .22s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn svg { width: 14px; height: 14px; }

/* ----- Section background variants --------------------------------------- */
.section-tint   { background: #f8f6f2; }
.section-cream  { background: #f5f3ef; }
.section-dark   { background: #2a262a; color: #e5e1da; }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark .section-heading h1, .section-dark .section-heading h2 { color: #fff; }
.section-dark .section-heading .eyebrow { color: #c7cdb4; }

/* ----- Image grid --------------------------------------------------------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  transition: transform .6s ease, box-shadow .3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.image-grid a { overflow: hidden; border-radius: 4px; display: block; }
.image-grid a:hover img { transform: scale(1.06); }

/* ----- Cards / Termine ---------------------------------------------------- */
.termine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.termin {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px 22px;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.termin:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(0,0,0,.08);
}
.termin .label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.termin .date {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #2a2a2a;
}

/* ----- Partner grid ------------------------------------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.partner-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.partner-card .partner-logo {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Partnerkarte ohne Logo Ã¢â‚¬â€œ Textkarte gleichwertig ausrichten */
.partner-card--no-logo { justify-content: center; padding-top: 36px; padding-bottom: 36px; }
.partner-card--no-logo::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 8px;
}
.partner-card .partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: saturate(.95);
}
.partner-card h3 {
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2a2a2a;
  margin: 0;
  font-weight: 500;
}
.partner-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #636363;
  margin: 0;
}
.partner-card a.partner-link {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.partner-card a.partner-link:hover { color: var(--accent-dark); }

/* ----- Kontakt ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #f5f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-list .ci-icon svg { width: 18px; height: 18px; }
.contact-list .ci-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9a9a9a;
  display: block;
}
.contact-list .ci-value {
  font-size: 16px;
  color: #2a2a2a;
}

.map-wrap {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  position: relative;
  background: #e8e4de;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  color: #474747;
}

/* ----- Formular ---------------------------------------------------------- */
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7a7a7a;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: #2a2a2a;
  border-radius: 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(135,175,71,.18);
}
.form-field textarea { min-height: 160px; resize: vertical; }

/* Pflicht-Checkbox (Datenschutz) Ã¢â‚¬â€ Checkbox links, Text rechts */
.form-field-checkbox { margin-top: 4px; }

.contact-form .privacy-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #474747;
  line-height: 1.55;
  cursor: pointer;
}

.contact-form .privacy-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0 0;          /* leicht nach unten, damit visuell zur ersten Textzeile passt */
  accent-color: var(--accent);
  cursor: pointer;
}

.contact-form .privacy-check > span {
  flex: 1 1 auto;
  min-width: 0;               /* erlaubt sauberes Umbrechen langer Texte */
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.contact-form .privacy-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form .privacy-check a:hover { color: var(--accent-dark); }

/* Visuelles Feedback fÃƒÂ¼r invalide Felder nach Submit-Versuch */
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.18);
}

/* Honeypot (hidden from users, visible to bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-note { font-size: 12px; color: #7a7a7a; }
.form-note.error { color: #c0392b; }
.form-note.ok    { color: #2e7d32; }

/* ----- Footer ------------------------------------------------------------- */
.site-footer {
  background: #2a262a;
  color: #d8d3cc;
  padding: 64px 0 24px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.site-footer h3 {
  color: #fff;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer p, .site-footer li, .site-footer a { color: #d8d3cc; }
.site-footer a:hover { color: var(--accent); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }

.oeko-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-right: 8px;
  color: #fff;
}

.funding-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.funding-logos a {
  background: #fff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-height: 64px;
  transition: transform .25s ease;
}
.funding-logos a:hover { transform: translateY(-2px); }
.funding-logos img { max-height: 48px; width: auto; object-fit: contain; }

.footer-eler-hint { font-size: 12px; margin-top: 14px; color: #bdb8b0; }
.footer-eler-hint a { color: var(--accent); }

.footer-bottom {
  max-width: 1360px;
  margin: 40px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a5a09a;
  gap: 16px;
  flex-wrap: wrap;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 130;
  transform: translateY(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  text-decoration: none;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); color:#fff; }
.back-to-top svg { width: 18px; height: 18px; }

/* Cookie hint */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 86px;
  bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  background: #ffffff;
  color: #474747;
  padding: 18px 22px;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 115;
  font-size: 14px;
  transform: translateY(24px);
  opacity: 0;
  /* WICHTIG: kein Klick-Blocker mehr, solange Banner nicht aktiv sichtbar ist */
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.cookie-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear 0s;
}
/* Nach Entscheidung vollstÃƒÂ¤ndig aus dem Layout: auch kein pseudo-Overlay */
.cookie-bar.is-hidden,
.cookie-bar[hidden] {
  display: none !important;
}
.cookie-bar strong { color: #2a2a2a; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; }
.cookie-bar p { margin: 0; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-bar .btn { padding: 10px 18px; font-size: 11px; }

/* Reveal-on-scroll */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade-up.is-in { opacity: 1; transform: translateY(0); }

/* Legale Seiten: Inhalt muss sofort sichtbar sein, auch ohne JS */
.legal-content.fade-up,
.legal-page .fade-up {
  opacity: 1;
  transform: none;
}

/* Fallback ohne JS */
.no-js .fade-up { opacity: 1; transform: none; }

/* ----- Legal pages -------------------------------------------------------- */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 26px;
  margin: 36px 0 14px;
  letter-spacing: .02em;
}
.legal-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 24px 0 10px;
  color: var(--accent-dark);
}
.legal-content p,
.legal-content li { font-size: 15px; line-height: 1.8; }
.legal-content ul { padding-left: 18px; }
.legal-content ul li { margin-bottom: 6px; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 1200px) {
  .main-nav a { padding: 10px 11px; letter-spacing: .05em; font-size: 12.5px; }
}

@media (max-width: 1024px) {
  :root {
    --topbar-h: 36px;
    --header-h: 114px;
    --header-h-scrolled: 74px;
    --hero-h: clamp(560px, 82vh, 760px);
  }
  .site-topbar-inner { padding: 0 18px; gap: 18px; font-size: 12px; }
  .header-inner { padding: 0 18px; gap: 12px; }
  .site-logo img { height: 74px; }
  .is-scrolled .site-logo img { height: 50px; }
  .page-banner { padding: 40px 24px 70px; }
  /* 5 Termine Ã¢â€ â€™ 3 + 2 zentriert */
  .termine-grid { grid-template-columns: repeat(6, 1fr); }
  .termine-grid .termin { grid-column: span 2; }
  .termine-grid .termin:nth-child(4) { grid-column: 2 / span 2; }
  .termine-grid .termin:nth-child(5) { grid-column: 4 / span 2; }
  .header-contact { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Wichtig: backdrop-filter auf .site-header erzeugt einen Containing Block.
     Dadurch wÃƒÂ¼rde .main-nav (position:fixed) nur innerhalb der Header-HÃƒÂ¶he
     positioniert. Auf Mobile daher den Backdrop-Filter deaktivieren. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 82vw;
    max-width: 360px;
    /* Robust gegen iOS-URL-Bar-Wechsel */
    height: 100vh;
    height: 100dvh;
    background: #373137;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 20px) 20px max(40px, env(safe-area-inset-bottom));
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
    box-shadow: -12px 0 40px rgba(0,0,0,.28);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 105;
  }
  .nav-toggle { z-index: 110; position: relative; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 2px; width: 100%; padding: 0; list-style: none; }

  /* Jeder Listenpunkt: Block. Hauptlink + Chevron sitzen in einer .nav-row.
     Submenu liegt direkt darunter Ã¢â‚¬â€ kein Flex-Wrap-Problem. */
  .main-nav li {
    display: block;
    width: 100%;
  }
  /* Robuste Zielstruktur: nav-row trÃƒÂ¤gt Hauptpunkt + Toggle */
  .main-nav .nav-row {
    position: relative;
    display: block;
    width: 100%;
  }
  .main-nav li > a,
  .main-nav .nav-row > a {
    display: block;
    width: 100%;
    padding: 14px 14px;
    font-size: 13px;
    border-radius: 2px;
    box-sizing: border-box;
  }
  /* Bei has-children rechts Platz fÃƒÂ¼r den Chevron-Button reservieren */
  .main-nav li.has-children .nav-row > a { padding-right: 56px; }

  /* Auf Mobile: Decorative ::after-Pfeil im Link wegnehmen Ã¢â‚¬â€ Chevron ist eigener Button */
  .main-nav li.has-children > a::after,
  .main-nav .nav-row > a::after { display: none; }

  /* Submenu-Toggle: separater Button absolut rechts in der nav-row */
  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;          /* gleich Link-HÃƒÂ¶he fÃƒÂ¼r saubere Touch-FlÃƒÂ¤che */
    border-radius: 2px;
    color: rgba(255,255,255,.85);
    transition: background .2s ease, color .2s ease;
  }
  .submenu-toggle:hover,
  .submenu-toggle:focus-visible { background: rgba(255,255,255,.06); color: var(--accent); }
  .submenu-toggle svg {
    width: 14px; height: 14px;
    transition: transform .25s ease;
  }
  .has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }

  /* Aktiv-Marker dezent: schmaler grÃƒÂ¼ner Streifen links statt voller Farbe */
  .main-nav li.active > a { color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
  .main-nav .submenu li.active > a { color: var(--accent); }

  /* Submenu auf Mobile: keine fremde Box, nur dezente EinrÃƒÂ¼ckung + Akzentlinie */
  .main-nav .submenu {
    width: 100%;
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    padding: 2px 0 6px 18px;
    margin: 0 0 4px;
    min-width: 0;
    border-left: 1px solid rgba(255,255,255,.12);
    transition: max-height .3s ease, opacity .25s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .main-nav li.has-children.is-open > .submenu { max-height: 400px; opacity: 1; }
  .main-nav .submenu li { display: block; }
  .main-nav .submenu a {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    padding: 10px 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 2px;
  }
  .main-nav .submenu a:hover,
  .main-nav .submenu a:focus-visible { background: rgba(135,175,71,.18); color: var(--accent); }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    z-index: 90;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reversed .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  section { padding: 64px 0; }
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .funding-logos { grid-template-columns: repeat(2, 1fr); }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Topbar auf Mobile ausblenden Ã¢â‚¬â€ Platz fÃƒÂ¼rs Logo, Kontakt ist im Footer */
  .site-topbar { display: none; }
  .site-header { top: 0; }
  :root { --topbar-h: 0px; }
}

@media (max-width: 640px) {
  :root { --hero-h: clamp(480px, 78vh, 620px); }
  .container { padding: 0 18px; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 18px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 20px 18px 0; }
  .form-row { grid-template-columns: 1fr; }
  .page-banner { padding: 30px 18px 60px; }
  section { padding: 52px 0; }
  .hero { padding: 40px 18px 90px; }
  .image-grid { grid-template-columns: 1fr; }
  .termine-grid,
  .termine-grid .termin { grid-template-columns: 1fr; grid-column: 1 / -1 !important; margin: 0 !important; }
  .partner-grid { grid-template-columns: 1fr; }
  .main-nav { width: 90vw; }
  .main-nav a { padding: 13px 12px; letter-spacing: .04em; font-size: 12.5px; }
  .main-nav .submenu a { padding: 9px 12px; }
}

@media (max-width: 420px) {
  :root { --header-h: 96px; --header-h-scrolled: 70px; --hero-h: clamp(420px, 70vh, 540px); }
  .site-logo img { height: 62px; }
  .is-scrolled .site-logo img { height: 46px; }
  .hero-title { font-size: 42px; }
  .page-banner h1 { font-size: 34px; }
  .section-heading h1, .section-heading h2 { font-size: 30px; }
  .cookie-bar { left: 10px; right: 70px; bottom: 10px; padding: 14px 16px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

/* A11y & print */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media print { .site-header, .site-footer, .back-to-top, .cookie-bar, .nav-toggle { display: none !important; } body { color: #000; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
}
