/* =========================================================================
   KultHuus Wittmund – Stylesheet
   Orientiert am Original-Design (WordPress/Elementor):
   · Schrift: Open Sans (Fließtext) + Playfair Display (große Überschriften)
   · Farben: Nuancen von Grün und Rot, Schwarz, Weiß
   · Kopf: gemaltes grünes Dach + rundes Logo + lachsrote Navigationsleiste
   ========================================================================= */

:root {
  /* Rottöne */
  --rot:            #e30613;   /* Logo-Rot */
  --rot-nav:        #f47c7c;   /* Navigationsleiste (Lachston) */
  --rot-rahmen:     #cc1111;   /* Rahmen „Mach mit!" */
  --rot-hell:       #eda1a1;   /* Verlauf „Mach mit!" unten */

  /* Grüntöne */
  --gruen:              #3aaa35;  /* Logo-Grün */
  --gruen-strich:       #2e9e1f;  /* gemalte Dachstriche */
  --gruen-strich-hell:  #55c437;
  --gruen-box:          #62c05f;  /* Kasten „Nächste Termine" / „Was wir tun" */
  --gruen-footer:       #5cd65c;  /* Fußzeile */
  --gruen-rahmen:       #2eb82e;  /* Kartenrahmen Neuigkeiten / Features */
  --gruen-verlauf:      #e0f6e0;  /* Kartenverlauf unten */
  --gruen-dunkel:       #1f7a1c;  /* aktiver Menüpunkt, Links */

  /* Neutral */
  --tinte:   #1d1d1b;
  --text:    #3c3c3b;
  --grau:    #54595f;   /* Fließtext-Grau wie im Original */
  --linie:   #dedede;

  --maxw: 1160px;
  --shadow-card: 0 1px 6px rgba(0,0,0,.10);

  --f-body:  "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--grau);
  background: #fff;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--gruen-dunkel); }
a:hover { color: var(--gruen); }
p { margin: 0 0 1em; }

h1, h2, h3, h4 { color: var(--tinte); line-height: 1.2; margin: 0 0 .5em; }
h1, .serif { font-family: var(--f-serif); font-weight: 500; }
h1 { font-size: clamp(2.1rem, 4.5vw, 2.9rem); text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinte); color: #fff; padding: .7rem 1rem; z-index: 300;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }

/* =========================================================================
   Seitenkopf: gemaltes Dach + Logo + Navigationsleiste
   ========================================================================= */
.roofband {
  position: relative;
  height: 215px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f3f3 0%, #fff 78%);
}
.roofband__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.roofband__logo {
  position: absolute; left: 50%; top: 26px; transform: translateX(-50%);
  width: 158px; height: 158px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.roofband__logo img {
  width: 86%; height: 86%; object-fit: contain; border-radius: 50%;
}

/* Navigationsleiste */
.navbar {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--rot-nav);
}
.navbar__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 3.2rem;
}
.navbar__list a {
  display: block; padding: 1.15rem .2rem;
  font-weight: 600; font-size: .92rem;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #262626;
}
.navbar__list a:hover { color: #fff; }
.navbar__list a[aria-current="page"] { color: var(--gruen-dunkel); }

.navbar__toggle {
  display: none;
  width: 100%; padding: .9rem 0;
  background: none; border: 0; cursor: pointer;
  color: #3f3f3f;
}
.navbar__chevron { transition: transform .25s ease; }
.navbar.is-open .navbar__chevron { transform: rotate(180deg); }

/* =========================================================================
   Inhalt / Raster
   ========================================================================= */
.page { max-width: var(--maxw); margin: 0 auto; padding: 1.2rem 1.2rem 3rem; }
.section { margin: 2.6rem 0; }

.page-head { text-align: center; padding: 1.6rem 0 .4rem; }
.kh-peak { display: block; margin: 0 auto .4rem; }

/* Farbige Titelkästen (wie im Original) */
.box-title {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 0 0 1.6rem;
}
.box-title--gruen { background: var(--gruen-box); }
.box-title--rot   { background: var(--rot-nav); }
.box-title--verlauf { background: linear-gradient(180deg, #8ed88e 0%, #cfefcf 100%); }
.box-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.box-title h2.serif { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

/* Zweispaltige Startseite: Termine links, Neuigkeiten rechts */
.home-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 2.2rem;
  align-items: start;
}

/* =========================================================================
   Veranstaltungskarten (weiß, Bild links, Datum rechts, dunkler Button)
   ========================================================================= */
.ev-list { display: grid; gap: 1.6rem; }

.ev-card {
  background: #fff;
  border: 1px solid var(--linie);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0 1.4rem;
  padding: 0 1.2rem 0 0;
}
.ev-card__media { display: block; background: #f4f4f4; }
.ev-card__media img, .ev-card__media svg {
  width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block;
}
.ev-card__body { padding: 1.1rem 0 1.2rem; display: flex; flex-direction: column; }
.ev-card__top { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.ev-card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .45em; }
.ev-card__title a { color: var(--tinte); text-decoration: none; }
.ev-card__title a:hover { color: var(--gruen-dunkel); }
.ev-card__date {
  flex: none; max-width: 130px;
  font-size: .82rem; font-weight: 700; color: var(--grau); text-align: left;
}
.ev-card__teaser { font-size: .88rem; line-height: 2; margin: 0 0 1rem; }
.ev-card__foot { margin-top: auto; text-align: right; }

/* Dunkler „Details"-Button wie im Original */
.btn-dark {
  display: inline-block;
  background: #202020; color: #fff;
  font-weight: 700; font-size: .9rem; line-height: 1.5;
  padding: .75rem 1.15rem;
  border: 0; border-radius: 3px;
  text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn-dark:hover { background: #3a3a3a; color: #fff; }

/* „Load More"-Knopf */
.load-more-wrap { text-align: center; margin: 1.8rem 0 .4rem; }
.btn-outline {
  display: inline-block;
  background: #fff; color: var(--grau);
  font-size: .95rem;
  padding: .6rem 1.3rem;
  border: 1px solid #bdbdbd; border-radius: 4px;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--grau); color: var(--tinte); }

.is-hidden { display: none !important; }

/* =========================================================================
   Neuigkeiten-Karten (grüner Rahmen, sanfter Verlauf, zentriert)
   ========================================================================= */
.news-col { display: grid; gap: 1.5rem; }

.news-card {
  border: 1px solid var(--gruen-rahmen);
  background: linear-gradient(180deg, #fff 0%, var(--gruen-verlauf) 100%);
  text-align: center;
  padding: 1.9rem 1.6rem 1.6rem;
}
.news-card h3 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0 0 .7em;
}
.news-card h3 a { color: var(--tinte); text-decoration: none; }
.news-card h3 a:hover { color: var(--gruen-dunkel); }
.news-card p { margin: 0 0 .5em; }
.news-card__date { font-size: .82rem; color: var(--grau); }

/* =========================================================================
   „Mach mit!"-Kasten (roter Rahmen, rötlicher Verlauf)
   ========================================================================= */
.cta-mach {
  border: 2px solid var(--rot-rahmen);
  background: linear-gradient(180deg, #fff 0%, var(--rot-hell) 100%);
  text-align: center;
  padding: 2.4rem 1.6rem 2rem;
  margin: 3rem 0 1rem;
}
.cta-mach h2 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin: 0 0 1.2em;
}
.cta-mach p {
  max-width: 60rem; margin: 0 auto .6em;
  font-weight: 700; color: #4a4a4a;
}

/* =========================================================================
   „Wer wir sind": Feature-Karten und Partner-Kacheln
   ========================================================================= */
.lead { font-size: 1.06rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.feature {
  border: 2px solid var(--gruen-rahmen);
  background: #fff;
  padding: 1.3rem 1.5rem;
  font-size: .95rem;
}
.feature h3 { font-size: .98rem; font-weight: 700; margin: .4em 0 .1em; color: var(--tinte); }
.feature h3:first-child { margin-top: 0; }
.feature p { margin: 0 0 .4em; }

.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.partner {
  display: flex; align-items: center; justify-content: center;
  min-height: 116px;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border: 3px solid #6ede6e;
  border-radius: 34px;
  box-shadow: 0 0 12px rgba(88, 214, 88, .55);
  text-align: center; text-decoration: none;
  font-weight: 700; font-size: 1.08rem; color: var(--tinte);
}
.partner:hover {
  color: var(--gruen-dunkel);
  box-shadow: 0 0 18px rgba(60, 200, 60, .8);
}

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 620px; }
.board li {
  display: flex; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--linie); padding: .55rem .2rem;
}
.board .rolle { font-weight: 700; color: var(--tinte); }
.board .name  { text-align: right; }

/* =========================================================================
   Detailseiten (Veranstaltung / Beitrag)
   ========================================================================= */
.backlink { display: inline-block; margin: 0 0 1.4rem; font-size: .92rem; }

.event-detail {
  display: grid; grid-template-columns: 340px 1fr; gap: 2.2rem; align-items: start;
}
.event-detail__media {
  border: 1px solid var(--linie); box-shadow: var(--shadow-card); background: #fff;
}
.event-detail__media img, .event-detail__media svg { display: block; width: 100%; }
.event-detail h2 { font-family: var(--f-body); font-weight: 700; font-size: 1.6rem; }

.event-meta { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.event-meta li { display: flex; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.event-meta b { flex: none; width: 74px; color: var(--tinte); }

.stack > * + * { margin-top: .9em; }
.stack iframe { max-width: 100%; border: 1px solid var(--linie); }

.post { max-width: 760px; margin: 0 auto; }
.post__date { font-size: .85rem; color: var(--grau); margin-bottom: .3em; }
.post h2 { font-family: var(--f-body); font-weight: 700; }

/* =========================================================================
   Kontakt
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: start; }

.form .field { margin-bottom: 1.05rem; }
.form label { display: block; font-weight: 700; font-size: .92rem; color: var(--tinte); margin-bottom: .3rem; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--tinte);
  padding: .65rem .8rem;
  border: 1px solid #bdbdbd; border-radius: 3px; background: #fff;
}
.form input:focus, .form textarea:focus { border-color: var(--gruen-dunkel); outline: 2px solid rgba(46,184,46,.35); }
.hp { position: absolute; left: -9999px; }

.formmsg { padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; border: 1px solid; }
.formmsg--ok  { background: #eefbee; border-color: var(--gruen-rahmen); color: var(--gruen-dunkel); }
.formmsg--err { background: #fdeeee; border-color: var(--rot-rahmen); color: #a30d0d; }

.contact-info h2, .contact-info h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; }
.price-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--linie); padding: .5rem .1rem; }
.price-list b { color: var(--tinte); }

.downloads { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn, .btn--primary, .btn--ghost {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: .7rem 1.3rem; border-radius: 3px; border: 1px solid transparent;
}
.btn--primary { background: var(--gruen-box); color: #103d10; border-color: var(--gruen-rahmen); }
.btn--primary:hover { background: var(--gruen-rahmen); color: #fff; }
.btn--ghost { background: #fff; color: var(--grau); border-color: #bdbdbd; }
.btn--ghost:hover { border-color: var(--grau); color: var(--tinte); }

.muted { color: var(--grau); font-size: .9rem; }

/* =========================================================================
   Fußzeile (grün, wie im Original)
   ========================================================================= */
.site-footer {
  margin-top: 3.5rem;
  background: var(--gruen-footer);
  color: #2c2c2c;
}
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3.2rem 1.4rem 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 2rem;
  font-size: .98rem;
}
.site-footer a { color: #1d1d1b; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

.footer-col--social { display: flex; gap: 1.4rem; align-items: flex-start; }
.footer-col--social a { color: #1d1d1b; display: inline-flex; }
.footer-col--social a:hover { color: #fff; }

.site-footer__base {
  border-top: 1px solid rgba(0,0,0,.12);
  text-align: center;
  padding: .9rem 1rem;
  font-size: .85rem;
}
.site-footer__base p { margin: 0; }

/* =========================================================================
   Responsiv
   ========================================================================= */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .event-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 700px) {
  .roofband { height: 170px; }
  .roofband__logo { width: 128px; height: 128px; top: 18px; }

  /* Navigation: Leiste mit Pfeil, Menü klappt auf */
  .navbar__toggle { display: block; }
  .navbar__list { display: none; flex-direction: column; gap: 0; padding-bottom: .6rem; }
  .navbar.is-open .navbar__list { display: flex; }
  .navbar__list a { padding: .8rem 1rem; text-align: center; }

  /* Veranstaltungskarte: Bild oben, Text darunter */
  .ev-card { grid-template-columns: 1fr; padding: 0 1.2rem 1.2rem; }
  .ev-card__media { margin: 0 -1.2rem; }
  .ev-card__media img, .ev-card__media svg { min-height: 0; max-height: 420px; }
  .ev-card__top { flex-direction: column; gap: .2rem; }

  .partners { grid-template-columns: 1fr; }
}

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

.video-embed { position: relative; aspect-ratio: 16 / 9; max-width: 760px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* Bild-Vergrößerung (Lightbox) */
.zoombar { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1rem;
  background: rgba(20, 20, 20, .88);
  cursor: zoom-out;
  animation: lightbox-ein .18s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .5);
  background: #fff;
}
.lightbox__close {
  position: absolute; top: .6rem; right: .8rem;
  width: 2.8rem; height: 2.8rem;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--tinte);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: var(--rot-nav); }
html.lightbox-offen { overflow: hidden; }
@keyframes lightbox-ein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }