/* Live · Grundgestaltung im smartvillage-Design (design system smartvillage v3, Corporate Design Manual 2025).
   Hell, ruhig, flach: Sand als Grund, Navy für Schrift, Coral nur für Handlungsknöpfe, Links und das Akzentwort.
   Keine Schatten, keine Verläufe, kein Emoji. Schrift: ATC Arquette (lizenziert), Fallback Arial. */

@font-face { font-family: 'ATC Arquette'; src: url('/assets/fonts/ATCArquette-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'ATC Arquette'; src: url('/assets/fonts/ATCArquette-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'ATC Arquette'; src: url('/assets/fonts/ATCArquette-Semibold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'ATC Arquette'; src: url('/assets/fonts/ATCArquette-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* Markenfarben */
  --sv-blue: #000831;        /* Hauptfarbe, Pantone 282 C */
  --sv-coral: #FF5A49;       /* Akzent, Pantone Warm Red C – nur CTA, Links, Akzentwort */
  --sv-coral-dark: #E84D3D;  /* Coral beim Darüberfahren, rund 8 % dunkler */
  --sv-light-blue: #D1DEFF;  /* Ergänzungsfarbe, Pantone 2707 C */
  --sv-sand-1: #F1EBE4;
  --sv-sand-2: #F6F3EF;
  --sv-sand-3: #FBFAF9;      /* Seitenhintergrund */
  --sv-white: #FFFFFF;

  /* Bedeutung */
  --fg-1: var(--sv-blue);
  --fg-2: color-mix(in oklab, var(--sv-blue) 70%, transparent);
  --fg-3: color-mix(in oklab, var(--sv-blue) 45%, transparent);
  --bg-page: var(--sv-sand-3);
  --bg-soft: var(--sv-sand-2);
  --bg-warm: var(--sv-sand-1);
  --bg-cool: var(--sv-light-blue);
  --bg-dark: var(--sv-blue);
  --bg-card: var(--sv-white);
  --border-soft: color-mix(in oklab, var(--sv-blue) 10%, transparent);
  --border-mid: color-mix(in oklab, var(--sv-blue) 20%, transparent);

  --font: 'ATC Arquette', Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-page); color: var(--fg-1); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sv-coral); text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--sv-coral); color: var(--sv-white); }

/* Akzentwort im Titel (**Wort**): Farbe statt Kursiv */
.accent { font-style: normal; color: var(--sv-coral); }
/* Kleine Überzeile: Versalien, gesperrt, gedämpftes Navy */
.eyebrow { display: inline-block; font: 500 13px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.logo { display: block; height: 24px; width: auto; }

.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* Karten: weiß auf Sand, flach, 20 px Rundung */
.card { position: relative; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: 24px; }
.card h2 { margin: 10px 0 8px; font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--fg-1); }
.card p { margin: 0 0 12px; color: var(--fg-2); }

/* Knöpfe: Pille. Standard = Sekundär (Navy-Kontur), .btn-primary = Coral, .btn-dark = Navy */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--sv-blue); box-shadow: inset 0 0 0 1.5px var(--sv-blue); font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-fast) var(--ease); }
.btn:hover { background: var(--sv-blue); color: var(--sv-white); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--fg-3); color: var(--sv-white); box-shadow: none; cursor: not-allowed; }
.btn-primary { background: var(--sv-coral); color: var(--sv-white); box-shadow: none; }
.btn-primary:hover { background: var(--sv-coral-dark); }
.btn-dark { background: var(--sv-blue); color: var(--sv-white); box-shadow: none; }
.btn.small { min-height: 34px; padding: 0 16px; font-size: 12.5px; }
/* Gefährliche Aktion „scharf“ (zweiter Klick nötig): Navy gefüllt */
.btn.is-armed { background: var(--sv-blue); color: var(--sv-white); box-shadow: none; }
.btn:focus-visible, .v-input:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--sv-blue); outline-offset: 2px; }
/* Tertiär: Coral-Link mit Pfeil */
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--sv-coral); font: 500 14px var(--font); cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }

/* Felder */
.v-hint { display: block; margin: 16px 0 7px; font: 500 12px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.v-input { width: 100%; min-height: 50px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--border-mid); background: var(--sv-white); color: var(--fg-1); font: 400 16px/1.4 var(--font); }
.v-input::placeholder { color: var(--fg-3); }
.v-input:focus { outline: none; border-color: var(--sv-blue); box-shadow: inset 0 0 0 .5px var(--sv-blue); }
textarea.v-input { resize: vertical; min-height: 96px; }
select.v-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sv-blue) 50%), linear-gradient(135deg, var(--sv-blue) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.v-err { margin: 8px 0 0; color: var(--sv-coral); font-size: 14px; font-weight: 500; }

/* Kleine Schilder (Status, Runde, Zähler): Versalien, gesperrt */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--fg-1);
  font: 500 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.chip.ok { background: var(--sv-light-blue); }
.chip.warn { background: transparent; color: var(--sv-coral); box-shadow: inset 0 0 0 1px var(--sv-coral); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--bg-warm); color: var(--fg-1);
  font: 500 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
/* Live-Punkt: Coral pulsiert; aus = gedämpft */
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sv-coral); animation: pulse 1.8s var(--ease) infinite; flex: none; }
.pulse.off { background: var(--fg-3); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Meldung */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 16px); max-width: min(560px, calc(100vw - 32px)); padding: 12px 20px; border-radius: var(--r-md);
  background: var(--sv-blue); color: var(--sv-white); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); overflow-wrap: anywhere; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
