/* Zinshauslotse – Stylesheet (mobile first) */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #3490cc;
  --blue-dark: #236f9f;
  --grey: #4d5156;
  --ink: #23272b;
  --muted: #5f656b;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --navy: #12283a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 40, 58, .10);
  --header-h: 68px;
  --font-head: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { margin-bottom: 40px; max-width: 48rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 200; }
.skip-link:focus { left: 8px; }
/* Barrierefreiheit: gut sichtbarer Fokusrahmen für Tastatur-Nutzer, zweifarbig, damit er auf hellem und dunklem Grund erkennbar ist */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-dark); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue-dark); background: transparent; }
.btn--outline:hover { background: var(--blue-dark); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header: transparent über dem Hero, beim Scrollen weiß mit Glas-Effekt */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header.is-scrolled, .site-header.nav-open { background: rgba(255,255,255,.88); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: block; width: 190px; position: relative; }
.brand img { width: 100%; height: auto; transition: opacity .3s; }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .brand .logo-dark, .nav-open .brand .logo-dark { opacity: 1; }
.is-scrolled .brand .logo-light, .nav-open .brand .logo-light { opacity: 0; }
.nav-toggle { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; }
.is-scrolled .nav-toggle, .nav-open .nav-toggle { color: var(--navy); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .3s, background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 12px 20px 28px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s; }
.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 14px 4px; color: var(--navy); text-decoration: none; font-family: var(--font-head); border-bottom: 1px solid var(--line); }
.main-nav .nav-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.main-nav .nav-cta a { border: 0; }
.main-nav .nav-cta .btn { color: #fff; }

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .brand { width: 230px; }
  .nav-toggle { display: none; }
  .main-nav { position: static; transform: none; opacity: 1; visibility: visible; background: none; box-shadow: none; padding: 0; display: flex; align-items: center; gap: 28px; }
  .main-nav ul { display: flex; gap: 26px; }
  .main-nav a { border: 0; padding: 6px 0; color: #fff; font-size: .95rem; position: relative; }
  .main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s; }
  .main-nav ul a:hover::after { transform: scaleX(1); }
  .is-scrolled .main-nav ul a { color: var(--navy); }
  .main-nav .nav-cta { margin: 0; flex-direction: row; }
  .main-nav .nav-cta .btn { min-height: 42px; padding: .5em 1.1em; font-size: .9rem; }
}

/* Hero-Slider */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide--rathaus img { object-position: 78% center; }
.hero__slide--altbau img { object-position: 45% center; }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,42,.6) 0%, rgba(12,28,42,.5) 30%, rgba(12,28,42,.72) 55%, rgba(12,28,42,.9) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__text { font-size: 1.15rem; max-width: 38rem; color: rgba(255,255,255,.92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__controls { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.hero__dots { display: flex; gap: 6px; }
/* Klickfläche 34 x 28 px, sichtbar bleibt der schmale Balken */
.hero__dots button { position: relative; width: 34px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); }
.hero__dots button[aria-current="true"]::before { background: #fff; }
.hero__pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(12,28,42,.35); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero__pause:hover { background: rgba(255,255,255,.2); }
.hero__pause svg { width: 14px; height: 14px; }

/* Einstiege (Verkaufen / Kaufen) – überlappen den Hero */
.entry { position: relative; padding: 56px 0 8px; }
.entry__grid { display: grid; gap: 18px; }
.entry-card { position: relative; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px 28px; }
.entry-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--blue); transform-origin: left; }
.entry-card h2 { font-size: 1.4rem; }
.entry-card ul { padding-left: 1.1em; margin: 0 0 1.2em; color: var(--muted); }
.entry-card--alt::before { background: var(--grey); }
@media (min-width: 768px) { .entry__grid { grid-template-columns: 1fr 1fr; gap: 24px; } .entry-card { padding: 40px 36px 36px; } .entry { padding-top: 72px; } }

/* Stärken */
.usp-grid { display: grid; gap: 18px; }
.usp { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.usp:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.usp__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(52,144,204,.12); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.usp__icon svg { width: 24px; height: 24px; }
.usp p { color: var(--muted); margin: 0; }
@media (min-width: 640px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .usp-grid { grid-template-columns: repeat(3, 1fr); } }

/* Parallax-Bänder */
.parallax { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.parallax__bg { position: absolute; left: 0; right: 0; top: -20%; height: 140%; z-index: -2; will-change: transform; }
.parallax__bg img { width: 100%; height: 100%; object-fit: cover; }
.parallax::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(18,40,58,.9), rgba(30,95,138,.86)); }
.parallax .container { padding-top: 96px; padding-bottom: 96px; }
.parallax h2, .parallax h3 { color: #fff; }
.parallax p { color: rgba(255,255,255,.9); }
.claim { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.3; max-width: 30ch; margin: 0 0 1.2rem; }

/* Leistungen */
.services { display: grid; gap: 18px; }
.service { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; }
.service__num { font-family: var(--font-head); color: var(--blue-dark); font-size: .85rem; letter-spacing: .1em; margin-bottom: 8px; }
.service ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.service li { margin-bottom: .35em; }
@media (min-width: 768px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* Ablauf als Slider (horizontal wischbar) */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.step { scroll-snap-align: start; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: 24px; }
.step__no { font-family: var(--font-head); font-size: 2rem; color: #9fd0ef; line-height: 1; margin-bottom: 10px; }
.step p { margin: 0; font-size: .97rem; }
.steps-nav { display: flex; gap: 10px; margin-top: 12px; }
.steps-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; font-size: 1.2rem; }
.steps-nav button:hover { background: #fff; color: var(--navy); }
@media (min-width: 640px) { .steps { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .steps { grid-auto-columns: calc((100% - 48px) / 4); } }

/* Über uns */
.about { display: grid; gap: 36px; align-items: start; }
/* Portrait: neutral grauer Hintergrund, Foto blendet unten aus.
   Scroll-Effekt: Bild öffnet sich beim Einblenden aus der Mitte (clip-path) und bewegt sich beim Scrollen leicht gegen die Seite (Parallax). */
.about__photo { position: relative; max-width: 420px; margin: 0; }
.about__photo picture { position: relative; display: block; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #eceef0 0%, #f6f7f8 60%, #fff 100%); clip-path: inset(24% 20% 24% 20% round 18px); transition: clip-path 1.6s cubic-bezier(.22,1,.36,1); }
.about__photo.is-visible picture { clip-path: inset(0 0 0 0 round 18px); }
.about__photo img { position: relative; width: 100%; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); transform: translate3d(0, var(--py, 0px), 0) scale(1.32); transition: transform 1.6s cubic-bezier(.22,1,.36,1); will-change: transform; }
.about__photo.is-visible img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.about__photo.is-settled img { transition: transform .2s linear; }
.no-js .about__photo picture { clip-path: none; }
.about__photo figcaption { position: relative; margin-top: -54px; padding: 0 24px; font-size: .95rem; color: var(--muted); }
.about__photo figcaption strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.quals { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.quals li { padding-left: 30px; position: relative; }
.quals li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 10px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.parent-brand { margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--blue); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.parent-brand p:last-child { margin: 0; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* Netzwerk */
.network { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.network span, .network a { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: .92rem; }
/* Verlinkte Netzwerk-Partner: unterstrichen und mit Pfeil, damit sie als Link erkennbar sind */
.network a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.network a::after { content: " ↗"; content: " ↗" / ""; }
.network a:hover { background: #fff; color: var(--navy); }

/* Kontakt */
.contact { display: grid; gap: 36px; }
.contact__info { display: grid; gap: 16px; align-content: start; }
.contact-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
a.contact-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.contact-tile svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-tile strong { display: block; font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.contact-tile span { color: var(--muted); font-size: .97rem; }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px; }
.form__row { display: grid; gap: 16px; margin-bottom: 16px; }
.form label, .form legend { display: block; font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink); border: 1px solid #cfd6dc; border-radius: 8px; background: #fff; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice-group label, .consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; color: var(--ink); margin: 0; }
.choice-group input, .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.consent { display: grid; gap: 12px; margin: 8px 0 20px; font-size: .92rem; }
.form .hp { position: absolute; left: -9999px; }
.form__note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form__status { margin-top: 14px; font-weight: 600; }
.form__error { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: #b3261e; }
.form [aria-invalid="true"] { border-color: #b3261e; }
.form__status.ok { color: #1d7a46; } .form__status.err { color: #b3261e; }
@media (min-width: 640px) { .form { padding: 36px; } .form__row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact { grid-template-columns: 4fr 7fr; gap: 56px; } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 28px; }
.footer__grid h3 { color: #fff; font-size: 1rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
/* Das Logo-SVG hat oben und unten Leerraum; per negativem Abstand auf Höhe der Spaltenüberschriften */
.footer__logo { width: 270px; max-width: 100%; margin: -22px 0 4px -19px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Mobile Schnellkontakt-Leiste */
.quickbar { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); transform: translateY(140%); transition: transform .35s; }
.quickbar.is-visible { transform: none; }
.quickbar a { flex: 1; min-height: 46px; font-size: .9rem; padding: .5em .8em; }
@media (min-width: 1024px) { .quickbar { display: none; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: 96px; } }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Moderner Einblendeffekt für Karten: weich aus der Unschärfe nach oben, versetzt nacheinander */
.pop { opacity: 0; }
.pop.is-visible { opacity: 1; animation: pop-in 1s cubic-bezier(.22,1,.36,1) var(--d, 0s) backwards; }
.pop.is-visible .usp__icon { animation: icon-in .7s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0s) + .3s) backwards; }
.entry-card.pop.is-visible::before { animation: line-in .9s cubic-bezier(.22,1,.36,1) calc(var(--d, 0s) + .35s) backwards; }
.no-js .pop { opacity: 1; }
@keyframes pop-in { from { opacity: 0; transform: translateY(48px) scale(.96); filter: blur(8px); } }
@keyframes icon-in { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
@keyframes line-in { from { transform: scaleX(0); } }

/* Bei "Animationen reduzieren" (z. B. Windows-Animationseffekte aus) Bewegungen abschalten (Barrierefreiheit):
   kein Zoom im Header, kein Parallax, Inhalte erscheinen ohne Flug- und Unschärfe-Effekt.
   Der Bildwechsel im Header bleibt als ruhige Überblendung und lässt sich per Pause-Knopf anhalten. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide.is-active img { animation: none; transform: none; }
  .parallax__bg { transform: none !important; top: 0; height: 100%; }
  .reveal, .pop, .pop.is-visible { opacity: 1; transform: none; animation: none; transition: none; }
  .pop.is-visible .usp__icon, .entry-card.pop.is-visible::before { animation: none; }
  .about__photo picture { clip-path: none; transition: none; }
  .about__photo img, .about__photo.is-visible img { transform: none; transition: none; }
  .btn:hover, .usp:hover, .post-card:hover, .share__btn:hover, .share__btn:focus-visible { transform: none; }
}

/* Unterseiten (Impressum, Datenschutz) */
.page-plain .site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.page-plain .brand .logo-dark { opacity: 1; } .page-plain .brand .logo-light { opacity: 0; }
.page-plain .nav-toggle { color: var(--navy); }
.page-plain .main-nav ul a { color: var(--navy); }
.page-plain main { padding-top: calc(var(--header-h) + 40px); }
.todo { background: #fff4d6; padding: 0 .3em; border-radius: 3px; }
@media (min-width: 768px) { .hero__content { padding-bottom: 130px; } }

/* Seitenkopf der Unterseiten (z. B. Angebote) */
.page-hero .container { padding-top: calc(var(--header-h) + 72px); padding-bottom: 88px; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Cookie-Einwilligung (assets/js/consent.js) */
.cookiebar { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: 12px; max-width: 640px; margin: 0 auto; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(18,40,58,.22); }
.cookiebar[hidden] { display: none; }
.cookiebar:focus { outline: none; box-shadow: 0 20px 50px rgba(18,40,58,.22); }
.cookiebar__inner { padding: 20px 22px; font-size: .92rem; line-height: 1.55; color: var(--ink); }
.cookiebar__inner p { margin: 0 0 12px; }
.cookiebar__title { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--navy); }
.cookiebar__inner a { color: var(--blue-dark); }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookiebar__actions .btn { flex: 1 1 140px; min-height: 44px; }
body.has-consent .quickbar { transform: translateY(140%); }

/* Kleinerer Zusatz hinter Titeln, z. B. Diplom-Sachverständiger (DIA) */
.title-note { font-size: .82em; }

/* Impressum und Datenschutz: kleinere Überschriften für Fließtextseiten */
.page-plain main h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-plain main h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1.8em; }
.page-plain main h3 { font-size: 1.05rem; margin-top: 1.4em; }

/* Aktuelles: Artikelübersicht */
.post-list { display: grid; gap: 24px; }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.2rem; margin: 0 0 .5em; }
.post-card p { color: var(--muted); margin: 0 0 1em; }
.post-card__more { margin-top: auto; color: var(--blue-dark); font-family: var(--font-head); }

/* Aktuelles: Suche mit Vorschlägen */
.post-search { max-width: 640px; margin: 0 0 36px; }
.post-search__label { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.post-search__field { position: relative; }
.post-search__icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.post-search input { width: 100%; min-height: 52px; padding: 12px 52px 12px 50px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cfd6dc; border-radius: 999px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.post-search input::-webkit-search-cancel-button { display: none; }
.post-search input::placeholder { color: #80878d; }
.post-search input:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(35, 111, 159, .55); }
.post-search__clear { position: absolute; right: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.post-search__clear:hover, .post-search__clear:focus-visible { background: var(--bg-soft); color: var(--navy); }
.post-search__suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); animation: suggest-in .18s ease; }
.post-search__suggest li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.post-search__suggest li[aria-selected="true"], .post-search__suggest li:hover { background: var(--bg-soft); color: var(--navy); }
.post-search__suggest mark { background: none; color: var(--blue-dark); font-weight: 700; }
.post-search__count { flex: none; font-size: .82rem; color: var(--muted); }
.post-search__status { min-height: 1.4em; margin: 10px 0 0 4px; font-size: .92rem; color: var(--muted); }
.post-card h2 mark { background: rgba(52, 144, 204, .18); color: inherit; border-radius: 3px; padding: 0 .08em; }
@keyframes suggest-in { from { opacity: 0; transform: translateY(-6px); } }
.post-meta { font-size: .88rem; color: var(--muted); margin: 0 0 .8em; }

/* Aktuelles: einzelner Artikel */
.article { max-width: 46rem; margin: 0 auto; }
.article__back { display: inline-block; margin-bottom: 1.2em; color: var(--blue-dark); text-decoration: none; font-family: var(--font-head); font-size: .95rem; }
.article__image { width: 100%; height: auto; border-radius: var(--radius); margin: .4em 0 1.6em; display: block; }
.article .lead { font-size: 1.15rem; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1em; }
.article li { margin-bottom: .4em; }
.article__note { margin-top: 2em; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }
.article__sources { font-size: .9rem; color: var(--muted); }
.article__sources a { word-break: break-word; }
.share { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.share__label { margin: 0; font-family: var(--font-head); font-size: .95rem; color: var(--navy); }
.share .share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.share .share__list li { margin: 0; padding: 0; }
.share__list li::before { content: none; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-soft); color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.share__btn:hover, .share__btn:focus-visible { color: #fff; border-color: transparent; transform: translateY(-2px); text-decoration: none; }
.share__btn--mail:hover, .share__btn--mail:focus-visible { background: var(--blue); }
.share__btn--linkedin:hover, .share__btn--linkedin:focus-visible { background: #0a66c2; }
.share__btn--facebook:hover, .share__btn--facebook:focus-visible { background: #1877f2; }
.share__btn--whatsapp:hover, .share__btn--whatsapp:focus-visible { background: #25d366; }
.share__btn--x:hover, .share__btn--x:focus-visible { background: #000; }
.share__btn--link:hover, .share__btn--link:focus-visible, .share__btn--native:hover, .share__btn--native:focus-visible { background: var(--navy); }
.share__status { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--blue-dark); }
.article__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 1.2em; }
.article__top .article__back { margin-bottom: 0; }
.share--compact { margin: 0 0 0 auto; padding: 0; border: 0; position: relative; gap: 8px 10px; }
.share--compact .share__label { font-size: .85rem; color: var(--muted); }
.share--compact .share__list { gap: 6px; }
.share--compact .share__btn { width: 34px; height: 34px; }
.share--compact .share__btn svg { width: 16px; height: 16px; }
.share--compact .share__status { position: absolute; right: 0; top: 100%; margin-top: 4px; flex-basis: auto; min-height: 0; white-space: nowrap; font-size: .85rem; }
@media (max-width: 520px) { .share--compact { margin-left: 0; } }
.article__cta { margin-top: 2em; padding: 26px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.article__cta h2 { color: #fff; margin-top: 0 !important; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 14px 8px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; transition: background .2s, border-color .2s; }
.footer__social svg { flex: none; color: #fff; }
.site-footer a.footer__social:hover { background: #0a66c2; border-color: #0a66c2; text-decoration: none; }
.footer__social--fb { display: flex; width: fit-content; margin-top: 10px; }
.site-footer a.footer__social--fb:hover { background: #1877f2; border-color: #1877f2; }
.footer__social--ig { display: flex; width: fit-content; margin-top: 10px; }
.site-footer a.footer__social--ig:hover { background: #d62976; border-color: #d62976; }

/* Häufige Fragen */
.faq { max-width: 52rem; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary { cursor: pointer; list-style: none; position: relative; padding: 18px 52px 18px 20px; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--blue-dark); }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--blue-dark); }
.faq__item p { margin: 0; padding: 0 20px 20px; }

/* Aktuelles: Kategorie-Filter und Kategorien an den Karten */
.post-search { max-width: none; }
.post-search__row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; }
.post-search__main { flex: 0 1 560px; min-width: min(320px, 100%); }
.post-filter { flex: 0 1 260px; min-width: 200px; }
.post-filter select { width: 100%; min-height: 52px; padding: 12px 44px 12px 20px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23236f9f' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; border: 1px solid #cfd6dc; border-radius: 999px; cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.post-filter select:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(35, 111, 159, .55); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -.3em 0 .9em !important; }
.post-tags span:not(.visually-hidden) { font-size: .78rem; font-family: var(--font-head); letter-spacing: .02em; color: var(--blue-dark); background: #eaf3fa; border-radius: 999px; padding: 3px 10px; }
/* Aktuelles: "Folgen Sie uns" rechts neben Suche und Filter */
.post-follow { display: flex; align-items: center; gap: 14px; min-height: 52px; margin-left: auto; }
.post-follow__label { font-family: var(--font-head); font-size: .95rem; color: var(--navy); white-space: nowrap; }
.post-follow__list { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.post-follow__btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; transition: transform .2s, box-shadow .2s, filter .2s; }
.post-follow__btn--fb { background: #1877f2; }
.post-follow__btn--li { background: #0a66c2; }
.post-follow__btn:hover, .post-follow__btn:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(18, 40, 58, .25); filter: brightness(1.08); }
@media (max-width: 600px) { .post-filter { flex-basis: 100%; } .post-follow { margin-left: 0; } }
