/* bnbills Designsystem – Relaunch 2026-11
   Werte 1:1 aus dem freigegebenen Entwurf docs/superpowers/specs/2026-11-04-relaunch-entwuerfe/startseite.html.
   Seitenspezifisches CSS (Story-Layout, Bühne, Rechner …) gehört inline in die jeweilige Seite. */
:root {
  --ocean: #1A56FF; --ocean-2: #3268FF; --ink: #1D1D1B; --lime: #D9FF57; --ice: #F3F5FA; --white: #FFFFFF;
  /* Schriftfarben nach den Farbwelt-Richtlinien (brand_assets/): Überschriften Obsidian Ash (--ink), Fließtext und
     Hinweise auf hellen Flächen im Grundton von „Dark Glass“ (Glas-Farben dürfen laut Richtlinie Schriftfarbe sein;
     Kontrast 8,6 : 1 auf Ice). Das Richtlinien-Grey #9E9E9E ist nur für Absetzungen, als Schrift zu hell (2,5 : 1). */
  --glass-dark: #3C4662;
  --bg: var(--ice); --fg: var(--ink); --muted: var(--glass-dark); --rule: rgba(29,29,27,.07);
  --plate: var(--ocean); --orbit: rgba(29,29,27,.26);
  --card: rgba(255,255,255,.72); --card-border: rgba(29,29,27,.10);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 40px;
}
[data-theme="blue"] {
  /* Auf Blau ist alle Schrift White (Richtlinie): schon reines Weiß erreicht auf den blauen Karten nur 4,65 : 1,
     jede Transparenz fiele unter die WCAG-Grenze von 4,5 : 1. */
  --bg: var(--ocean); --fg: #FFFFFF; --muted: #FFFFFF; --rule: rgba(255,255,255,.10);
  --plate: var(--lime); --orbit: rgba(255,255,255,.4); --card: rgba(255,255,255,.10); --card-border: rgba(255,255,255,.22);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.7;
  transition: background-color .6s ease, color .6s ease;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / 12));
  background-attachment: fixed;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.eyebrow { font-family: var(--font-mono); letter-spacing: .01em; font-size: 13px; text-transform: none; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; margin: 10px 0 14px; }
h1 { font-size: clamp(40px, 3.6vw, 52px); }
h2 { font-size: clamp(30px, 2.7vw, 40px); }
h3 { font-size: 22px; }
/* Nur Inhalts-Absätze: der Consent-Banner aus ph.js (.bnb-cc, außerhalb von <main>) behält seine eigenen Farben. */
main p { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 6px; }
[data-theme="blue"] a:focus-visible, [data-theme="blue"] button:focus-visible, [data-theme="blue"] summary:focus-visible { outline-color: var(--lime); }
/* Consent-Banner (weiße Karte) liegt auch über blauen Abschnitten: Fokusring dort immer Ocean statt Lime. */
.bnb-cc a:focus-visible, .bnb-cc button:focus-visible { outline-color: var(--ocean); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 11px 18px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--lime); color: var(--ink); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .25s var(--spring); }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); box-shadow: none; }
.btn--ghost:hover { box-shadow: 3px 3px 0 var(--fg); }
.btn--ghost:active { box-shadow: 0 0 0 var(--fg); }
/* Button-Paare (Hauptbutton + Ghost nebeneinander): der schwarze Versatz-Schatten erscheint wie beim
   Ghost-Button nur bei Hover, Klick und Tastatur-Fokus; im Ruhezustand sehen beide gleich flach aus. */
.ctas .btn:not(.btn--ghost):has(~ .btn--ghost):not(:hover):not(:active):not(:focus-visible) { box-shadow: none; }
.ctas { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Chips */
.chip { position: absolute; left: 0; top: 0; white-space: nowrap; padding: 7px 12px 7px 10px; border-radius: 12px; border: 2.5px solid var(--ink);
  background: var(--white); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 14px; box-shadow: 3px 3px 0 var(--ink);
  will-change: transform, opacity; opacity: 0; display: inline-flex; align-items: center; gap: 7px; line-height: 1.2; }
.chip__k { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--ink); color: var(--lime); }
.chip--lime { background: var(--lime); }
.chip--blue { background: var(--ocean); color: #fff; }
.chip--blue .chip__k { background: #fff; color: var(--ocean); }
[data-theme="blue"] .chip--blue { background: var(--ink); }
.chip--paper { background: #EDEFF3; color: rgba(29,29,27,.75); border-style: dashed; box-shadow: none; font-weight: 500; font-size: 13px; }
.chip--paper .chip__k { background: #FF8B6B; color: var(--ink); }

/* Header als farbige Leiste mit scharfer Unterkante, in der Gegenfarbe des Inhalts direkt darunter: über hellem Inhalt
   blau mit weißer Schrift, über blauem oder dunklem Inhalt hell mit dunkler Schrift. assets/header.js misst die Farbe
   direkt unter dem Header und setzt data-over (light / blue / dark); bis dahin gilt das Seiten-Theme. Beim Wechsel fließen
   Leiste und Schrift in 0,6 s in die neue Farbe (gleich lang wie die Seitenfarbe der Startseite). */
.site-header { --hdr-bg: var(--ocean); --fg: #FFFFFF; background-color: var(--hdr-bg); transition: background-color .6s ease; }
[data-theme="blue"] .site-header, .site-header:is([data-over="blue"], [data-over="dark"]) { --hdr-bg: var(--ice); --fg: var(--ink); }
.site-header[data-over="light"] { --hdr-bg: var(--ocean); --fg: #FFFFFF; }
.site-header .btn--ghost { transition: transform .25s var(--spring), box-shadow .25s var(--spring), color .6s, border-color .6s; }
/* Fokusring im Header passend zur Leiste (Lime auf Blau, Ocean auf Hell); die weißen Menü-Karten behalten ihren */
.site-header[data-over="light"] :is(.site-header__logo, .site-nav > a, .site-nav > details > summary, .site-burger > summary, .site-header__cta > a, .btn):focus-visible { outline-color: var(--lime); }
.site-header:is([data-over="blue"], [data-over="dark"]) :is(.site-header__logo, .site-nav > a, .site-nav > details > summary, .site-burger > summary, .site-header__cta > a, .btn):focus-visible { outline-color: var(--ocean); }

/* Logo-Chips (Partnerlogos auf der Umlaufbahn) */
.chip--logo, [data-theme="blue"] .chip--logo { gap: 8px; padding: 6px 12px 6px 10px; background: var(--white); color: var(--ink); }
/* Lexware (zweizeilig) und sevdesk (kleine Schrift, Rand in der Datei) wirken bei 20 px zu klein neben den anderen Logos */
.chip__logo[src*="lexware"], .chip__logo[src*="sevdesk"] { height: 26px; }
.chip__logo[src*="guesty"] { height: 24px; } /* gleiche Breite wie Lexware/sevdesk (~92 px) */
.chip__logo { display: block; height: 20px; width: auto; max-width: 110px; }

/* Cards */
.card { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 18px; padding: 20px 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card + .card { margin-top: 12px; }
.card__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.card__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); margin: 6px 0; line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 3px; background: var(--lime); border: 1.5px solid var(--ink); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 7px 0; border-bottom: 1.5px dashed var(--card-border); color: var(--muted); }
.kv b { color: var(--fg); font-weight: 600; white-space: nowrap; }
.quote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; color: var(--fg); }
.quote mark { background: var(--lime); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.stat { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.small { font-size: 12px; color: var(--muted); }

/* Rechnung (Comic-3D) */
.inv-wrap { position: absolute; left: 0; top: 0; z-index: 20; transform-style: preserve-3d; }
.inv { position: absolute; left: -125px; top: -167px; width: 250px; height: 334px; transform-style: preserve-3d; will-change: transform; }
.inv--ghost { opacity: 0; }
.inv__plate, .inv__face { position: absolute; inset: 0; border-radius: 16px; }
/* Flache Schattierung: schmaler, gleichmäßiger Rand 12 px nach rechts unten, direkt hinter der Vorderseite (z −2, damit er
   beim Drehen nicht wie ein Block in der Tiefe wirkt). Oben rechts genauso schräg abgeschnitten wie die Vorderseite: Weil
   der Versatz entlang der Diagonale liegt, setzt der Schnitt die Faltenkante exakt fort (ein durchgehender Schnitt), und
   die dunkle Faltenlinie läuft auf der Platte weiter (::after, gleiche Geometrie wie die Falte).
   Rechnungen mit Rückseite haben eine zweite Platte nur für die umgedrehte Ansicht (--back): dort liegt der Rand gespiegelt
   links und unten und reicht links bis ganz oben; ausgespart ist nur ihre Ecke hinter dem Eselsohr der Rückseite
   (26 px breit, weil die Platte dort 12 px weiter innen endet). Jede Platte ist nur von ihrer Seite sichtbar. */
.inv__plate { background: var(--plate); border: 3px solid var(--ink); transform: translate3d(12px,12px,-2px); transition: background-color .6s;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%); }
.inv__plate::after { content: ""; position: absolute; top: -3px; right: -3px; width: 49px; height: 49px;
  background: linear-gradient(225deg, transparent calc(50% - 2.2px), var(--ink) calc(50% - 2.2px), var(--ink) calc(50% + 1px), transparent calc(50% + 1px)); }
.inv__plate--back { transform: rotateY(180deg) translate3d(-12px,12px,2px);
  clip-path: polygon(0 0, calc(100% - 26px) 0, calc(100% - 26px) 34px, 100% 34px, 100% 100%, 0 100%); }
.inv__plate--back::after { content: none; }
.inv__face { background: var(--white); border: 3px solid var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 28px 26px; color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%); }
/* Eselsohr: helle Falte mit Umriss, auch an der Schnittkante (dort liegt kein schwarzer Hintergrund mehr) */
.inv__face::after { content: ""; position: absolute; top: -3px; right: -3px; width: 49px; height: 49px;
  background: linear-gradient(225deg, transparent calc(50% - 2.2px), var(--ink) calc(50% - 2.2px), var(--ink) calc(50% + 1px), #E8ECF5 calc(50% + 1px));
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); border-bottom-left-radius: 9px; }
.inv__front { transform: translateZ(1px); }
.inv__back { transform: rotateY(180deg) translateZ(5px); }
.inv__face h3 { margin: 0; font-weight: 800; font-size: 29px; line-height: 1; }
.inv__back h3 { font-size: 22px; }
.inv__no { margin-top: 7px; font-family: var(--font-mono); letter-spacing: .04em; font-size: 11px; color: rgba(29,29,27,.55); }
.inv__euro { margin: 24px auto 22px; width: 88px; height: 88px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 46px; box-shadow: 4px 4px 0 var(--ink); }
.inv__bar { height: 10px; border-radius: 5px; background: #D9DEE9; margin: 10px 0; }
.inv__bar--ink { background: var(--ink); width: 46%; margin-top: 18px; }
.inv__bar--s { width: 72%; }
.inv__row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; padding: 8px 0; border-bottom: 2px dashed #D9DEE9; }
.inv__tag { display: inline-block; margin-top: 16px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); font-family: var(--font-mono); font-size: 11px; }
.orbit-svg { position: absolute; left: -290px; top: -118px; width: 580px; height: 236px; overflow: visible; transform: rotate(-12deg); }
.orbit-svg ellipse, .orbit-svg .orbit-line { fill: none; stroke: var(--orbit); stroke-width: 1.2; transition: stroke .6s; }
.orbit-svg text { fill: var(--orbit); font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; transition: fill .6s; }

/* Header / Footer */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; }
.site-header__logo { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; color: var(--fg); text-decoration: none; transition: opacity .2s, color .6s; }
/* Schmale Navigationszeile (2026-11-11): Buttons im Header kompakter als im Inhalt (~39 px statt 52 px) */
.site-header .btn { padding: 8px 16px; line-height: 1.2; }
.site-header__logo:hover { opacity: .8; }
.site-header__logo:active { opacity: .6; }
.site-nav { display: flex; gap: 28px; align-items: center; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* .92 statt .8: weiße Links auf dem blauen Header brauchen mindestens 4,5 : 1 (bei .8 nur 4,1 : 1) */
.site-nav a, .site-nav summary { color: var(--fg); text-decoration: none; opacity: .92; cursor: pointer; transition: opacity .2s, color .6s; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav a:hover, .site-nav summary:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a:active, .site-nav summary:active { opacity: .6; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; text-underline-offset: 6px; text-decoration-skip-ink: none; }
.site-nav details { position: relative; }
.site-nav details > div { position: absolute; top: 28px; left: -16px; min-width: 260px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink); padding: 10px; display: grid; gap: 2px; text-transform: none; font-family: var(--font-body); font-size: 15px; letter-spacing: 0; }
.site-nav details > div a { color: var(--ink); padding: 8px 10px; border-radius: 10px; opacity: 1; }
.site-nav details > div a:hover { background: var(--ice); }
.site-nav details > div a:active { background: #E4E8F2; }
.site-nav details > div a:focus-visible { outline-color: var(--ocean); }
.site-footer { position: relative; z-index: 2; background: var(--ink); color: #F6F7F2; padding: 64px 0 40px; }
.site-footer a { color: rgba(246,247,242,.78); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer a:active { opacity: .7; }
.site-footer a:focus-visible { outline-color: var(--lime); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__h { font-family: var(--font-mono); font-size: 11.5px; text-transform: none; letter-spacing: .01em; color: rgba(246,247,242,.55); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header { padding: 10px 16px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; } }

/* Mobilmenü (≤ 1100px) */
.site-burger { display: none; }
.site-burger summary { list-style: none; cursor: pointer; font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: .01em; line-height: 1.2; padding: 8px 14px; border: 2px solid var(--fg); border-radius: 999px; color: var(--fg); transition: transform .2s cubic-bezier(.34,1.56,.64,1), opacity .2s, color .6s, border-color .6s; }
.site-burger summary::-webkit-details-marker { display: none; }
.site-burger summary:hover { transform: translateY(-1px); }
.site-burger summary:active { transform: translateY(1px); opacity: .8; }
.site-burger summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.site-burger[open] > div { position: fixed; left: 12px; right: 12px; top: calc(68px + var(--banner-h, 0px)); background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 10px; display: grid; gap: 2px; z-index: 70; max-height: calc(100vh - 84px - var(--banner-h, 0px)); overflow-y: auto; }
.site-burger[open] > div a { color: var(--ink); text-decoration: none; padding: 12px; border-radius: 10px; font-size: 16px; font-family: var(--font-body); }
.site-burger[open] > div a:hover { background: var(--ice); }
.site-burger[open] > div a:active { background: #E4E8F2; }
.site-burger[open] > div a:focus-visible { outline: 3px solid var(--ocean); outline-offset: -3px; }
@media (max-width: 1100px) { .site-burger { display: block; margin-left: auto; margin-right: 10px; } }
