/* Version 1 Klassisch – 1:1 an aktuelle Joomla-Startseite angelehnt */
@font-face {
  font-family: "VAGRounded BT";
  src:
    url("/assets/kilian/fonts/VAGRoundedBT-Regular.woff2") format("woff2"),
    url("/assets/kilian/fonts/VAGRoundedBT-Regular.woff") format("woff"),
    url("/assets/kilian/fonts/VAGRoundedBT-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #00a478;
  --brand-dark: #008f66;
  --nav-bg: #1a1a1a;
  --ink: #333333;
  --muted: #666666;
  --line: #dddddd;
  --page: #eceef1;
  --surface: #ffffff;
  --max: 1180px;
  --font: Arial, Helvetica, sans-serif;
  --display: "VAGRounded BT", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Version switch (Mockup-only) */
.mock-banner {
  background: #1e3a32;
  color: #c8ebe0;
  font-size: .82rem;
  padding: .5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem 1rem;
}
.mock-banner a { color: #fff; }
.version-switch { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.version-switch a {
  display: inline-block;
  padding: .28rem .6rem;
  border-radius: 3px;
  background: rgba(255,255,255,.08);
  color: #c8ebe0;
  text-decoration: none;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.version-switch a:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.version-switch a[aria-current="page"] { background: var(--brand); color: #fff; }

/* Header: weiß + Logo + Schriftzug; Logo hängt in die Navbar */
.site-top {
  background: #fff;
  border-bottom: 0;
  position: relative;
  z-index: 60;
  overflow: visible;
}
.site-top__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0 0;
  overflow: visible;
}
.brand {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  text-decoration: none;
  position: relative;
  z-index: 61;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  height: 108px;
  width: auto;
  margin-bottom: -28px;
  position: relative;
  z-index: 61;
}
.brand__wordmark {
  height: 52px;
  width: auto;
  max-width: min(420px, 55vw);
  object-fit: contain;
  object-position: left center;
  margin-bottom: .65rem;
}

/* Nav: dunkel, Brand-Grün, Dropdowns inkl. Flyout (3. Ebene) */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 164, 120, .18);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: .25rem 0 .25rem 6.4rem;
  flex-wrap: wrap;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  cursor: pointer;
  border-radius: 4px;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .1rem;
}
.nav-item { position: relative; }
.nav-list > .nav-item > a,
.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .65rem .9rem;
  color: var(--brand);
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.nav-list > .nav-item > a:hover,
.nav-list > li > a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
  background: rgba(0, 164, 120, 0.28);
}
.nav-list .caret {
  font-size: .7em;
  margin-left: .1rem;
  opacity: .7;
  line-height: 1;
}
.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 14.5rem;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: #161a18;
  border: 1px solid rgba(0, 164, 120, .28);
  border-radius: 8px;
  z-index: 60;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem 1.05rem;
  color: #e6e6e6 !important;
  font-family: var(--font);
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-radius: 0;
  background: transparent;
}
.nav-dropdown a:hover {
  background: rgba(0, 164, 120, .16);
  color: #fff !important;
}
.nav-dropdown .nav-item--flyout { position: relative; }
.nav-dropdown--flyout {
  top: -0.4rem;
  left: calc(100% - 4px);
  min-width: 13.5rem;
}
.nav-item--flyout:hover > .nav-dropdown--flyout,
.nav-item--flyout:focus-within > .nav-dropdown--flyout,
.nav-item--flyout.is-open > .nav-dropdown--flyout {
  display: block;
}

.search {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.search input {
  width: 140px;
  padding: .4rem .65rem;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: .9rem;
}

/* Hauptinhalt */
.page {
  width: min(100% - 2rem, var(--max));
  margin: 1.15rem auto 2rem;
}

.slider-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  margin-bottom: 1.15rem;
  overflow: hidden;
}
.slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1180 / 480;
  background: #d0d0d0;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform .8s linear;
}
.slider__slide {
  min-width: 100%;
  height: 100%;
}
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.slider__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  display: inline-block;
}
.slider__dots span.is-active { background: #fff; }


/* Kategorie-Listing (Aktuelles / Medien) */
.listing-hero {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 1.35rem 1.4rem 1.2rem;
  margin-bottom: 1.15rem;
}
.listing-hero h1 {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 400;
  color: var(--brand);
  line-height: 1.15;
}
.listing-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}
.listing-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Aktuelles – wie Live: Titel → Bild → Quelle → Text */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}
.news-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  overflow: hidden;
}
.news-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.news-card__link:hover {
  color: inherit;
  text-decoration: none;
}
.news-card__body {
  padding: 1rem 1.1rem 1.35rem;
}
.news-card h2 {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1.2;
}
.news-card__more {
  color: var(--brand);
}
.news-card__link:hover h2,
.news-card__link:hover .news-card__more {
  color: var(--brand-dark);
  text-decoration: underline;
}
.news-card__body img {
  width: 100%;
  height: auto;
  margin: 0 0 .35rem;
  background: #fff;
}
.news-card__img--contain {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.news-card .caption {
  margin: 0 0 .65rem;
  font-size: .68rem;
  color: #999;
}
.news-card p {
  margin: 0 0 .75rem;
  font-size: .92rem;
  color: var(--ink);
}
.news-card p:last-child { margin-bottom: 0; }

/* Partner – 3er-Raster, farbig, groß wie Live */
.partner-strip {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.partner-strip a,
.partner-strip__link,
.partner-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: .5rem;
  background: #fff;
}
.partner-strip img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
}
.cms-partners-placeholder {
  grid-column: 1 / -1;
  border: 2px dashed #ccd3dd;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #888;
  font-size: .95rem;
}

.site-foot {
  background: var(--nav-bg);
  color: #aaa;
  padding: 1.25rem 0;
  font-size: .88rem;
}
.site-foot a { color: #ddd; }
.site-foot a:hover { color: var(--brand); }
.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  .brand__wordmark { height: 40px; margin-bottom: .45rem; }
  .brand__logo { height: 82px; margin-bottom: -22px; }
  .site-nav__inner { padding-left: 5.1rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem 0 .6rem;
  }
  .site-nav.is-open .nav-list { display: flex; }
  .nav-list > .nav-item > a,
  .nav-list > li > a {
    width: 100%;
    border-radius: 6px;
  }
  .nav-dropdown,
  .nav-dropdown--flyout {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .35);
    min-width: 0;
    padding: .15rem 0 .15rem .75rem;
    margin: 0 0 .25rem;
  }
  .nav-item.is-open > .nav-dropdown { display: block; }
  .nav-dropdown .caret { transform: rotate(90deg); display: inline-block; }
  .search { width: 100%; padding: 0 .25rem .75rem; }
  .search input { flex: 1; width: auto; }
  .partner-strip { grid-template-columns: repeat(2, 1fr); }
  .site-nav.is-open .search { display: flex; }
}


/* === V3 viel moderner === */
/* Version 3 – deutlich moderner, gleiche Inhalte/Struktur */

:root {
  --page: #e9efec;
  --nav-bg: #101614;
}

.site-top { border: 0; }
.site-top__inner { padding: .75rem 0 0; }
.brand__logo { height: 108px; margin-bottom: -28px; }
.site-nav {
  background: rgba(16,22,20,.96);
  backdrop-filter: blur(8px);
}
.nav-list > .nav-item > a,
.nav-list > li > a {
  border-radius: 6px;
  padding: .55rem .9rem;
}

.page {
  width: min(100% - 1.5rem, 1240px);
  margin-top: 1.75rem;
}
.slider-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.slider { aspect-ratio: 21 / 9; }
.news-grid { gap: 1.5rem; }
.news-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  transition: transform .18s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-card h2 { font-size: 1.35rem; }
.news-card__body { padding: 1.25rem 1.3rem 1.4rem; }
.partner-strip {
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.site-foot { margin-top: 2rem; }

/* CMS-Anpassungen */
.cms-section { margin: 0; }
.cms-block--html { margin: 0; }
.cms-html-block { margin: 0; }
.cms-preview-banner {
  background: #1e3a32; color: #c8ebe0; padding: .65rem 1.25rem; font-size: .9rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cms-preview-banner a { color: #fff; }
.cms-preview-banner--maintenance {
  background: #3a2a10;
  color: #ffd28a;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.status-page { padding: 4rem 1rem; }
.status-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 2.5rem 1.5rem;
}
.status-card--narrow {
  max-width: 40rem;
  margin: 0 auto;
}
.status-card__title {
  font-family: var(--display);
  color: var(--brand);
  margin: 0 0 .75rem;
  font-weight: 400;
}
.cms-html-block img[width="100%"],
.news-card img[width="100%"] {
  width: 100%;
  height: auto;
}
.img-credit {
  font-size: 10px;
}

/* Kontakt */
.contact {
  display: grid;
  gap: 1.25rem;
}
.contact__intro h1 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--brand);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  margin: 0 0 .4rem;
}
.contact__intro p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.contact__card,
.contact__directions {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}
.contact__card h2,
.contact__directions h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 .85rem;
  color: var(--ink);
}
.contact__card p,
.contact__card address,
.contact__directions p {
  margin: 0 0 .85rem;
}
.contact__card p:last-child,
.contact__card address:last-child,
.contact__directions p:last-child {
  margin-bottom: 0;
}
.contact__card address {
  font-style: normal;
}
.contact__card a,
.contact__directions a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.contact__hours th,
.contact__hours td {
  text-align: left;
  padding: .45rem .2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.contact__hours thead th {
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.contact__hours tbody th {
  font-weight: 600;
  width: 58%;
}
.contact__card--notice {
  border-color: #c9a36a;
  background: #fff8ee;
}
.contact__travel {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .9rem;
}
.contact__travel li {
  margin: 0;
}
.contact__travel strong {
  display: block;
  margin-bottom: .2rem;
}
.contact__travel img {
  display: inline-block;
  width: 30px;
  height: 17px;
  vertical-align: middle;
  margin: 0 .15rem;
}

/* Artikel-Detail (Aktuelles / Medien) */
.page--artikel {
  width: min(100% - 2rem, 720px);
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}
.page--artikel .cms-section {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  padding: 1.75rem 1.5rem 2.25rem;
}
.page--artikel .cms-block--text h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 400;
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 .85rem;
}
.page--artikel .artikel-lead,
.page--artikel .cms-c-artikel-kopf .artikel-lead {
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.35rem;
}
.page--artikel .cms-block--text h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin: 1.75rem 0 .65rem;
}
.page--artikel .cms-block--text p,
.page--artikel .cms-html-block p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.page--artikel .cms-figure {
  margin: 0 0 .35rem;
}
.page--artikel .cms-figure img,
.page--artikel .cms-html-block img {
  border-radius: 2px;
  width: 100%;
  height: auto;
  display: block;
}
.page--artikel .img-credit,
.page--artikel .cms-c-artikel-credit p {
  font-size: .75rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  text-align: center;
}
.page--artikel .cms-c-artikel-credit .cms-block-body,
.page--artikel .cms-c-artikel-credit {
  margin-bottom: 0;
}
.page--artikel .cms-cta {
  margin-top: 2rem;
}
@media (max-width: 640px) {
  .page--artikel .cms-section {
    padding: 1.25rem 1rem 1.75rem;
  }
}

.mock-banner, .version-switch { display: none !important; }
