/* brüderchen & schwesterchen – statische Übergangswebsite
   Gestaltung nach dem Vorbild der bisherigen Website (Farben, Schriften, Abstände). */

@font-face { font-family: "ProximaNova-Light"; src: url("../fonts/2BF6B4_9_0.woff") format("woff"); font-display: swap; }
@font-face { font-family: "ProximaNova-Semibold"; src: url("../fonts/2BF6B4_A_0.woff") format("woff"); font-display: swap; }
@font-face { font-family: "ProximaNova-BoldIt"; src: url("../fonts/2BF6B4_B_0.woff") format("woff"); font-display: swap; }

:root {
  --dark: #30353a;
  --gold: #d2b887;
  --gold-dark: #8a6d36;   /* Gold mit ausreichendem Kontrast für Text auf Weiß */
  --grey: #e6e6e6;
  --grey-mid: #a3a3a3;
  --error: #c62828;
  --ok: #2e6b3a;
  --bar: 72px;
  --notice: 0px;
  --light: "ProximaNova-Light", "Helvetica Neue", Arial, sans-serif;
  --semi: "ProximaNova-Semibold", "Helvetica Neue", Arial, sans-serif;
  --boldit: "ProximaNova-BoldIt", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + var(--notice) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--dark);
  font-family: var(--light); font-size: 17px; line-height: 1.45;
  overflow-x: hidden;
  /* Fußbereich auch auf kurzen Seiten am unteren Bildschirmrand halten */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
strong, b { font-family: var(--semi); font-weight: normal; }
h1, h2, h3 { font-family: var(--boldit); font-weight: normal; font-style: normal; line-height: 1.15; }
h1, .h1 { font-size: 1.75em; text-align: center; margin: 1.6em 0 1.2em; }
h2.section-title { font-size: 1.65em; text-align: center; margin: 0 0 1.4em; }
h3 { font-size: 1.3em; }
h4 { font-family: var(--semi); font-weight: normal; font-size: 1em; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--gold); color: #000; padding: .6em 1em; font-family: var(--semi); }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1056px; margin: 0 auto; padding: 0 24px; }
.container.wide { max-width: 1296px; }
main { display: block; flex: 1 0 auto; }
.page { padding-top: calc(var(--bar) + var(--notice)); }

/* ---------- Kopfleiste ---------- */
.site-header {
  position: fixed; top: var(--notice); left: 0; right: 0; height: var(--bar); z-index: 900;
  background: #fff; display: flex; align-items: center;
}
.home .site-header { background: transparent; transition: background .3s; }
.home .site-header.solid { background: #fff; }
.menu-toggle {
  width: var(--bar); height: var(--bar); flex: 0 0 var(--bar);
  background: var(--dark); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; text-decoration: none;
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: #000; color: var(--gold); }
.menu-toggle svg { width: 34px; height: 34px; }
.brand { display: flex; align-items: center; height: var(--bar); padding: 0 18px; }
.brand img { height: 32px; width: auto; }
.home .site-header .brand img.logo-white { height: 52px; }
.home .site-header .brand .logo-dark, .site-header .brand .logo-white { display: none; }
.home .site-header .brand .logo-white { display: block; }
.home .site-header.solid .brand .logo-white { display: none; }
.home .site-header.solid .brand .logo-dark { display: block; }
.site-header .brand .logo-dark { display: block; }
.header-cta {
  margin-left: auto; height: var(--bar); display: flex; align-items: center; padding: 0 28px;
  background: var(--gold); color: #fff; font-family: var(--semi); text-decoration: none; font-size: 1.05em;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--dark); color: #fff; }

/* ---------- Hinweisleiste „neue Website“ ---------- */
html:has(.site-notice), .has-notice { --notice: 36px; }
.site-notice {
  position: fixed; top: 0; left: 0; right: 0; height: var(--notice); z-index: 905;
  display: flex; align-items: center; justify-content: center; padding: 0 16px;
  background: var(--dark); color: #fff; font-size: .82em; text-align: center; overflow: hidden;
}
.site-notice p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-notice strong { color: #fff; }
.site-notice a { color: var(--gold); font-family: var(--semi); text-decoration: underline; text-underline-offset: 2px; }
.site-notice a:hover, .site-notice a:focus-visible { color: #fff; }
.site-notice .notice-short { display: none; }
@media (max-width: 1099px) {
  .site-notice .notice-more { display: none; }
  .site-notice .notice-short { display: inline; }
}
@media (max-width: 639px) {
  html:has(.site-notice), .has-notice { --notice: 52px; }
  .site-notice { font-size: .78em; line-height: 1.3; }
  .site-notice p { white-space: normal; }
}

/* ---------- Navigation (Seitenmenü) ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 88vw; z-index: 1000;
  background: var(--dark); color: #fff; font-family: var(--semi);
  transform: translateX(-100%); transition: transform .35s ease; overflow-y: auto;
  visibility: hidden;
}
.site-nav:target, .site-nav.open { transform: none; visibility: visible; box-shadow: 8px 0 30px rgba(0,0,0,.35); }
.site-nav .nav-head { display: flex; align-items: center; justify-content: flex-end; height: var(--bar); border-bottom: 1px solid #fff; }
.site-nav .nav-close { color: #fff; width: var(--bar); height: var(--bar); display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.site-nav .nav-close svg { width: 30px; height: 30px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #fff; }
.site-nav li a { display: block; padding: 15px 55px; color: #fff; text-decoration: none; font-size: 1.05em; }
.site-nav li a:hover, .site-nav li a:focus-visible, .site-nav li a[aria-current="page"] { color: var(--gold); }
.site-nav .social { display: flex; justify-content: space-around; padding: 18px 24px; }
.nav-backdrop { display: none; }
.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.25); }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; fill: currentColor; }
.social a { color: inherit; display: inline-flex; padding: 6px; }
.social .icon { width: 36px; height: 36px; }
.social a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: none; border: 2px solid var(--dark); color: var(--dark);
  font-family: var(--semi); font-size: 1em; padding: .35em 2em; min-width: 200px; text-align: center;
  text-decoration: none; cursor: pointer; line-height: 1.4;
}
.btn:hover, .btn:focus-visible { background: var(--dark); color: #fff; }
.btn-gold { border-color: var(--gold); background: var(--gold); color: #1d1d1d; }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.center { text-align: center; }

/* ---------- Startseite ---------- */
.hero { position: relative; height: 100vh; min-height: 480px; overflow: hidden; background: #222; color: #fff; }
.hero.section-hero { height: 70vh; min-height: 320px; }
.hero > img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-title {
  position: absolute; left: 0; right: 0; bottom: 18%; z-index: 2; margin: 0; padding: 0 24px;
  color: #fff; font-family: var(--boldit); text-transform: uppercase; text-align: center;
  font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.12; text-shadow: 0 10px 30px rgba(48,53,58,.6);
}
.hero .credit { position: absolute; left: 0; bottom: 0; z-index: 3; color: #fff; font-size: .8em; }
.hero .credit summary { list-style: none; cursor: pointer; width: var(--bar); height: var(--bar); display: flex; align-items: center; justify-content: center; }
.hero .credit summary::-webkit-details-marker { display: none; }
.hero .credit summary .icon { width: 26px; height: 26px; }
.hero .credit[open] p { position: absolute; left: var(--bar); bottom: 22px; margin: 0; white-space: nowrap; background: rgba(0,0,0,.45); padding: .3em .7em; }
.scroll-hint { position: absolute; right: 24px; bottom: 18px; z-index: 3; color: #fff; }
.scroll-hint .icon { width: 30px; height: 30px; }

.text-section { padding: 4em 0 2em; }
.text-section.grey { background: var(--grey); }
.text-section h3 { text-align: center; font-size: 1.6em; margin: 0 0 1.5em; }

/* Beitrags-Karussell (CSS scroll-snap; Pfeile werden per JS ergänzt) */
.teaser-block { margin: 0 0 6em; }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  list-style: none; margin: 0; padding: 0 0 8px; scrollbar-width: thin;
}
.carousel-track > li { flex: 0 0 100%; scroll-snap-align: start; }
.carousel .car-btn {
  position: absolute; top: 40%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--dark);
  width: 44px; height: 64px; display: none; align-items: center; justify-content: center; padding: 0;
}
.js .carousel .car-btn { display: flex; }
.carousel .car-btn .icon { width: 40px; height: 40px; }
.carousel .car-prev { left: -56px; }
.carousel .car-next { right: -56px; }
.carousel .car-prev .icon { transform: rotate(90deg); }
.carousel .car-next .icon { transform: rotate(-90deg); }
.carousel .car-btn[disabled] { opacity: .25; cursor: default; }
.teaser-actions { display: flex; justify-content: flex-end; margin-top: 1em; }

.post { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.post-media { min-width: 0; }
.post-text { min-width: 0; }
.post-text .title { font-family: var(--light); margin: 0 0 .7em; font-size: 1em; }
.post-text .title a { text-decoration: none; }
.post-text .more { font-family: var(--semi); }
.post-share { margin-top: 1em; font-size: .9em; }
.post-share a { color: var(--grey-mid); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.post-share a:hover { color: var(--dark); }
.post-share .icon { width: 22px; height: 22px; }

/* Bildergalerie */
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0; gap: 2px; scrollbar-width: thin; }
.gallery-track > li { flex: 0 0 50%; scroll-snap-align: start; }
.gallery-track.single > li { flex-basis: 100%; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.gallery-count { font-size: .8em; color: #666; margin-top: .3em; }
.video-wrap video { width: 100%; background: #000; }

/* Beitragslisten */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list > li { margin: 0 0 4em; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1.5em; margin: 2em 0 4em; flex-wrap: wrap; }
.pager a, .pager span.disabled { display: inline-flex; align-items: center; text-decoration: none; padding: .3em .5em; }
.pager span.disabled { opacity: .3; }
.pager .icon { width: 26px; height: 26px; }
.pager .prev .icon { transform: rotate(90deg); }
.pager .next .icon { transform: rotate(-90deg); }
.pager .pages { display: flex; gap: .3em; flex-wrap: wrap; justify-content: center; }
.pager .pages a, .pager .pages span { min-width: 2em; text-align: center; }
.pager .pages [aria-current] { font-family: var(--semi); border-bottom: 2px solid var(--gold); }

/* Beitragsdetail */
.news-detail .media { margin-bottom: 3em; }
.news-detail .media .gallery-track > li { flex-basis: 100%; }
.news-detail .content { margin-bottom: 2em; }
.news-detail .back { margin: 2em 0 4em; display: flex; gap: 1em; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.rich p:empty { display: none; }
.rich a { color: var(--dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }

/* CMS-Bereiche Startseite */
.cms-grid .row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.cms-grid .row > div { padding: 0 12px; }
.identity .row { align-items: center; margin-bottom: 2em; }
.identity .img-wrapper { flex: 0 0 33.33%; text-align: center; }
.identity .img-wrapper img { margin: 0 auto; max-width: 220px; }
.identity .row > div:not(.img-wrapper) { flex: 1 1 60%; }
.team-grid .row { margin: 0 -6px; }
.team-grid .tile { flex: 0 0 33.333%; padding: 6px !important; }
.team-grid .profile-wrapper { position: relative; }
.team-grid .profile-wrapper img { width: 100%; }
.team-grid .teamcontent { padding: .6em 0 0; font-size: .95em; }
.offer-item { margin: 0 0 4em; }
.offer-item img { width: 100%; margin-bottom: 1.5em; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.contact-cols h4 { margin-top: 1.5em; }
.contact-line { display: flex; gap: .6em; align-items: center; margin: .2em 0; }
.contact-line .icon { width: 20px; height: 20px; flex: 0 0 20px; }
.picture-wrap img { width: 100%; }

/* ---------- Formulare ---------- */
.form { max-width: 1010px; margin: 0 auto; }
.form .field { margin: 0 0 1.4em; }
.form label { display: block; font-family: var(--semi); font-size: .9em; margin-bottom: .2em; }
.form .req { color: var(--error); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; font: inherit; color: var(--dark); background: #fff;
  border: 0; border-bottom: 1px solid var(--grey-mid); padding: .45em .1em; border-radius: 0;
}
.form textarea { min-height: 9em; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom: 2px solid var(--gold); }
.form .help { font-size: .82em; color: #555; margin-top: .25em; }
.form .error-text { color: var(--error); font-size: .85em; margin-top: .25em; }
.form [aria-invalid="true"] { border-bottom-color: var(--error) !important; }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form .check { display: flex; gap: .6em; align-items: flex-start; font-family: var(--light); font-size: .95em; }
.form .check input { margin-top: .3em; width: 18px; height: 18px; flex: 0 0 18px; }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { text-align: center; margin-top: 1.5em; }
.form-status { margin: 1.2em auto; padding: 1em 1.2em; max-width: 1010px; border-left: 4px solid var(--dark); background: #f4f4f4; }
.form-status[hidden] { display: none; }
.form-status.ok { border-color: var(--ok); background: #eef6ef; }
.form-status.err { border-color: var(--error); background: #fdeeee; }
.privacy-note { font-size: .88em; color: #444; }

/* ---------- Kartei-Hinweis ---------- */
.kartei-stage { position: relative; margin: 0 0 3em; }
.kartei-preview { margin: 0; position: relative; border: 1px solid var(--grey); }
.kartei-preview img { width: 100%; filter: grayscale(55%) blur(1.5px); opacity: .55; pointer-events: none; user-select: none; }
.kartei-preview figcaption { font-size: .8em; color: #555; padding: .5em .8em; background: #f6f6f6; border-top: 1px solid var(--grey); }
.kartei-preview .preview-badge {
  position: absolute; top: 12px; right: 12px; background: var(--dark); color: #fff; font-family: var(--semi);
  font-size: .8em; padding: .3em .8em; text-transform: uppercase; letter-spacing: .04em;
}
.kartei-notice {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(640px, 92%);
  background: rgba(255,255,255,.97); border-top: 6px solid var(--gold); box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 2em 2.2em; text-align: center; z-index: 2;
}
.kartei-notice p { font-size: 1.15em; margin: 0 0 .5em; }
.kartei-notice p.lead { font-family: var(--boldit); font-size: 1.45em; }
.kartei-notice .btn { margin-top: 1em; }
.kartei-text { max-width: 1010px; margin: 0 auto 3em; }

/* ---------- Hilfe ---------- */
.notice { border-left: 4px solid var(--gold); background: #faf6ee; padding: 1em 1.2em; margin: 0 0 2em; }
.faq-cat { margin: 0 0 2.5em; }
.faq-cat h2 { font-family: var(--semi); font-size: 1.15em; text-align: left; margin: 0 0 .6em; border-bottom: 1px solid var(--grey-mid); padding-bottom: .4em; }
.faq-cat details { border-bottom: 1px solid var(--grey); }
.faq-cat summary { cursor: pointer; padding: .7em 0; font-family: var(--semi); list-style-position: outside; }
.faq-cat details > div { padding: 0 0 1em; }
.faq-meta { font-size: .85em; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--dark); color: #fff; font-family: var(--semi); padding: 2em 0 1.2em; margin-top: 3em; flex-shrink: 0; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer h2 { font-family: var(--boldit); color: var(--grey-mid); font-size: .82em; margin: 0 0 1em; text-align: left; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .9em; font-size: .85em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold); }
.site-footer .social-row { border-top: 1px solid #fff; margin-top: 1.4em; padding-top: 1em; text-align: center; }
.site-footer .social-row h2 { text-align: center; }
.site-footer .social { display: flex; justify-content: center; gap: 90px; }
.site-footer .copy { text-align: center; font-family: var(--light); font-size: .78em; color: #c9c9c9; margin-top: 1.2em; }

/* ---------- Fehlerseite ---------- */
.error-page { text-align: center; padding: 3em 0 4em; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .carousel .car-prev { left: -8px; }
  .carousel .car-next { right: -8px; }
  .carousel .car-btn { background: rgba(255,255,255,.85); top: 120px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .post { grid-template-columns: 1fr; gap: 16px; }
  .contact-cols { grid-template-columns: 1fr; }
  .team-grid .tile { flex-basis: 50%; }
  .identity .img-wrapper, .identity .row > div:not(.img-wrapper) { flex-basis: 100%; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .social { gap: 40px; }
  .header-cta { padding: 0 14px; font-size: .9em; }
  .kartei-notice { position: static; transform: none; width: auto; margin: 0 0 1em; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .form .grid2 { grid-template-columns: 1fr; }
  .brand img { height: 26px; }
  .home .site-header .brand img.logo-white { height: 40px; }
  .header-cta { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero.section-hero { height: 52vh; }
  h1, .h1 { font-size: 1.5em; margin: 1.2em 0 1em; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-notice, .site-header, .site-nav, .site-footer, .post-share, .pager, .carousel .car-btn { display: none !important; }
  .page { padding-top: 0; }
}

.crumb { text-align: center; margin: 2em 0 0; font-size: .9em; }
.crumb a { color: var(--dark); }
