/* PAE Capital – Fachwerk in Lich */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #062249;
  --gold: #ce9913;
  --gold-hover: #b98810;
  --putz: #fbfbf8;
  --blau: #e5f1fb;
  --text: #062249;
  --text-leise: #3c4d66;

  --balken: 10px;
  --gefach-pad: clamp(1.5rem, 3vw, 3rem);
  --seite: 1520px;

  --schrift: "Jost", "Futura", "Century Gothic", sans-serif;
  --h1: clamp(2.4rem, 4.2vw, 4.1rem);
  --h2: clamp(2rem, 3.4vw, 3.4rem);
  --h3: clamp(1.35rem, 1.8vw, 1.7rem);
  --text-gross: clamp(1.1rem, 1.35vw, 1.3rem);

  --hero-hoehe: 380px;
  --wappen-breite: 300px;
  --hero-zeile-1: minmax(var(--hero-hoehe), auto);
  --hero-zeile-2: minmax(200px, auto);
}

@media (max-width: 700px) {
  :root { --balken: 6px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--putz);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--navy); color: var(--putz); }
html { scrollbar-color: var(--navy) var(--putz); }
input[type=radio], input[type=checkbox] { accent-color: var(--navy); }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.gefach--navy :focus-visible, .fachwerk--negativ :focus-visible, .knopf--gold:focus-visible { outline-color: var(--gold); }
.fachwerk--negativ .knopf--gold:focus-visible { outline-color: var(--putz); }

h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: 0; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--navy); color: var(--putz); padding: 0.75rem 1rem;
}
.skip:focus { top: 1rem; }

/* Kopf */

.kopf {
  max-width: var(--seite);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
}
.kopf__logo img { width: auto; height: 68px; }
.kopf__nav { margin-left: auto; }
.kopf__nav ul { list-style: none; display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); margin: 0; padding: 0; align-items: center; }
.kopf__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.kopf__nav a:hover, .kopf__nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.kopf__menu { display: none; }
.untermenue { position: relative; }
.untermenue__knopf {
  font: inherit; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.4rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.untermenue__knopf svg { width: 16px; height: 16px; transition: transform 160ms ease-out; }
.untermenue__knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.untermenue.ist-aktiv .untermenue__knopf, .untermenue__knopf:hover { border-bottom-color: var(--navy); }
.untermenue ul {
  display: none; position: absolute; top: calc(100% + 0.6rem); left: -1rem; z-index: 30;
  list-style: none; margin: 0; padding: 0; min-width: 15rem;
  background: var(--putz); border: var(--balken) solid var(--navy);
}
.kopf__nav .untermenue ul a { display: block; padding: 0.85rem 1rem; text-transform: none; letter-spacing: 0.01em; font-size: 1rem; border-bottom: 2px solid var(--blau); }
.kopf__nav .untermenue ul li:last-child a { border-bottom: 0; }
.kopf__nav .untermenue ul a:hover, .kopf__nav .untermenue ul a[aria-current="page"] { background: var(--blau); }
.untermenue__knopf[aria-expanded="true"] + ul { display: block; }

.raehm { height: var(--balken); background: var(--navy); }

@media (max-width: 960px) {
  .kopf { flex-wrap: wrap; }
  .kopf__logo img { height: 56px; }
  .kopf__menu {
    display: inline-flex; margin-left: auto; align-items: center; gap: 0.6rem;
    font: inherit; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--navy); background: none; border: 2px solid var(--navy); padding: 0.55rem 0.9rem; cursor: pointer;
  }
  .kopf__menu svg { width: 18px; height: 18px; }
  .kopf__nav { display: none; width: 100%; margin: 0; }
  .kopf__nav.offen { display: block; }
  .kopf__nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 1rem; }
  .kopf__nav li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--blau); }
  .untermenue__knopf { width: 100%; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--blau); }
  .untermenue ul { position: static; border: 0; min-width: 0; padding-left: 1rem; }
  .kopf__nav .knopf { margin-top: 1rem; text-align: center; }
}

/* Knöpfe */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.5rem;
  font: inherit; font-size: 1.02rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.knopf--gold { background: var(--gold); color: var(--navy); }
.knopf--gold:hover { background: var(--gold-hover); }
.knopf--linie { border-color: var(--navy); color: var(--navy); background: transparent; }
.knopf--linie:hover { background: var(--navy); color: var(--putz); }
.knopf--hell { border-color: var(--putz); color: var(--putz); }
.knopf--hell:hover { background: var(--putz); color: var(--navy); }
.knopf svg { width: 20px; height: 20px; flex: none; }
.kopf__nav .knopf { letter-spacing: 0.02em; text-transform: none; font-size: 1rem; border-bottom: 2px solid transparent; padding: 0.7rem 1.25rem; min-height: 48px; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Fachwerk: der Rahmen ist der Hintergrund, die Lücken sind die Balken */

.fachwerk {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--balken);
  padding: var(--balken);
  background: var(--navy);
  max-width: var(--seite);
  margin: 0 auto;
}
.fachwerk > * { background: var(--putz); min-width: 0; }
.gefach { padding: var(--gefach-pad); }
.gefach--blau { background: var(--blau); }
.gefach--navy { background: var(--navy); color: var(--putz); }
.gefach--bild { padding: 0; overflow: hidden; position: relative; }
.gefach--bild picture, .gefach--bild img { width: 100%; height: 100%; }
.gefach--bild img { object-fit: cover; }
.bildzeile {
  position: absolute; left: 0; bottom: 0;
  padding: 0.55rem 0.9rem;
  background: var(--navy); color: var(--putz);
  font-size: 0.92rem; letter-spacing: 0.02em;
}


/* Strebe: die eine diagonale Stütze pro Wand, von Ecke zu Ecke */
.strebe {
  background-image: linear-gradient(to var(--strebe-richtung, bottom right),
    transparent calc(50% - var(--balken) / 2), var(--navy) calc(50% - var(--balken) / 2),
    var(--navy) calc(50% + var(--balken) / 2), transparent calc(50% + var(--balken) / 2));
}

.wand { padding: clamp(3.5rem, 7vw, 7rem) 0 0; }
.wand--ohne-abstand { padding-top: 0; }
.wand__rand { max-width: var(--seite); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }

/* Einstieg */

.einstieg {
  grid-template-rows: var(--hero-zeile-1) var(--hero-zeile-2) auto;
}
.einstieg__text { grid-column: 1 / 8; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.einstieg__text p { font-size: var(--text-gross); margin-top: 1.4rem; max-width: 46ch; }
.einstieg__wappen { grid-column: 8 / 13; grid-row: 1; min-height: 360px; }
.fakt { grid-row: 2; display: flex; flex-direction: column; gap: 0.7rem; }
.fakt--1 { grid-column: 1 / 4; }
.fakt--2 { grid-column: 4 / 8; }
.einstieg__strebe { grid-column: 11 / 13; grid-row: 2; }
.einstieg__ort { grid-column: 8 / 11; grid-row: 2; display: flex; flex-direction: column; justify-content: center; }
.einstieg__ort strong { font-weight: 500; font-size: 1.15rem; display: block; }
.einstieg__ort span { color: var(--text-leise); font-size: 0.98rem; }
.einstieg__ort .ort-box { max-width: 22ch; }
.kleinzeile { margin-top: 1.1rem; font-size: 0.98rem; color: var(--text-leise); letter-spacing: 0.02em; }

.lage { grid-row: 3; }
.lage .h3 { margin-bottom: 0.8rem; }
h2.h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: 0; }

.einstieg .lage--1 { grid-column: 1 / 5; }
.einstieg .lage--2 { grid-column: 5 / 9; }
.einstieg .lage--3 { grid-column: 9 / 13; }

.beamte-hinweis {
  max-width: var(--seite); margin: 0 auto;
  padding: 1.1rem clamp(1rem, 3vw, 2.5rem) 0;
  font-size: 1rem; color: var(--text-leise);
}

@media (max-width: 1000px) {
  .einstieg { grid-template-rows: none; }
  .einstieg__text { grid-column: 1 / -1; grid-row: auto; }
  .einstieg__wappen { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .fakt--1, .fakt--2 { grid-column: span 6; grid-row: auto; }
  .einstieg__ort { grid-column: 1 / 9; grid-row: auto; }
  .einstieg__strebe { grid-column: 9 / 13; grid-row: auto; }
  .einstieg .lage--1, .einstieg .lage--2, .einstieg .lage--3 { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) {
  :root { --h1: 1.95rem; --h2: 1.8rem; --gefach-pad: 1.25rem; }
  h2 { hyphens: auto; -webkit-hyphens: auto; }
  .einstieg__ort { grid-column: 1 / -1; }
  .einstieg__strebe { display: none; }
  .fakt--1, .fakt--2 { grid-column: 1 / -1; }
}

/* Leistungen */

.leistungen__titel { grid-column: 1 / 6; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.leistungen__titel h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.leistung { display: flex; flex-direction: column; gap: 0.75rem; }
.leistung--1 { grid-column: 6 / 9; grid-row: 1; }
.leistung--2 { grid-column: 9 / 13; grid-row: 1; }
.leistung--3 { grid-column: 6 / 10; grid-row: 2; }
.leistung--4 { grid-column: 10 / 13; grid-row: 2; }
.leistung a { margin-top: auto; padding-top: 0.5rem; }

@media (max-width: 1000px) {
  .leistungen__titel, .leistung--1, .leistung--2, .leistung--3, .leistung--4 { grid-column: 1 / -1; grid-row: auto; }
}

/* Themen: Bildkacheln, Text erscheint beim Überfahren */

.themen__titel { grid-column: 1 / -1; }
.thema-kachel, .thema-check { grid-column: span 4; min-height: 400px; }
.thema-kachel picture, .thema-kachel img { position: absolute; inset: 0; }
.thema-kachel__inhalt {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--navy); color: var(--putz);
  padding: 1.1rem var(--gefach-pad) 1.2rem;
}
.thema-kachel__inhalt h3 { font-size: 1.35rem; }
.thema-kachel__mehr p { margin-top: 0.6rem; font-size: 1rem; }
.thema-kachel__mehr ul { list-style: none; margin: 0.9rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.thema-kachel__mehr li { border: 1px solid rgba(229, 241, 251, 0.55); padding: 0.2rem 0.55rem; font-size: 0.9rem; }
.thema-kachel__mehr a { color: var(--putz); font-weight: 600; }
.thema-kachel__mehr a:hover { color: var(--gold); }
.thema-check { display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; }
.thema-check h3 { font-size: 1.5rem; }
.thema-check .knopf { align-self: flex-start; }

@media (hover: hover) and (pointer: fine) {
  .thema-kachel__mehr { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(0.16, 1, 0.3, 1); }
  .thema-kachel__mehr > div { overflow: hidden; min-height: 0; }
  .thema-kachel:hover .thema-kachel__mehr, .thema-kachel:focus-within .thema-kachel__mehr { grid-template-rows: 1fr; }
}
@media (max-width: 1000px) { .thema-kachel, .thema-check { grid-column: span 6; } }
@media (max-width: 600px) {
  .thema-kachel, .thema-check { grid-column: 1 / -1; min-height: 0; }
  .thema-kachel picture, .thema-kachel img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .thema-kachel__inhalt { position: static; }
}

/* Versicherungscheck: Fachwerk im Negativ */

.fachwerk--negativ { background: var(--blau); }
.fachwerk--negativ > * { background: var(--navy); color: var(--putz); }
.check__text { grid-column: 1 / 6; }
.check__bild { grid-column: 6 / 9; min-height: 260px; }
.check__text p { margin-top: 1.25rem; font-size: var(--text-gross); max-width: 52ch; }
.check__aktion { grid-column: 9 / 13; display: flex; align-items: flex-end; justify-content: flex-end; --strebe-richtung: bottom left; background-image: linear-gradient(to bottom left, transparent calc(50% - var(--balken) / 2), var(--blau) calc(50% - var(--balken) / 2), var(--blau) calc(50% + var(--balken) / 2), transparent calc(50% + var(--balken) / 2)); }
.check__aktion .knopf { position: relative; }
@media (max-width: 1000px) {
  .check__text, .check__aktion, .check__bild { grid-column: 1 / -1; }
  .check__aktion { min-height: 180px; }
}

/* Makler statt Vertreter */

.makler__a { grid-column: 1 / 8; }
.makler__a h2 { margin-bottom: 1.5rem; }
.makler__b { grid-column: 8 / 13; display: flex; flex-direction: column; }
.makler__b a { margin-top: 1.5rem; }
@media (max-width: 1000px) { .makler__a, .makler__b { grid-column: 1 / -1; } }

/* Ablauf: Schwelle mit vier Pfosten */

.ablauf__titel { grid-column: 1 / 7; display: flex; align-items: flex-end; }
.ablauf__bild { grid-column: 7 / 13; min-height: 300px; }
@media (max-width: 1000px) { .ablauf__titel, .ablauf__bild { grid-column: 1 / -1; } .ablauf__bild { min-height: 220px; } }
.schritt { grid-column: span 3; display: flex; flex-direction: column; gap: 0.9rem; position: relative; }
.schritt__nr {
  font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 0.9; font-weight: 300;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.schritt h3 { font-size: 1.3rem; }
.schritt:nth-child(2) { background: #f2f7fc; }
.schritt:nth-child(3) { background: #ebf3fb; }
.schritt:nth-child(4) { background: var(--blau); }
@media (max-width: 1000px) { .schritt { grid-column: span 6; } }
@media (max-width: 600px) { .schritt { grid-column: 1 / -1; } }

/* Berater */

.berater__bild { grid-column: span 3; min-height: 360px; }
.berater__text { grid-column: span 3; display: flex; flex-direction: column; gap: 0.9rem; }
.berater__text h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.berater__rolle { font-size: 0.98rem; letter-spacing: 0.02em; color: var(--text-leise); }
.berater__seit { font-size: 1.05rem; font-weight: 600; }
.berater__titel { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .berater__bild { grid-column: span 5; }
  .berater__text { grid-column: span 7; }
}
@media (max-width: 600px) { .berater__bild, .berater__text { grid-column: 1 / -1; } .berater__bild { min-height: 0; aspect-ratio: 4 / 4.2; } }

/* PAE */

.pae__wort { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; }
.pae__wort span { display: block; font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.01em; }
.pae__wort b { font-weight: 600; }
.pae__text { grid-column: 6 / 13; }
.pae__text h2 { margin-bottom: 1.5rem; }
@media (max-width: 1000px) { .pae__wort, .pae__text { grid-column: 1 / -1; } }

/* Fragen */

.fragen__titel { grid-column: 1 / 5; grid-row: 1 / span 5; }
.frage { grid-column: 5 / 13; padding: 0; }
.frage summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem var(--gefach-pad);
  font-size: var(--h3); font-weight: 500; line-height: 1.25;
}
.frage summary::-webkit-details-marker { display: none; }
.frage summary svg { width: 26px; height: 26px; flex: none; transition: transform 200ms ease-out; }
.frage[open] summary svg { transform: rotate(45deg); }
.frage summary:hover { background: #f3f8fd; }
.frage[open] { background: var(--blau); }
.frage[open] summary:hover { background: transparent; }
.frage__antwort { padding: 0 var(--gefach-pad) 1.6rem; }
@media (max-width: 1000px) { .fragen__titel, .frage { grid-column: 1 / -1; grid-row: auto; } }

/* Abschluss */

.abschluss { grid-column: 1 / -1; padding-block: clamp(3rem, 6vw, 5.5rem); }
.abschluss h2 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); }
.abschluss p { margin-top: 1.2rem; font-size: var(--text-gross); }

/* Fuß */

.fuss { max-width: var(--seite); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem) 2.5rem; display: grid; grid-template-columns: auto 1fr 1fr 1fr 1fr; gap: 2.5rem; font-size: 0.98rem; }
.fuss img { height: 88px; width: auto; }
.fuss h2 { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; font-weight: 600; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.fuss p + ul { margin-top: 0.6rem; }
.fuss__recht { grid-column: 1 / -1; border-top: 2px solid var(--navy); padding-top: 1.5rem; font-size: 0.9rem; color: var(--text-leise); }
.fuss__recht p { max-width: none; }
@media (max-width: 1100px) { .fuss { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { .fuss { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss { grid-template-columns: 1fr; } }

/* Das Fachwerk setzt sich: der Rahmen steht, dann füllen sich die Gefache nacheinander */

@media (prefers-reduced-motion: no-preference) {
  .js .fachwerk[data-setzen] > * { clip-path: inset(0 0 100% 0); }
  .js .fachwerk[data-setzen].gesetzt > * {
    clip-path: inset(0 0 0 0);
    transition: clip-path 480ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
}

/* Unterseiten: Einstieg */

.seite-einstieg { grid-column: 1 / 9; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.seite-einstieg p { margin-top: 1.3rem; font-size: var(--text-gross); max-width: 52ch; }
.seite-einstieg__strebe { grid-column: 9 / 13; min-height: 200px; }
.seite-einstieg__bild { grid-column: 9 / 13; min-height: 260px; }
@media (max-width: 1000px) {
  .seite-einstieg { grid-column: 1 / -1; }
  .seite-einstieg__strebe { display: none; }
  .seite-einstieg__bild { grid-column: 1 / -1; aspect-ratio: 16 / 9; min-height: 0; }
}

/* Beihilferechner: jedes Land ein Gefach */

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; margin-bottom: 0.7rem; padding: 0; }
.rechner__titel { grid-column: 1 / -1; }
.rechner__laender { grid-column: 1 / 6; padding: var(--gefach-pad); }
.rechner__angaben { grid-column: 6 / 9; display: grid; gap: 1.6rem; align-content: start; }
.rechner__ergebnis { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 1.2rem; }
.laender { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--balken); background: var(--navy); padding: var(--balken); }
.land { position: relative; background: var(--putz); cursor: pointer; min-height: 74px; display: flex; align-items: flex-end; padding: 0.6rem 0.7rem; font-size: 0.92rem; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; }
.land input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.land:hover { background: var(--blau); }
.land:has(input:checked) { background: var(--gold); font-weight: 600; }
.land:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--navy); }
.wahl { display: flex; gap: 0.6rem; align-items: baseline; font-size: 1rem; line-height: 1.35; padding: 0.3rem 0; cursor: pointer; }
.wahl input, .auswahl select { accent-color: var(--navy); }
.wahl input { width: 1.05rem; height: 1.05rem; flex: none; transform: translateY(2px); }
.auswahl { display: grid; gap: 0.5rem; font-weight: 600; font-size: 1rem; }
.auswahl select { font: inherit; font-weight: 400; padding: 0.7rem 0.8rem; border: 2px solid var(--navy); background: var(--putz); color: var(--navy); border-radius: 0; }
.ergebnis__land { font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.ergebnis__gross { display: flex; flex-direction: column; margin-top: 0.4rem; }
.ergebnis__gross b { font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.ergebnis__gross span { font-size: 1.05rem; }
.ergebnis__privat { margin-top: 0.6rem; font-size: 1.05rem; }
.ergebnis__liste { margin-top: 1rem; border-top: 1px solid rgba(229, 241, 251, 0.35); }
.ergebnis__zeile { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(229, 241, 251, 0.35); font-size: 0.98rem; }
.ergebnis__hinweis { margin-top: 1rem; font-size: 0.95rem; color: #d3e3f3; }
.ergebnis__klein { font-size: 0.9rem; color: #d3e3f3; margin-top: auto; }
.rechner__ergebnis .knopf { align-self: stretch; width: 100%; justify-content: flex-start; text-align: left; text-wrap: balance; }
@media (max-width: 1100px) {
  .rechner__laender { grid-column: 1 / -1; }
  .rechner__angaben { grid-column: 1 / 7; }
  .rechner__ergebnis { grid-column: 7 / 13; }
}
@media (max-width: 700px) {
  .laender { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land { min-height: 56px; }
  .rechner__angaben, .rechner__ergebnis { grid-column: 1 / -1; }
}

/* Beamte: Inhaltswände */

.hessen__text { grid-column: 1 / 7; }
.hessen__text h2 { margin-bottom: 1.4rem; }
.hessen__saetze { grid-column: 7 / 13; }
.hessen__saetze h3 { margin-bottom: 1rem; }
.laender__text { grid-column: 1 / -1; }
.laender__text .h3 { margin-bottom: 0.8rem; }
.saetze { margin: 0; display: grid; }
.saetze div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 2px solid var(--navy); }
.saetze div:nth-child(4) { margin-bottom: 1.4rem; }
.saetze dt { font-size: 1.05rem; }
.saetze dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.15rem; white-space: nowrap; }
.quelle { font-size: 0.95rem; color: var(--text-leise); }
.pkv__text { grid-column: 1 / 8; }
.pkv__text h2 { margin-bottom: 1.4rem; }
.pkv__liste-titel { margin: 2rem 0 0.8rem; font-size: 1.2rem; }
.pkv__oeffnung { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.liste { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; max-width: 62ch; }
.liste li::marker { color: var(--navy); }
.du__text { grid-column: 1 / 8; }
.du__text h2 { margin-bottom: 1.4rem; }
.du__klausel { grid-column: 8 / 13; display: flex; align-items: center; font-size: var(--text-gross); }
.ref__text { grid-column: 1 / 7; }
.ref__text h2 { margin-bottom: 1.2rem; }
.ref__liste { grid-column: 7 / 13; margin: 0; padding-left: calc(var(--gefach-pad) + 1.4rem); display: grid; gap: 0.9rem; align-content: center; font-size: 1.1rem; }
.ref__liste li::marker { font-weight: 600; }
.lehr__text { grid-column: 1 / 7; grid-row: span 2; }
.lehr__text h2 { margin-bottom: 1.2rem; }
.lehr__dh { grid-column: 7 / 13; }
.lehr__rs { grid-column: 7 / 13; }
.lehr__dh h3, .lehr__rs h3 { margin-bottom: 0.6rem; }
.pension__strebe { grid-column: 1 / 5; min-height: 220px; }
.pension__text { grid-column: 5 / 13; }
.pension__text h2 { margin-bottom: 1.2rem; }
@media (max-width: 1000px) {
  .hessen__text, .hessen__saetze, .pkv__text, .pkv__oeffnung, .du__text, .du__klausel,
  .ref__text, .ref__liste, .lehr__text, .lehr__dh, .lehr__rs, .pension__text { grid-column: 1 / -1; grid-row: auto; }
  .pension__strebe { display: none; }
}
.rechner__laender legend, .rechner__angaben legend { float: left; width: 100%; }
.rechner__laender legend + * , .rechner__angaben legend + * { clear: both; }

/* Personen (Über uns) */

.person__bild { grid-column: 1 / 6; min-height: 520px; }
.person__text { grid-column: 6 / 13; display: flex; flex-direction: column; justify-content: center; }
.person__text h2 { margin-bottom: 0.6rem; }
.person__text .berater__rolle { margin-bottom: 1.4rem; }
.person__text--links { grid-column: 1 / 8; }
.person__bild--rechts { grid-column: 8 / 13; }
@media (max-width: 1000px) {
  .person__bild, .person__text, .person__text--links, .person__bild--rechts { grid-column: 1 / -1; }
  .person__bild { min-height: 0; aspect-ratio: 4 / 4.4; }
}

/* Kontakt und Formular */

.kontakt__text { grid-column: 1 / 6; }
.kontakt__text p { margin-top: 1.3rem; font-size: var(--text-gross); }
.kontakt__tel { font-weight: 600; white-space: nowrap; }
.kontakt__form { grid-column: 6 / 13; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.3rem; }
.field label { font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--text-leise); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--navy); background: var(--putz);
  border: 2px solid var(--navy); border-radius: 0; padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.field-hint { font-size: 0.92rem; color: var(--text-leise); }
.field-error { display: none; font-size: 0.95rem; color: #9b1c1c; font-weight: 600; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error select { border-color: #9b1c1c; }
.field--check label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.field--check input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.2rem; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-status.is-error { margin-top: 1rem; color: #9b1c1c; font-weight: 600; }
#form-wrap.is-sent form { display: none; }
#form-success { padding-block: 2rem; }
#form-success p { margin-top: 1rem; }
.anfahrt__text { grid-column: 1 / 9; }
.anfahrt__text h2 { margin-bottom: 1.2rem; }
.anfahrt__adresse { font-size: var(--text-gross); margin-bottom: 1rem; }
.anfahrt__bild { grid-column: 9 / 13; min-height: 300px; }
.anfahrt__route { margin-top: 1.5rem; }
@media (max-width: 1000px) {
  .kontakt__text, .kontakt__form, .anfahrt__text { grid-column: 1 / -1; }
  .anfahrt__bild { grid-column: 1 / -1; aspect-ratio: 16 / 10; min-height: 0; }
}

/* Textseiten (Erstinformation, Impressum, Datenschutz) */

.text-seite { grid-column: 1 / -1; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.text-seite > * { max-width: 68ch; }
.text-seite h2 { font-size: 1.4rem; margin: 2.4rem 0 0.8rem; }
.text-seite p + p { margin-top: 0.8rem; }
.text-seite h1 + p { margin-top: 1.4rem; font-size: var(--text-gross); }
.hinweis-entwurf { margin-top: 2rem; padding: 1rem 1.2rem; background: var(--blau); }

.pae__link { margin-top: 1.4rem; font-weight: 600; }

/* WhatsApp: fester Knopf unten rechts */
.whatsapp {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 52px; padding: 0.7rem 1.1rem;
  background: var(--navy); color: var(--putz);
  border: 2px solid var(--putz); outline: 2px solid var(--navy);
  font-weight: 600; text-decoration: none; letter-spacing: 0.02em;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.whatsapp svg { width: 24px; height: 24px; flex: none; }
.whatsapp:hover { background: var(--gold); color: var(--navy); }
.whatsapp:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) {
  .whatsapp { right: 12px; bottom: 12px; padding: 0.7rem; min-width: 52px; justify-content: center; }
  .whatsapp span:not(.sr-only) { display: none; }
}
@media print { .whatsapp { display: none; } }

/* Schaden melden */
.wichtig__text { grid-column: 1 / 7; }
.wichtig__text h2 { margin-bottom: 1.2rem; }
.wichtig__notfall { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
@media (max-width: 1000px) { .wichtig__text, .wichtig__notfall { grid-column: 1 / -1; } }

/* Versicherungslexikon */
.lexikon-kopf { grid-column: 1 / -1; }
.lexikon-suche { display: grid; gap: 0.5rem; margin-top: 2rem; max-width: 32rem; font-weight: 600; font-size: 1rem; }
.lexikon-suche input { font: inherit; font-weight: 400; font-size: 1.05rem; padding: 0.8rem 0.9rem; border: 2px solid var(--navy); border-radius: 0; background: var(--putz); color: var(--navy); }
.lexikon-suche input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.lexikon-abc { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.5rem; }
.lexikon-abc a, .lexikon-abc span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; font-weight: 600; }
.lexikon-abc a { border: 2px solid var(--navy); text-decoration: none; }
.lexikon-abc a:hover { background: var(--navy); color: var(--putz); }
.lexikon-abc span { color: #9aa8bb; }
.lexikon-leer { margin-top: 1.2rem; }
.wand--eng { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.lexikon-buchstabe { grid-column: 1 / 3; display: flex; align-items: flex-start; }
.lexikon-buchstabe h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 300; line-height: 1; }
.begriff { grid-column: span 5; scroll-margin-top: 1.5rem; }
.begriff:nth-of-type(2n+1) { grid-column: 3 / 8; }
.begriff:nth-of-type(2n) { grid-column: 8 / 13; }
.begriff:last-child:nth-of-type(2n+1) { grid-column: 3 / 13; }
.begriff h3 { margin-bottom: 0.6rem; }
.begriff p { font-size: 1.02rem; }
.begriff[hidden], .lexikon-gruppe[hidden] { display: none; }
@media (max-width: 1000px) {
  .lexikon-buchstabe { grid-column: 1 / -1; grid-row: auto !important; }
  .begriff, .begriff:nth-of-type(2n+1), .begriff:nth-of-type(2n), .begriff:last-child:nth-of-type(2n+1) { grid-column: 1 / -1; }
}
