/* ============================================================================
   Richtung "Glut" -- Redesign nach krd.ac (Entwurf 11.10.2026, Marians Auftrag mit
   krd.ac als maassgeblicher Vorlage).

   Diese Datei ersetzt "Chrom": sie liegt als letzte Stildatei ueber "Schwarz"
   (landing.css) und braucht chrom.css NICHT -- die Seiten laden landing.css und dann
   glut.css, sonst nichts dazwischen. So gibt es keine doppelten/widerspruechlichen
   Regeln (Chroms Fasen und Silber sind nicht erst zu ueberschreiben). Ohne diese Datei
   ist die Seite wieder "Schwarz".

   Von krd.ac uebernommen (aus Marians Screenshots): dunkler Grund mit weichem rotem
   Leuchten, grosszuegig gerundete Flaechen, Karten mit feiner roter Kante und Schein,
   gefuellte Leucht-Knoepfe fuer Haupt-Aktionen (ruhige Knoepfe dunkel mit roter Kante),
   die hervorgehobene Karte mit staerkerem Schein und leuchtender Pille, gruene Haken an
   der Leistungsliste, rosa/rote Kleinbeschriftungen, weiche Hover mit Anheben und Glow.
   In unserem Rot (krd ist pinker; mit einem Wert in :root auf Pink umstellbar). Aufstellung
   und Texte bleiben; nur das Aussehen aendert sich. Die Cursor-Spur macht glut.js.

   Bericht: der ganze Auftritt ist rot, darum leuchtet ein echter Befund staerker und
   pulsiert (Risikowert, "Belastet", bad-Marken) -- der Schmuck pulsiert nie, so bleibt ein
   belasteter Scan auf einen Blick erkennbar. Gelbe Warnungen bleiben gelb.

   "Weniger Bewegung" (Systemeinstellung) schaltet Pulse und Cursor-Spur ab.
   ========================================================================== */

:root {
  /* Akzent: unser Rot, lebhaft. Fuer krds Pink: #ff2d6f / #ff6b99 / #c01050. */
  --glut-accent:  #e5262b;
  --glut-hi:      #ff5a5f;
  --glut-max:     #ff7a7e;
  --glut-deep:    #8f0f13;

  /* krd rundet grosszuegig. */
  --r-btn: 10px;  --r-sm: 10px;  --r-md: 12px;  --r-lg: 16px;
  --radius-sm: 10px;  --radius: 12px;  --radius-lg: 16px;
  --r-pill: 999px;

  --glut-karten-schein: 0 0 0 1px rgba(255, 90, 95, .22), 0 20px 50px -26px rgba(229, 38, 43, .5);
}

@media screen {

  ::selection { background: rgba(229, 38, 43, .32); color: #fff; }
  html { scrollbar-color: #4a1416 #060607; }

  @keyframes glut-puls {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
    50%      { box-shadow: 0 0 14px 1px rgba(255, 90, 95, .6); }
  }
  @keyframes glut-puls-text {
    0%, 100% { text-shadow: 0 0 14px rgba(255, 90, 95, .35); }
    50%      { text-shadow: 0 0 28px rgba(255, 90, 95, .75); }
  }

  /* ---------- Rotes Leuchten im Hintergrund ------------------------------- */
  body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(58% 40% at 50% -6%, rgba(229, 38, 43, .24), transparent 70%),
      radial-gradient(42% 30% at 82% 8%, rgba(255, 90, 95, .10), transparent 72%),
      radial-gradient(90% 55% at 50% 118%, rgba(143, 15, 19, .24), transparent 74%);
  }

  /* ---------- Kleinbeschriftungen rot leuchtend (krd "PERSONAL") ---------- */
  .hero-kennung, .abschnitt-marke, .footer-col h4, .foot-spalte h4 {
    color: var(--glut-hi);
    text-shadow: 0 0 16px rgba(255, 90, 95, .4);
  }

  /* Grosse Zahlen und der hervorgehobene Preis leuchten rot; Ueberschriften bleiben
     weiss (Schwarz-Standard). */
  .tarif-hebt .tarif-preis, .wstep-n {
    color: var(--glut-max); text-shadow: 0 0 26px rgba(255, 90, 95, .4);
  }

  /* ---------- Flaechen: gerundet, feine rote Kante, weicher Schein -------- */
  .card, .tarif-hebt, .uk {
    border-color: rgba(229, 38, 43, .16);
  }
  .card { box-shadow: 0 1px 0 rgba(255, 90, 95, .06) inset, 0 24px 60px -34px rgba(0, 0, 0, .85); }
  .card.lift, .card-hover, .uk { transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
  .card.lift:hover, .card-hover:hover, .uk:hover {
    border-color: rgba(255, 90, 95, .42); transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 90, 95, .2), 0 18px 46px -22px rgba(229, 38, 43, .45);
  }
  .uk-sym { color: var(--glut-hi); }

  /* Die hervorgehobene Preis-Karte: staerkerer Schein, leuchtende Oberkante. */
  .tarif-hebt {
    border-radius: var(--r-lg);
    box-shadow: var(--glut-karten-schein);
    background: linear-gradient(180deg, rgba(229, 38, 43, .06), transparent 40%);
  }
  .tarif-hebt::before {
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--glut-hi), transparent);
    box-shadow: 0 0 14px rgba(255, 90, 95, .8);
  }

  /* Marke an der Karte als leuchtende Pille (krd "MOST POPULAR"). */
  .tarif-marke {
    display: inline-block; padding: 3px 11px; border-radius: var(--r-pill);
    font-size: 10px; letter-spacing: .1em; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--glut-hi), var(--glut-accent));
    box-shadow: 0 0 16px rgba(229, 38, 43, .55);
  }

  /* ---------- Knoepfe: dunkel mit feiner roter Kante und Schein ----------- */
  /* Marian wollte keine rot gefuellten Knoepfe (11.10.2026). Alle Knoepfe bleiben
     dunkel (wie "Schwarz"), bekommen aber eine feine rote Kante und beim Zeigen einen
     weichen roten Schein -- passend zum Glut-Design. Haupt-Aktionen heben sich nur durch
     hellere Kante und staerkeren Schein ab, nie durch eine rote Flaeche. Reiter (.tab)
     bleiben unberuehrt. */
  .btn:not(.tab) {
    border-color: rgba(229, 38, 43, .22);
    transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .2s var(--ease), transform .12s var(--ease);
  }
  .btn:not(.tab):hover {
    background: var(--knopf-hover); color: var(--fg);
    border-color: rgba(255, 90, 95, .5); box-shadow: 0 0 20px -8px rgba(229, 38, 43, .5);
  }
  /* Haupt-Aktionen: hellere Kante und staerkerer Schein, Flaeche bleibt dunkel. */
  .btn-primary:not(.tab), .btn-accent:not(.tab), .hero-cta .btn:first-child, .tarif-hebt .btn, .side-neu:not(.gesperrt) {
    border-color: rgba(255, 90, 95, .5); box-shadow: 0 0 22px -8px rgba(229, 38, 43, .55);
  }
  .btn-primary:not(.tab):hover, .btn-accent:not(.tab):hover, .hero-cta .btn:first-child:hover, .tarif-hebt .btn:hover, .side-neu:not(.gesperrt):hover {
    border-color: rgba(255, 90, 95, .8); box-shadow: 0 0 30px -8px rgba(229, 38, 43, .75);
    transform: translateY(-1px);
  }

  /* ---------- Gruene Haken an der Leistungsliste -------------------------- */
  .tarife ~ ul.plain li, .tarif-breit ul.plain li, .enthalten ul.plain li {
    list-style: none; position: relative; padding-left: 28px;
  }
  .tarife ~ ul.plain, .tarif-breit ul.plain, .enthalten ul.plain { padding-left: 0; }
  .tarife ~ ul.plain li::before, .tarif-breit ul.plain li::before, .enthalten ul.plain li::before {
    content: ''; position: absolute; left: 0; top: .5em; width: 15px; height: 11px;
    background: var(--mint);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(69, 192, 143, .55));
  }

  /* ---------- Navigation, Verweise, Felder ------------------------------- */
  .nav-links a { position: relative; transition: color .18s var(--ease); }
  .nav-links a::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glut-hi), transparent);
    transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease);
  }
  .nav-links a:hover { color: var(--fg); background: transparent; }
  .nav-links a:hover::after { transform: scaleX(1); }

  /* Seitenleiste des Dashboards und Berichtskategorien: roter Strich links. */
  .dash-nav a, .kat-knopf { position: relative; }
  .dash-nav a::before, .kat-knopf::before {
    content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px;
    background: var(--glut-hi); box-shadow: 0 0 10px rgba(255, 90, 95, .7);
    transform: scaleY(0); transition: transform .22s var(--ease);
  }
  .dash-nav a:hover, .kat-knopf:hover { background: linear-gradient(90deg, rgba(229, 38, 43, .1), transparent 85%); }
  .dash-nav a.active, .kat-knopf.active { background: linear-gradient(90deg, rgba(229, 38, 43, .14), rgba(229, 38, 43, .02) 70%, transparent); }
  .dash-nav a.active::before, .kat-knopf.active::before { transform: scaleY(1); }

  tbody tr:hover, .eintrag-kopf:hover, .eintrag-kopf[aria-expanded="true"] {
    background: linear-gradient(90deg, rgba(229, 38, 43, .1), rgba(229, 38, 43, .02) 60%, transparent);
  }
  .field:focus, select.field:focus { border-color: var(--glut-accent); box-shadow: 0 0 0 3px rgba(229, 38, 43, .16); }

  /* ---------- Fuss: leuchtende Oberkante ---------------------------------- */
  .site-footer {
    border-top-color: transparent; position: relative;
    background-image: linear-gradient(90deg, transparent, rgba(255, 90, 95, .5) 50%, transparent);
    background-size: 100% 1px; background-position: top; background-repeat: no-repeat;
  }
  .site-footer::after {
    content: ''; position: absolute; left: 50%; top: -1px; width: 60%; height: 2px;
    transform: translateX(-50%); background: var(--glut-hi); filter: blur(3px); opacity: .5; pointer-events: none;
  }

  /* Das Logo dreht beim Zeigen leicht (dezente Mikrointeraktion). */
  .brand-mark, .side-brand img, .footer-brand img { transition: transform .5s var(--ease); }
  .brand:hover .brand-mark, .side-brand:hover img, .footer-brand:hover img { transform: rotate(-12deg) scale(1.05); }

  /* ---------- Bericht: eigener Signalton fuer echte Befunde --------------- */
  .risiko-balken i { background: var(--glut-hi); }
  .urteil-wert.hoch .zahl { color: var(--glut-max); animation: glut-puls-text 2.6s var(--ease) infinite; }
  .urteil-wert.hoch .risiko-balken i {
    background: linear-gradient(90deg, var(--glut-deep), var(--glut-max));
    box-shadow: 0 0 12px rgba(255, 90, 95, .7);
  }
  .eintrag-marke.bad { background: var(--glut-max); animation: glut-puls 2.6s var(--ease) infinite; }
  .urteil-zahlen .scharf b { color: var(--glut-max); }
  .urteil-zahlen .scharf b::after { background: var(--glut-max); box-shadow: 0 0 8px rgba(255, 90, 95, .7); }
  .treffer-marke { color: var(--glut-max); filter: drop-shadow(0 0 6px rgba(255, 90, 95, .5)); }
  .treffer.verdacht .treffer-marke { color: var(--fg-2); filter: none; }

  /* ---------- Kennzahl-Kacheln wie krd ----------------------------------- */
  /* Getrennte, gerundete Kacheln mit leuchtender Farbkante links. Rot-dominant: die
     Standardkante ist rot (leise), ein Alarmwert (chip red) leuchtet voll rot, ein
     Gutwert (chip mint) gruen -- so wie wir Farben ohnehin meinen. Die Zahl nimmt die
     Farbe nur bei Alarm/Gut an, sonst bleibt sie weiss ("nicht zu viel"). */
  .stat-grid { gap: 10px; background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
  .stat-grid > .card {
    border: 1px solid rgba(229, 38, 43, .15); border-radius: var(--r-md);
    position: relative; overflow: hidden; box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .85);
  }
  .stat-grid > .card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--glut-hi); box-shadow: 0 0 12px rgba(255, 90, 95, .55); opacity: .5;
  }
  .stat-grid > .card:has(.chip.red)::before { background: var(--glut-max); box-shadow: 0 0 14px rgba(255, 90, 95, .85); opacity: 1; }
  .stat-grid > .card:has(.chip.mint)::before { background: var(--mint); box-shadow: 0 0 12px rgba(69, 192, 143, .55); opacity: .9; }
  .stat-grid > .card:has(.chip.red) .v { color: var(--glut-max); }
  .stat-grid > .card:has(.chip.mint) .v { color: var(--mint); }
  .chip.red { filter: drop-shadow(0 0 6px rgba(255, 90, 95, .6)); }
  .chip.mint { filter: drop-shadow(0 0 6px rgba(69, 192, 143, .5)); }

  /* Symbole tragen etwas Rot (krd faerbt seine Icons). Dezent, nicht neon. */
  .card-title .ic-svg { color: var(--glut-hi); }
  .dash-nav a.active .ic-svg { color: var(--glut-max); filter: drop-shadow(0 0 6px rgba(255, 90, 95, .5)); }

  /* ---------- Zaehler als leuchtende Badges (krd-Navigation) -------------- */
  .kat-knopf em {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 18px; padding: 0 6px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700; background: rgba(255, 90, 95, .1); color: var(--fg-1);
  }
  .kat-knopf em.scharf {
    background: linear-gradient(135deg, var(--glut-hi), var(--glut-accent));
    color: #fff; box-shadow: 0 0 10px rgba(229, 38, 43, .55);
  }

  /* ---------- Urteil: das Wort leuchtet bei Belastung -------------------- */
  .urteil-wert.hoch .wort { color: var(--glut-max); font-weight: 700; text-shadow: 0 0 16px rgba(255, 90, 95, .5); }
  /* Das Urteil-Feld bekommt einen feinen roten Schein, damit es den Blick zuerst faengt. */
  .urteil { position: relative; }

  /* ---------- Cursor-Spur (Elemente legt glut.js an) --------------------- */
  .glut-spur {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
    mix-blend-mode: screen; will-change: transform, opacity;
    background: radial-gradient(circle, rgba(255, 110, 114, .9) 0%, rgba(229, 38, 43, .5) 36%, transparent 70%);
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  .urteil-wert.hoch .zahl, .eintrag-marke.bad { animation: none; }
}
