/* Layout: Leitstand-Optik – dunkler Schiefergrund, Mono-Überschriften, Status-LED als einziger Akzent.
   Keine externen Schriften (DSGVO): nur Systemschriften. */
:root {
  --bg: #0e141c;
  --surface: #151e29;
  --surface-2: #1b2634;
  --line: #263446;
  --fg: #e4eaf1;
  --muted: #93a3b6;
  --accent: #f0b43c;      /* Signal-Amber */
  --accent-ink: #1a1305;
  --ok: #4fc98a;
  --warn: #f0b43c;
  --ph-bg: #3a2c0c;

  --f-display: ui-monospace, "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 72rem;
  --r: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; max-width: 65ch; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--f-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fg); }
.brand-mark {
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border: 1.5px solid var(--accent); color: var(--accent); padding: .2rem .45rem; border-radius: 4px;
}
.brand-name { font-family: var(--f-display); font-size: .92rem; line-height: 1.2; }
.brand-name small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: var(--r); padding: .45rem .7rem; font: inherit; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; cursor: pointer;
  font: 600 .95rem var(--f-body); padding: .75rem 1.2rem; border-radius: var(--r);
  border: 1px solid var(--line); color: var(--fg); background: transparent; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); color: var(--fg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); color: var(--accent-ink); }
.nav .btn { color: var(--accent-ink); padding: .5rem .95rem; }
.nav .btn[aria-current="page"] { box-shadow: none; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: .9rem; margin-bottom: 2.5rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px; background-color: var(--bg);
  mask-image: none; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.page-hero .wrap { grid-template-columns: 1fr; }

/* Statuspanel */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0;
  font-family: var(--f-display); font-size: .85rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.panel-head { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.panel-row { display: grid; grid-template-columns: 14px 1fr auto; gap: .8rem; align-items: center; padding: .75rem 1rem; }
.panel-row + .panel-row { border-top: 1px dashed var(--line); }
.panel-row b { font-weight: 600; display: block; }
.panel-row span.sub { color: var(--muted); font-size: .78rem; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.led.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: blink 1.6s steps(2, jump-none) infinite; }
.tag-state { font-size: .72rem; padding: .15rem .45rem; border-radius: 3px; border: 1px solid currentColor; color: var(--ok); }
.tag-state.warn { color: var(--warn); }
@keyframes blink { 50% { opacity: .35; } }

/* Karten */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0;
}
.card .code { font-family: var(--f-display); font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--accent); }
.card .more:hover { text-decoration: underline; }
a.card { text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); color: var(--fg); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-family: var(--f-display); font-size: .74rem; padding: .22rem .55rem; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* Ablauf (echte Reihenfolge) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 1.4rem 1.4rem 0 0; display: grid; align-content: start; gap: .6rem; position: relative; min-width: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); color: var(--accent); font-size: .85rem; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.steps p { color: var(--muted); font-size: .95rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 1.1rem; }

/* Fakten-Tabelle */
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: .85rem .8rem .85rem 0; border-bottom: 1px solid var(--line); }
.facts th { font-family: var(--f-display); font-weight: 600; color: var(--accent); white-space: nowrap; font-size: .85rem; }
.facts td { color: var(--muted); }
.facts td strong { color: var(--fg); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.band { background: var(--surface); }
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }

.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* Formular */
form.contact { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .88rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: .7rem .8rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { font-size: .95rem; padding: .8rem 1rem; border-radius: var(--r); border: 1px solid var(--ok); color: var(--ok); }

/* Rechtstexte */
.legal { max-width: 46rem; display: grid; gap: 1.1rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.4rem; }
.legal h3 { font-size: 1rem; margin-top: .6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* Platzhalter */
.ph { background: var(--ph-bg); color: var(--accent); padding: 0 .3rem; border-radius: 3px; font-family: var(--f-display); font-size: .9em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); margin-bottom: .7rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
         gap: 1rem; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.2rem clamp(16px, 4vw, 40px); }
  .nav.open { display: flex; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .row-2, .steps { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .facts th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led.warn { animation: none; }
  * { transition: none !important; }
}

/* ---------- Illustrationen ---------- */
.ill { display: block; width: 100%; height: auto; max-width: 100%; overflow: visible; }
.ill text { font-family: var(--f-display); font-size: 11px; letter-spacing: .04em; }
.ill .tx { fill: var(--fg); }
.ill .tx.s { fill: var(--muted); font-size: 10px; }
.ill .tx.ac { fill: var(--accent); font-weight: 600; }
.ill .fr { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.ill .fr.hl { stroke: var(--accent); stroke-opacity: .7; }
.ill .fr2 { fill: var(--surface-2); stroke: var(--line); }
.ill .old { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; opacity: .6; }
.ill .st { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.ill .dim { fill: none; stroke: var(--line); stroke-width: 1.2; }
.ill .dimf { fill: var(--line); }
.ill .txf { fill: var(--muted); }
.ill .acf { fill: var(--accent); }
.ill .acs { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.ill .okf { fill: var(--ok); }
.ill .okl { fill: none; stroke: var(--ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ill .bgf { fill: var(--bg); }
.ill .lock { fill: var(--accent); }
.ill .p { fill: var(--bg); stroke: var(--line); stroke-width: .8; }
.ill .p.ok { fill: var(--ok); stroke: none; }
.ill .p.wn { fill: var(--accent); stroke: none; }
.ill .ledg { fill: var(--ok); }
.ill .flow { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 3 6; animation: flow 1.4s linear infinite; }
.ill .flow.thin { stroke-width: 1; opacity: .7; }
.ill .flow.dash-ac { stroke: var(--accent); }
.ill .fiber { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.ill .road { fill: none; stroke: var(--surface-2); stroke-width: 16; stroke-linecap: round; }
.ill .road2 { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ill .pin { fill: var(--accent); }
.ill .pulse { fill: var(--accent); opacity: .15; transform-origin: 192px 138px; animation: pulse 2.4s ease-out infinite; }
.ill .blink { animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.5); opacity: 0; } }

.hero-visual { position: relative; min-width: 0; display: grid; }
.hero-visual .panel { width: min(100%, 23rem); margin: -3.2rem 0 0 auto; position: relative; }
.page-hero.has-ill .wrap { grid-template-columns: 1.1fr 1fr; }
.page-ill { max-width: 26rem; justify-self: end; width: 100%; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.project figure { margin: 0; padding: 1rem 1.2rem; background: var(--bg); border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.project .body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.project .code { font-family: var(--f-display); font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.project p { color: var(--muted); font-size: .95rem; }
.project .chips { margin-top: auto; }

@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr 1fr; }
  .page-hero.has-ill .wrap { grid-template-columns: 1fr; }
  .page-ill { justify-self: start; max-width: 22rem; }
  .hero-visual .panel { margin-top: -2rem; }
}
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } .hero-visual .panel { margin: 1rem 0 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ill .flow, .ill .pulse, .ill .blink { animation: none; } }

/* Korrekturen */
.hero .wrap { grid-template-columns: 1fr 1.05fr; }
.hero-visual { gap: 1rem; }
.hero-visual .panel { width: 100%; margin: 0; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); hyphens: auto; overflow-wrap: break-word; }
.page-hero.has-ill .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 900px) { .hero .wrap, .page-hero.has-ill .wrap { grid-template-columns: minmax(0, 1fr); } .hero-visual .panel { margin: 0; } }

/* ---------- Animationen ---------- */
.cursor { display: inline-block; width: .5em; height: .82em; margin-left: .12em; vertical-align: -0.05em; background: var(--accent); animation: caret 1.1s steps(2, jump-none) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes nodeIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes wiresIn { from { opacity: 0; } }
@keyframes drawTick { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
@keyframes fanIn { from { transform: rotate(0deg) translateX(0); } }
@keyframes shackle { 0%, 60% { transform: translateY(-7px); } 100% { transform: translateY(0); } }
@keyframes drop { 0% { transform: translateY(-40px); opacity: 0; } 60% { transform: translateY(3px); opacity: 1; } 100% { transform: none; } }
@keyframes flash { 0% { background: color-mix(in srgb, var(--ok) 18%, transparent); } 100% { background: transparent; } }

.panel-row.flash { animation: flash 1.6s ease-out; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .28s; }
  .page-ill { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both; }

  .ill .node { transform-box: fill-box; animation: nodeIn .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
  .ill .wires { animation: wiresIn .6s .9s both; }
  .hero-visual .panel-row { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .hero-visual .panel-row:nth-of-type(2) { animation-delay: 1.2s; }
  .hero-visual .panel-row:nth-of-type(3) { animation-delay: 1.3s; }
  .hero-visual .panel-row:nth-of-type(4) { animation-delay: 1.4s; }
  .hero-visual .panel-row:nth-of-type(5) { animation-delay: 1.5s; }
  .hero-visual .panel-row:nth-of-type(6) { animation-delay: 1.6s; }
  .hero-visual .panel-row.flash { animation: flash 1.6s ease-out; }

  .ill .okl.draw { stroke-dasharray: 14; animation: drawTick .35s ease-out both; animation-delay: var(--d, 0s); }
  .ill .fan { transform-box: view-box; transform-origin: 240px 280px; animation: fanIn .9s .2s cubic-bezier(.2,.7,.2,1) both; }
  .ill .shackle { animation: shackle 2.4s ease-in-out both; }
  .ill .pindrop { animation: drop .8s .35s cubic-bezier(.3,.8,.3,1) both; }

  a.card:hover, .project:hover { transform: translateY(-3px); }
  .project { transition: border-color .2s, transform .2s; }
  .project:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
  .project:hover .flow { stroke: var(--accent); animation-duration: .6s; }
  .card .more { transition: letter-spacing .2s; }
  a.card:hover .more { letter-spacing: .02em; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .steps.reveal { opacity: 1; transform: none; }
  .steps { border-top: none; position: relative; }
  .steps::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .steps.reveal::before { transform: scaleX(0); }
  .steps.reveal.in::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.ill .f1 { --fx: 80px; --fr: 8deg; }
.ill .f2 { --fx: 40px; --fr: 2deg; }
.ill .f3 { --fx: 0px; --fr: -5deg; }
@keyframes fanIn { from { transform: translateX(var(--fx)) rotate(var(--fr)); } }

/* ---------- Betreuung, Person, FAQ ---------- */
.nav-util { font-family: var(--f-display); font-size: .82rem !important; border: 1px solid var(--line); border-radius: var(--r); padding: .4rem .7rem; }
.nav-util:hover { border-color: var(--accent); }
.card.featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.card.featured .code { color: var(--accent); }
.facts.mini { margin-top: auto; font-size: .88rem; }
.facts.mini th, .facts.mini td { padding: .55rem .6rem .55rem 0; }
.card .table-wrap { margin-top: auto; }
.support-ways { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); }
.support-ways > div { padding: 1rem 1.2rem; display: grid; gap: .2rem; min-width: 0; }
.support-ways > div + div { border-left: 1px solid var(--line); }
.support-ways b { font-family: var(--f-display); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.support-ways span { overflow-wrap: anywhere; }

.person-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; display: grid; gap: 1rem; max-width: 24rem; }
.person-card > div:last-child { display: grid; gap: .2rem; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 6px; display: grid; place-content: center; text-align: center; gap: .4rem;
  background: var(--surface-2); border: 1px dashed var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.portrait span { font-family: var(--f-display); font-size: 3rem; font-weight: 700; color: var(--accent); }
.portrait small { font-family: var(--f-display); font-size: .75rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--f-display); color: var(--accent); font-size: 1.3rem; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 1.2rem; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: rise .35s ease both; } }
.dl-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
@media (max-width: 1000px) { .nav { gap: 1.1rem; } }
@media (max-width: 900px) { .support-ways { grid-template-columns: 1fr 1fr; } .support-ways > div:nth-child(3) { border-left: none; } .support-ways > div:nth-child(n+3) { border-top: 1px solid var(--line); } .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .support-ways { grid-template-columns: 1fr; } .support-ways > div + div { border-left: none; border-top: 1px solid var(--line); } .site-footer .wrap { grid-template-columns: 1fr; } }
.nav a, .brand-name { white-space: nowrap; }
@media (max-width: 1140px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
         gap: 1rem; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.2rem clamp(16px, 4vw, 40px); }
  .nav.open { display: flex; }
}
.person-card { justify-self: start; width: 100%; max-width: 21rem; }
@media (max-width: 1000px) and (min-width: 601px) {
  .support-ways { grid-template-columns: 1fr 1fr; }
  .support-ways > div { border-left: none !important; border-top: 1px solid var(--line); }
  .support-ways > div:nth-child(-n+2) { border-top: none; }
  .support-ways > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
}
.legal, .facts td, .site-footer p { overflow-wrap: anywhere; } .legal { min-width: 0; }
.legal-box { border: 1px solid var(--accent); border-radius: var(--r); padding: 1.2rem 1.4rem; background: var(--surface); display: grid; gap: .8rem; } .legal-box h2 { margin-top: 0; } .legal-box p { color: var(--fg); }
svg.brand-mark { border: 0; padding: 0; flex: none; display: block; }
.team { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; min-width: 0; }
.team .person-card { max-width: none; }
.person-card.small .portrait span { font-size: 2rem; }
@media (max-width: 600px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team { grid-template-columns: minmax(0,1fr); } .team .person-card.small { max-width: 16rem; } } .person-card, .person-card * { min-width: 0; overflow-wrap: anywhere; }
.portrait-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.site-footer .brand-name { white-space: normal; } .site-footer .wrap > * { min-width: 0; } @media (max-width: 380px) { .site-header .brand-name { font-size: .82rem; } }
@media (max-width: 360px) { .site-header .brand-name small { display: none; } .site-header .wrap { gap: .5rem; } .nav-toggle { padding: .4rem .55rem; } }
