/* 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: 1240px;
  --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 > .nav-item > .nav-item__row > 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 > .nav-item > .nav-item__row > 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: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  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: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

/* 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: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  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: var(--muted);
}
.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 > .nav-item > .nav-item__row > a,
.nav-list > li > a {
  border-radius: 6px;
  padding: .55rem .9rem;
}

.page {
  width: min(100% - 1.5rem, var(--max));
  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;
}
.skip-link {
  position: absolute;
  left: .75rem;
  top: .75rem;
  z-index: 200;
  padding: .45rem .75rem;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
  color: #fff;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.status-page { padding: 4rem 1rem; }
.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  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;
}

.cms-section:has(.cms-c-contact-intro) {
  display: grid;
  gap: 1.25rem;
}
.cms-block.cms-c-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;
}
.cms-block.cms-c-contact-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}
.cms-block.cms-c-contact-grid .cms-columns,
.cms-block.cms-c-contact-grid .cms-columns[data-columns="3"] {
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
  margin: 0;
}
.cms-block.cms-c-contact-grid .cms-columns__col,
.cms-block.cms-c-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);
}
.cms-block.cms-c-contact-grid .cms-columns__col[data-col="2"] {
  border-color: #c9a36a;
  background: #fff8ee;
}
.cms-block.cms-c-contact-grid .cms-columns__col h2,
.cms-block.cms-c-contact-directions h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 .85rem;
  color: var(--ink);
}
.cms-block.cms-c-contact-grid .cms-columns__col p,
.cms-block.cms-c-contact-grid .cms-columns__col address,
.cms-block.cms-c-contact-directions p {
  margin: 0 0 .85rem;
}
.cms-block.cms-c-contact-grid .cms-columns__col p:last-child,
.cms-block.cms-c-contact-grid .cms-columns__col address:last-child,
.cms-block.cms-c-contact-grid .cms-columns__col ul:last-child,
.cms-block.cms-c-contact-grid .cms-columns__col table:last-child,
.cms-block.cms-c-contact-directions p:last-child,
.cms-block.cms-c-contact-directions ul:last-child {
  margin-bottom: 0;
}
.cms-block.cms-c-contact-grid address {
  font-style: normal;
}
.cms-block.cms-c-contact-grid a,
.cms-block.cms-c-contact-directions a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cms-block.cms-c-contact-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.cms-block.cms-c-contact-grid caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cms-block.cms-c-contact-grid th,
.cms-block.cms-c-contact-grid td {
  text-align: left;
  padding: .45rem .2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cms-block.cms-c-contact-grid thead th {
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cms-block.cms-c-contact-grid tbody th {
  font-weight: 600;
  width: 58%;
}
.cms-block.cms-c-contact-grid .cms-columns__col ul,
.cms-block.cms-c-contact-directions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.cms-block.cms-c-contact-grid .cms-columns__col li {
  padding: .45rem .2rem;
  border-bottom: 1px solid var(--line);
}
.cms-block.cms-c-contact-directions ul {
  gap: .9rem;
}
.cms-block.cms-c-contact-directions li {
  margin: 0;
}
.cms-block.cms-c-contact-directions li strong {
  display: block;
  margin-bottom: .2rem;
}
.cms-block.cms-c-contact-directions img {
  display: inline-block;
  width: 30px;
  height: 17px;
  vertical-align: middle;
  margin: 0 .15rem;
}
.cms-block.cms-c-contact-grid + .cms-block--cta .cms-cta,
.cms-block.cms-c-contact-cta .cms-cta {
  margin: 0;
  text-align: left;
}
.cms-block.cms-c-contact-grid + .cms-block--cta .cms-cta__btn--primary,
.cms-block.cms-c-contact-cta .cms-cta__btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.cms-block.cms-c-contact-grid + .cms-block--cta .cms-cta__btn--primary:hover,
.cms-block.cms-c-contact-cta .cms-cta__btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* Downloads */
.downloads {
  display: grid;
  gap: 1.25rem;
}
.downloads__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;
}
.downloads__intro p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}
.downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.downloads__card {
  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);
}
.downloads__card--wide {
  grid-column: 1 / -1;
}
.downloads__card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 .85rem;
  color: var(--ink);
}
.downloads__card p {
  margin: 0 0 .85rem;
}
.downloads__card p:last-child {
  margin-bottom: 0;
}
.downloads__card a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.download-list li {
  display: grid;
  gap: .2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.download-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.download-brands {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .75rem;
}
.download-brands a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 7rem;
  padding: .75rem .6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fa;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
}
.download-brands a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}
.download-brands img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
}

/* Artikel-Detail (Aktuelles / Medien) – Magazin-Look */
.page--artikel {
  margin-bottom: 3.5rem;
}
.artikel-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin: 0 0 .85rem;
}
.artikel-chrome__back {
  font-weight: 600;
  text-decoration: none;
}
.artikel-chrome__back:hover { text-decoration: underline; }
.artikel-chrome__meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.artikel-chrome__cat {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #e6f6ef;
  color: var(--brand-dark);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page--artikel .cms-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
  padding: 1.85rem 1.75rem 2.4rem;
  overflow: hidden;
}
.page--artikel .cms-section:has(.cms-c-artikel-bild) {
  display: flex;
  flex-direction: column;
  padding: 0 0 2.5rem;
}
.page--artikel .cms-c-artikel-bild { order: 1; }
.page--artikel .cms-c-artikel-credit { order: 2; }
.page--artikel .cms-c-artikel-kopf { order: 3; }
.page--artikel .cms-c-artikel-koerper { order: 4; }
.page--artikel .cms-c-artikel-kopf,
.page--artikel .cms-c-artikel-koerper,
.page--artikel .cms-c-artikel-credit,
.page--artikel .cms-c-artikel-bild {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.page--artikel .cms-c-artikel-kopf,
.page--artikel .cms-c-artikel-koerper {
  padding: 0 2rem;
}
.page--artikel .cms-c-artikel-kopf { padding-top: 1.65rem; }
.page--artikel .cms-c-artikel-credit {
  padding: .5rem 2rem 0;
}
.page--artikel .cms-block--text h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 400;
  color: var(--brand);
  line-height: 1.12;
  margin: 0 0 .9rem;
}
.page--artikel .artikel-lead,
.page--artikel .cms-c-artikel-kopf .artikel-lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 0;
  padding: .15rem 0 .15rem 1rem;
  border-left: 3px solid var(--brand);
}
.page--artikel .cms-c-artikel-koerper {
  padding-top: 1.5rem;
}
.page--artikel .cms-block--text h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin: 1.85rem 0 .65rem;
}
.page--artikel .cms-block--text p,
.page--artikel .cms-html-block p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1.15rem;
}
.page--artikel .cms-block--text ul,
.page--artikel .cms-block--text ol,
.page--artikel .cms-html-block ul,
.page--artikel .cms-html-block ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}
.page--artikel .cms-block--text li,
.page--artikel .cms-html-block li {
  margin: 0 0 .4rem;
  font-size: 1.08rem;
  line-height: 1.6;
}
.page--artikel .cms-block--text a,
.page--artikel .cms-html-block a {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.page--artikel .cms-block--text blockquote,
.page--artikel .cms-html-block blockquote {
  margin: 0 0 1.25rem;
  padding: .15rem 0 .15rem 1rem;
  border-left: 3px solid var(--brand);
  color: var(--ink);
  font-style: italic;
}
.page--artikel .cms-figure {
  margin: 0;
}
.page--artikel .cms-c-artikel-bild .cms-figure {
  width: 100%;
}
.page--artikel .cms-figure img,
.page--artikel .cms-html-block img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
}
.page--artikel .cms-c-artikel-bild img {
  border-radius: 0;
  width: 100%;
  height: min(26rem, 58vw);
  object-fit: cover;
  object-position: center;
  display: block;
  background: #111814;
}
.page--artikel .img-credit,
.page--artikel .cms-c-artikel-credit p {
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--muted);
  margin: 0;
  text-align: left;
}
.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;
}
.page--team {
  margin-bottom: 3rem;
}
.page--team:has(.team-page) .cms-section,
.page--content:has(.team-page) .cms-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.team-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 1.15rem;
}
.team-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.75rem, 1fr));
  gap: 1.15rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.team-card__photo {
  height: 5.25rem;
  background: linear-gradient(180deg, #d8efe6 0%, #eef6f2 100%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.page--content .team-card__photo img,
.page--team .team-card__photo img,
.team-card__photo img {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  max-width: 7.5rem;
  max-height: 7.5rem;
  margin: 0 0 -2.35rem;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  background: #c5d4cc;
}
.team-card__body {
  padding: 3rem 1.15rem 1.35rem;
  flex: 1;
}
.team-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--brand);
  line-height: 1.2;
  margin: 0 0 .3rem;
}
.team-card__role {
  margin: 0 0 .85rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}
.team-card__contact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin: 0;
  font-size: .92rem;
}
.team-card__contact a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: .15em;
  word-break: break-word;
}
.team-card__contact a:hover {
  color: var(--brand-dark);
}
.team-intro {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--ink);
  line-height: 1.55;
}
.team-intro ul {
  margin: .4rem 0 0;
  padding-left: 1.15rem;
}
.team-hero {
  margin: 0 0 1.75rem;
}
.team-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.page--content .team-hero img,
.page--team .team-hero img {
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  border-radius: 16px;
}
.team-hero figcaption {
  margin: .45rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.team-depts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.team-dept {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
  padding: 1.25rem 1.2rem 1.3rem;
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
}
.team-dept:hover {
  border-color: var(--brand);
  box-shadow: 0 14px 34px rgba(0, 80, 50, .1);
}
.team-dept h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--brand);
  margin: 0 0 .45rem;
  line-height: 1.2;
}
.team-dept p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}

.page--quality,
.page--geschichte {
  margin-bottom: 3rem;
}
.page--quality:has(.quality-page) .cms-section,
.page--geschichte:has(.geschichte-page) .cms-section,
.page--content:has(.quality-page) .cms-section,
.page--content:has(.geschichte-page) .cms-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.quality-page h1,
.geschichte-page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 1.15rem;
}
.quality-intro,
.quality-close,
.geschichte-lead,
.timeline__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}
.quality-intro,
.quality-close {
  padding: 1.35rem 1.45rem 1.45rem;
}
.quality-intro p,
.quality-close p,
.geschichte-lead,
.timeline__card p {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.quality-intro p:last-child,
.quality-close p:last-child,
.timeline__card p:last-child {
  margin-bottom: 0;
}
.quality-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.15rem 0;
}
.quality-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
  padding: 1.2rem 1.2rem 1.35rem;
}
.quality-card__num {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brand);
  letter-spacing: .04em;
}
.quality-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 .65rem;
}
.quality-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  font-size: .98rem;
}
.geschichte-lead {
  padding: 1.2rem 1.4rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid #cfe8dc;
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.35rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: .45rem;
  width: 12px;
  height: 12px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px #e6f6ef;
}
.timeline__year {
  margin: 0 0 .45rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: var(--brand);
}
.timeline__card {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  gap: 1.1rem 1.6rem;
  align-items: start;
  padding: 1.2rem 1.3rem 1.35rem;
}
.timeline__card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 .65rem;
}
.timeline__text p {
  margin: 0 0 .75rem;
}
.timeline__text p:last-child { margin-bottom: 0; }
.timeline__photos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  justify-content: flex-end;
}
.page--geschichte .timeline__photos img,
.page--content .timeline__photos img,
.timeline__photos img {
  display: block;
  height: 9.5rem;
  width: auto;
  max-width: min(17.5rem, 100%);
  max-height: 9.5rem;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}
.timeline__note {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
@media (max-width: 800px) {
  .quality-principles { grid-template-columns: 1fr; }
  .timeline__card { grid-template-columns: 1fr; }
  .timeline__photos { justify-content: flex-start; }
  .page--geschichte .timeline__photos img,
  .page--content .timeline__photos img {
    height: 8.25rem;
    max-height: 8.25rem;
  }
}

.page--content .cms-section,
.page--content .status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  padding: 1.75rem 1.5rem 2.25rem;
}
.page--content .cms-block--text h1,
.page--content .status-card__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 400;
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 .85rem;
}
.page--content .cms-block--text h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.25rem;
  margin: 1.5rem 0 .65rem;
}
.page--content .cms-block--text p,
.page--content .cms-html-block p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}
.page--content .cms-c-legal h2,
.page--content h6 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--brand);
  margin: 1.6rem 0 .4rem;
}
.page--content .cms-c-legal h2:first-of-type,
.page--content h6:first-of-type {
  margin-top: 1.1rem;
}
.page--content .cms-html-block img,
.page--content .cms-block--html img,
.page--content h6 img {
  display: block;
  width: auto;
  max-width: 5.5rem;
  max-height: 5.5rem;
  height: auto;
  margin: 0 0 1rem;
}
.page--content .team-card img,
.page--team .team-card img,
.page--content .timeline__photos img,
.page--geschichte .timeline__photos img {
  max-width: none;
  max-height: none;
}
.page--content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.1rem;
}
.page--content th,
.page--content td {
  text-align: left;
  padding: .45rem .2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cms-cards__grid,
.product-hub__grid,
.page--produkte .product-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.cms-card,
.product-hub__card,
.page--produkte .product-hub__card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cms-card:hover,
.product-hub__card:hover,
.page--produkte .product-hub__card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}
.cms-card img,
.product-hub__card img,
.page--produkte .product-hub__card img,
.page--produkte .product-page img,
.page--produkte .cms-c-produkte img,
.page--produkte .Bartschluessel img,
.page--produkte .Schluessel img,
.page--produkte .Produkte img {
  max-width: 100%;
  max-height: 11rem;
  width: auto;
  height: auto;
  margin: 0 auto .35rem;
  object-fit: contain;
}
.cms-card h2,
.cms-card__title,
.product-hub__card h2,
.page--produkte .product-hub__card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand);
  margin: 0;
}
.cms-card p,
.cms-card__text,
.product-hub__card p,
.page--produkte .product-hub__card p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink);
}
.page--produkte .product-page .Bartschluessel,
.page--produkte .product-page .Schluessel,
.page--produkte .product-page .Produkte,
.page--produkte .cms-c-produkte .Bartschluessel,
.page--produkte .cms-c-produkte .Schluessel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem 1.1rem;
  margin: 0 0 1.4rem;
}
.page--produkte .product-page h5,
.page--produkte .product-page h6 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--brand);
  margin: 1.5rem 0 .55rem;
}
.page--produkte .Tuersicherheit,
.page--produkte .Fenstersicherheit,
.page--produkte .Hangschloss,
.page--produkte .Brandschutz {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 720px) {
  .cms-cards__grid,
  .product-hub__grid,
  .page--produkte .product-hub__grid {
    grid-template-columns: 1fr;
  }
}

.search--page {
  display: flex;
  gap: .5rem;
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.search--page input {
  flex: 1;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.search--page__btn {
  padding: .65rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.search--page__btn:hover { background: var(--brand-dark); }
.search-status {
  margin: 0 0 1rem;
  color: var(--muted);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}
.search-results li {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.search-results li:last-child { border-bottom: 0; }
.search-results a {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--brand);
}
.search-results p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.listing-pager {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: .25rem 0 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.listing-pager__link {
  font-weight: 600;
}
.listing-pager__link--off {
  color: var(--muted);
  pointer-events: none;
}
.listing-pager__meta { color: var(--muted); font-size: .9rem; }

.embed-consent {
  margin: 1rem 0;
  padding: 1.15rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f7f8fa;
}
.embed-consent p { margin: 0 0 .75rem; color: var(--ink); }
.embed-consent__btn {
  padding: .55rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__track { transition: none; }
}

@media print {
  .site-nav, .skip-link, .search, .cms-preview-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .page { width: 100%; margin: 0; }
}

@media (max-width: 640px) {
  .page--artikel .cms-section,
  .page--content .cms-section,
  .page--team .cms-section {
    padding: 1.25rem 1rem 1.75rem;
  }
  .page--team:has(.team-page) .cms-section,
  .page--content:has(.team-page) .cms-section,
  .page--quality:has(.quality-page) .cms-section,
  .page--geschichte:has(.geschichte-page) .cms-section,
  .page--content:has(.quality-page) .cms-section,
  .page--content:has(.geschichte-page) .cms-section {
    padding: 0;
  }
  .page--artikel .cms-section:has(.cms-c-artikel-bild) {
    padding: 0 0 1.75rem;
  }
  .page--artikel .cms-c-artikel-kopf,
  .page--artikel .cms-c-artikel-koerper {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .page--artikel .cms-c-artikel-credit {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

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