/* ===========================================================
   Rechtsanwälte Rottmann — Designsystem
   Keine externen Ressourcen: keine Google Fonts, keine CDNs.
   Schriften kommen aus dem System, damit beim Aufruf der Seite
   keine Daten an Dritte fließen.
   =========================================================== */

:root {
  /* Markenfarbe, aus dem Logo entnommen */
  --marke:          #2778BC;
  --marke-dunkel:   #1C5C93;
  --marke-tief:     #143A5C;
  --marke-hell:     #EAF3FA;
  --marke-hauch:    #F5F9FD;

  --text:           #1B2733;
  --text-leise:     #55636F;
  --text-zart:      #7C8894;

  --flaeche:        #FFFFFF;
  --flaeche-warm:   #F7F9FB;
  --linie:          #E3E9EF;

  --akzent:         #B07A2F;   /* warmes Bronze für Zierelemente */

  --breite:         min(1140px, 100% - 2.5rem);
  --breite-schmal:  min(760px, 100% - 2.5rem);
  --radius:         4px;
  --schatten:       0 1px 3px rgba(20, 58, 92, .07), 0 8px 24px rgba(20, 58, 92, .06);
  --schatten-tief:  0 2px 6px rgba(20, 58, 92, .09), 0 16px 40px rgba(20, 58, 92, .10);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--flaeche);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--marke-dunkel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--marke-tief); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  color: var(--marke-tief);
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .55vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: .4em; }
strong { color: var(--marke-tief); }

.behaelter { width: var(--breite); margin-inline: auto; }
.behaelter-schmal { width: var(--breite-schmal); margin-inline: auto; }

/* ---------- Sprungmarke für Tastatur / Screenreader ---------- */
.sprung {
  position: absolute; left: -9999px;
  background: var(--marke-tief); color: #fff;
  padding: .8rem 1.2rem; z-index: 999; border-radius: var(--radius);
}
.sprung:focus { left: 1rem; top: 1rem; }

/* =================== Kopfbereich =================== */
.balken {
  background: var(--marke-tief);
  color: #C9DCEC;
  font-size: .875rem;
}
.balken .behaelter {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  align-items: center; justify-content: flex-end;
  min-height: 40px; padding-block: .35rem;
}
.balken a { color: #fff; text-decoration: none; font-weight: 500; }
.balken a:hover { text-decoration: underline; }
.balken span { display: inline-flex; align-items: center; gap: .45rem; }

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .behaelter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 82px;
}
.logo img { width: clamp(200px, 26vw, 268px); }

.navi ul {
  display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.navi a {
  display: block; padding: .55rem .8rem;
  font-size: .95rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-radius: var(--radius);
}
.navi a:hover { background: var(--marke-hell); color: var(--marke-dunkel); }
.navi a[aria-current="page"] {
  color: var(--marke-dunkel);
  box-shadow: inset 0 -2px 0 var(--marke);
}

.navi-schalter {
  display: none; background: none; border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .5rem .7rem; cursor: pointer;
  color: var(--marke-tief);
}
.navi-schalter svg { display: block; }

/* =================== Titelbereich =================== */
.buehne {
  position: relative;
  background: var(--marke-tief);
  color: #fff;
  overflow: hidden;
}
.buehne::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,58,92,.94) 0%, rgba(20,58,92,.78) 48%, rgba(20,58,92,.42) 100%);
}
.buehne img.hintergrund {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.buehne .inhalt {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  max-width: 42rem;
}
.buehne h1 { color: #fff; margin-bottom: .5em; }
.buehne p.vorspann {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem);
  color: #D6E5F2; margin-bottom: 2rem;
}
.buehne .augenbraue {
  display: inline-block; margin-bottom: 1.1rem;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: #9CC3E2; font-weight: 600;
}

.kopfzeile-seite {
  background: var(--marke-hauch);
  border-bottom: 1px solid var(--linie);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}
.kopfzeile-seite h1 { margin-bottom: .2em; }
.kopfzeile-seite .pfad { font-size: .875rem; color: var(--text-zart); }
.kopfzeile-seite .pfad a { color: var(--text-leise); text-decoration: none; }
.kopfzeile-seite .pfad a:hover { text-decoration: underline; }

/* =================== Schaltflächen =================== */
.knopf {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.knopf:hover { transform: translateY(-1px); }
.knopf-voll { background: var(--marke); color: #fff; box-shadow: 0 2px 10px rgba(39,120,188,.32); }
.knopf-voll:hover { background: var(--marke-dunkel); color: #fff; }
.knopf-rand { border-color: rgba(255,255,255,.45); color: #fff; }
.knopf-rand:hover { background: rgba(255,255,255,.12); color: #fff; }
.knopf-leise { border-color: var(--linie); color: var(--marke-dunkel); background: #fff; }
.knopf-leise:hover { border-color: var(--marke); background: var(--marke-hauch); }

.knopf-gruppe { display: flex; flex-wrap: wrap; gap: .8rem; }

/* =================== Abschnitte =================== */
.abschnitt { padding-block: clamp(3rem, 7vw, 5.5rem); }
.abschnitt-warm { background: var(--flaeche-warm); }
.abschnitt-marke { background: var(--marke-hauch); }

.abschnitt-kopf { max-width: 44rem; margin-bottom: 2.8rem; }
.abschnitt-kopf.mittig { margin-inline: auto; text-align: center; }
.abschnitt-kopf .augenbraue {
  display: block; margin-bottom: .7rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--marke); font-weight: 700;
}
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.08rem; margin-bottom: 0; }

/* =================== Karten =================== */
.raster { display: grid; gap: 1.5rem; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
a.karte { text-decoration: none; color: inherit; }
a.karte:hover {
  box-shadow: var(--schatten-tief);
  transform: translateY(-3px);
  border-color: #C9DDEE;
}
.karte h3 { margin-bottom: .45em; }
.karte p { color: var(--text-leise); font-size: .985rem; margin-bottom: 0; }
.karte .weiter {
  margin-top: 1.2rem; font-weight: 600; font-size: .93rem;
  color: var(--marke-dunkel); display: inline-flex; align-items: center; gap: .4rem;
}
a.karte:hover .weiter { gap: .65rem; }
.karte .weiter svg { transition: transform .18s ease; }

.karte-symbol {
  width: 46px; height: 46px; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  background: var(--marke-hell); border-radius: var(--radius);
  color: var(--marke-dunkel);
}

/* =================== Zwei Spalten =================== */
.zweispalt {
  display: grid; gap: clamp(2rem, 5vw, 3.8rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .zweispalt { grid-template-columns: 1fr 1fr; }
  .zweispalt.schmal-links { grid-template-columns: 5fr 7fr; }
  .zweispalt.schmal-rechts { grid-template-columns: 7fr 5fr; }
}
.zweispalt img { border-radius: var(--radius); box-shadow: var(--schatten); }

/* =================== Kontaktbereich =================== */
.kontakt-band { background: var(--marke-tief); color: #D6E5F2; }
.kontakt-band h2 { color: #fff; }
.kontakt-band a { color: #fff; }
.kontakt-band .raster { gap: 2.4rem; }
.kontakt-block h3 { color: #fff; font-size: 1.08rem; margin-bottom: .5em; }
.kontakt-block p { margin-bottom: .3em; }

.gross-telefon {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: #fff; text-decoration: none; font-weight: 600; display: inline-block;
}
.gross-telefon:hover { color: #fff; text-decoration: underline; }

/* =================== Bewertungen =================== */
.bewertungen { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.zustimmung {
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--flaeche); padding: 2rem 1.8rem; text-align: center;
}
.zustimmung h3 { font-size: 1.15rem; margin-bottom: .5em; }
.zustimmung p { color: var(--text-leise); font-size: .93rem; margin-bottom: 1.3rem; }
.zustimmung .hinweis {
  font-size: .82rem; color: var(--text-zart); margin-top: 1rem; margin-bottom: 0;
}

/* =================== Formular =================== */
.formular { display: grid; gap: 1.15rem; }
.feld { display: grid; gap: .4rem; }
.feld label { font-weight: 600; font-size: .93rem; color: var(--marke-tief); }
.feld input, .feld textarea, .feld select {
  font: inherit; font-size: 1rem;
  padding: .78rem .9rem;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: #fff; color: var(--text); width: 100%;
}
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--marke);
  box-shadow: 0 0 0 3px rgba(39,120,188,.15);
}
.feld .hilfe { font-size: .84rem; color: var(--text-zart); }

/* =================== Dokumentenliste =================== */
.dokumente { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.dokumente a {
  display: flex; align-items: center; gap: .95rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dokumente a:hover { border-color: var(--marke); box-shadow: var(--schatten); }
.dokumente .art {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: .3rem .5rem; border-radius: 3px;
  background: var(--marke-hell); color: var(--marke-dunkel);
}
.dokumente .name { font-weight: 500; }

/* =================== Fußbereich =================== */
.fuss {
  background: #10283F; color: #93AABF;
  padding-block: 3.5rem 2rem; font-size: .93rem;
}
.fuss h4 {
  color: #fff; font-family: var(--sans); font-size: .8rem;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.fuss a { color: #C6D7E6; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.fuss .raster { gap: 2.5rem; }
.fuss-unten {
  margin-top: 2.8rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem;
  justify-content: space-between; align-items: center;
  font-size: .87rem; color: #7C93A8;
}
.fuss-unten nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* =================== Fließtext aus dem Bestand =================== */
.fliesstext { font-size: 1.075rem; }
.fliesstext h2 { margin-top: 2.2em; }
.fliesstext h3 { margin-top: 1.8em; }
.fliesstext h2:first-child, .fliesstext h3:first-child { margin-top: 0; }
.fliesstext img { border-radius: var(--radius); margin-block: 1.8rem; }
.fliesstext a { color: var(--marke-dunkel); }
.fliesstext table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.fliesstext td, .fliesstext th {
  padding: .7rem .9rem; border-bottom: 1px solid var(--linie); text-align: left;
}
.fliesstext blockquote {
  margin: 1.8rem 0; padding: .3rem 0 .3rem 1.5rem;
  border-left: 3px solid var(--marke); color: var(--text-leise); font-style: italic;
}

/* =================== Hinweiskasten =================== */
.hinweis-kasten {
  border: 1px solid var(--linie); border-left: 3px solid var(--marke);
  background: var(--marke-hauch); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-block: 1.8rem;
}
.hinweis-kasten :last-child { margin-bottom: 0; }

/* =================== Mobil =================== */
@media (max-width: 900px) {
  .navi-schalter { display: block; }
  .navi {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten); display: none;
  }
  .navi[data-offen="true"] { display: block; }
  .navi ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.1rem; }
  .navi a { padding: .85rem .4rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .navi li:last-child a { border-bottom: none; }
  .balken .behaelter { justify-content: center; gap: 1rem; font-size: .82rem; }
}

@media print {
  .kopf, .balken, .fuss, .knopf-gruppe, .navi-schalter { display: none; }
  body { font-size: 11pt; }
}

/* =================== Einwilligungsbanner =================== */
.consent-huelle {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(16, 40, 63, .55);
  display: none; align-items: flex-end; justify-content: center;
  padding: 1rem;
}
.consent-huelle[data-sichtbar="true"] { display: flex; }
@media (min-width: 720px) { .consent-huelle { align-items: center; } }

.consent {
  background: #fff; border-radius: 6px;
  box-shadow: 0 20px 60px rgba(16, 40, 63, .28);
  max-width: 560px; width: 100%;
  padding: 1.9rem 1.8rem 1.6rem;
  max-height: 90vh; overflow-y: auto;
}
.consent h2 { font-size: 1.3rem; margin-bottom: .5em; }
.consent p { font-size: .96rem; color: var(--text-leise); margin-bottom: 1rem; }
.consent p:last-of-type { margin-bottom: 1.5rem; }
.consent .dienste {
  background: var(--marke-hauch); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: .95rem 1.1rem; margin-bottom: 1.4rem;
  font-size: .9rem; color: var(--text-leise);
}
.consent .dienste strong { display: block; color: var(--marke-tief); margin-bottom: .25rem; }

/* Beide Schaltflächen gleich gewichtet — Ablehnen darf nicht schwerer fallen */
.consent-knoepfe { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .consent-knoepfe { grid-template-columns: 1fr 1fr; } }
.consent-knoepfe .knopf { justify-content: center; width: 100%; padding-inline: 1rem; }

.consent-fuss {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--linie);
  font-size: .84rem; color: var(--text-zart);
  display: flex; gap: 1.2rem; flex-wrap: wrap;
}
.consent-fuss a { color: var(--text-leise); }

/* Schalter im Fußbereich zum Widerruf */
.consent-neu {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: #C6D7E6; text-decoration: none;
}
.consent-neu:hover { color: #fff; text-decoration: underline; }

/* =================== Freistehende Bilder im Fließtext =================== */
.fliesstext .bild { margin: 2.2rem 0; }
.fliesstext .bild img {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  width: 100%;
}
.fliesstext .bild figcaption {
  margin-top: .7rem; font-size: .88rem; color: var(--text-zart);
}

/* Kompakte Zeitenangabe statt vieler Einzelabsätze */
.zeiten {
  display: grid; gap: .1rem .5rem; margin: 0 0 1.6rem;
  grid-template-columns: auto 1fr;
}
.zeiten dt { font-weight: 600; color: var(--marke-tief); }
.zeiten dd { margin: 0; color: var(--text); }
@media (max-width: 520px) {
  .zeiten { grid-template-columns: 1fr; }
  .zeiten dd { margin-bottom: .7rem; }
}

/* =================== Zeitenübersicht =================== */
.fliesstext dl {
  display: grid; gap: .35rem 1.4rem; margin: 0 0 1.6rem;
  grid-template-columns: auto 1fr; align-items: baseline;
}
.fliesstext dt { font-weight: 600; color: var(--marke-tief); }
.fliesstext dd { margin: 0; }
@media (max-width: 560px) {
  .fliesstext dl { grid-template-columns: 1fr; gap: .1rem; }
  .fliesstext dd { margin-bottom: .9rem; }
}

/* =================== Lange Aufzählungen mehrspaltig =================== */
.fliesstext ul.spaltig {
  columns: 2; column-gap: 2.5rem;
  padding-left: 1.2rem;
}
.fliesstext ul.spaltig li { break-inside: avoid; }
@media (max-width: 620px) { .fliesstext ul.spaltig { columns: 1; } }

/* =================== Text mit Beistellbild =================== */
.zweispalt.textbild { align-items: start; }
.zweispalt.textbild .beistell { position: sticky; top: 110px; }
.zweispalt.textbild .beistell .bild { margin: 0; }
@media (max-width: 859px) {
  .zweispalt.textbild .beistell { position: static; }
  .zweispalt.textbild .beistell .bild { margin-top: 2rem; }
}

/* =================== Kontaktblock je Rechtsgebiet =================== */
.gebiet-kontakt {
  margin-top: 3rem; padding: 1.8rem;
  background: var(--marke-hauch);
  border: 1px solid var(--linie); border-left: 3px solid var(--marke);
  border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between;
}
.gebiet-kontakt h3 { margin-bottom: .35em; font-size: 1.15rem; }
.gebiet-kontakt p { margin: 0; color: var(--text-leise); font-size: .96rem; max-width: 30rem; }
