/* ============================================================
   Nikko Dojo e.V. – Haupt-Stylesheet
   Optik angelehnt an das Original (dunkler Header, grüner Akzent)
   ============================================================ */

:root {
  --green: #8dc63f;
  --green-dark: #79ad33;
  --gold: #c9a961;
  --dark: #222222;
  --darker: #1a1a1a;
  --header-bg: #2b2b2b;
  --topbar-bg: #000000;
  --text: #666666;
  --heading: #333333;
  --light-gray: #f4f4f4;
  --border: #e0e0e0;
  --dropdown-bg: #ffffff;
  --body-bg: #ffffff;
  --section-light: #ffffff;
  --section-gray: #f4f4f4;
  --card-bg: #ffffff;
  --box-bg: #fafafa;
  --footer-bg: #222222;
  --footer-bottom-bg: #1a1a1a;
  --overlay: rgba(0, 0, 0, 0.62);
  --nav-text: #c9c9c9;
  --nav-toggle: #ffffff;
  --nav-hover: #ffffff;
  --dropdown-text: #666666;
  --dropdown-hover: #5fa83d;
  --dropdown-hover-bg: #f7f7f7;
  --topbar-text: #bbbbbb;
  --hero-title: #ffffff;
  --hero-notice: #8dc63f;
  --footer-text: #aaaaaa;
  --footer-heading: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--body-bg);
}

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

a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 600; line-height: 1.3; }

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

/* ---------- Top-Bar ---------- */
.top-bar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 13px;
  padding: 7px 0;
  position: relative;
  z-index: 1001;
}
.top-bar-inner { display: flex; align-items: center; }
.top-phone { display: inline-flex; align-items: center; gap: 6px; }
.top-phone svg { opacity: 0.7; }

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: padding 0.25s ease, background 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding 0.25s ease;
}
.site-header.shrunk .header-inner { padding-top: 6px; padding-bottom: 6px; }
.logo-img { height: 56px; width: auto; transition: height 0.25s ease; }
.site-header.shrunk .logo-img { height: 44px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--nav-text);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  transition: color 0.2s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--nav-hover); }
.caret { opacity: 0.6; }

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dropdown-bg);
  min-width: 250px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border-top: 3px solid var(--green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
  flex-direction: column;
  display: flex;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { width: 100%; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--dropdown-text);
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover { background: var(--dropdown-hover-bg); color: var(--dropdown-hover); }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 28px;
  position: relative;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--nav-toggle);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (Startseite) ---------- */
.hero {
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-inner { width: 100%; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-text { flex: 1 1 540px; max-width: 640px; padding: 90px 0; }
.hero-events {
  flex: 0 0 auto;
  padding: 90px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-events-right { margin-left: auto; align-items: flex-end; text-align: right; }
.hero-events-right .hero-event-item { align-items: flex-end; }
.hero-events-left { margin-right: auto; align-items: flex-start; text-align: left; }
.hero-events-left .hero-event-item { align-items: flex-start; }
.hero-events-center { margin: 0 auto; align-items: center; text-align: center; }
.hero-events-center .hero-event-item { align-items: center; }
.hero-events-heading {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.hero-events-date {
  color: rgba(255,255,255,.85);
  font-size: 15px;
}
.hero-events-empty {
  color: rgba(255,255,255,.85);
  font-style: italic;
}
.hero-events-list {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  transition: transform .2s;
}
.hero-events-list:hover { transform: translateY(-2px); }
.hero-event-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 340px;
}
.hero-event-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hero-event-time {
  color: var(--hero-notice);
  font-size: 14px;
  font-weight: 600;
}
.hero-event-desc {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.hero-event-desc p { margin: 0 0 4px; }
.hero-event-extra {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.25);
  width: 100%;
}
.hero-events-right .hero-event-extra { align-items: flex-end; text-align: right; }
.hero-events-left  .hero-event-extra { align-items: flex-start; text-align: left; }
.hero-events-center .hero-event-extra { align-items: center; text-align: center; }
.hero-event-img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  margin-top: 4px;
}
.hero-event-item { align-items: flex-end; }
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 0; }
  .hero-text { padding-bottom: 0; width: 100%; }
  .hero-events { padding: 20px 0 40px; width: 100%; }
}
.hero-events .events-trigger {
  margin: 8px 0 0;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.hero h1 {
  color: var(--hero-title);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-notice {
  color: var(--hero-notice);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Seitentitel (Unterseiten) ---------- */
.page-title-bar {
  background: linear-gradient(var(--overlay), var(--overlay)), url('../../uploads/hero.jpg') center / contain no-repeat #2b2b2b;
  padding: 70px 0 60px;
}
.page-title-bar h1 { color: var(--hero-title); font-size: 34px; font-weight: 700; }

/* ---------- Fotos auf Unterseiten immer vollständig zeigen ---------- */
.is-subpage .news-card img,
.is-subpage .news-teaser-img,
.is-subpage .news-single-img,
.is-subpage .block-image img,
.is-subpage .person-img img,
.is-subpage .event-img,
.is-subpage .hero-event-img,
.is-subpage .block-video img,
.is-subpage .block-frame img,
.is-subpage .footer-extra-img,
.is-subpage .member-slide img,
.is-subpage .footer-logo {
  object-fit: contain !important;
  object-position: center;
  background: #f4f4f4;
  height: auto !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  max-width: 100%;
}
.is-subpage .news-card img { max-height: 300px; }
.is-subpage .news-teaser-img { max-height: 360px; }
.is-subpage .event-img { max-height: 240px; width: auto !important; }
.is-subpage .hero-event-img { max-height: 220px; width: auto !important; }
.is-subpage .person-img { height: auto !important; aspect-ratio: auto !important; }
.is-subpage .person-img img { max-height: 360px; }
.is-subpage .footer-logo { max-height: 110px; max-width: 220px; background: transparent; }
.is-subpage .footer-extra-img { max-height: 200px; background: transparent; }
.is-subpage .member-slide img { background: #ffffff; }

/* ---------- Sektionen ---------- */
.section { padding: 60px 0; }
.section-light { background: var(--section-light); }
.section-gray { background: var(--section-gray); }
.section-events { background: transparent; padding: 24px 0; }
.events-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.events-bar .events-heading { font-size: 22px; margin: 0; }
.events-bar .events-date { color: #999; font-size: 14px; }
.events-bar .events-empty { color: #999; font-size: 14px; font-style: italic; }
.events-align-center .events-bar { justify-content: center; }
.events-align-right  .events-bar { justify-content: flex-end; }
.events-trigger { margin-left: auto; padding: 9px 20px; font-size: 14px; border: 0; cursor: pointer; }
.events-align-center .events-trigger,
.events-align-right  .events-trigger { margin-left: 0; }

/* ---------- Termine-Popup ---------- */
.events-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.events-popup.open { display: flex; }
.events-popup-inner {
  background: #fff;
  border-radius: 6px;
  padding: 28px 30px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.events-popup-title { font-size: 24px; margin: 0 0 4px; padding-right: 36px; }
.events-popup-close {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: 0;
  font-size: 30px; line-height: 1; cursor: pointer;
  color: #666;
}
.events-popup-close:hover { color: #000; }

.section-heading { font-size: 28px; margin-bottom: 8px; }
.section-heading.green, .block-heading.green { color: var(--green); }
.today-date { font-size: 15px; color: #999999; margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-green { background: var(--green); color: #ffffff; }
.btn-green:hover { background: var(--green-dark); color: #ffffff; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #ffffff; }
.btn-sm { padding: 7px 18px; font-size: 13px; }

/* ---------- Event-Karten (Startseite) ---------- */
.event-list { display: flex; flex-wrap: wrap; gap: 24px; }
.event-card {
  flex: 0 1 360px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.events-align-center .event-list { justify-content: center; }
.events-align-right .event-list { justify-content: flex-end; }
.events-align-center .all-events-link { text-align: center; }
.events-align-right .all-events-link { text-align: right; }
.event-extra {
  border-top: 1px dashed var(--border);
  margin-top: 14px;
  padding-top: 14px;
}
.event-extra h3 { font-size: 18px; margin-bottom: 6px; }
.event-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); transform: translateY(-3px); }
.event-card h3 { font-size: 18px; margin-bottom: 6px; }
.event-meta { color: #999999; font-size: 14px; margin-bottom: 10px; }
.event-desc { font-size: 14px; }
.event-img { max-width: 120px; margin-top: 14px; }
.event-empty { text-align: center; color: #999999; }
.all-events-link { margin-top: 32px; }

/* ---------- News ---------- */
.news-teaser-img { width: 100%; border-radius: 4px; margin-bottom: 22px; }
.news-teaser-title { font-size: 26px; margin-bottom: 10px; }
.news-teaser-title a { color: var(--heading); }
.news-teaser-title a:hover { color: var(--green); }
.news-teaser-excerpt { margin-bottom: 12px; }
.read-more { font-weight: 600; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.news-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13); transform: translateY(-4px); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 22px 24px 26px; }
.news-card-has-bg { background-color: transparent !important; }
.news-card-has-bg .news-card-body {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(2px);
}
.news-card-body h2 { font-size: 19px; margin-bottom: 6px; }
.news-card-body h2 a { color: var(--heading); }
.news-card-body h2 a:hover { color: var(--green); }
.news-meta { font-size: 13px; color: #999999; margin-bottom: 10px; }
.news-single-img { width: 100%; border-radius: 4px; margin-bottom: 24px; }
.news-single .btn { margin-top: 28px; }

/* ---------- Kalender ---------- */
.calendar-day { margin-bottom: 34px; }
.calendar-day-name {
  font-size: 20px;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.calendar-event {
  display: flex;
  gap: 20px;
  padding: 14px 16px;
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}
.calendar-time { font-weight: 700; color: var(--heading); min-width: 120px; }
.calendar-event p { font-size: 14px; }
.calendar-extra { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 8px; }
.calendar-extra-time { color: var(--green); font-weight: 600; margin-left: 10px; font-size: 14px; }

/* ---------- Inhaltsblöcke ---------- */
.block { margin-bottom: 38px; }
.block-heading { font-size: 26px; margin-bottom: 14px; }
.rich-text p { margin-bottom: 14px; }
.rich-text ul, .rich-text ol { margin: 0 0 14px 22px; }
.rich-text h3 { margin: 22px 0 10px; font-size: 20px; }
.rich-text h4 { margin: 18px 0 8px; font-size: 17px; }
.rich-text blockquote {
  border-left: 4px solid var(--green);
  padding: 10px 18px;
  background: #f8f8f8;
  font-style: italic;
  margin-bottom: 14px;
}

/* Trainingszeiten */
.block-times { background: var(--box-bg); border: 1px solid var(--border); border-radius: 4px; padding: 30px 34px; }
.times-list { list-style: none; margin: 10px 0; }
.times-list li {
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.times-list li:last-child { border-bottom: none; }
.times-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.85;
}
.times-note { font-size: 14px; color: #888888; margin-top: 8px; }

/* Personen-Raster */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* 2-/3-Spalten-Layout für ausgerichtete Blöcke (links/mitte/rechts) */
.blocks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
}
.blocks-row-3col { grid-template-columns: 1fr 1fr; }
.blocks-row-3col:has(.blocks-col-center) { grid-template-columns: 1fr minmax(200px, 1.2fr) 1fr; }
.blocks-row .blocks-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.blocks-row .blocks-col > .block { margin-bottom: 0; }
.blocks-col-center { text-align: center; }
@media (max-width: 720px) {
  .blocks-row, .blocks-row-3col { grid-template-columns: 1fr; gap: 20px; }
  .blocks-row-3col:has(.blocks-col-center) { grid-template-columns: 1fr; }
}
.person-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.person-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13); transform: translateY(-4px); }
.person-img { aspect-ratio: 4/5; overflow: hidden; background: #eeeeee; }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.person-card:hover .person-img img { transform: scale(1.04); }
.person-name { font-size: 19px; margin: 18px 14px 2px; }
.person-role { color: var(--green); font-weight: 600; font-size: 14px; margin: 0 14px 10px; }
.person-lines { list-style: none; margin: 0 14px 16px; font-size: 13.5px; }
.person-lines li { padding: 3px 0; border-bottom: 1px dotted #eeeeee; }
.person-lines li:last-child { border-bottom: none; }
.person-lines-rich { padding: 0 14px; text-align: left; }
.person-lines-rich p { margin: 0 0 4px; padding: 3px 0; }
.person-lines-rich p:last-child { margin-bottom: 0; }
.person-lines-rich ul, .person-lines-rich ol { margin: 4px 0; padding-left: 20px; }
.person-lines-rich li { padding: 2px 0; }
.person-text { font-size: 14px; padding: 0 18px 20px; text-align: left; }

/* Bilder */
.block-image img { border-radius: 4px; margin: 0 auto; }
.block-image figcaption { text-align: center; font-size: 13px; color: #999999; margin-top: 8px; }

/* FAQ */
.block-faq { border: 1px solid var(--border); border-radius: 4px; padding: 22px 26px; margin-bottom: 18px; background: var(--box-bg); }
.faq-q { font-size: 17px; color: var(--green); margin-bottom: 8px; }
.faq-a { font-size: 14.5px; }

/* Akkordeon (Divi-Stil) */
.block-accordion { margin-bottom: 24px; }
.block-accordion .block-heading { margin-bottom: 14px; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
  background: var(--box-bg);
  overflow: hidden;
}
.acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
  transition: background 0.2s ease;
}
.acc-toggle:hover { background: rgba(141, 198, 63, 0.07); }
.acc-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--green);
  transition: transform 0.25s ease;
}
.acc-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc-item.open .acc-panel { max-height: 4000px; }
.acc-panel-inner { padding: 4px 22px 20px; font-size: 14.5px; }
.acc-panel-inner h1, .acc-panel-inner h2, .acc-panel-inner h3, .acc-panel-inner h4, .acc-panel-inner h5 { margin-top: 12px; margin-bottom: 6px; }
.acc-panel-inner ul { margin: 8px 0; padding-left: 22px; }
.acc-panel-inner li { margin-bottom: 4px; }

/* Akkordeon Admin-Editor */
.acc-items-editor { margin: 8px 0 12px; }
.acc-item-edit {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.02);
}

/* Slideshow */
.block-slideshow {
  --ss-h: 400px;
  --ss-bg: #8dc63f;
  --ss-cap-bg: #ffffff;
  --ss-title: #5fa83d;
  --ss-text: #222222;
  --ss-accent: #5fa83d;
  position: relative;
  margin-bottom: 30px;
}
.block-slideshow .block-heading { margin-bottom: 14px; }
.ss-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}
.block-slideshow.has-fixed-h .ss-viewport { height: var(--ss-h); }
.block-slideshow.aspect-16-9 .ss-viewport { aspect-ratio: 16 / 9; }
.block-slideshow.aspect-4-3  .ss-viewport { aspect-ratio: 4 / 3; }
.ss-track { position: relative; width: 100%; height: 100%; }
.ss-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ss-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.ss-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.block-slideshow:not(.has-fixed-h):not(.aspect-16-9):not(.aspect-4-3) .ss-img { height: auto; max-height: 600px; }
.block-slideshow:not(.has-fixed-h):not(.aspect-16-9):not(.aspect-4-3) .ss-viewport { aspect-ratio: auto; min-height: 250px; }

/* Übergänge */
.block-slideshow.trans-fade .ss-slide { transition: opacity .6s ease; }
.block-slideshow.trans-slide .ss-track { display: flex; flex-direction: row; height: 100%; transition: transform .55s ease; }
.block-slideshow.trans-slide .ss-slide { position: relative; flex: 0 0 100%; opacity: 1; visibility: visible; pointer-events: auto; }
.block-slideshow.trans-none .ss-slide { transition: none; }

/* Caption */
.ss-caption { padding: 12px 18px; }
.block-slideshow.caption-over .ss-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  z-index: 2;
}
.block-slideshow.caption-below .ss-caption {
  background: var(--ss-cap-bg);
  color: var(--ss-text);
  border-radius: 0 0 6px 6px;
  border: 1px solid var(--border);
  border-top: 0;
}
.block-slideshow.caption-below .ss-slide { display: block; }
.block-slideshow.caption-below .ss-img { width: 100%; }
.block-slideshow.caption-below .ss-viewport { aspect-ratio: auto; height: auto; }
.block-slideshow.caption-below.has-fixed-h .ss-viewport { height: auto; }
.block-slideshow.caption-below.has-fixed-h .ss-img { height: var(--ss-h); object-fit: cover; }
.ss-caption-title { font-size: 18px; margin: 0 0 4px; color: var(--ss-title); }
.block-slideshow.caption-over .ss-caption-title { color: #fff; }
.ss-caption-text { font-size: 14.5px; color: var(--ss-text); }

/* Nur-Text-Folie (ohne Bild) */
.ss-slide.ss-mode-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ss-bg);
  color: var(--ss-text);
  padding: 28px 36px;
  overflow-y: auto;
  text-align: center;
}
.block-slideshow.has-fixed-h .ss-slide.ss-mode-text { height: var(--ss-h); }
.ss-text-only {
  max-width: 800px;
  width: 100%;
}
.ss-text-only-title {
  font-size: 24px;
  margin: 0 0 14px;
  color: var(--ss-title);
  font-weight: 700;
}
.ss-text-only-body {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  color: var(--ss-text);
}
.ss-text-only-body p { margin-bottom: 10px; }
.ss-text-only-body ul, .ss-text-only-body ol { padding-left: 22px; margin: 8px 0; }
/* Bei „caption_pos: below" Layout: Slide bekommt keine feste Höhe → Text-Folie passt sich an */
.block-slideshow.caption-below .ss-slide.ss-mode-text { padding: 36px 30px; }

/* Pfeile */
.ss-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: 0; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.ss-arrow:hover { background: var(--ss-accent); }
.ss-arrow-prev { left: 14px; }
.ss-arrow-next { right: 14px; }

/* Punkte */
.ss-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 12px 0 4px;
}
.ss-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ss-accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.ss-dot.is-active, .ss-dot:hover { background: var(--ss-accent); }
.acc-item-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* Slideshow Admin-Editor */
.slideshow-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 12px;
  background: rgba(141, 198, 63, 0.06);
  border-radius: 4px;
  margin-bottom: 14px;
}
.slideshow-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 4px;
  margin-bottom: 14px;
}
.slideshow-colors .admin-label { display: flex; flex-direction: column; gap: 4px; }
.admin-input-color {
  width: 100% !important;
  height: 38px;
  padding: 2px;
  cursor: pointer;
}
.slideshow-toggles {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 4px 0 0;
}
.slideshow-slides { margin: 8px 0 12px; }
.slideshow-slide-edit {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.02);
}
.slideshow-slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.slide-mode-picker {
  display: flex;
  gap: 14px;
  font-size: 12px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.admin-label-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  cursor: pointer;
  font-size: 12px;
}
.admin-label-inline input { margin: 0; width: auto; }
.slide-mode-text .slide-img-field {
  opacity: 0.4;
  pointer-events: none;
  position: relative;
}
.slide-mode-text .slide-img-field::after {
  content: 'Bild wird im Modus „Nur Text" nicht angezeigt';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
}
.admin-section-title-sm { font-size: 14px; font-weight: 600; margin: 14px 0 8px; color: #444; }
.admin-label-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.admin-label-checkbox input { width: auto; margin: 0; }

/* Dokumente */
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--box-bg);
  transition: background 0.2s ease;
}
.doc-row:hover { background: #f0f0f0; }
.doc-title { font-weight: 600; color: var(--heading); }

/* Info-Karten (Angebot) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.info-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13); transform: translateY(-4px); }
.info-card h3 { font-size: 19px; margin-bottom: 2px; }
.info-card-sub { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.info-card-sub.green { color: var(--green); }
.info-card p { font-size: 14.5px; }

/* ---------- Kontaktformular ---------- */
.contact-form { margin-top: 26px; }
.contact-form label { display: block; margin-bottom: 18px; font-weight: 600; color: var(--heading); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  margin-top: 6px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #ffffff;
}
.checkbox-label { display: flex !important; gap: 10px; font-weight: 400 !important; font-size: 13.5px; color: var(--text) !important; }
.checkbox-label input { margin-top: 4px; }
.captcha-label { font-size: 18px; }
.captcha-input { max-width: 110px; display: inline-block; margin-left: 8px; }
.form-note { font-size: 13px; color: #999999; margin-top: 22px; }
.alert { padding: 14px 18px; border-radius: 4px; margin: 18px 0; font-weight: 600; }
.alert-success { background: #eaf6da; color: #4d7a22; border: 1px solid var(--green); }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #e5a5a0; }

/* ---------- Karte ---------- */
.block-map iframe { border-radius: 4px; }

/* ---------- Video- & Frame-Blöcke ---------- */
.block-video.align-center, .block-iframe.align-center { text-align: center; }
.block-video.align-right, .block-iframe.align-right { text-align: right; }
.block-video.align-left, .block-iframe.align-left { text-align: left; }
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0 auto;
  display: inline-block;
}
.block-video.align-left .video-embed, .block-video.align-left .video-file { margin-left: 0; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}
.video-file { width: 100%; border-radius: 4px; display: inline-block; }
.video-caption { font-size: 13px; color: #999999; margin-top: 8px; }
.block-iframe iframe { max-width: 100%; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
.iframe-placeholder { padding: 30px; background: var(--box-bg); border: 1px dashed #cccccc; border-radius: 4px; text-align: center; color: #999999; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 64px; font-size: 14px; border-top: 2px solid var(--gold, #c9a961); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 48px;
  padding-bottom: 50px;
  align-items: start;
}
.footer-logo { height: 110px; width: auto; margin-bottom: 20px; }
.footer-address { line-height: 1.9; }
.site-footer h4 { color: var(--footer-heading); font-size: 15px; letter-spacing: 1px; margin-bottom: 20px; }
.member-slideshow {
  position: relative;
  min-height: 200px;
  width: 100%;
  max-width: 200px;
}
.member-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.member-slide.active { opacity: 1; visibility: visible; }
.member-name { display: block; color: #cccccc; font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.member-slide img {
  display: block;
  background: #ffffff;
  border: 1px solid #d4a23d;
  border-radius: 3px;
  padding: 6px;
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity .2s ease;
}
.member-slide img:hover { opacity: .85; }
.footer-col-image { justify-self: end; }
.footer-extra-img { max-width: 200px; border-radius: 3px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: var(--green); }
.footer-bottom { background: var(--footer-bottom-bg); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.footer-bottom a { color: #888888; }
.footer-bottom a:hover { color: var(--green); }

/* ---------- Rich-Text (Quill-Output) ---------- */
.rich-text p { margin: 0 0 12px; }
.rich-text ul, .rich-text ol { margin: 0 0 12px 24px; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-size-small { font-size: 0.75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge { font-size: 2.5em; }
.ql-size-10px { font-size: 10px; }
.ql-size-12px { font-size: 12px; }
.ql-size-14px { font-size: 14px; }
.ql-size-16px { font-size: 16px; }
.ql-size-18px { font-size: 18px; }
.ql-size-20px { font-size: 20px; }
.ql-size-24px { font-size: 24px; }
.ql-size-32px { font-size: 32px; }
.ql-size-48px { font-size: 48px; }
.ql-size-64px { font-size: 64px; }
.ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.ql-font-monospace { font-family: "Courier New", monospace; }
.ql-font-arial    { font-family: Arial, sans-serif; }
.ql-font-georgia  { font-family: Georgia, serif; }
.ql-font-times    { font-family: "Times New Roman", serif; }
.ql-font-courier  { font-family: "Courier New", monospace; }
.ql-font-verdana  { font-family: Verdana, sans-serif; }
.ql-font-opensans { font-family: "Open Sans", sans-serif; }
.ql-font-roboto   { font-family: Roboto, sans-serif; }
.ql-indent-1 { padding-left: 3em; }
.ql-indent-2 { padding-left: 6em; }
.ql-indent-3 { padding-left: 9em; }
.ql-indent-4 { padding-left: 12em; }
.ql-indent-5 { padding-left: 15em; }
.ql-indent-6 { padding-left: 18em; }
.ql-indent-7 { padding-left: 21em; }
.ql-indent-8 { padding-left: 24em; }
.rich-text blockquote { border-left: 4px solid #dd9933; padding: 8px 14px; margin: 12px 0; background: rgba(0,0,0,0.03); }
.rich-text pre, .rich-text code { font-family: "Courier New", monospace; background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 3px; }
.rich-text img { max-width: 100%; height: auto; }
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    background: transparent;
    border: 0;
    color: var(--nav-text);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 26px;
    line-height: 1;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2b2b2b;
    border-top: 3px solid var(--green);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 200;
  }
  .main-nav.open { max-height: 85vh; overflow-y: auto; }
  .main-nav ul {
    list-style: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    padding: 14px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li.has-dropdown.open > a,
  .main-nav > ul > li > a.active {
    color: var(--nav-hover);
    background: rgba(255,255,255,0.04);
  }
  .has-dropdown > a::after {
    content: '';
    display: none;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #1f1f1f;
    display: block;
    padding: 0;
    min-width: 0;
    border-radius: 0;
  }
  .dropdown li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dropdown li:last-child { border-bottom: 0; }
  .dropdown a {
    display: block;
    color: #cccccc;
    padding: 11px 25px 11px 42px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
  }
  .dropdown a:hover {
    color: var(--nav-hover);
    background: rgba(255,255,255,0.04);
  }

  .hero { background-attachment: scroll; min-height: 420px; }
  .hero h1 { font-size: 30px; }
  .hero-notice { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-col-image { justify-self: start; }
  .member-slideshow { max-width: 100%; }
}

@media (max-width: 600px) {
  .section { padding: 42px 0; }
  .page-title-bar { padding: 46px 0 40px; }
  .page-title-bar h1 { font-size: 26px; }
  .hero-text { padding: 60px 0; }
  .calendar-event { flex-direction: column; gap: 4px; }
  .doc-row { flex-direction: column; align-items: flex-start; }
}
