/* ============================================================
   legal.css — gemeinsame Basis für Impressum & Datenschutz.

   Die Startseite trägt ihr CSS inline. Die Rechtsseiten teilen
   sich stattdessen diese Datei: dieselben Tokens, dieselbe
   Kopf- und Fußzeile, damit sie sich vom Bestand nur durch
   ihren Inhalt unterscheiden.
   ============================================================ */

:root {
  --b: #013d93;
  --b2: #0a56b3;
  --b-deep: #002f70;
  --b-soft: #eff4fa;
  --g: #6eac59;
  --g-deep: #568b45;
  --g-soft: #f0f7ee;
  --g-line: #d7e7d2;
  --ink: #2b2b2b;
  --txt: #4d5863;
  --soft: #737d86;
  --bg: #fbfdfe;
  --line: #e2e8ec;
  --line-2: #eef2f4;
  --sh-1:
    0 2px 6px rgba(1, 61, 147, 0.03),
    0 14px 38px -12px rgba(1, 61, 147, 0.09);
  --fh: "Plus Jakarta Sans", system-ui, sans-serif;
  --fh-w: 700;
  --fb: "Plus Jakarta Sans", system-ui, Arial, sans-serif;
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --c: 1200px;
  --gut: 24px;
}
@media (min-width: 900px) {
  :root {
    --gut: 40px;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  font: 16px/1.65 var(--fb);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  text-wrap: balance;
  /* Deutsche Komposita wie "Berufshaftpflichtversicherung" sprengen sonst
     auf schmalen Displays die Zeile. lang="de" liefert die Trennstellen. */
  overflow-wrap: break-word;
  hyphens: auto;
}
.sec p,
.sec li,
.legalMeta {
  overflow-wrap: break-word;
}
code {
  overflow-wrap: anywhere;
  font-size: 0.92em;
}
:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--c) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Kopfzeile ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  min-width: max-content;
}
.brandmark {
  width: auto;
  height: 58px;
  flex: 0 0 auto;
}
.links {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: #2b333a;
}
.links a {
  position: relative;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 0.25s var(--expo);
}
.links a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--g);
  transition: right 0.35s var(--expo);
}
.links a:hover,
.links a[aria-current="page"] {
  color: var(--b);
}
.links a:hover:after,
.links a[aria-current="page"]:after {
  right: 0;
}
.btn {
  border: 0;
  white-space: nowrap;
  border-radius: 11px;
  padding: 14px 24px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.3s var(--expo),
    box-shadow 0.3s var(--expo),
    background 0.25s var(--expo);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.blue {
  background: var(--b);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(1, 61, 147, 0.6);
}
.blue:hover {
  background: var(--b-deep);
  box-shadow: 0 16px 34px -12px rgba(1, 61, 147, 0.62);
}
@media (max-width: 900px) {
  .links {
    display: none;
  }
  .nav {
    height: 74px;
    grid-template-columns: auto 1fr;
  }
  .brandmark {
    height: 46px;
  }
}
@media (max-width: 560px) {
  .nav .btn {
    display: none;
  }
}

/* ---------- Inhalt ---------- */
.legal {
  padding: 64px 0 96px;
}
.legalInner {
  max-width: 820px;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g);
  margin: 0 0 14px;
}
.legal h1 {
  font-family: var(--fh);
  font-weight: var(--fh-w);
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 18px;
}
.legalMeta {
  font-size: 14.5px;
  color: var(--soft);
  margin: 0 0 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.sec {
  padding-top: 40px;
}
.sec h2 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.sec h3 {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 26px 0 8px;
}
.sec p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.75;
}
.sec ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.sec li {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.sec a:not(.btn) {
  color: var(--b);
  font-weight: 600;
  border-bottom: 1px solid rgba(1, 61, 147, 0.25);
  transition: border-color 0.2s var(--expo);
}
.sec a:not(.btn):hover {
  border-bottom-color: var(--b);
}
.rowList p {
  margin-bottom: 4px;
}
.lbl {
  color: var(--soft);
  display: inline-block;
  min-width: 190px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--sh-1);
}
.card.soft {
  background: var(--b-soft);
  border-color: #dbe6f4;
  box-shadow: none;
}
.card.green {
  background: var(--g-soft);
  border-color: var(--g-line);
  box-shadow: none;
}
.card :last-child {
  margin-bottom: 0;
}
.toc {
  margin-top: 34px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.toc li {
  margin-bottom: 7px;
  font-size: 14.5px;
  break-inside: avoid;
}
@media (max-width: 620px) {
  .toc ul {
    columns: 1;
  }
  .lbl {
    min-width: 0;
    display: block;
  }
}

/* ---------- Fußzeile ---------- */
.footer {
  background: #2b2b2b;
  color: #fbfdfe;
  padding: 64px 0 24px;
}
.foot {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.flogoMark {
  display: block;
  width: auto;
  height: 62px;
  margin-bottom: 16px;
}
.foot strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 14px;
}
.foot p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(251, 253, 254, 0.72);
  margin: 0;
}
.foot a:hover {
  color: var(--g);
}
.bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: rgba(251, 253, 254, 0.58);
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(251, 253, 254, 0.12);
}
.bottom a:hover {
  color: var(--g);
}
.credit a {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(251, 253, 254, 0.72);
}
@media (max-width: 900px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .foot {
    grid-template-columns: 1fr;
  }
  .bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
