/* Bilanzeit – Webseite. Leitstand-Stil der App (App/Gestaltung/Palette.swift):
   Schwarz und Signal-Cyan, abgeschrägte Rahmen, Chakra Petch für Zahlen und
   Überschriften, Saira für Text. Alle Dateien liegen auf demselben Server –
   keine Webfonts von fremden Servern, keine Skripte von Dritten. */

@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap;
  src: url("fonts/ChakraPetch-Medium.ttf") format("truetype"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap;
  src: url("fonts/ChakraPetch-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Saira"; font-weight: 100 900; font-display: swap;
  src: url("fonts/Saira.ttf") format("truetype"); }

:root {
  --grund: #EAF0F5;
  --grund-2: #F6F9FB;
  --tafel: #FFFFFF;
  --linie: #C9D6E0;
  --tinte: #0B1F2E;
  --tinte-2: #33485A;
  --leise: #5A6E7E;
  --akzent: #0A7FB5;
  --akzent-hell: #D6ECF7;
  --akzent-tinte: #FFFFFF;
  --rot: #D42A1F;
  --gold: #8A6A12;
  --glanz: none;
  --kopf: rgba(234, 240, 245, .86);
  --schrift: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --zahl: "Chakra Petch", "Saira", -apple-system, BlinkMacSystemFont, sans-serif;
  --schraeg: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #02050A;
    --grund-2: #060C14;
    --tafel: #08121C;
    --linie: #173246;
    --tinte: #DCEAF3;
    --tinte-2: #A9BDCB;
    --leise: #7E95A6;
    --akzent: #5CCBFF;
    --akzent-hell: #0B2534;
    --akzent-tinte: #02050A;
    --rot: #FF4D3D;
    --gold: #E7C35A;
    --glanz: 0 0 18px rgba(92, 203, 255, .28);
    --kopf: rgba(2, 5, 10, .82);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #02050A;
  --grund-2: #060C14;
  --tafel: #08121C;
  --linie: #173246;
  --tinte: #DCEAF3;
  --tinte-2: #A9BDCB;
  --leise: #7E95A6;
  --akzent: #5CCBFF;
  --akzent-hell: #0B2534;
  --akzent-tinte: #02050A;
  --rot: #FF4D3D;
  --gold: #E7C35A;
  --glanz: 0 0 18px rgba(92, 203, 255, .28);
  --kopf: rgba(2, 5, 10, .82);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--schrift); color: var(--tinte); background: var(--grund);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--akzent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.schmal { max-width: 800px; }

/* Kopf */
header.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--kopf);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linie); }
.kopf-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--tinte); text-decoration: none; }
.marke svg { width: 22px; height: 32px; color: var(--akzent); }
.marke b { font-family: var(--zahl); font-weight: 600; letter-spacing: .15em; font-size: 1.05rem; }
nav.haupt { display: flex; gap: 22px; font-size: .95rem; }
nav.haupt a { color: var(--tinte-2); text-decoration: none; }
nav.haupt a:hover, nav.haupt a[aria-current] { color: var(--akzent); }
@media (max-width: 760px) { nav.haupt .optional { display: none; } nav.haupt { gap: 16px; } }

/* Überschriften und Text */
h1, h2, h3 { font-family: var(--zahl); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; color: var(--tinte); }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
.oberzeile { font-family: var(--zahl); font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  color: var(--akzent); font-size: .8rem; margin-bottom: 12px; }
p { color: var(--tinte-2); margin-bottom: 14px; }
.einleitung { font-size: 1.15rem; max-width: 640px; }
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--linie); }

/* Abgeschrägte Tafel wie in der App */
.tafel { position: relative; background: var(--tafel); padding: 24px;
  clip-path: polygon(var(--schraeg) 0, 100% 0, 100% calc(100% - var(--schraeg)), calc(100% - var(--schraeg)) 100%, 0 100%, 0 var(--schraeg));
  box-shadow: inset 0 0 0 1px var(--linie); }
.tafel.leuchtet { box-shadow: inset 0 0 0 1px var(--akzent), var(--glanz); }
.tafel h3 { display: flex; align-items: center; gap: 10px; }
.tafel h3 .punkt { width: 8px; height: 8px; background: var(--akzent); flex: none;
  transform: rotate(45deg); box-shadow: var(--glanz); }
.tafel p:last-child { margin-bottom: 0; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 10px; font-family: var(--zahl); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; text-decoration: none;
  padding: 14px 22px; color: var(--akzent-tinte); background: var(--akzent); border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.knopf.leer { color: var(--akzent); background: transparent; box-shadow: inset 0 0 0 1.5px var(--akzent); }
.knopf[aria-disabled="true"] { opacity: .75; cursor: default; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Raster */
.raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 34px; }
.zwei { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .zwei { grid-template-columns: 1fr; gap: 36px; } }

/* Start */
.held { padding: 72px 0 88px; }
.held h1 em { font-style: normal; color: var(--akzent); }
.fakten { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .92rem; color: var(--leise); }
.fakten span::before { content: "◆"; color: var(--akzent); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }

.telefon { justify-self: center; width: min(320px, 82vw); padding: 10px; background: #0b1218;
  border-radius: 46px; box-shadow: 0 0 0 1px #1e2c38, 0 30px 70px rgba(0, 0, 0, .35); }
.telefon img { border-radius: 37px; width: 100%; height: auto; }
.telefon.platzhalter { aspect-ratio: 9 / 19.5; display: grid; place-items: center; color: #5CCBFF; }

.bilderreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.bilderreihe figure { text-align: center; }
.bilderreihe .telefon { width: 100%; max-width: 280px; margin: 0 auto 14px; }
.bilderreihe figcaption { font-size: .92rem; color: var(--leise); }
@media (max-width: 860px) {
  .bilderreihe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .bilderreihe figure { scroll-snap-align: center; }
}

.grenzen li { list-style: none; padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--tinte-2); }
.grenzen li::before { content: "—"; position: absolute; left: 0; color: var(--akzent); }

/* Trinkgeld */
.ablauf { counter-reset: schritt; display: grid; gap: 14px; margin-top: 30px; }
.ablauf .tafel { padding-left: 76px; }
.ablauf .tafel::before { counter-increment: schritt; content: counter(schritt, decimal-leading-zero);
  position: absolute; left: 24px; top: 22px; font-family: var(--zahl); font-weight: 600; font-size: 1.4rem;
  color: var(--akzent); }
.hinweiskarte { max-width: 380px; margin: 0 auto; text-align: center; padding: 30px 26px; }
.hinweiskarte svg { width: 34px; height: 50px; margin: 0 auto 12px; color: var(--akzent); }
.hinweiskarte h3 { justify-content: center; }
.hinweiskarte .stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 14px; }
.hinweiskarte .stufe { font-family: var(--zahl); font-weight: 600; padding: 11px 0; color: var(--akzent);
  box-shadow: inset 0 0 0 1.5px var(--akzent); }
.hinweiskarte .stufe small { display: block; font-family: var(--schrift); font-weight: 400; font-size: .72rem; color: var(--leise); }
.hinweiskarte .leise { display: flex; justify-content: center; gap: 22px; font-size: .9rem; color: var(--leise); }
.bildunterschrift { text-align: center; font-size: .85rem; color: var(--leise); margin-top: 12px; }
.geldweg { display: flex; height: 44px; margin: 18px 0 10px; font-family: var(--zahl); font-weight: 600; font-size: .85rem; }
.geldweg div { display: grid; place-items: center; }
.geldweg .apple { flex: 15; background: var(--linie); color: var(--tinte-2); }
.geldweg .valoxx { flex: 85; background: var(--akzent); color: var(--akzent-tinte); }
table.preise { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
table.preise td { padding: 9px 0; border-bottom: 1px solid var(--linie); color: var(--tinte-2); }
table.preise td:last-child { text-align: right; font-family: var(--zahl); font-weight: 600; color: var(--tinte); }

/* Rechtstexte und Hilfe */
main.text { padding: 56px 0 90px; }
main.text h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
main.text h2 { font-size: 1.35rem; margin: 40px 0 10px; }
main.text h3 { font-size: 1.05rem; margin: 22px 0 6px; }
main.text li { color: var(--tinte-2); margin: 0 0 8px 20px; }
.stand { color: var(--leise); font-size: .95rem; margin-bottom: 26px; }
.kurz { margin: 22px 0 8px; }
.entwurf { background: #fff1e0; color: #6b3a00; border: 2px solid #f0a040; padding: 12px 16px;
  font-weight: 700; margin-bottom: 26px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entwurf { background: #3a2610; color: #ffd39a; border-color: #a8641c; } }
.adresse { font-style: normal; color: var(--tinte-2); margin-bottom: 14px; }

details.frage { border-bottom: 1px solid var(--linie); }
details.frage summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--zahl); font-weight: 600; font-size: 1.08rem; color: var(--tinte); }
details.frage summary::-webkit-details-marker { display: none; }
details.frage summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--akzent); }
details.frage[open] summary::after { content: "–"; }
details.frage > div { padding: 0 0 16px; }

/* Fuß */
footer.fuss { border-top: 1px solid var(--linie); padding: 36px 0 44px; font-size: .9rem; color: var(--leise); }
.fuss-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.fuss-in > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; }
.fuss a { color: var(--tinte-2); text-decoration: none; }
.fuss a:hover { color: var(--akzent); }
.fuss .valoxx { display: inline-flex; align-items: center; gap: 6px; }
.fuss small { display: block; margin-top: 14px; font-size: .8rem; }

@media (max-width: 480px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } section { padding: 64px 0; } .tafel { padding: 20px; } .ablauf .tafel { padding-left: 64px; } .ablauf .tafel::before { left: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Bildmarke als Maske, damit sie die Akzentfarbe des Erscheinungsbilds annimmt */
.zeichen { display: block; background: var(--akzent); aspect-ratio: 745 / 1100;
  -webkit-mask: url("img/bildmarke.svg") center / contain no-repeat; mask: url("img/bildmarke.svg") center / contain no-repeat; }
.marke .zeichen { width: 22px; }
.hinweiskarte .zeichen { width: 34px; margin: 0 auto 12px; }
.fuss .zeichen { width: 12px; }
