/* =========================================================
   Rechtsanwalt Markus Rausch – Kanzlei-Website
   Keine externen Schriften, keine Cookies, kein Tracking Dritter.
   ========================================================= */

:root {
  --navy: #14264a;
  --navy-deep: #0b1a33;
  --navy-soft: #23396a;
  --gold: #c9a24a;
  --gold-600: #a9832f;
  --gold-50: #f8f1df;
  --sea: #1a7d86;
  --sea-600: #14656d;
  --sea-50: #e6f3f4;
  --sand: #f8f4ec;
  --sand-200: #ece3d3;
  --ink: #16233a;
  --muted: #56667a;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f8f4ec;
  --card: #ffffff;
  --red: #b83227;
  --red-50: #fbeceb;
  --amber: #a86c12;
  --amber-50: #fdf4e3;
  --green: #2f7d52;
  --green-50: #e8f5ed;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 38, 74, .08), 0 2px 6px rgba(20, 38, 74, .05);
  --shadow-lg: 0 24px 60px rgba(11, 26, 51, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --fs: 17px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7ecf3; --muted: #a3b0c2; --line: #2a3a55; --bg: #0c1628; --bg-alt: #101d34;
    --card: #13223c; --sand: #101d34; --sand-200: #1c2d4b; --gold-50: #2a2412; --sea-50: #0f2d33;
    --red-50: #3a1714; --amber-50: #33260f; --green-50: #112b1e; --navy-soft: #2c4577;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e7ecf3; --muted: #a3b0c2; --line: #2a3a55; --bg: #0c1628; --bg-alt: #101d34;
  --card: #13223c; --sand: #101d34; --sand-200: #1c2d4b; --gold-50: #2a2412; --sea-50: #0f2d33;
  --red-50: #3a1714; --amber-50: #33260f; --green-50: #112b1e; --navy-soft: #2c4577;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-fs="l"] { --fs: 19px; }
:root[data-fs="xl"] { --fs: 21px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; font-size: var(--fs); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--sea-600); }
:root[data-theme="dark"] a, :root:not([data-theme="light"]) a { }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .7rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 16px; background: var(--gold); border-radius: 2px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1b1606; box-shadow: 0 8px 20px rgba(201, 162, 74, .35); }
.btn-gold:hover { background: #d8b35d; color: #1b1606; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-600); color: #fff; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy-deep); color: #c9d3e3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .a11y button { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 6px; padding: 1px 8px; cursor: pointer; font-size: .8rem; }
.topbar .a11y button[aria-pressed="true"] { background: var(--gold); color: #111; border-color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.1; display: block; }
.brand-sub { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .7em; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--gold-600); background: var(--gold-50); }
.nav .btn { margin-left: 8px; color: #1b1606; }
.nav .btn:hover { background: #d8b35d; color: #1b1606; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--gold); }
.menu-toggle { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--sea)); }

@media (max-width: 1140px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(calc(-100% - 90px)); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav a { padding: .8em .6em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; border-radius: 999px; }
}
@media (max-width: 640px) { .topbar .tb-left .hide-sm { display: none; } .brand-sub { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #2a4a86 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 96px 0 110px; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .lead { color: #cfd9ea; }
.hero .eyebrow { color: var(--gold); }
.hero-art { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero-art path { fill: none; stroke: rgba(201, 162, 74, .35); stroke-width: 1.4; }
.hero-art path.b { stroke: rgba(122, 170, 230, .18); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-ctas .btn-ghost { color: #fff; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; color: #dfe6f2; font-size: .95rem; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%23141' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.lotse-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 26px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.lotse-panel h2 { font-size: 1.35rem; margin-bottom: .3em; }
.lotse-panel p { color: #cfd9ea; font-size: .95rem; }
.lotse-link { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px; margin-top: 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.lotse-link:hover { background: rgba(255, 255, 255, .13); border-color: var(--gold); color: #fff; transform: translateX(3px); }
.lotse-link svg.lh { width: 52px; height: 52px; }
.lotse-link b { display: block; font-family: var(--serif); font-size: 1.1rem; }
.lotse-link span { font-size: .85rem; color: #c4cfe2; }
.lotse-link .go { font-size: 1.3rem; color: var(--gold); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 64px 0 76px; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); color: #1b1606; font-size: .9rem; overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.ticker .label { font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; display: flex; align-items: center; gap: 8px; }
.ticker .label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-inner { display: inline-flex; gap: 48px; white-space: nowrap; animation: marquee 80s linear infinite; }
.ticker:hover .ticker-inner, .ticker:focus-within .ticker-inner { animation-play-state: paused; }
.ticker a { color: #1b1606; text-decoration: none; font-weight: 600; }
.ticker a:hover { text-decoration: underline; }
.ticker a small { font-weight: 800; opacity: .75; margin-right: 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* ---------- Wegweiser ---------- */
.wegweiser { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.situations { display: grid; gap: 10px; }
.situation { text-align: left; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s, transform .15s; }
.situation:hover { border-color: var(--gold); transform: translateX(3px); }
.situation[aria-pressed="true"] { border-color: var(--navy); background: var(--gold-50); box-shadow: inset 4px 0 0 var(--gold); }
:root[data-theme="dark"] .situation[aria-pressed="true"] { border-color: var(--gold); }
.situation .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--sea-50); font-size: 1.25rem; }
.answer { min-height: 100%; }
.answer .ampel { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.ampel.rot { background: var(--red-50); color: var(--red); }
.ampel.gelb { background: var(--amber-50); color: var(--amber); }
.ampel.gruen { background: var(--green-50); color: var(--green); }
.answer ol { padding-left: 1.2em; }
.answer ol li { margin-bottom: .45em; }
.answer .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 880px) { .wegweiser { grid-template-columns: 1fr; } }

/* ---------- Rechtsgebiete ---------- */
.area { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.area-top { padding: 28px 28px 22px; color: #fff; position: relative; }
.area-top h3 { color: #fff; margin: 6px 0 4px; font-size: 1.5rem; }
.area-top p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.area-top .tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.area-top svg.lh { position: absolute; right: 18px; top: 18px; width: 56px; height: 56px; opacity: .95; }
.area.fam .area-top { background: linear-gradient(135deg, #1b3f6e, #0f2548); }
.area.verk .area-top { background: linear-gradient(135deg, #20294f, #0b1230); }
.area.arb .area-top { background: linear-gradient(135deg, #14565d, #0d3439); }
.area.misc .area-top { background: linear-gradient(135deg, #5c4a1c, #33280c); }
.area-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.area-body ul { list-style: none; padding: 0; margin: 0 0 18px; }
.area-body li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.area-body li::before { content: "›"; position: absolute; left: 6px; top: 5px; color: var(--gold-600); font-weight: 800; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sea-50); color: var(--sea-600); border: 1px solid transparent; }
:root[data-theme="dark"] .chip { color: #7fd0d8; }
.area-body .btn { margin-top: auto; align-self: flex-start; }
.domain { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---------- Lotsen-Prinzip ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
:root[data-theme="dark"] .step::before { background: var(--gold); color: var(--navy-deep); }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Rechtsprechung ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme="dark"] .filter[aria-pressed="true"] { background: var(--gold); color: #1b1606; border-color: var(--gold); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.news:hover { transform: translateY(-2px); border-color: var(--gold); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.court { font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; color: #fff; font-size: .74rem; }
.court.bgh { background: #8a1f2b; } .court.bverfg { background: #7a1e6b; } .court.bag { background: #1a6a73; }
.court.bsg { background: #2f6b2f; } .court.bverwg { background: #1d4f8c; } .court.bfh { background: #7a5a12; }
.type { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.type.termin { color: var(--amber); }
.news h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.news h3 a { color: var(--ink); text-decoration: none; }
.news h3 a:hover { color: var(--sea); text-decoration: underline; }
.news p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.news .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.news .lotse-hint { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; font-weight: 600; }
.news-empty, .news-loading { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.skeleton { height: 190px; border-radius: 16px; background: linear-gradient(90deg, var(--bg-alt) 25%, var(--sand-200) 50%, var(--bg-alt) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.news-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.toolbar { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 860px) { .toolbar { grid-template-columns: 1fr 1fr; } .toolbar .search { grid-column: 1 / -1; } }

/* ---------- Formulare & Rechner ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea { width: 100%; padding: .7em .85em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: var(--green-50); color: var(--green); }
.form-msg.err { display: block; background: var(--red-50); color: var(--red); }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }
.result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.result::after { content: "§"; position: absolute; right: -10px; bottom: -60px; font-family: var(--serif); font-size: 16rem; color: rgba(255, 255, 255, .05); line-height: 1; }
.result .small { color: #b8c5da; }
.result .big { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--gold); line-height: 1.15; margin: 4px 0 10px; }
.result table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 8px; }
.result td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); vertical-align: top; }
.result td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-weight: 700; }
.result .warn { margin-top: 14px; background: rgba(184, 50, 39, .25); border-left: 4px solid #ff8a7a; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.result .okay { margin-top: 14px; background: rgba(47, 125, 82, .28); border-left: 4px solid #6fd39c; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.tabs { display: flex; gap: 6px; background: var(--bg-alt); padding: 5px; border-radius: 999px; margin-bottom: 26px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.section.alt .tabs { background: var(--sand-200); }

/* ---------- Kanzlei / Profil ---------- */
.profile { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.portrait svg { width: 70%; height: auto; }
.portrait .badge { position: absolute; left: 20px; bottom: 20px; right: 20px; background: rgba(255, 255, 255, .95); color: #16233a; border-radius: 16px; padding: 14px 18px; font-size: .9rem; }
.portrait .badge b { font-family: var(--serif); font-size: 1.1rem; display: block; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.value { padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
.section.alt .value { background: var(--card); }
.value b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.value span { font-size: .9rem; color: var(--muted); }
.signature { font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", "Brush Script MT", cursive; font-size: 1.7rem; color: var(--navy); margin-top: 18px; }
:root[data-theme="dark"] .signature { color: var(--gold); }

/* ---------- Kosten ---------- */
.price { text-align: center; }
.price .amount { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; margin: 10px 0 6px; }
:root[data-theme="dark"] .price .amount { color: var(--gold); }
.price.featured { border: 2px solid var(--gold); position: relative; }
.price.featured::before { content: "Festpreis"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1b1606; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price ul { text-align: left; list-style: none; padding: 0; font-size: .92rem; }
.price li { padding: 6px 0 6px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }

/* ---------- Bücher ---------- */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 860px) { .books { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .books { grid-template-columns: 1fr; } }
.book { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book img { width: 190px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: -6px 0 0 rgba(0, 0, 0, .08) inset, 0 20px 40px rgba(11, 26, 51, .28); transition: transform .25s; margin-bottom: 20px; background: var(--sand-200); }
.book:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.book h3 { font-size: 1.12rem; margin-bottom: 4px; }
.book p { font-size: .9rem; color: var(--muted); max-width: 32ch; }
.book .links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-600); font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq-search { max-width: 860px; margin: 0 auto 20px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--gold); }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.contact-card dt { color: var(--gold); font-weight: 700; }
.contact-card dd { margin: 0; }
.contact-card .btn { width: 100%; margin-top: 10px; }
.map-card { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map-card svg { display: block; width: 100%; height: auto; }
.map-card .map-links { padding: 14px 18px; display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.urgent { display: flex; gap: 14px; align-items: flex-start; background: var(--red-50); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); color: var(--ink); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.urgent b { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c5da; padding: 64px 0 28px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #dfe6f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .8rem; color: #8d9bb3; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span { font-size: .74rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 10px; color: #dfe6f2; }

/* ---------- Mobile action bar / To top ---------- */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, .12); padding-bottom: env(safe-area-inset-bottom); }
  .actionbar a { color: #fff; text-decoration: none; text-align: center; font-size: .78rem; font-weight: 700; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .actionbar a span { font-size: 1.2rem; }
  .actionbar a.primary { background: var(--gold); color: #1b1606; }
  body { padding-bottom: 64px; }
  .to-top { bottom: 80px !important; }
}
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: var(--gold); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Unterseiten ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: #cfd9ea; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { font-size: .85rem; color: #b8c5da; margin-bottom: 14px; }
.crumbs a { color: #fff; }
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 90px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.box { border: 2px solid var(--navy); border-radius: 12px; padding: 16px 18px; margin: 1.2rem 0; }
:root[data-theme="dark"] .box { border-color: var(--gold); }

@media print {
  .topbar, .site-header, .ticker, .actionbar, .to-top, .hero-art, .site-footer .badges, .filters, form, .tabs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-hero, .result, .contact-card { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .result .big { color: #000 !important; }
  .section { padding: 18px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ---------- Feinschliff Navigation & Karten ---------- */
.nav a, .brand-sub, .brand-name { white-space: nowrap; }
@media (max-width: 1240px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g4 { grid-template-columns: 1fr; } }
.area-top { padding-right: 88px; }
.area.misc .area-top { padding-right: 28px; }
.areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.areas .area.misc { grid-column: 1 / -1; flex-direction: row; }
.areas .area.misc .area-top { flex: 0 0 34%; display: flex; flex-direction: column; justify-content: center; }
.areas .area.misc .area-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px 32px; align-items: start; }
.areas .area.misc .area-body ul { margin: 0; }
.areas .area.misc .area-body .btn { grid-column: 1; justify-self: start; }
@media (max-width: 1000px) { .areas { grid-template-columns: 1fr 1fr; } .areas .area.misc { flex-direction: column; } .areas .area.misc .area-body { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Weitere Rechtsgebiete ---------- */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } }
.topic { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); transition: transform .15s, box-shadow .15s; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.t-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--gold-50); margin-bottom: 14px; }
.topic h3 { font-size: 1.15rem; margin-bottom: 10px; }
.topic ul { list-style: none; padding: 0; margin: 0 0 14px; font-size: .9rem; }
.topic li { padding: 4px 0 4px 18px; position: relative; color: var(--muted); }
.topic li::before { content: "›"; position: absolute; left: 2px; top: 2px; color: var(--gold-600); font-weight: 800; }
.topic .tip { font-size: .84rem; background: var(--bg-alt); border-left: 3px solid var(--sea); padding: 10px 12px; border-radius: 0 10px 10px 0; margin: 0 0 14px; }
.topic .t-link { margin-top: auto; font-weight: 700; text-decoration: none; font-size: .92rem; }
.topic .t-link:hover { text-decoration: underline; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.topics.dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topics.dl .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .topics.dl { grid-template-columns: 1fr; } }
.urgent.info { background: var(--sea-50); border-color: color-mix(in srgb, var(--sea) 30%, transparent); }
.urgent.info b { color: var(--sea-600); }
.pay { margin-top: 28px; }
.pay h3 { margin-bottom: 14px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pay-grid > div { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: start; }
.pay-grid .t-ico { grid-row: span 2; margin: 0; }
@media (max-width: 800px) { .pay-grid { grid-template-columns: 1fr; } }
.map-card img { display: block; width: 100%; height: auto; }
.map-info { padding: 16px 18px 18px; }
.map-info b { font-family: var(--serif); font-size: 1.05rem; }
.map-info p { font-size: .9rem; color: var(--muted); margin: 6px 0 12px; }
.map-info .map-links { padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.map-wide { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; margin-top: 28px; }
.map-wide > a { display: block; height: 100%; }
.map-wide img { height: 100%; object-fit: cover; }
.map-wide .map-info { padding: 26px 28px; }
@media (max-width: 800px) { .map-wide { grid-template-columns: 1fr; } }
