/* ransom-check.de – ein Stylesheet, keine Skripte, keine externen Quellen */
@font-face { font-family: "Cabin"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/cabin-variable.woff2") format("woff2"); }
:root {
  --navy: #0c193e; --navy-2: #16255a; --green: #a2c851; --green-dark: #7fa33a; --green-text: #4f6e14;
  --ink: #1b2130; --muted: #5b6474; --line: #dfe3ea; --bg: #ffffff; --bg-soft: #f4f6f9; --warn-bg: #fff6e0; --warn-line: #f0d48a;
  --radius: 10px; --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 "Cabin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--line); background: #fff; position: relative; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; padding: 10px 0; }
.logo img { width: 240px; height: auto; }
.claim { font-size: .78rem; color: var(--muted); margin-top: 2px; padding-left: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { display: block; padding: .55rem .8rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--green-text); }
.nav-knopf { display: none; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (min-width: 861px) { .nav-toggle { display: none; } }
.nav-toggle:focus-visible + .nav-knopf { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 860px) {
  .nav-knopf { display: flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 10px; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
  .nav-knopf span { display: block; height: 3px; background: var(--navy); border-radius: 2px; }
  /* Logo und Menüknopf in einer Zeile, das aufgeklappte Menü darunter über die volle Breite */
  .nav { display: contents; }
  .nav-knopf { margin-left: auto; }
  .nav ul { display: none; flex-basis: 100%; flex-direction: column; padding: 8px 0 12px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav a { font-size: 1.05rem; padding: .7rem .8rem; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; padding: clamp(44px, 7vw, 88px) 0; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
@media (min-width: 861px) { .hero { min-height: 420px; } }
.hero h1, .hero h2 { color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
/* Startseite: eingefärbtes Foto, Verlauf von links für den Text */
.hero-foto::before { background-image: url("/assets/img/hero-foto-duo-960.jpg"); }
@media (min-width: 960px) { .hero-foto::before { background-image: url("/assets/img/hero-foto-duo-1920.jpg"); } }
.hero-foto::after { background: linear-gradient(90deg, rgba(12,25,62,.88) 0%, rgba(12,25,62,.62) 45%, rgba(12,25,62,.12) 100%); }
/* Unterseiten: Illustration rechts innerhalb der Inhaltsspalte, feste Höhe, Hintergrund exakt Navy */
.hero .wrap { position: relative; width: 100%; }
.hero-illu .wrap::after { content: ""; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 480px; height: 320px; background: url("/assets/img/hero-illu.png") no-repeat right center / contain; opacity: .9; pointer-events: none; }
.hero-text { max-width: 600px; position: relative; }
@media (max-width: 1100px) { .hero-illu .wrap::after { width: 320px; height: 220px; opacity: .45; } }
@media (max-width: 760px) { .hero-illu .wrap::after { display: none; } .hero-foto::after { background: rgba(12,25,62,.75); } }
.hero .ey { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .8em; }
.hero p { font-size: 1.15rem; max-width: 60ch; color: #dfe4f2; }
.hero p a { color: #fff; }
.hero p a:hover { color: var(--green); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-karte { background: rgba(12,25,62,.55); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 20px 22px; backdrop-filter: blur(6px); }
.hero-karte ul { margin: 0; padding-left: 1.2em; color: #dfe4f2; }

/* Knöpfe */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--green); background: var(--green); color: var(--navy); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-hell:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-rahmen { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-rahmen:hover { background: var(--navy); color: #fff; }
.btn-reihe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

/* Abschnitte */
.abschnitt { padding: clamp(36px, 6vw, 72px) 0; }
.abschnitt-soft { background: var(--bg-soft); }
.ey { color: var(--green-text); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 65ch; }
.prosa { max-width: 72ch; }
.karten { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.5em 0; }
.karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }
.karte .btn, .karte .mehr { margin-top: auto; align-self: flex-start; }
.karte-form { display: flex; flex-direction: column; flex: 1; margin: 0; }
.karte-form .btn { margin-top: auto; }
.karte-form .feld:last-of-type { margin-bottom: 16px; }
.karte ul { padding-left: 1.2em; }
.schritt { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; margin: 2.2em 0 1em; }
.schritt-nr { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; }
.schritt h2 { margin-top: .2em; }
.hinweis { background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 6px solid #e0a800; border-radius: var(--radius); padding: 14px 18px; margin: 1.2em 0; }
.hinweis p:last-child { margin: 0; }
.bild { margin: 1.2em 0; }
.bild img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.bild figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }
.checkliste { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 14px; }
.checkliste li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 56px; position: relative; }
.checkliste li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--green-dark); background: #fff; }
.checkliste li::after { content: ""; position: absolute; left: 25px; top: 23px; width: 7px; height: 13px; border: solid var(--green-dark); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.checkliste strong { display: block; color: var(--navy); margin-bottom: .2em; }
.klein { font-size: .9rem; color: var(--muted); }
code, .hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 18px; margin: 0 0 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; position: absolute; right: 2px; top: 10px; font-size: 1.4rem; color: var(--green-dark); }
details[open] summary::after { content: "–" / ""; }
details > :not(summary) { margin-top: 0; }
details p:last-child, details ul:last-child { margin-bottom: 16px; }
.phasen { counter-reset: phase; list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 18px; }
.phasen > li { counter-increment: phase; padding-left: 70px; position: relative; }
.phasen > li::before { content: counter(phase); position: absolute; left: 0; top: 2px; width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: 1.2rem; }
.phasen h3 { margin-top: 0; }
.phasen ul { padding-left: 1.2em; }
.tabelle { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .98rem; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle th { color: var(--navy); background: var(--bg-soft); }
.zwei-spalten { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .zwei-spalten { grid-template-columns: 1fr; } .schritt { grid-template-columns: 48px 1fr; gap: 14px; } .schritt-nr { width: 48px; height: 48px; font-size: 1.15rem; } }

/* Formulare */
form { margin: 1em 0; }
.feld { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
input[type="text"], input[type="email"], textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #b9c0cc; border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; }
input:focus, textarea:focus { border-color: var(--green-dark); outline: 3px solid rgba(162,200,81,.35); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }
.honig { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-inline .feld { flex: 1 1 260px; margin: 0; }
.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink); }
.einwilligung input { margin-top: .3em; width: 18px; height: 18px; flex: none; }
.meldung { border-radius: var(--radius); padding: 16px 18px; margin: 1em 0; border: 1px solid var(--line); }
.meldung-ok { background: #eef6dc; border-color: #c6dd92; }
.meldung-fehler { background: #fdeaea; border-color: #f0b4b4; }

/* Fuß */
.fuss { background: var(--navy); color: #cfd6e6; margin-top: 48px; padding: 36px 0 28px; font-size: .95rem; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--green); }
.fuss-links { list-style: none; padding: 0; margin: 0 0 1em; display: flex; gap: 18px; flex-wrap: wrap; }
.fuss .klein { color: #9fa9c2; margin: 0; }
.bsi { display: flex; gap: 16px; align-items: center; margin: 1.5em 0; }
.bsi img { width: 84px; flex: none; }
@media print { .kopf, .fuss, .btn { display: none; } body { font-size: 11pt; } }

/* Verwaltung */
.zahl { font-size: 2.2rem; font-weight: 700; color: var(--navy); margin: 0; }
.tabelle-wrap { overflow-x: auto; }
.tabelle td:empty::after { content: "–"; color: #c3c9d4; }
.karten-klein { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.karte-link { text-decoration: none; padding: 14px 16px; }
.karte-link h3 { font-size: .95rem; color: var(--muted); }
.karte-link:hover, .karte-link.aktiv { border-color: var(--green-dark); box-shadow: inset 0 0 0 1px var(--green-dark); }
.karte-link .zahl { font-size: 1.7rem; }
.blaettern { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 12px 0; flex-wrap: wrap; }
.blaettern span { color: var(--muted); }
.det { display: inline-block; margin-right: 10px; }
.det b { color: var(--navy); font-weight: 600; }
.zeile-fehler td { background: #fdeaea; }
