/* Skalvero – Thema und Hero-Motiv. Gerüst: /shared/app-page.css */
@font-face { font-family: "Space Grotesk"; src: url("/skalvero/fonts/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/skalvero/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/skalvero/fonts/SpaceGrotesk-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/skalvero/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f1ede3; --surface: #fbf9f4; --sunken: #e8e3d6;
  --ink: #10272c; --ink-soft: #4d6166; --ink-faint: #8c9a9c; --line: #dad4c5;
  --accent: #f2b33d; --on-accent: #10272c; --accent-strong: #b97c0c;
  --panel: #0f2c33; --panel-ink: #f3efe4; --panel-ink-soft: #9fb7bb; --panel-line: #2a4e57;
  --good: #1f8a5b; --signal: #d2482e; --credit: #1f8a5b;
  --dot: rgba(16, 39, 44, 0.09);
  --display: "Space Grotesk", system-ui, sans-serif; --ui: "Space Grotesk", system-ui, sans-serif;
  --display-weight: 700; --display-tracking: -0.04em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1316; --surface: #111e22; --sunken: #0c181b;
    --ink: #eeeae0; --ink-soft: #a3b3b6; --ink-faint: #6b7d80; --line: #1f3238;
    --accent: #f4b740; --on-accent: #0a1316; --accent-strong: #f4b740;
    --panel: #0f262c; --panel-line: #24444c; --signal: #e35a3e; --credit: #4cc38a; --good: #4cc38a;
    --dot: rgba(255, 255, 255, 0.05);
  }
}
body { background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; }

/* Rollenzählwerk */
.counter { display: inline-flex; gap: 4px; padding: 7px; background: #070b0c; border: 1px solid #2c3438; border-radius: 11px; margin: 16px 0 6px; }
.counter span {
  width: 38px; height: 54px; display: grid; place-items: center; border-radius: 4px;
  font-family: var(--mono); font-weight: 700; font-size: 29px; color: #f3efe4;
  background: linear-gradient(#0c1012, #20272a 28%, #20272a 72%, #0c1012);
  animation: roll 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.counter span:nth-child(1) { color: rgba(243, 239, 228, 0.3); }
.counter span:nth-child(2) { animation-delay: 0.05s; }
.counter span:nth-child(3) { animation-delay: 0.1s; }
.counter span:nth-child(4) { animation-delay: 0.15s; }
.counter span:nth-child(5) { animation-delay: 0.2s; }
.counter span:nth-child(6) { animation-delay: 0.25s; }
.counter span.red { margin-left: 6px; background: linear-gradient(#7e2412, #c33f25 28%, #c33f25 72%, #7e2412); animation-delay: 0.32s; }
@keyframes roll { from { transform: translateY(-30%); } to { transform: none; } }

/* Handy mit Screenshot */
.phone { width: min(340px, 100%); margin: 0 auto; padding: 10px; border-radius: 44px; background: var(--panel); border: 1px solid var(--panel-line); box-shadow: 0 30px 60px -28px rgba(8, 36, 42, 0.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

/* Abrechnungs-Vorschau */
.receipt {
  background: var(--surface); border-top: 3px solid var(--ink); padding: 22px 24px 34px; position: relative; max-width: 520px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px));
}
.receipt .stamp { position: absolute; right: 22px; top: 18px; transform: rotate(-8deg); border: 1.6px solid var(--signal); color: var(--signal); border-radius: 5px; padding: 3px 8px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; }
.line { display: flex; align-items: baseline; gap: 6px; margin: 7px 0; font-size: 14.5px; color: var(--ink-soft); }
.line::before { content: ""; order: 2; flex: 1; border-bottom: 1.5px dotted var(--ink-faint); transform: translateY(-4px); }
.line b { order: 3; font-family: var(--mono); color: var(--ink); font-weight: 700; }
.line.total { color: var(--ink); font-weight: 600; font-size: 15.5px; }
.line.total b { font-size: 17px; font-weight: 800; }
.line.credit b { color: var(--credit); }
.rule { border-top: 1.2px solid var(--ink); margin: 8px 0; }
.rule.double { border-bottom: 1.2px solid var(--ink); height: 4px; }

@media (max-width: 760px) { .counter span { width: 30px; height: 44px; font-size: 23px; } }
