/* ══════════════════════════════════════════════════════════════════════════
   CONTAVOX — Corporate Design von PONTAVOX. Die Werte, an EINER Stelle.

   [22.10.2026] David: «Das komplette Corporate Design der Software hier
   drübergeben, weg vom komplett Violetten … auch die violette Marmel.»
   Herkunft jeder Zahl: branding/corporate/TOKENS.md (PONTAVOX 1.4.0,
   gestalt/eventforum.css, Blöcke «CORPORATE HELL», «KONFIGURATOR»,
   «CORPORATE IST DER STANDARD», Anlaufbild dunkel).

   Geladen von der Stimm-App (/contavox/app/marke/marke.css) und von
   contavox.ch (/marke/marke.css). Schriften liegen relativ unter
   ../schriften/. Die Oberflächen nennen nur Namen von hier.

   Hell ist der Standard (wie PONTAVOX «Corporate»), dunkel folgt dem System.
   Grün, Rot und Grau gehören nur Ja, Nein und Enthaltung, immer mit Zeichen.
   Violett trägt nur die Marmel, nie eine Bedienung.
   ══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Poppins'; src: url('../schriften/poppins-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../schriften/poppins-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../schriften/poppins-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../schriften/poppins-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* «Ziffern»: nur 0–9 von Poppins, gleich breit (Poppins hat kein tnum; aus PONTAVOX «KADENZ Ziffern»). */
@font-face { font-family: 'CONTAVOX Ziffern'; src: url('../schriften/ziffern-regular.woff2') format('woff2'); font-weight: 400; unicode-range: U+30-39; font-display: swap; }
@font-face { font-family: 'CONTAVOX Ziffern'; src: url('../schriften/ziffern-medium.woff2') format('woff2'); font-weight: 500; unicode-range: U+30-39; font-display: swap; }
@font-face { font-family: 'CONTAVOX Ziffern'; src: url('../schriften/ziffern-semibold.woff2') format('woff2'); font-weight: 600; unicode-range: U+30-39; font-display: swap; }
@font-face { font-family: 'CONTAVOX Ziffern'; src: url('../schriften/ziffern-bold.woff2') format('woff2'); font-weight: 700; unicode-range: U+30-39; font-display: swap; }

:root {
  color-scheme: light;

  /* Schrift: Poppins wie eventforumbern.ch und PONTAVOX Corporate */
  --schrift: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --schrift-zahl: 'CONTAVOX Ziffern', 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --kurve: cubic-bezier(.19, 1, .22, 1);

  /* Rundungen (PONTAVOX «RUNDUNGEN» 14.10.2026): Karte 28, Tafel 16, Feld 14, Pille rund */
  --rund-karte: 28px;
  --rund-tafel: 18px;
  --rund-feld: 14px;
  --rund-pille: 999px;

  /* Grund: Eis-Blau mit Lichtfeld oben rechts und feinem Rautenmuster */
  --grund: #E7F2FC;
  --grund-licht: radial-gradient(ellipse at 80% 0%, #CDEAFF, transparent 65%);
  --grund-raute: rgba(255, 255, 255, .55);

  /* Kopf: helles Glas */
  --kopf-glas: linear-gradient(180deg, rgba(245, 251, 255, .94), rgba(229, 242, 255, .9));
  --kopf-kante: #BFD7EC;
  --kopf-schatten: 0 1px 0 rgba(23, 56, 95, .04), 0 10px 28px -18px rgba(23, 56, 95, .22);

  /* Karten: Weiss mit einem Hauch Blau (universum-karte) */
  --karte: #FFFFFF;
  --karte-bild: radial-gradient(ellipse at 0% 0%, #E2F2FF, transparent 60%), linear-gradient(150deg, #FFFFFF, #F0F8FF);
  --karte-kante: #BFD7EC;
  --karte-schatten: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(23, 56, 95, .06), 0 18px 40px -28px rgba(23, 56, 95, .35);
  --flaeche: #F3F8FD;        /* ruhige Fläche in einer Karte */
  --flaeche-2: #E4EFFA;      /* Chips, Mulden */

  /* Band: die Heldenkarte (universum-buehne) */
  --band: #D5EAFE;
  --band-bild: radial-gradient(ellipse at 85% 0%, #F4FCFF, transparent 62%), linear-gradient(125deg, #C8E6FF, #E5F3FF 65%, #CFE8FC);
  --band-kante: #A8C9E8;
  --band-schatten: inset 0 1px 0 rgba(255, 255, 255, .85), 0 30px 60px -40px rgba(23, 56, 95, .55);

  /* Navy-Band (Konfigurator der Website): Marke, Bühne, «Live» */
  --navy: #1B3A6B;
  --navy-tief: #12294D;
  --navy-bild: radial-gradient(ellipse 70% 120% at 88% -10%, rgba(90, 167, 255, .26), transparent 62%),
               linear-gradient(115deg, #12294D 0%, #1B3A6B 52%, #24508F 100%);
  --auf-navy: #FFFFFF;
  --auf-navy-2: #C9D8EE;
  --navy-linie: rgba(156, 199, 255, .22);

  /* Schrift */
  --tinte: #17385F;
  --tinte-2: #3C597B;
  --tinte-stark: #10264A;
  --titel-verlauf: linear-gradient(120deg, #17385F 10%, #0068CF 120%);
  --linie: rgba(23, 56, 95, .14);

  /* Handlung: Blau der Website. Weiss auf dem Glanz ≥ 4,5:1 auch am hellen Ende. */
  --aktion: #0071ED;
  --aktion-tief: #005AB8;
  /* Glanz von oben (Licht oben, Kante unten) wie die Knöpfe von PONTAVOX; Weiss ≥ 4,5:1 auch am hellsten Punkt */
  --aktion-glanz: linear-gradient(180deg, #1672DD 0%, #0A64D2 48%, #0052B8 100%);
  --aktion-glanz-hover: linear-gradient(180deg, #0B66CF 0%, #0058C2 48%, #00479F 100%);
  --aktion-schatten: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 40, 100, .22),
                     0 2px 4px rgba(0, 60, 140, .16), 0 12px 26px -10px rgba(0, 98, 209, .6);
  --aktion-text: #005AB8;    /* Blau als Schrift: 5,8:1 auf dem Grund */
  --aktion-zart: #E1EEFD;
  --aktion-hof: rgba(0, 113, 237, .18);
  --fokus: #0071ED;

  /* Felder: Rand ≥ 3:1 zum Weiss (WCAG 1.4.11) */
  --feld: #FFFFFF;
  --feld-kante: #6F8DAE;
  --feld-kante-ruhig: #A9C3DD;

  /* Segmente (Sprachwahl), wie der Kopf von PONTAVOX */
  --segment: rgba(31, 111, 235, .07);
  --segment-kante: rgba(31, 111, 235, .16);
  --puck: #FFFFFF;
  --puck-schatten: 0 1px 2px rgba(15, 23, 42, .10), 0 2px 8px rgba(15, 23, 42, .06);

  /* «Live»-Kapsel: dunkel mit grünem Punkt (PONTAVOX ef-pille-live) */
  --live: #0B1220;
  --live-text: #FFFFFF;
  --live-punkt: #32D583;
  --laeuft: #067647;

  /* Ja · Nein · Enthaltung: nur hier, immer mit ✓ ✕ – */
  --ja: #17784A; --ja-zart: #E3F2E9; --ja-rand: #8CC4A6; --ja-text: #12613C;
  --nein: #BF2E3A; --nein-zart: #FBE8E9; --nein-rand: #E39BA2; --nein-text: #A3232F;
  --enth: #5F6368; --enth-zart: #ECEEF0; --enth-rand: #B5BAC0; --enth-text: #4D5156;
  --fehler: #B3261E;

  /* Die Marmel: Licht und Schein (violett nur hier) */
  --marmel-schein: 0 18px 40px -14px rgba(74, 44, 204, .55), 0 0 0 1px rgba(255, 255, 255, .55);
  --marmel-hof: radial-gradient(circle, rgba(124, 98, 255, .28), transparent 68%);
}

/* Dunkel nur auf Wunsch (Schalter in der Fusszeile, Merker im Browser): hell ist Standard, auch wenn das
   System dunkel eingestellt ist (Entscheid David, 22.10.2026). */
:root[data-thema="dunkel"] {
  color-scheme: dark;
  /* PONTAVOX dunkel (Anlaufbild der Kundenansicht, Navy-Band der Website) */
  --grund: #0B111C;
  --grund-licht: radial-gradient(120% 70% at 50% 0%, #15233A 0%, rgba(11, 17, 28, 0) 70%);
  --grund-raute: rgba(122, 204, 255, .05);
  --kopf-glas: linear-gradient(180deg, rgba(18, 41, 77, .92), rgba(13, 28, 52, .9));
  --kopf-kante: rgba(156, 199, 255, .18);
  --kopf-schatten: 0 10px 28px -18px rgba(0, 0, 0, .6);
  --karte: #111C2E;
  --karte-bild: radial-gradient(ellipse at 0% 0%, rgba(77, 115, 179, .16), transparent 60%), linear-gradient(150deg, #142238, #0F1929);
  --karte-kante: rgba(156, 199, 255, .16);
  --karte-schatten: inset 0 1px 0 rgba(230, 240, 255, .06), 0 20px 50px -24px rgba(0, 0, 0, .6);
  --flaeche: rgba(255, 255, 255, .05);
  --flaeche-2: rgba(255, 255, 255, .09);
  --band: #142F59;
  --band-bild: var(--navy-bild);
  --band-kante: rgba(156, 199, 255, .22);
  --band-schatten: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 48px -26px rgba(0, 0, 0, .7);
  --tinte: #E6EEF9;
  --tinte-2: #C3D1E4;
  --tinte-stark: #FFFFFF;
  --titel-verlauf: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 40%, #8EC2FF 140%);
  --linie: rgba(156, 199, 255, .16);
  --aktion-text: #8EC2FF;
  --aktion-zart: rgba(0, 113, 237, .2);
  --aktion-hof: rgba(90, 167, 255, .3);
  --fokus: #7ACCFF;
  --feld: #0E1828;
  --feld-kante: #6F8DAE;
  --feld-kante-ruhig: rgba(156, 199, 255, .24);
  --segment: rgba(255, 255, 255, .06);
  --segment-kante: rgba(255, 255, 255, .12);
  --puck: rgba(255, 255, 255, .16);
  --puck-schatten: 0 1px 2px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08);
  --live: #FFFFFF;
  --live-text: #0B1220;
  --live-punkt: #067647;
  --laeuft: #7CEBB4;
  --ja-zart: rgba(50, 213, 131, .14); --ja-rand: rgba(124, 235, 180, .45); --ja-text: #7CEBB4;
  --nein-zart: rgba(240, 68, 56, .16); --nein-rand: rgba(255, 170, 160, .45); --nein-text: #FFC9C4;
  --enth: #6B7280; --enth-zart: rgba(255, 255, 255, .08); --enth-rand: rgba(203, 213, 225, .35); --enth-text: #D5DCE6;
  --fehler: #FFB4AB;
  --marmel-schein: 0 18px 44px -12px rgba(124, 98, 255, .55), 0 0 0 1px rgba(255, 255, 255, .22);
  --marmel-hof: radial-gradient(circle, rgba(124, 98, 255, .38), transparent 68%);
}

/* Grund des Blatts: Lichtfeld und Rautenmuster wie hinter den Karten von PONTAVOX */
.marke-grund {
  background-color: var(--grund);
  background-image:
    var(--grund-licht),
    repeating-linear-gradient(45deg, transparent 0 179px, var(--grund-raute) 179px 180px),
    repeating-linear-gradient(-45deg, transparent 0 179px, var(--grund-raute) 179px 180px);
  background-attachment: fixed, scroll, scroll;
  color: var(--tinte);
  font-family: var(--schrift);
  -webkit-font-smoothing: antialiased;
}
.marke-grund ::selection { background: var(--aktion-hof); }

/* ══ Die Marmel ══════════════════════════════════════════════════════════
   Die Amethyst-Kugel aus PONTAVOX (bilder/kugel-fr.webp). «Immer dezent
   lebendig, nie flippen»: die Strömung dreht langsam, das Licht (Glanz,
   Rand) steht still, der Hof atmet. «Weniger Bewegung»: alles steht.
   <span class="marmel"><img src="…/marke/marmel-512.webp" alt=""></span> */
.marmel {
  --gross: 120px;
  position: relative; display: inline-block; flex: none;
  width: var(--gross); height: var(--gross); border-radius: 50%;
  isolation: isolate;
}
.marmel::before {
  content: ''; position: absolute; inset: -38%; z-index: -1; border-radius: 50%;
  background: var(--marmel-hof);
  animation: marmel-atmen 7s ease-in-out infinite;
}
.marmel img {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: var(--marmel-schein);
  animation: marmel-stroemen 48s linear infinite;
}
.marmel::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, .55) 0 4%, rgba(255, 255, 255, .12) 11%, transparent 22%),
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(255, 255, 255, .10) 70%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 -10px 22px rgba(20, 8, 70, .25);
}
.marmel.schwebt { animation: marmel-schweben 9s ease-in-out infinite; }
@keyframes marmel-stroemen { to { transform: rotate(360deg); } }
@keyframes marmel-atmen { 0%, 100% { opacity: .7; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes marmel-schweben { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .marmel, .marmel img, .marmel::before { animation: none !important; }
}

/* Die Marmel als Fläche (z. B. «Ihre Stimme ist gezählt»: Marmel mit Haken) */
.kugel-marmel { background: #4A2CCC url('marmel-256.webp') center / cover no-repeat; }

/* Darstellung umschalten (Fusszeile von Stimm-App und contavox.ch): hell ist Standard, dunkel auf Wunsch.
   Knopf mit festem Namen «Dunkle Darstellung» und aria-pressed; die Spur zeigt den Zustand wie ein Schalter. */
.nur-dunkel { display: none !important; }
:root[data-thema="dunkel"] .nur-dunkel { display: block !important; }
:root[data-thema="dunkel"] .nur-hell { display: none !important; }
.thema-schalter {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 16px 6px 8px;
  border: 1px solid var(--segment-kante, var(--linie)); border-radius: 999px; background: var(--segment);
  color: var(--tinte); font: 500 15px/1.2 var(--schrift); cursor: pointer;
}
.thema-schalter[hidden] { display: none; }
.thema-schalter:hover { border-color: var(--feld-kante); }
.thema-schalter:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.thema-spur {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  background: #5E7A99; transition: background .2s var(--kurve); /* aus: ≥ 3:1 zur Knopffläche, hell und dunkel */
}
.thema-spur::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(11, 18, 32, .35); transition: transform .25s var(--kurve);
}
.thema-schalter[aria-pressed="true"] .thema-spur { background: var(--aktion); }
.thema-schalter[aria-pressed="true"] .thema-spur::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .thema-spur, .thema-spur::after { transition: none; } }
