/* ==========================================================
   Anwaltskanzlei Heiermann – Stylesheet
   CI-Farben: Weinrot #641725 / #800030
   ========================================================== */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-v23-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-v23-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/prata-v18-latin-regular.woff2") format("woff2"); }

:root {
  --ci: #641725;          /* Weinrot dunkel (CI) */
  --ci-hell: #800030;     /* Weinrot (CI, Links/Akzente) */
  --ci-sehr-hell: #f6eef0;
  --text: #2e3940;
  --text-leise: #5d666c;
  --grau: #f7f7f7;
  --linie: #e4e1df;
  --weiss: #fff;
  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --breite: 1200px;
  --radius: 4px;
  --schatten: 0 10px 30px rgba(46, 57, 64, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--sans); color: var(--text); background: var(--weiss); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ci-hell); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ci); }
:focus-visible { outline: 2px solid var(--ci-hell); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.wrap--schmal { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ci); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em;
  background: var(--ci); color: #fff; border: 1px solid var(--ci); border-radius: var(--radius);
  font: 700 .82rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; }
.knopf:hover { background: var(--ci-hell); border-color: var(--ci-hell); color: #fff; }
.knopf--hell { background: #fff; color: var(--ci); border-color: #fff; }
.knopf--hell:hover { background: var(--ci-sehr-hell); color: var(--ci); border-color: var(--ci-sehr-hell); }
.knopf--rand { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.knopf--rand:hover { background: #fff; color: var(--ci); border-color: #fff; }
.knopf--download::before { content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6V3zM4 19h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6V3zM4 19h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--ci); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.sprachen { display: flex; gap: .25rem; }
.sprachen a { font-weight: 400; padding: .2rem .5rem; border-radius: var(--radius); letter-spacing: .05em; opacity: .85; }
.sprachen a[aria-current] { background: rgba(255,255,255,.18); font-weight: 700; opacity: 1; }

.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linie);
  backdrop-filter: saturate(1.4) blur(8px); }
.kopf__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 92px; }
.logo img { width: 230px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__liste { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__punkt { position: relative; }
.nav__punkt > a { display: block; padding: .6rem .7rem; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.nav__punkt > a:hover, .nav__punkt > a[aria-current] { color: var(--ci-hell); }
.nav__punkt > a[aria-current] { box-shadow: inset 0 -2px 0 var(--ci-hell); }
.hat-unter > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-.2em) rotate(45deg); }
.nav__unter { position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: .5rem 0;
  background: #fff; border-top: 2px solid var(--ci-hell); box-shadow: var(--schatten); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .18s; }
.hat-unter:hover .nav__unter, .hat-unter:focus-within .nav__unter { opacity: 1; visibility: visible; transform: none; }
.nav__unter a { display: block; padding: .5rem 1.1rem; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav__unter a:hover { background: var(--grau); color: var(--ci-hell); }
.nav__anruf { white-space: nowrap; font-weight: 700; color: var(--ci); text-decoration: none; padding: .55rem .9rem;
  border: 1px solid var(--ci); border-radius: var(--radius); font-size: .9rem; }
.nav__anruf:hover { background: var(--ci); color: #fff; }
.menue-knopf { display: none; }

@media (max-width: 1100px) {
  .nav__anruf { display: none; }
}
@media (max-width: 960px) {
  .kopf__inner { min-height: 72px; }
  .logo img { width: 180px; }
  .menue-knopf { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 1px solid var(--linie);
    border-radius: var(--radius); padding: .55rem .8rem; font: 700 .85rem var(--sans); color: var(--text); cursor: pointer; }
  .menue-knopf__linien, .menue-knopf__linien::before, .menue-knopf__linien::after {
    display: block; width: 20px; height: 2px; background: var(--ci); position: relative; transition: .2s; }
  .menue-knopf__linien::before, .menue-knopf__linien::after { content: ""; position: absolute; left: 0; }
  .menue-knopf__linien::before { top: -6px; } .menue-knopf__linien::after { top: 6px; }
  .menue-knopf[aria-expanded="true"] .menue-knopf__linien { background: transparent; }
  .menue-knopf[aria-expanded="true"] .menue-knopf__linien::before { top: 0; transform: rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-knopf__linien::after { top: 0; transform: rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 3px solid var(--ci); box-shadow: var(--schatten); max-height: calc(100vh - 110px); overflow: auto; }
  .nav.ist-offen { display: flex; }
  .nav__liste { flex-direction: column; padding: .5rem 1.25rem; }
  .nav__punkt > a { padding: .8rem 0; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
  .nav__punkt > a[aria-current] { box-shadow: none; }
  .hat-unter > a::after { display: none; }
  .nav__unter { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; }
  .nav__unter a { padding: .55rem 0; border-bottom: 1px solid var(--linie); }
  .nav__anruf { display: block; text-align: center; margin: .8rem 1.25rem 1.25rem; padding: .9rem; }
}
@media (max-width: 520px) {
  .topbar__notfall { font-size: .78rem; }
}

/* ---------- Seitenkopf mit Bild ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: max(360px, min(48vw, 75vh)); color: #fff; overflow: hidden; background: var(--text); isolation: isolate; }
.hero__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; filter: grayscale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(46,57,64,.82) 0%, rgba(46,57,64,.45) 55%, rgba(46,57,64,.15) 100%); }
.hero__inhalt { padding: 4rem 0 3.5rem; }
.hero__titel { color: #fff; margin: 0 0 .5rem; max-width: 18ch; }
.hero__titel::after { content: ""; display: block; width: 64px; height: 3px; background: var(--ci-hell); margin-top: 1.1rem; box-shadow: 0 0 0 0 transparent; }
.hero__zeile { margin: .2rem 0 0; font-size: 1.05rem; letter-spacing: .02em; opacity: .95; }
.hero__zeile--text { max-width: 60ch; margin: 1rem 0 1.5rem; }
.hero--start { min-height: clamp(620px, 70vh, 680px); }
.hero--start .hero__titel { max-width: 22ch; }
.hero--klein { min-height: max(320px, min(40vw, 65vh)); }

/* Startseite: wechselnde Bilder */
.slider { position: absolute; inset: 0; z-index: -2; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1); opacity: 0;
  transition: opacity 1.6s ease; }
.slider img.ist-aktiv { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slider img { transition: none; } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.abschnitt--grau { background: var(--grau); }
.abschnitt--eng { padding: clamp(2rem, 4vw, 3rem) 0; }
.abschnitt-titel { position: relative; padding-bottom: .9rem; margin-bottom: 2rem; }
.abschnitt-titel::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--ci-hell); }
.zentriert { text-align: center; }
.zentriert .abschnitt-titel::after { left: 50%; transform: translateX(-50%); }
.untertitel { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ci-hell); margin-bottom: .6rem; }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.zweispaltig--gleich { grid-template-columns: 1fr 1fr; }
.zweispaltig--seite { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.zweispaltig__bild { position: sticky; top: 120px; display: grid; gap: 1.25rem; }
.zweispaltig__bild img { width: 100%; border-radius: var(--radius); filter: grayscale(1); box-shadow: var(--schatten); }
@media (max-width: 860px) {
  .zweispaltig, .zweispaltig--gleich, .zweispaltig--seite { grid-template-columns: 1fr; }
  .zweispaltig__bild { position: static; max-width: 520px; }
}

.text { max-width: 75ch; }
.text h3 { margin-top: 0; }
.text h3 + h3 { margin-top: -.4em; color: var(--ci-hell); }
.text ul { padding-left: 1.2em; }
.text li { margin-bottom: .35em; }
.text li::marker { color: var(--ci-hell); }
.lead { font-size: 1.15rem; line-height: 1.75; color: var(--text); }
.leise { color: var(--text-leise); }
.zitat { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.5; text-align: center; max-width: 30em; margin: 0 auto;
  color: var(--ci); }
.zitat::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--ci-hell); opacity: .35; }

/* ---------- Karten / Personen ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.karte { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); display: flex; flex-direction: column;
  text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
a.karte:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(46,57,64,.14); color: var(--text); }
.karte__bild { aspect-ratio: 1; object-fit: cover; width: 100%; filter: grayscale(1); }
.karte__text { padding: 1.3rem 1.4rem 1.5rem; border-top: 3px solid var(--ci-hell); }
.karte__text p { margin: 0; }
.karte__name { font-family: var(--serif); font-size: 1.3rem; color: var(--text); }

/* Handy: Kacheln kompakt – rundes Foto links, Text rechts (v2) */
@media (max-width: 640px) {
  .karten { grid-template-columns: 1fr; gap: .8rem; }
  .karte { flex-direction: row; align-items: center; gap: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--ci-hell); }
  .karte__bild { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; aspect-ratio: auto; }
  .karte__text { padding: 0; border-top: 0; font-size: .95rem; line-height: 1.5; }
  .karte__name { font-size: 1.15rem; }
  a.karte:hover { transform: none; }
}

.notfall { background: var(--ci); color: #fff; padding: 2rem; border-radius: var(--radius); }
.notfall h2 { color: #fff; font-size: 1.6rem; margin-bottom: .3rem; }
.notfall p { margin: 0; }
.notfall a { color: #fff; font-size: 1.3rem; font-weight: 700; text-decoration: none; display: inline-block; margin-top: .5rem; white-space: nowrap; }
.notfall a:hover { text-decoration: underline; }

.wortwolke { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline; margin: 0; padding: 0; list-style: none; }
.wortwolke a { text-decoration: none; color: var(--text); line-height: 1.4; }
.wortwolke a:hover { color: var(--ci-hell); text-decoration: underline; }
.w1 { font-size: 1.25rem; font-family: var(--serif); color: var(--ci) !important; }
.w2 { font-size: 1rem; }
.w3 { font-size: 1.1rem; }
.w4 { font-size: .9rem; color: var(--text-leise) !important; }
.w5 { font-size: .85rem; color: var(--text-leise) !important; }

.siegel { margin-top: 2rem; }
.extern-platzhalter { border: 1px dashed var(--linie); border-radius: var(--radius); padding: 1.2rem; text-align: center; font-size: .9rem; background: #fff; }
.extern-platzhalter p { margin: .6rem 0 0; color: var(--text-leise); font-size: .8rem; }

/* Sprungmarken-Navigation (Rechtsgebiete) */
.sprungnav { position: sticky; top: 92px; z-index: 10; background: #fff; border-bottom: 1px solid var(--linie); }
.sprungnav ul { display: flex; gap: .3rem; list-style: none; margin: 0 auto; padding: .6rem 0; overflow-x: auto; scrollbar-width: none; }
.sprungnav a { display: block; white-space: nowrap; padding: .45rem .9rem; border-radius: 99px; text-decoration: none; font-size: .9rem; font-weight: 700; color: var(--text); background: var(--grau); }
.sprungnav a:hover { background: var(--ci); color: #fff; }
@media (max-width: 960px) { .sprungnav { top: 72px; } }

/* Listen mit Mitgliedschaften */
.liste-haken { list-style: none; padding: 0 !important; margin: 0 0 1.2em; }
.liste-haken li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.liste-haken li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; background: var(--ci-hell); transform: rotate(45deg); }

/* Kontaktkacheln */
.kontakt-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.kontakt-kachel { background: #fff; border-left: 3px solid var(--ci-hell); padding: 1.2rem 1.4rem; box-shadow: var(--schatten); }
.kontakt-kachel p { margin: 0; }
.kontakt-kachel__titel { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); margin-bottom: .3rem !important; }
.kontakt-kachel a { font-weight: 700; text-decoration: none; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }

/* Lexikon */
.lexikon-eintrag { padding: 2rem 0; border-top: 1px solid var(--linie); }
.lexikon-eintrag h2 { font-size: 1.5rem; }
.lexikon-eintrag .nach-oben { font-size: .85rem; text-decoration: none; }
.buchstaben { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.buchstaben a { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--linie); text-decoration: none; font-weight: 700; color: var(--text); }
.buchstaben a:hover { background: var(--ci); color: #fff; border-color: var(--ci); }

/* Rechtstexte */
.rechtstext { font-size: 1rem; }
.rechtstext h2 { font-size: 1.5rem; margin-top: 2rem; }
.rechtstext h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; margin-top: 2rem; }

/* ---------- Blog ---------- */
.beitraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.beitrag-karte { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--schatten);
  overflow: hidden; transition: transform .2s, box-shadow .2s; }
.beitrag-karte:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(46,57,64,.14); }
.beitrag-karte__bild { aspect-ratio: 16 / 9; background: var(--ci); display: grid; place-items: center; overflow: hidden; }
.beitrag-karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.beitrag-karte__initial { font-family: var(--serif); font-size: 3.5rem; color: rgba(255,255,255,.85); }
.beitrag-karte__text { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.beitrag-karte__text h2 { font-size: 1.25rem; margin: 0; }
.beitrag-karte__text h2 a { color: var(--text); text-decoration: none; }
.beitrag-karte__text h2 a::after { content: ""; position: absolute; inset: 0; }
.beitrag-karte { position: relative; }
.beitrag-karte__text h2 a:hover { color: var(--ci-hell); }
.beitrag-karte__meta { font-size: .85rem; color: var(--text-leise); margin: 0; }
.beitrag-karte__auszug { font-size: .95rem; margin: 0; color: var(--text-leise); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.beitrag-karte__mehr { margin-top: auto; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ci-hell); }
.blaettern { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; }
.blaettern a { font-weight: 700; text-decoration: none; }

.artikel { font-size: 1.08rem; }
.artikel__meta { color: var(--text-leise); font-size: .95rem; margin-bottom: 2rem; }
.artikel__inhalt h2 { font-size: 1.6rem; margin-top: 2rem; }
.artikel__inhalt h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.artikel__inhalt img { border-radius: var(--radius); margin: 1.5rem 0; }
.artikel__inhalt figure { margin: 1.5rem 0; }
.artikel__inhalt figcaption { font-size: .85rem; color: var(--text-leise); margin-top: .4rem; }
.artikel__inhalt blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.4rem; border-left: 3px solid var(--ci-hell); font-family: var(--serif); font-size: 1.2rem; }
.artikel__inhalt .table-wrap { overflow-x: auto; }
.artikel__inhalt table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.artikel__inhalt th, .artikel__inhalt td { border: 1px solid var(--linie); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.artikel__inhalt th p, .artikel__inhalt td p { margin: 0; }
.artikel__autor { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); display: flex; gap: 1rem; align-items: center; }
.artikel__autor img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.artikel__autor p { margin: 0; }
.seitenleiste { display: grid; gap: 1.5rem; position: sticky; top: 120px; }
.seitenkasten { background: var(--grau); padding: 1.5rem; border-radius: var(--radius); }
.seitenkasten__titel { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1rem; }
.seitenkasten ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.seitenkasten li a { text-decoration: none; color: var(--text); font-weight: 700; line-height: 1.4; display: block; }
.seitenkasten li a:hover { color: var(--ci-hell); }
.seitenkasten small { display: block; font-weight: 400; color: var(--text-leise); }
.beitrag-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.beitrag-nav a { display: block; padding: 1.2rem; background: var(--grau); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.beitrag-nav a:hover { background: var(--ci-sehr-hell); }
.beitrag-nav span { display: block; font-size: .8rem; color: var(--ci-hell); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.beitrag-nav__weiter { text-align: right; grid-column: 2; }
@media (max-width: 860px) { .seitenleiste { position: static; } .beitrag-nav { grid-template-columns: 1fr; } .beitrag-nav__weiter { grid-column: auto; } }

/* ---------- Kontakt-Aufruf vor der Fußzeile ---------- */
.cta { position: relative; isolation: isolate; color: #fff; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; }
.cta__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(100, 23, 37, .88); }
.cta h2 { color: #fff; }
.cta p { font-size: 1.15rem; }
.cta__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Fußzeile ---------- */
.fuss { background: #252e34; color: rgba(255,255,255,.78); font-size: .95rem; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.fuss__titel { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.fuss__titel--abstand { margin-top: 1.8rem; }
.fuss__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fuss__liste--zeile { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fuss__notfall { border-left: 3px solid var(--ci-hell); padding-left: .9rem; }
.fuss__notfall a { font-weight: 700; }
.fuss .link-knopf { color: #fff; text-decoration: none; }
.fuss .link-knopf:hover { text-decoration: underline; }
.fuss__unten { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .85rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .fuss__spalten { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Cookie-Hinweis ---------- */
.consent { position: fixed; inset: auto 1rem 1rem auto; z-index: 90; max-width: 440px; }
.consent__box { background: #fff; border-top: 4px solid var(--ci); box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 1.4rem 1.5rem; border-radius: var(--radius); font-size: .92rem; }
.consent__titel { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }
.consent__knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.consent__knoepfe .knopf { flex: 1 1 auto; }
@media (max-width: 520px) { .consent { inset: auto .5rem .5rem .5rem; max-width: none; } }

/* ---------- Downloads ---------- */
.download-liste { display: grid; gap: 1rem; margin: 1.5rem 0; }
.download { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fff;
  padding: 1.1rem 1.3rem; border-radius: var(--radius); box-shadow: var(--schatten); border-left: 3px solid var(--ci-hell); }
.download p { margin: 0; }
.download strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.download small { color: var(--text-leise); }

@media print {
  .topbar, .kopf, .cta, .fuss, .consent, .sprungnav { display: none !important; }
  .hero { min-height: 0; color: var(--text); background: none; }
  .hero::after, .hero__bild, .slider { display: none; }
  .hero__titel { color: var(--text); }
}

/* Ergänzungen */
.wortwolke--zentriert { justify-content: center; max-width: 1000px; margin: 0 auto; gap: .5rem 1.4rem; }
.wortwolke--zentriert .w1 { font-size: 1.6rem; }
.wortwolke--zentriert .w2 { font-size: 1.15rem; }
.wortwolke--zentriert .w3 { font-size: 1.3rem; font-family: var(--serif); }
.wortwolke--zentriert .w4 { font-size: 1rem; }
.wortwolke--zentriert .w5 { font-size: .95rem; }
.knopf--rand-dunkel { background: transparent; color: var(--ci); border-color: var(--ci); }
.knopf--rand-dunkel:hover { background: var(--ci); color: #fff; }
.beitrag-karte--ohne-bild { border-top: 4px solid var(--ci); }
.beitrag-karte--ohne-bild .beitrag-karte__text { padding-top: 1.6rem; }
.hero--farbig .hero__bild { filter: none; }
.buchstaben--zentriert { justify-content: center; margin-left: auto; margin-right: auto; max-width: 1000px; }

/* Rechtsgebiete (DE/EN/IT): Überschrift UND Bild bleiben beim Scrollen stehen,
   bis der Text des Abschnitts vorbei ist (nur auf breiten Bildschirmen) – v10 */
@media (min-width: 861px) {
  .seite-rechtsgebiete { --sticky-oben: 152px; /* Kopfzeile 93px + Sprungleiste 59px */ }
  .seite-rechtsgebiete .abschnitt > .wrap > .abschnitt-titel {
    position: sticky; top: var(--sticky-oben); z-index: 5;
    margin-top: -1rem; padding-top: 1rem; background: #fff;
  }
  .seite-rechtsgebiete .abschnitt--grau > .wrap > .abschnitt-titel { background: var(--grau); }
  .seite-rechtsgebiete .zweispaltig__bild { top: calc(var(--sticky-oben) + 74px + 1.5rem); }
}
@media (min-width: 861px) { html:has(.seite-rechtsgebiete) { scroll-padding-top: 152px; } }
@media (min-width: 861px) and (max-width: 960px) {
  .seite-rechtsgebiete { --sticky-oben: 131px; } /* kleinere Kopfzeile 72px + Sprungleiste 59px */
  html:has(.seite-rechtsgebiete) { scroll-padding-top: 131px; }
}

/* Kontaktseite: Handy mit durchlaufenden Seiten der Website (v13; v11/v12: iPad) */
.hero--geraet::after { background: linear-gradient(90deg, rgba(46,57,64,.78) 0%, rgba(46,57,64,.35) 45%, rgba(46,57,64,0) 70%); }
.geraet-szene { position: absolute; left: 0; top: 0; width: 1920px; height: 1081px; transform-origin: 0 0; z-index: -2; }
.geraet-szene__bild { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.geraet-display {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; overflow: hidden; background: #111; border-radius: 52px;
  transform-origin: 0 0;
  /* bildet den Handy-Bildschirm (390 × 844) exakt auf die vier Bildschirmecken im Foto ab */
  transform: matrix3d(0.45182845, -0.057562422, 0, -0.000089609335, 0.027569062, 0.64829011, 0, 0.000025610548, 0, 0, 1, 0, 1171, 311, 0, 1);
}
.geraet-display img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: translateX(100%); }
.geraet-display img.ist-aktiv { transform: none; z-index: 2; }
.geraet-display img.ist-rein { z-index: 3; animation: geraet-rein .7s ease-in-out both; }
.geraet-display img.ist-raus { z-index: 2; animation: geraet-raus .7s ease-in-out both; }
/* Dynamic Island des Handys liegt über den Bildschirmfotos */
.geraet-display__insel { position: absolute; z-index: 4; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #050505; }
@keyframes geraet-rein { from { transform: translateX(100%); } to { transform: none; } }
@keyframes geraet-raus { from { transform: none; } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .geraet-display img.ist-rein, .geraet-display img.ist-raus { animation: none; } }
/* Wenn Handy und Text nebeneinander nicht passen, setzt site.js "ist-gestapelt":
   Text oben, Handy darunter (seit v12). Den Platz für das Handy rechnet site.js aus. */
.hero--geraet.ist-gestapelt { align-items: start; min-height: 0; }
.hero--geraet.ist-gestapelt .hero__inhalt { padding: 2.5rem 0 calc(var(--geraet-platz, 90vw) + 1.25rem); }
.hero--geraet.ist-gestapelt::after { background: linear-gradient(180deg, rgba(46,57,64,.85) 0%, rgba(46,57,64,.6) 40%, rgba(46,57,64,0) 62%); }
.hero--geraet.ist-gestapelt .geraet-szene__bild { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
