/* Dein Unfallgutachter – brand colours from the logo file: green #68B345, black #0C0D0D, grey #808081 */
@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald.woff2") format("woff2"), url("/fonts/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
:root {
  --green: #68b345;
  --green-dark: #3b7a1f;     /* green for text on white (readable) */
  --green-soft: #eef7e9;
  --black: #0c0d0d;
  --ink: #16191a;
  --muted: #4d5559;
  --grey: #808081;
  --paper: #f5f7f4;
  --card: #ffffff;
  --line: #dde3dc;
  --wa: #1f8f4e;
  --head: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--green-dark); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
img, video { max-width: 100%; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; }
.green { color: var(--green); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: 0 0 1rem; }
h2::after { content: ""; display: block; width: 4.5rem; height: 0.3rem; background: var(--green); margin-top: 0.7rem; transform: skewX(-20deg); transform-origin: left; }
.center h2::after { margin-left: auto; margin-right: auto; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.lead { max-width: 46rem; margin: 0 0 2rem; font-size: 1.125rem; color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--black); color: #d9dedb; font-size: 0.9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; justify-content: flex-end; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar .icon { color: var(--green); }
@media (max-width: 48rem) { .topbar { display: none; } }

header.site { background: #fff; border-bottom: 5px solid var(--green); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(0,0,0,0.06); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand img { display: block; height: 4.6rem; width: auto; max-width: 64vw; }
.head-right { display: flex; align-items: center; gap: 1.75rem; }
nav.main { display: flex; gap: 1.4rem; font-family: var(--head); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
nav.main a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; border-bottom: 3px solid transparent; }
nav.main a:hover { border-bottom-color: var(--green); }
.hotline { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 0.65rem; white-space: nowrap; background: var(--green); color: var(--black); text-decoration: none; padding: 0.5rem 1.1rem 0.55rem 0.9rem; border-radius: 0.5rem; line-height: 1.15; }
.hotline:hover { background: #77c254; }
.hotline .icon { grid-row: 1 / 3; width: 1.9rem; height: 1.9rem; stroke-width: 2.2; }
.hotline small { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.hotline strong { font-family: var(--head); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }
@media (max-width: 62rem) { nav.main { display: none; } }
@media (max-width: 40rem) {
  .brand img { height: auto; width: min(70vw, 19rem); }
  .hotline { padding: 0.55rem; }
  .hotline small, .hotline strong { display: none; }
  .hotline .icon { width: 1.6rem; height: 1.6rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--black); overflow: hidden; }
.hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,13,13,0.94) 0%, rgba(12,13,13,0.82) 38%, rgba(12,13,13,0.25) 68%, rgba(12,13,13,0) 85%); }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(3rem, 9vw, 6.5rem); padding-bottom: clamp(3rem, 9vw, 6.5rem); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); margin: 0 0 1.1rem; max-width: 13ch; font-style: italic; }
.hero p { font-size: 1.2rem; margin: 0 0 2rem; max-width: 34rem; color: #e3e8e5; }
.tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--green); color: var(--black); font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.85rem; margin-bottom: 1.25rem; border-radius: 0.3rem; }
.hero .note { margin: 1.5rem 0 0; font-size: 1rem; color: #c9d1cc; }
@media (max-width: 48rem) {
  .hero > picture img { object-position: 78% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(12,13,13,0.05) 0%, rgba(12,13,13,0.35) 22%, rgba(12,13,13,0.9) 42%, rgba(12,13,13,0.97) 100%); }
  .tag { font-size: 0.9rem; letter-spacing: 0.03em; }
  .hero .wrap { padding-top: 15rem; }
  .hero > picture img { height: 32rem; bottom: auto; }
}
.hero.small .wrap { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero.small h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
@media (max-width: 48rem) { .hero.small .wrap { padding-top: 8rem; } }
.crumbs { font-size: 0.95rem; margin: 0 0 0.75rem; color: #c9d1cc; }
.crumbs a { color: #fff; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.6rem; font-family: var(--head); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 0.45rem; }
.btn.primary { background: var(--green); color: var(--black); }
.btn.primary:hover { background: #77c254; }
.btn.ghost { color: #fff; border-color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.dark { background: var(--black); color: #fff; }
.btn.dark:hover { background: #262a2a; }

/* ---------- green trust band ---------- */
.band { background: var(--green); color: var(--black); }
.band ul { list-style: none; margin: 0; padding: 1.4rem 0; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.band li { display: flex; align-items: center; gap: 0.8rem; font-family: var(--head); font-size: 1.3rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.02em; }
.band li span { display: block; font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.9rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.band .icon { width: 2.4rem; height: 2.4rem; stroke-width: 1.8; }

/* ---------- sections ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.white { background: #fff; }
section.dark { background: var(--black); color: #e8ece9; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .lead { color: #c9d1cc; }
section.greenbg { background: var(--green); color: var(--black); }
section.greenbg h2::after { background: var(--black); }
section.greenbg a { color: var(--black); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.two { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem; padding: 1.5rem 1.5rem 1.6rem; box-shadow: 0 4px 18px rgba(12,13,13,0.05); }
.card p { margin: 0; color: var(--muted); }
.card .ic { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--green); color: var(--black); margin-bottom: 1rem; }
.card .ic .icon { width: 1.7rem; height: 1.7rem; }
a.card { display: block; text-decoration: none; color: var(--ink); border-bottom: 5px solid var(--green); transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(12,13,13,0.12); }
a.card .more { display: inline-block; margin-top: 0.9rem; color: var(--green-dark); font-family: var(--head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.03em; }

ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
ul.ticks li { padding-left: 2.1rem; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--green); }
ul.ticks li::after { content: ""; position: absolute; left: 0.42rem; top: 0.52rem; width: 0.55rem; height: 0.3rem; border-left: 2.5px solid var(--black); border-bottom: 2.5px solid var(--black); transform: rotate(-45deg); }

/* steps */
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; background: #fff; border-radius: 0.6rem; padding: 1.6rem 1.5rem 1.6rem; border: 1px solid var(--line); overflow: hidden; }
ol.steps li::before { content: counter(step); position: absolute; right: 0.9rem; top: -0.6rem; font-family: var(--head); font-size: 6rem; font-weight: 700; font-style: italic; color: var(--green); opacity: 0.22; line-height: 1; }
ol.steps h3 { position: relative; }
ol.steps h3 span { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; margin-right: 0.6rem; border-radius: 50%; background: var(--green); color: var(--black); font-size: 1.2rem; }
ol.steps p { margin: 0; color: var(--muted); position: relative; }

/* video */
.video { background: #000; border-radius: 0.6rem; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 10px 30px rgba(0,0,0,0.35); border: 3px solid var(--green); }
.video video { display: block; width: 100%; height: 100%; }
.caption { font-size: 0.95rem; color: #b9c2bd; margin: 0.6rem 0 0; }

/* experts */
.tuev { display: block; width: 100%; max-width: 21rem; height: auto; margin-top: 1.5rem; border-radius: 0.4rem; }
.person { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.person:first-of-type { padding-top: 0; }
.person p { margin: 0; color: var(--muted); }
.person h3 { font-size: 1.5rem; }
ul.areas { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
ul.areas li { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--black); color: #fff; font-family: var(--head); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 2rem; }
ul.areas li .icon { color: var(--green); }
ul.areas li a { display: inline-flex; align-items: center; gap: 0.45rem; color: inherit; text-decoration: none; }
ul.areas li a:hover { color: var(--green); }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 0.4rem; margin-bottom: 0.7rem; }
summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--head); font-size: 1.6rem; line-height: 1; color: var(--green-dark); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* reviews */
.reviews { position: relative; background: #fff; color: var(--ink); border-radius: 0.7rem; padding: 2rem 4.5rem 1.5rem 2rem; max-width: 50rem; margin: 0 auto; min-height: 15rem; box-shadow: 0 12px 34px rgba(12,13,13,0.18); text-align: left; }
.reviews::before { content: "“"; position: absolute; right: 1.2rem; top: 0.2rem; font-family: Georgia, serif; font-size: 8rem; line-height: 1; color: var(--green); opacity: 0.35; }
.reviews[hidden] { display: none; }
/* comparison table */
.compare-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
table.compare { width: 100%; min-width: 34rem; border-collapse: collapse; background: #fff; border-radius: 0.6rem; overflow: hidden; box-shadow: 0 4px 18px rgba(12,13,13,0.05); }
table.compare th, table.compare td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--black); color: #fff; font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.compare thead th:nth-child(2) { background: var(--green); color: var(--black); }
table.compare tbody th { font-weight: 700; width: 28%; }
table.compare td:nth-child(2) { font-weight: 600; }
table.compare td:nth-child(3) { color: var(--muted); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }

.review { margin: 0; }
.review + .review { margin-top: 1.6rem; }
.reviews.rotating .review { display: none; margin-top: 0; }
.reviews.rotating .review.active { display: block; }
.review .stars { color: #f2a900; font-size: 1.5rem; letter-spacing: 0.12em; }
.review blockquote { margin: 0.6rem 0 0.9rem; font-size: 1.15rem; }
.review figcaption { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.review .g-logo { width: 1.1rem; height: 1.1rem; flex: none; }
.review-nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.2rem; }
.review-nav button { font: inherit; font-size: 1.3rem; font-weight: 700; background: var(--green); border: 0; color: var(--black); width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer; }
.review-nav button:hover { background: #77c254; }
.review-nav .count { color: var(--muted); font-size: 0.9rem; }
.google-line { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; font-weight: 600; margin: 0 0 2rem; }
.google-line .g-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(12,13,13,0.18); }
.google-line .g-badge img { width: 1.5rem; height: 1.5rem; }
.google-line .stars { color: var(--black); font-size: 1.3rem; letter-spacing: 0.1em; }
.fade-in { animation: fade 0.5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* contact */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.contact-grid > div { background: #1a1d1d; border-radius: 0.6rem; padding: 1.5rem; border-top: 5px solid var(--green); }
.contact-grid h3 { display: flex; align-items: center; gap: 0.6rem; }
.contact-grid h3 .icon { color: var(--green); width: 1.6rem; height: 1.6rem; }
.contact-grid p { margin: 0 0 0.35rem; }
.contact-grid a { color: #fff; }
.contact-grid p.loc + p.loc { margin-top: 0.9rem; }
.contact-grid .photos { margin: 0 0 1rem; }
.big { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--green) !important; text-decoration: none; letter-spacing: 0.02em; }

/* slogan */
.slogan { background: var(--green); color: var(--black); text-align: center; padding: 2rem 0; }
.slogan p { margin: 0; font-family: var(--head); font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 700; font-style: italic; line-height: 1.2; }
.slogan p span { color: #fff; }

/* text pages */
.text > * { max-width: 48rem; }
.text h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 2.5rem; }
.text h2:first-child { margin-top: 0; }
.text h3 { margin-top: 1.25rem; }
.text p, .text ul { margin: 0 0 1rem; }
.cta { background: var(--black); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #c9d1cc; margin: 0 0 1.5rem; max-width: 44rem; }

/* footer */
footer { background: var(--black); color: #b9c2bd; padding: 2.5rem 0 1.5rem; font-size: 0.95rem; border-top: 5px solid var(--green); }
footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; }
footer img.flogo { display: block; width: 15rem; max-width: 100%; height: auto; }
footer h4 { font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; margin: 0 0 0.6rem; }
footer p { margin: 0 0 0.3rem; }
footer a { color: #fff; }
footer p.loc { margin-bottom: 0.9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
footer .copy { border-top: 1px solid #2a2e2e; margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* sticky call bar on phones */
.callbar { display: none; }
@media (max-width: 40rem) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; box-shadow: 0 -2px 12px rgba(0,0,0,0.25); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 0.5rem calc(0.9rem + env(safe-area-inset-bottom)); font-family: var(--head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; }
  .callbar .call { background: var(--green); color: var(--black); }
  .callbar .wa { background: var(--black); color: #fff; }
  body { padding-bottom: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } html { scroll-behavior: auto; } a.card { transition: none; } }

/* ---------- engineer claim + TÜV seal ---------- */
.kicker { display: inline-block; margin: 0 0 0.6rem !important; padding-left: 0.8rem; border-left: 5px solid var(--green); font-family: var(--head); font-size: clamp(1.2rem, 2.4vw, 1.6rem) !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff !important; line-height: 1.2; }
.hero h1 .kicker { display: block; width: fit-content; font-style: normal; max-width: none; }
.tuev-badge { display: inline-flex; flex-direction: column; gap: 0.35rem; margin-top: 1.75rem; text-decoration: none; }
.tuev-badge img { display: block; width: 18rem; max-width: 100%; height: auto; background: #fff; border-radius: 0.45rem; padding: 0.45rem; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.tuev-badge span { color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tuev-badge:hover img { outline: 3px solid var(--green); }
.band a { color: var(--black); text-decoration: underline; }
.tuev-big { display: inline-flex; flex-direction: column; gap: 0.5rem; margin-top: 1.75rem; text-decoration: none; color: var(--green-dark); font-weight: 700; }
.tuev-big img { display: block; width: 28rem; max-width: 100%; height: auto; border-radius: 0.5rem; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(12,13,13,0.1); }
.tuev-big:hover img { outline: 3px solid var(--green); }
.ftuev img { display: block; width: 14rem; max-width: 100%; height: auto; margin-top: 1.2rem; background: #fff; border-radius: 0.4rem; padding: 0.3rem; }

/* ---------- contact form ---------- */
.contact-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.contact-layout .contact-grid { grid-template-columns: 1fr; }
@media (max-width: 56rem) { .contact-layout { grid-template-columns: 1fr; } }
.formcard { background: #fff; color: var(--ink); border-radius: 0.7rem; padding: 1.75rem; border-top: 5px solid var(--green); display: grid; gap: 1rem; }
.formcard h3 { color: var(--ink) !important; margin: 0; font-size: 1.6rem; }
.formcard label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.formcard input, .formcard select, .formcard textarea { font: inherit; font-weight: 400; color: var(--ink); background: #f7f9f6; border: 1.5px solid #c9d2c6; border-radius: 0.4rem; padding: 0.7rem 0.8rem; width: 100%; }
.formcard textarea { resize: vertical; min-height: 8rem; }
.formcard input:focus, .formcard select:focus, .formcard textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(104,179,69,0.3); background: #fff; }
.row2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.formcard .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.formcard .check input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--green); flex: none; }
.formcard a { color: var(--green-dark); }
.formcard .btn { justify-self: start; border: 0; cursor: pointer; }
.formhint { margin: 0; font-size: 0.88rem; color: var(--muted); }
.formstatus { margin: 0; padding: 0.8rem 1rem; border-radius: 0.4rem; background: #fdecea; color: #8a1c12; font-weight: 600; }
.formstatus[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- KI-Chat ---------- */
.chat-launcher { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.6rem; background: var(--green); color: var(--black); border: 3px solid #fff; border-radius: 2rem; padding: 0.75rem 1.2rem 0.75rem 1rem; font-family: var(--head); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(12,13,13,0.3); }
.chat-launcher:hover { background: #77c254; }
.chat-launcher .icon { width: 1.6rem; height: 1.6rem; }
.chat-is-open .chat-launcher { display: none; }
.chat-panel { padding: 0 !important; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 41; width: min(25rem, calc(100vw - 2rem)); height: min(40rem, calc(100vh - 2.5rem)); display: flex; flex-direction: column; background: #fff; border-radius: 0.9rem; overflow: hidden; box-shadow: 0 16px 48px rgba(12,13,13,0.35); border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--black); color: #fff; padding: 0.85rem 1rem; border-bottom: 4px solid var(--green); }
.chat-title { display: grid; line-height: 1.25; }
.chat-title strong { font-family: var(--head); font-size: 1.25rem; letter-spacing: 0.02em; }
.chat-title span { font-size: 0.8rem; color: #b9c2bd; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 0.3rem; }
.chat-body { flex: 1; overflow-y: auto; background: var(--paper); display: flex; flex-direction: column; }
.chat-log { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-msg { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: 0.9rem; font-size: 0.98rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.from-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 0.25rem; }
.chat-msg.from-user { align-self: flex-end; background: var(--green); color: var(--black); border-bottom-right-radius: 0.25rem; }
.chat-msg.typing { color: var(--muted); letter-spacing: 0.2em; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1rem 1rem; }
.chat-chip { font: inherit; font-size: 0.88rem; font-weight: 600; background: #fff; color: var(--green-dark); border: 1.5px solid var(--green); border-radius: 1.2rem; padding: 0.35rem 0.8rem; cursor: pointer; }
.chat-chip:hover { background: var(--green-soft); }
.chat-input { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line); background: #fff; }
.chat-input[hidden] { display: none; }
.chat-input textarea { flex: 1; font: inherit; font-size: 0.98rem; resize: none; border: 1.5px solid #c9d2c6; border-radius: 0.5rem; padding: 0.55rem 0.7rem; max-height: 7rem; }
.chat-input textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(104,179,69,0.3); }
.chat-send { flex: none; width: 2.8rem; border: 0; border-radius: 0.5rem; background: var(--green); color: var(--black); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-send:disabled { opacity: 0.5; cursor: wait; }
.chat-send .icon { width: 1.3rem; height: 1.3rem; }
.chat-foot { margin: 0; padding: 0.4rem 0.8rem 0.55rem; font-size: 0.72rem; line-height: 1.35; color: var(--muted); background: #fff; }
.chat-consent { background: #fff; border: 1px solid var(--line); border-radius: 0.7rem; padding: 1rem; display: grid; gap: 0.7rem; font-size: 0.93rem; }
.chat-consent p { margin: 0; }
.chat-consent .btn { font-size: 1.05rem; justify-content: center; border: 0; cursor: pointer; }
.chat-alt { font-size: 0.88rem; color: var(--muted); }
.chat-lead { align-self: stretch; background: #fff; border: 2px solid var(--green); border-radius: 0.7rem; padding: 0.9rem; display: grid; gap: 0.6rem; }
.chat-lead strong { font-family: var(--head); font-size: 1.15rem; }
.chat-lead label { display: grid; gap: 0.2rem; font-size: 0.85rem; font-weight: 700; }
.chat-lead input, .chat-lead select { font: inherit; font-weight: 400; font-size: 0.95rem; border: 1.5px solid #c9d2c6; border-radius: 0.4rem; padding: 0.5rem 0.6rem; background: #f7f9f6; }
.chat-lead .chat-check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.chat-lead .chat-check input { width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; accent-color: var(--green); flex: none; }
.chat-lead .btn { font-size: 1.05rem; justify-content: center; border: 0; cursor: pointer; }
.chat-lead-msg { margin: 0; color: #8a1c12; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 40rem) {
  .chat-launcher { bottom: 4.6rem; right: 0.9rem; padding: 0.7rem; }
  .chat-launcher-text { display: none; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}

/* photos on district pages */
.photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0 2rem; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; height: auto; border-radius: 0.6rem; }
.photos figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }

/* right-to-left pages (Arabic) */
[dir="rtl"] h1 { font-style: normal; }
[dir="rtl"] .hero .wrap { direction: ltr; }   /* Textblock bleibt links im dunklen Bereich, nicht auf dem Foto */
[dir="rtl"] .hero .wrap > * { direction: rtl; }
[dir="rtl"] ul.ticks li { padding-left: 0; padding-right: 2.1rem; }
[dir="rtl"] ul.ticks li::before { left: auto; right: 0; }
[dir="rtl"] ul.ticks li::after { left: auto; right: 0.42rem; }
[dir="rtl"] details { border-left: 1px solid var(--line); border-right: 5px solid var(--green); }

/* sponsoring */
.sponsor-photo { margin: 0; }
.sponsor-photo img { display: block; width: 100%; max-width: 26rem; height: auto; border-radius: 0.6rem; }

/* numbers on the home page (startseite.js counts them up) */
.stats { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stats li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0.6rem; padding: 1rem 1.2rem; color: var(--muted); font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.stats strong { display: block; font-family: var(--head); font-size: 2.6rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats small { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: var(--green-dark); }
@media (max-width: 40rem) { .stats { grid-template-columns: 1fr 1fr; } .stats strong { font-size: 2.1rem; } }

/* quick check after an accident (startseite.js) */
.check { max-width: 46rem; background: var(--green-soft); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 0.7rem; padding: 1.6rem 1.8rem; }
.check > p { margin: 0 0 1.2rem; }
.check h3 { margin: 0 0 1rem; font-size: 1.5rem; }
.check h3:focus { outline: none; }
.check-progress { margin: 0 0 0.3rem; color: var(--green-dark); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.check-options { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.check-option { font: inherit; font-weight: 700; text-align: left; background: #fff; color: var(--ink); border: 2px solid var(--green); border-radius: 0.5rem; padding: 0.9rem 1.1rem; cursor: pointer; }
.check-option:hover { background: var(--green); color: var(--black); }
.check-back { font: inherit; font-size: 0.95rem; font-weight: 600; background: none; border: 0; color: var(--green-dark); text-decoration: underline; padding: 0.4rem 0; margin-top: 1rem; cursor: pointer; }
.check-result { margin: 0 0 1.4rem; padding-left: 1.2rem; }
.check-result li + li { margin-top: 0.6rem; }

/* district links in the footer (two columns) and overview page einsatzgebiete.html */
footer .fareas { columns: 2; column-gap: 1.2rem; margin-bottom: 0.6rem; }
footer .fareas p { break-inside: avoid; }
ul.areas li.all { background: var(--green); }
ul.areas li.all a { color: var(--black); }
ul.areas li.all a:hover { color: #fff; }
.gebiete { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: none !important; margin: 1.5rem 0 1rem; }
.gebiet { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0.6rem; padding: 1rem 1.2rem; }
.gebiet h3 { margin: 0 0 0.4rem; }
.gebiet p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.95rem; }
.gebiet p.go { margin: 0; font-weight: 700; }

/* WhatsApp button bottom right on larger screens (phones have the call bar) */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.6rem; background: var(--wa); color: #fff; border: 3px solid #fff; border-radius: 2rem; padding: 0.7rem 1.2rem 0.7rem 1rem; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(12,13,13,0.3); }
.wa-float:hover { background: #187a42; }
.wa-float .icon { width: 1.5rem; height: 1.5rem; }
.wa-float strong { font-family: var(--head); font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
@media (max-width: 40rem) { .wa-float { display: none; } }
@media print { .wa-float { display: none; } }

/* case study: figures table + note */
.zahlen-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
table.zahlen { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 0.6rem; overflow: hidden; }
table.zahlen th, table.zahlen td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.zahlen th { font-weight: 600; }
table.zahlen td { font-weight: 700; }
table.zahlen tr.sum th, table.zahlen tr.sum td { background: var(--green-soft); font-weight: 700; }
table.zahlen tr:last-child th, table.zahlen tr:last-child td { border-bottom: 0; }
.hinweis { font-size: 0.92rem; color: var(--muted); border-left: 4px solid var(--line); padding-left: 0.9rem; }
.fall-stats { margin: 0 0 1.5rem; }
.fall-foto { margin: 0; align-self: center; }
.fall-foto img { display: block; width: 100%; height: auto; border-radius: 0.6rem; }
.fall-foto figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.fall-detail { margin: 0.5rem 0 2rem; max-width: 34rem; }
.fall-detail img { display: block; width: 100%; height: auto; border-radius: 0.6rem; }
.fall-detail figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }
