/* ---------- Fonts (self-hosted, no CDN) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ("Light & Forest") ---------- */
:root {
  --bg: #F5F6F2;
  --card: #FFFFFF;
  --border: #D8DDD5;
  --input-border: #87938C; /* 3.2:1 on white, WCAG 1.4.11 */
  --text: #12201B;
  --muted: #4F5E57;
  --accent: #1F6F54;
  --accent-hover: #174F3D;
  --tint: #E4EDE7;
  --dark: #12201B;
  --dark-text: #F5F6F2;
  --dark-muted: #B4C2BA;
  --dark-border: #2C3D36;
  --footer: #EEF2EC;
  --error: #9B2C2C;
  --error-bg: #FBEDEC;
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --nav-space: 16px; /* space on each side of the menu dividers */
  --gutter: 20px;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::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(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
/* Long words (German compounds such as "Betriebshaftpflichtversicherung") must never widen the page:
   headings may break inside a word, and German and Turkish text is hyphenated. */
h1, h2, h3, .tile__title, .breadcrumb, .related a { overflow-wrap: break-word; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) .prose, :lang(de) .lead, :lang(de) .card, :lang(de) .tile, :lang(de) td, :lang(de) th,
:lang(tr) h1, :lang(tr) h2, :lang(tr) h3, :lang(tr) .prose, :lang(tr) .lead, :lang(tr) .card, :lang(tr) .tile, :lang(tr) td, :lang(tr) th { hyphens: auto; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; }
.icon { display: block; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.1875rem; color: var(--muted); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--accent); border-radius: var(--radius-btn); background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--tint); color: var(--accent-hover); }
.btn--small { min-height: 42px; padding: 9px 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 246, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; flex-direction: column; line-height: 1.05; color: var(--text); text-decoration: none; }
.brand__mark { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand__four { color: var(--accent); }
.brand__tagline { margin-top: 3px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.brand:hover .brand__mark { color: var(--accent-hover); }
@media (max-width: 340px) { .brand__tagline { display: none; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--card); color: var(--text); cursor: pointer; }
.site-nav { display: none; width: 100%; padding: 4px 0 20px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 14px; padding: 0; }
.site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; text-decoration: none; }
.site-nav li a:hover { color: var(--accent); }
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 16px !important; padding: 0; list-style: none; font-size: 0.95rem; font-weight: 500; }
/* Language switcher: flag (local SVG) plus the language name; on wide screens only the flag is visible.
   Tap target at least 44 x 44 px; other languages at 60 % until hover or focus; current language underlined. */
.site-nav .lang-switch .lang-switch__item { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang-switch__flag { display: block; flex: none; box-sizing: border-box; width: 22px; height: 16px; border: 1px solid var(--border); border-radius: 2px; }
a.lang-switch__item .lang-switch__flag { opacity: 0.6; transition: opacity 0.15s; }
a.lang-switch__item:hover .lang-switch__flag, a.lang-switch__item:focus-visible .lang-switch__flag { opacity: 1; }
.site-nav .lang-switch a.lang-switch__item:hover, .site-nav .lang-switch a.lang-switch__item:focus-visible { color: var(--text); }
.site-nav .lang-switch .lang-switch__current { color: var(--text); font-weight: 700; }
.lang-switch__current::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--accent); }
.lang-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px var(--gutter); background: var(--tint); border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.lang-banner p { margin: 0; }
.lang-banner a { font-weight: 500; }
.lang-banner__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: var(--radius-btn); background: transparent; color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lang-banner__close:hover { background: rgba(0, 0, 0, 0.06); }

/* Full menu from 1200 px; it has to fit on one row next to the logo in every language. */
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: 0; margin: 0; }
  /* Menu items never break inside; if the menu does not fit next to the logo it moves to its own row. */
  .site-nav li a { padding: 6px 0; border: 0; font-size: 1rem; white-space: nowrap; }
  .site-nav .btn { white-space: nowrap; }
  /* Thin vertical divider between the menu items */
  .site-nav ul:not(.lang-switch) li { display: flex; align-items: center; }
  .site-nav ul:not(.lang-switch) li + li::before { content: ""; width: 1px; height: 16px; margin: 0 var(--nav-space); background: var(--border); }
  /* The language switcher is its own group: more room before it, flags only */
  .site-nav .lang-switch { flex-wrap: nowrap; gap: 0; margin: 0 0 0 calc(var(--nav-space) - 4px) !important; white-space: nowrap; }
  .site-nav .lang-switch .lang-switch__item { padding: 0 11px; }
  .lang-switch__current::after { left: 11px; right: 11px; bottom: 6px; }
  .lang-switch__name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 64px; }
.hero__grid { display: grid; gap: 40px; }
.hero__grid > *, .page-body > * { min-width: 0; } /* grid items may shrink below their longest word */
.hero__text p.lead { max-width: 34em; }
.stats { list-style: none; display: grid; grid-template-columns: 1fr; gap: 14px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stats span { color: var(--muted); font-size: 1rem; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 980px) {
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
ol.grid, ul.grid { list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: var(--tint); color: var(--accent); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 500; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

.step__num { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }

/* ---------- Dark section ---------- */
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .kicker { color: #8FD0B4; }
.section--dark .section__head p { color: var(--dark-muted); }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--dark-border); border-radius: var(--radius-card); color: var(--dark-text); text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.tile:hover { border-color: #8FD0B4; background: rgba(255, 255, 255, 0.04); color: var(--dark-text); }
.tile .icon { color: #8FD0B4; margin-bottom: 6px; }
.tile__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.tile__text { color: var(--dark-muted); font-size: 1rem; line-height: 1.5; }
.tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-weight: 500; color: #8FD0B4; }

/* ---------- About ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about__photo { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.about__photo picture { display: block; height: 100%; }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; color: var(--muted); background: var(--tint); }
.about__text { max-width: 620px; }
@media (min-width: 860px) { .about { grid-template-columns: 380px 1fr; gap: 64px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 32px; }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; } }
.channels { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--text); text-decoration: none; }
.channel:hover { border-color: var(--accent); color: var(--text); }
.channel__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); flex: none; }
.channel__label { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.3; }
.channel__value { display: block; font-weight: 500; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 640px) { .panel { padding: 32px; } }

/* ---------- Forms ---------- */
.panel__title { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; margin-bottom: 6px; font-weight: 500; }
.field .optional { color: var(--muted); font-weight: 400; }
.field__hint { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.input, .textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: var(--radius-btn); background: #fff; color: var(--text); font: inherit; }
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .textarea:focus { outline: 3px solid rgba(31, 111, 84, 0.25); outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { display: block; margin-top: 6px; color: var(--error); font-size: 0.95rem; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.check label { font-weight: 400; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-btn); border: 1px solid var(--accent); background: var(--tint); color: var(--text); }
.notice--error { border-color: var(--error); background: var(--error-bg); }
.notice[hidden] { display: none; }

/* ---------- Calculator ---------- */
.calc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 18px 40px -28px rgba(18, 32, 27, 0.35); }
@media (min-width: 640px) { .calc { padding: 30px; } }
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.calc__head h2 { font-size: 1.35rem; margin: 0; }
.badge { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.calc fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.calc legend, .calc .label { display: block; padding: 0; margin-bottom: 8px; font-weight: 500; }
.segmented { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 6px; border: 1px solid var(--input-border); border-radius: var(--radius-btn); background: #fff; font-weight: 500; font-size: 0.975rem; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.segmented label:hover { border-color: var(--accent); }
.segmented input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc__hint { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }
.calc__age { display: flex; align-items: baseline; justify-content: space-between; }
.calc__age output { font-family: var(--font-head); font-weight: 700; }
.calc input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); }
.calc__result { margin-top: 22px; padding: 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.calc__result-label { margin: 0 0 4px; color: var(--muted); }
.calc__price { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; }
.calc__price small { font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.calc__note { margin: 8px 0 0; color: var(--muted); }
.calc__result h3 { margin-bottom: 6px; }
.calc__result .btn { margin-top: 16px; }
.byline { margin: -4px 0 14px; font-size: 0.9375rem; color: var(--muted); }
.byline a { color: inherit; }
.author-box { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.author-box__photo img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; }
.author-box__label { font-size: 0.875rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.author-box .author-box__name { margin-top: 2px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.author-box__qualification { color: var(--muted); }
.author-box .author-box__bio { margin-top: 10px; }
.author-box .author-box__updated { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 479px) { .author-box { flex-direction: column; gap: 14px; padding: 20px; } }
.calc__cta-note { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); text-align: center; }
.calc__disclaimer { margin: 18px 0 0; font-size: 1rem; color: var(--text); }
[hidden] { display: none !important; }

/* ---------- Sub pages ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { max-width: 20em; font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head .lead { max-width: 44em; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; font-size: 0.95rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #C9D0C7; }
.breadcrumb a { color: var(--muted); }
.page-body { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 1000px) { .page-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; } .page-aside { position: sticky; top: 96px; } }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.45rem, 2.8vw, 1.8rem); margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--border); }
.prose th { background: var(--footer); font-family: var(--font-head); font-weight: 500; }
.prose td { background: var(--card); }
.table-wrap { overflow-x: auto; }
/* Phones: fixed column widths so tables always fit; German is hyphenated, overlong words break as a last resort. */
@media (max-width: 479px) {
  .prose table { table-layout: fixed; font-size: 0.92rem; }
  .prose th, .prose td { padding: 10px 8px; overflow-wrap: break-word; }
  .prose tr > :first-child { width: 30%; }
}
.callout { margin: 0 0 1.4em; padding: 18px 20px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--card); }
.callout > :last-child { margin-bottom: 0; }
.placeholder { background: var(--tint); border: 1px dashed var(--accent); border-radius: 4px; padding: 0 5px; font-weight: 500; }
.page-body--single { display: block; }

/* ---------- Legal pages (imprint, initial information) ---------- */
.legal-toc { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); }
.legal-toc ol { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; counter-reset: toc; font-size: 0.95rem; }
.legal-toc li { margin: 0; counter-increment: toc; }
.legal-toc li::before { content: counter(toc) "."; margin-right: 6px; color: var(--muted); font-family: var(--font-head); }
.legal-toc a { text-decoration: none; font-weight: 500; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section > :last-child { margin-bottom: 0; }
.prose .legal-section h2 { display: flex; align-items: center; gap: 12px; margin-top: 0; font-size: clamp(1.3rem, 2.4vw, 1.55rem); }
.legal-num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--accent); font-size: 1rem; letter-spacing: 0; }
.legal-facts { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0 0 1.1em; }
.legal-facts dt { color: var(--muted); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 10px; }
.legal-facts dd { margin: 0; }
@media (min-width: 640px) { .legal-facts { grid-template-columns: 150px 1fr; } .legal-facts dt { margin-top: 0; padding-top: 3px; } .legal-facts dd { padding-bottom: 8px; } }
.legal-list { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.legal-list li { margin: 0; padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--card); }
.legal-addresses { display: grid; gap: 14px; }
@media (min-width: 640px) { .legal-addresses { grid-template-columns: repeat(2, 1fr); } }
.legal-address { margin: 0 0 1.1em; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-style: normal; line-height: 1.6; }
.legal-addresses .legal-address { margin: 0; }
.aside-card h2 { font-size: 1.3rem; }
.aside-card .btn { margin-top: 10px; }
.aside-card__note { margin: 18px 0 0; font-size: 0.95rem; }
.section--tight h2 { margin-bottom: 24px; }
.section--tight .cta-band h2 { margin-bottom: 6px; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 16px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); color: var(--text); font-weight: 500; text-decoration: none; }
.related a:hover { border-color: var(--accent); color: var(--accent); }
.section--tight { padding: 0 0 72px; }
.cta-band { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--radius-lg); background: var(--dark); color: var(--dark-text); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: var(--dark-muted); }
.cta-band .btn--ghost { color: var(--dark-text); border-color: var(--dark-border); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--dark-text); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); border-top: 1px solid var(--border); padding: 48px 0 96px; color: var(--muted); font-size: 1rem; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.site-footer h2 { font-size: 1rem; font-family: var(--font-head); font-weight: 500; color: var(--text); letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text); }
.site-footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.nowrap { white-space: nowrap; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(18, 32, 27, 0.55); transition: background-color 0.15s; }
.wa-float:hover { background: var(--accent-hover); color: #fff; }
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float span { display: inline; } }
.wa-float { transition: background-color 0.15s, opacity 0.2s, visibility 0.2s; }
.wa-float--away { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }
}

/* ---------- Photos ---------- */
picture img { display: block; width: 100%; height: auto; }
.hero__photo { display: block; margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--tint); aspect-ratio: 16 / 10; }
.hero__photo img { height: 100%; object-fit: cover; object-position: 50% 0%; } /* 3:2 file in a 16:10 box: only the bottom is trimmed, so the child's head at the top stays in frame */
.card__media { display: block; margin: -26px -26px 22px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; background: var(--tint); }
.card__media img { height: 100%; object-fit: cover; }
.card--media .card__icon { margin-top: -50px; position: relative; border: 3px solid var(--card); width: 54px; height: 54px; }
.media-banner { display: block; margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--tint); aspect-ratio: 16 / 7; }
.media-banner img { height: 100%; object-fit: cover; }
.page-head__photo { aspect-ratio: 12 / 5; margin: 28px 0 8px; }
@media (min-width: 980px) { .page-head__photo { aspect-ratio: 3 / 1; } }
/* Focus points so faces stay in frame at 16:9 / 12:5 / 3:1 (checked at 390, 768, 1280 px). */
.img--page-expats img { object-position: 48% 0%; }
.img--page-self-employed img { object-position: 50% 15%; }
.img--page-civil-servants img { object-position: 70% 40%; }
.img--page-employees img { object-position: 50% 0%; }
.img--page-public-vs-private img { object-position: 50% 0%; }
@media (max-width: 639px) {
  .media-banner { aspect-ratio: 16 / 9; }
  .page-head__photo { aspect-ratio: 16 / 9; }
}
