/* ============================================================
   AFFINLY — Design „Violett/Creme" (ab 24.07.2026)
   ============================================================
   Vorgabe: docs/DESIGN_2026-07.md (Entwurf aus Claude Design).
   Ersetzt schrittweise affinly-theme.css und affinly-desktop.css.

   NOCH NICHT EINGEBUNDEN. Wird pro umgebauter Ansicht aktiviert,
   damit sich nicht zwei Designs überlagern. Solange beide Dateien
   parallel geladen werden, gewinnt die zuletzt eingebundene.
   ============================================================ */

:root {
  /* Flächen */
  --a-bg:          #faf6f0;
  --a-card:        #ffffff;
  --a-line:        #ece4ef;

  /* Text */
  --a-ink:         #2a2228;
  --a-ink-alt:     #2a2024;
  --a-mute:        #a89ba6;
  --a-mute-2:      #8b7f88;
  --a-faint:       #b7a9be;
  --a-faint-2:     #b3a0a8;

  /* Akzente */
  --a-violet:      #7b3fb0;
  --a-violet-pale: #efe7f9;
  --a-plum:        #6d2f4d;
  --a-plum-pale:   #f4e9ee;
  --a-gold:        #c8963e;
  --a-gold-pale:   #faedd9;
  --a-gold-pale-2: #f8efdd;
  --a-lilac:       #f0e8f0;

  /* Markenverlauf: Pink → Violett → Blau */
  --a-brand-1:     #ef6fb0;
  --a-brand-2:     #a458d4;
  --a-brand-3:     #5f83e6;
  --a-brand:       linear-gradient(135deg, #ef6fb0, #a458d4, #5f83e6);
  --a-progress:    linear-gradient(90deg, #ef6fb0, #7b3fb0);

  /* Radien — aus dem Entwurf gezählt */
  --a-r-card:      20px;   /* Standardkarte */
  --a-r-hero:      22px;   /* hervorgehobene Karte */
  --a-r-md:        16px;
  --a-r-sm:        13px;   /* kleine Symbolkreise */
  --a-r-icon:      15px;   /* Symbolkreise 46px */
  --a-r-pill:      999px;

  /* Schatten */
  --a-sh-card:     0 6px 18px -12px rgba(90,45,130,.30);
  --a-sh-hero:     0 16px 32px -14px rgba(120,60,160,.60);
  --a-sh-plum:     0 8px 22px -16px rgba(80,30,50,.50);
  --a-sh-soft:     0 5px 16px -12px rgba(80,30,50,.40);

  /* Abstände */
  --a-pad-x:       24px;   /* Seitenrand mobil */
  --a-pad-x-slim:  22px;   /* Fortschrittsbereich */

  /* Schriften */
  --a-serif:       'Spectral', Georgia, 'Times New Roman', serif;
  --a-sans:        'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --a-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   Bauteile — 1:1 nach den Maßen aus dem Entwurf
   ============================================================ */

.a2 { font-family: var(--a-sans); color: var(--a-ink); }

.a2-h { font-family: var(--a-serif); font-weight: 600; color: var(--a-ink); letter-spacing: -.01em; }

/* Abschnittsüberschrift („GEMEINSAM SPIELEN") */
.a2-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--a-mute);
}

/* Standardkarte */
.a2-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-card);
  padding: 18px;
  box-shadow: var(--a-sh-card);
}

/* Hervorgehobene Karte auf Markenverlauf */
.a2-hero {
  background: var(--a-brand);
  border-radius: var(--a-r-hero);
  padding: 18px;
  color: #fff;
  box-shadow: var(--a-sh-hero);
}
.a2-hero .a2-sub { color: rgba(255,255,255,.82); }

/* Symbolkreise */
.a2-icon {
  width: 46px; height: 46px;
  border-radius: var(--a-r-icon);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.a2-icon--gold   { background: var(--a-gold-pale);   color: var(--a-gold); }
.a2-icon--violet { background: var(--a-violet-pale); color: var(--a-violet); }
.a2-icon--onhero { background: rgba(255,255,255,.2); color: #fff; }
.a2-icon--sm     { width: 42px; height: 42px; border-radius: var(--a-r-sm); }

/* Markierung „BELIEBT" */
.a2-tag {
  font-size: 10px; font-weight: 700;
  color: var(--a-gold);
  background: var(--a-gold-pale-2);
  padding: 4px 9px;
  border-radius: 20px;
}

/* Kategorie-Kachel */
.a2-tile-name  { font-weight: 700; font-size: 13.5px; color: var(--a-ink); line-height: 1.25; }
.a2-tile-count { font-size: 11px; color: var(--a-mute); margin-top: 3px; }
.a2-tile-extra { font-size: 10px; color: var(--a-faint); margin-top: 7px; }

/* Fortschritt */
.a2-progress      { background: var(--a-line); border-radius: var(--a-r-pill); overflow: hidden; }
.a2-progress > i  { display: block; height: 100%; background: var(--a-progress); transition: width .3s; }
.a2-progress-meta {
  display: flex; justify-content: space-between;
  padding: 10px var(--a-pad-x-slim) 0;
  font-size: 11.5px; color: var(--a-mute); font-weight: 600;
}

/* ============================================================
   Überschreibungen der vorhandenen ui-Klassen
   ============================================================
   Die App benutzt eine semantische Klassenschicht (.ui-widget 71x,
   .ui-badge 27x, .gradient-bg 142x …). Diese Definitionen stehen im
   <style>-Block der index.html. Damit hier gewonnen wird, muss diese
   Datei NACH diesem Block eingebunden sein — der Link steht deshalb
   direkt hinter </style>, nicht oben im <head>.

   Dadurch dreht sich das Aussehen fast der gesamten App, ohne dass
   die 32.000 Zeilen JavaScript angefasst werden müssen.
   ============================================================ */

/* Seitenfläche — NUR für bereits umgebaute Bildschirme.
   NICHT .gradient-bg global überschreiben! In der App stehen 88
   `text-white`-Klassen und 185 mal `color:#fff`. Auf einem hellen
   Hintergrund wären die unsichtbar. Jeder Bildschirm bekommt beim
   Umbau `a2-page` statt `gradient-bg` — so bleibt der Rest heil,
   bis er an der Reihe ist. */
.a2-page {
  background-color: var(--a-bg);
  background-image: none;
  color: var(--a-ink);
  min-height: 100vh;
}

/* Karten */
.ui-widget {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-card);
  padding: 18px;
  box-shadow: var(--a-sh-card);
  gap: 8px;
}
.ui-widget:active { transform: scale(0.98); }

.ui-widget-icon {
  width: 46px; height: 46px;
  border-radius: var(--a-r-icon);
  font-size: 21px;
}

.ui-widget-title { font-size: 15.5px; font-weight: 700; color: var(--a-ink); }
.ui-widget-sub   { font-size: 12px; color: var(--a-mute); line-height: 1.4; }

/* Listeneinträge */
.ui-listitem {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-md);
  padding: 14px 15px;
  box-shadow: var(--a-sh-card);
}
.ui-listitem-icon  { width: 42px; height: 42px; border-radius: var(--a-r-sm); font-size: 18px; }
.ui-listitem-title { font-weight: 700; font-size: 13.5px; color: var(--a-ink); }
.ui-listitem-sub   { font-size: 11px; color: var(--a-mute); }
.ui-chev           { color: var(--a-faint); }

/* Abschnittsüberschriften */
.ui-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--a-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 22px 0 10px 2px;
}

/* Markierungen — Gold für „Beliebt", Violett fürs Übrige */
.ui-badge        { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.ui-badge-amber  { background: var(--a-gold-pale-2); color: var(--a-gold); }
.ui-badge-pink   { background: var(--a-plum-pale);   color: var(--a-plum); }
.ui-badge-purple { background: var(--a-violet-pale); color: var(--a-violet); }
.ui-badge-green  { background: #e8f2ec;              color: #2f7d68; }
.ui-badge-blue   { background: #e9eefb;              color: #4a63b8; }

/* Pillen in der Kopfzeile */
.ui-pill {
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--a-r-pill);
  font-size: 12px; font-weight: 700; color: #fff;
}

/* Raster */
.ui-grid2 { gap: 12px; margin-bottom: 12px; }

/* ---------- Kopfbereich ----------
   Aus dem dunklen Verlauf wird der Markenverlauf des Entwurfs.
   Der Inhalt darin trägt im JavaScript fest color:#fff — deshalb
   bleibt der Kopf farbig, statt auf Creme umzustellen. */
.ui-hero {
  background: var(--a-brand);
  padding: 22px 24px 38px;
}
.ui-hero::after { background: var(--a-bg); }

/* ---------- Typografie ----------
   Der Universalselektor in der index.html setzt eine Sans für alles.
   Er hat Spezifität 0, die Element-Regeln hier gewinnen. */
h1, h2, h3 {
  font-family: var(--a-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--a-ink);
}
body, p, li, span, div, button, input, select, textarea {
  font-family: var(--a-sans);
}

/* Eingabefelder */
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-sm);
  background: var(--a-card);
  color: var(--a-ink);
  font-size: 16px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--a-violet);
  outline: 2px solid var(--a-violet-pale);
  outline-offset: 1px;
}

/* ============================================================
   Desktop-Seitenleiste (ab 1024px)
   ============================================================
   Gehört zu buildSideNav() in app/index.html. Die Leiste ist ein
   eigenes Element und wird aus #bottomNav geklont — nicht per CSS
   aus der unteren Leiste gebogen. Der Versuch ist schon einmal
   gescheitert (Leiste landete mitten im Bild). Nicht wiederholen.
   ============================================================ */

#sideNav { display: none; }

@media (min-width: 1024px) {

  #bottomNav { display: none !important; }

  #sideNav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 210px;
    background: var(--a-card);
    border-right: 1px solid var(--a-line);
    padding: 22px 16px;
    z-index: 1000;
    overflow-y: auto;
  }

  .sidenav-brand {
    font-family: var(--a-sans);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.02em;
    color: var(--a-ink);
    padding: 6px 10px 20px;
  }
  .sidenav-brand span { color: var(--a-violet); }

  /* Ein Navigationspunkt: Symbol neben dem Text statt darüber.
     Die geklonten Elemente tragen Inline-Stile aus der unteren
     Leiste (9px Schrift, graue Farbe) — die müssen überschrieben
     werden, deshalb hier !important. */
  .sidenav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 11px 13px;
    min-height: 46px;
    border: 0;
    background: transparent;
    border-radius: 13px;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease;
  }
  .sidenav-item:hover { background: var(--a-bg); }

  .sidenav-item svg {
    width: 21px !important;
    height: 21px !important;
    flex-shrink: 0;
  }
  .sidenav-item span {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    color: var(--a-mute) !important;
  }

  /* Aktiver Punkt */
  .sidenav-item.aktiv        { background: var(--a-violet-pale); }
  .sidenav-item.aktiv svg    { stroke: var(--a-violet) !important; }
  .sidenav-item.aktiv span   { color: var(--a-violet) !important; }

  /* Inhalt rückt neben die Leiste.
     NICHT über body: der <body>-Tag trägt ein Inline-`padding:0`, und ein
     Inline-Stil schlägt jede Stylesheet-Regel. Deshalb den App-Container
     einrücken — 210px Leiste plus 48px Luft. */
  #app {
    padding-left: calc(210px + 48px);
    padding-right: 48px;
    max-width: none;
    margin: 0;
  }
}

/* ============================================================
   Kopfbereiche (.ui-hero) — Creme statt Verlauf
   ============================================================
   Der Entwurf kennt keinen Verlaufskopf: die Seite ist durchgehend
   Creme, oben steht eine Serifen-Schlagzeile.

   Die Köpfe werden im JavaScript erzeugt und tragen dort fest
   `color:#fff`. Statt 18 Funktionen einzeln umzuschreiben, greifen
   hier Attribut-Selektoren: getroffen wird genau das, was Weiß
   deklariert — nichts anderes. Elemente mit eigenem Farbverlauf
   behalten ihr Weiß (Regel steht bewusst danach).
   ============================================================ */

.ui-hero {
  background: var(--a-bg) !important;
  /* Seitliches Polster NICHT auf 0 setzen! Die Koepfe tragen inline
     `padding:16px 16px 28px`; ein `!important` ohne Seitenwert laesst
     den Text am Bildschirmrand kleben. Auf dem Handy sofort sichtbar. */
  padding: 18px 20px 6px !important;
}
.ui-hero::after { display: none !important; }

.ui-hero [style*="color:#fff"],
.ui-hero [style*="color: #fff"],
.ui-hero [style*="color:#ffffff"],
.ui-hero [style*="255,255,255"] {
  color: var(--a-ink) !important;
}

/* Ausnahme: alles auf eigenem Farbverlauf bleibt weiß */
.ui-hero [style*="linear-gradient"],
.ui-hero [style*="linear-gradient"] * {
  color: #fff !important;
}

/* Milchige Flächen aus dem alten Kopf werden zu weißen Karten */
.ui-hero [style*="background:rgba(255,255,255"] {
  background: #fff !important;
  border-color: var(--a-line) !important;
}

/* Pillen: auf Creme braucht es Rahmen statt Transparenz */
.ui-hero .ui-pill,
.ui-pill {
  background: #fff !important;
  border: 1px solid var(--a-line) !important;
  color: var(--a-mute) !important;
}

/* ---------- Zurück-Knöpfe ----------
   Im <style>-Block der index.html steht eine Altregel:
   `.a2-page button[onclick*="goBack"] { color: rgba(255,255,255,0.8) !important }`
   Sie stammt aus der Zeit des dunklen Hintergrunds und war früher richtig.
   Auf Creme ist sie unsichtbar. Da sie `!important` trägt, braucht es
   hier dieselbe Stufe plus die spätere Position. */
.a2-page button[onclick*="goBack"],
.a2-page a[onclick*="goBack"] {
  color: var(--a-mute-2) !important;
  text-shadow: none !important;
}
.a2-page button[onclick*="goBack"]:hover,
.a2-page a[onclick*="goBack"]:hover {
  color: var(--a-ink) !important;
}

/* ---------- Kennzahlen-Pillen (Partner-Ansicht) ----------
   `.ui-stat-pill` saß früher auf dem dunklen Verlauf und war deshalb
   milchig-transparent mit weißer Schrift. Auf Creme wird daraus eine
   weiße Karte mit Tinte. */
.ui-stat-pill {
  background: var(--a-card) !important;
  border: 1px solid var(--a-line) !important;
  border-radius: var(--a-r-md) !important;
  box-shadow: var(--a-sh-card);
}
.ui-stat-val { color: var(--a-ink) !important; }
.ui-stat-lbl { color: var(--a-mute) !important; }

/* ============================================================
   Desktop: Inhalt füllt die Fläche
   ============================================================
   Die Render-Funktionen setzen `style="max-width:480px;margin:0 auto"`
   fest im JavaScript. Inline-Stile schlagen normale Regeln — deshalb
   hier per Attribut-Selektor und `!important`. Nur so lässt sich das
   ohne Eingriff in 30 Funktionen aufheben.
   ============================================================ */

@media (min-width: 1024px) {

  #app [style*="max-width:480px"],
  #app [style*="max-width: 480px"],
  #app [style*="max-width:520px"] {
    max-width: 1080px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Spielkarten nebeneinander statt untereinander */
  .a2-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
  }
  .a2-cards .ui-widget.wide {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    min-height: 100%;
  }
  /* Der Pfeil ergibt in der Kachel keinen Sinn mehr */
  .a2-cards .ui-widget.wide .ui-chev { display: none; }
  /* Markierung wandert nach oben rechts */
  .a2-cards .ui-widget.wide { position: relative; }
  .a2-cards .ui-widget.wide .ui-badge {
    position: absolute; top: 18px; right: 18px;
  }
}

@media (min-width: 1024px) {

  /* ---------- Nutzerkarte am Fuß der Seitenleiste ----------
     Entspricht dem Entwurf: Profilkreis, Name, darunter Level und
     Beziehungsstatus. Wird von aktualisiereSideNavNutzer() gefüllt. */
  .sidenav-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 12px 6px;
    border-top: 1px solid var(--a-line);
    cursor: pointer;
  }
  .sidenav-user-kreis {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef6fb0, #a458d4, #5f83e6);
    color: #fff;
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sidenav-user-text { display: flex; flex-direction: column; min-width: 0; }
  .sidenav-user-text b {
    font-size: 14px; font-weight: 700; color: var(--a-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sidenav-user-text i {
    font-style: normal; font-size: 11.5px; color: var(--a-mute); margin-top: 1px;
  }
}

/* ============================================================
   Tailwind-Farbklassen auf die neue Palette
   ============================================================
   Automatisch erzeugt aus den tatsaechlich benutzten Klassen
   (tools/tailwind_map.py). Gruen und Rot fehlen bewusst — sie
   tragen Bedeutung (Erfolg, Fehler) und bleiben, wie sie sind.
   ============================================================ */

.bg-amber-400 { background-color: #c8963e !important; }
.bg-amber-50 { background-color: #faedd9 !important; }
.bg-amber-500 { background-color: #c8963e !important; }
.bg-blue-100 { background-color: #f4e9ee !important; }
.bg-blue-200 { background-color: #c0a3b2 !important; }
.bg-blue-300 { background-color: #c0a3b2 !important; }
.bg-blue-400 { background-color: #6d2f4d !important; }
.bg-blue-50 { background-color: #f4e9ee !important; }
.bg-blue-500 { background-color: #6d2f4d !important; }
.bg-blue-600 { background-color: #6d2f4d !important; }
.bg-blue-700 { background-color: #57263e !important; }
.bg-cyan-400 { background-color: #6d2f4d !important; }
.bg-cyan-500 { background-color: #6d2f4d !important; }
.bg-gray-100 { background-color: #ece4ef !important; }
.bg-gray-200 { background-color: #ece4ef !important; }
.bg-gray-300 { background-color: #b7a9be !important; }
.bg-gray-400 { background-color: #b7a9be !important; }
.bg-gray-50 { background-color: #faf6f0 !important; }
.bg-gray-500 { background-color: #a89ba6 !important; }
.bg-gray-800 { background-color: #2a2228 !important; }
.bg-gray-900 { background-color: #2a2228 !important; }
.bg-indigo-50 { background-color: #efe7f9 !important; }
.bg-indigo-500 { background-color: #7b3fb0 !important; }
.bg-orange-100 { background-color: #faedd9 !important; }
.bg-orange-400 { background-color: #c8963e !important; }
.bg-orange-50 { background-color: #faedd9 !important; }
.bg-orange-500 { background-color: #c8963e !important; }
.bg-orange-600 { background-color: #c8963e !important; }
.bg-pink-100 { background-color: #f4e9ee !important; }
.bg-pink-400 { background-color: #6d2f4d !important; }
.bg-pink-500 { background-color: #6d2f4d !important; }
.bg-purple-100 { background-color: #efe7f9 !important; }
.bg-purple-200 { background-color: #c9a7e8 !important; }
.bg-purple-400 { background-color: #7b3fb0 !important; }
.bg-purple-50 { background-color: #efe7f9 !important; }
.bg-purple-500 { background-color: #7b3fb0 !important; }
.bg-purple-600 { background-color: #7b3fb0 !important; }
.bg-rose-100 { background-color: #f4e9ee !important; }
.bg-rose-200 { background-color: #e0a9c2 !important; }
.bg-rose-300 { background-color: #e0a9c2 !important; }
.bg-rose-400 { background-color: #6d2f4d !important; }
.bg-rose-50 { background-color: #f4e9ee !important; }
.bg-rose-500 { background-color: #6d2f4d !important; }
.bg-rose-600 { background-color: #6d2f4d !important; }
.bg-rose-700 { background-color: #57263e !important; }
.bg-rose-800 { background-color: #57263e !important; }
.bg-yellow-100 { background-color: #faedd9 !important; }
.bg-yellow-300 { background-color: #e5c98f !important; }
.bg-yellow-400 { background-color: #c8963e !important; }
.bg-yellow-50 { background-color: #faedd9 !important; }
.bg-yellow-500 { background-color: #c8963e !important; }
.border-amber-200 { border-color: #e5c98f !important; }
.border-amber-400 { border-color: #c8963e !important; }
.border-blue-200 { border-color: #c0a3b2 !important; }
.border-blue-300 { border-color: #c0a3b2 !important; }
.border-blue-400 { border-color: #6d2f4d !important; }
.border-blue-500 { border-color: #6d2f4d !important; }
.border-gray-100 { border-color: #ece4ef !important; }
.border-gray-200 { border-color: #ece4ef !important; }
.border-gray-300 { border-color: #b7a9be !important; }
.border-orange-200 { border-color: #e5c98f !important; }
.border-orange-300 { border-color: #e5c98f !important; }
.border-orange-400 { border-color: #c8963e !important; }
.border-purple-200 { border-color: #c9a7e8 !important; }
.border-purple-300 { border-color: #c9a7e8 !important; }
.border-purple-400 { border-color: #7b3fb0 !important; }
.border-purple-500 { border-color: #7b3fb0 !important; }
.border-rose-200 { border-color: #e0a9c2 !important; }
.border-rose-300 { border-color: #e0a9c2 !important; }
.border-rose-400 { border-color: #6d2f4d !important; }
.border-rose-500 { border-color: #6d2f4d !important; }
.border-yellow-200 { border-color: #e5c98f !important; }
.border-yellow-400 { border-color: #c8963e !important; }
.border-yellow-500 { border-color: #c8963e !important; }
.divide-gray-100 { border-color: #ece4ef !important; }
.from-blue-50 { --tw-gradient-from: #f4e9ee !important; }
.from-blue-500 { --tw-gradient-from: #6d2f4d !important; }
.from-gray-500 { --tw-gradient-from: #a89ba6 !important; }
.from-indigo-500 { --tw-gradient-from: #7b3fb0 !important; }
.from-orange-400 { --tw-gradient-from: #c8963e !important; }
.from-orange-500 { --tw-gradient-from: #c8963e !important; }
.from-purple-50 { --tw-gradient-from: #efe7f9 !important; }
.from-purple-500 { --tw-gradient-from: #7b3fb0 !important; }
.from-rose-400 { --tw-gradient-from: #6d2f4d !important; }
.from-rose-50 { --tw-gradient-from: #f4e9ee !important; }
.from-rose-500 { --tw-gradient-from: #6d2f4d !important; }
.ring-purple-300 { --tw-ring-color: #c9a7e8 !important; }
.text-amber-700 { color: #7d5a1e !important; }
.text-amber-800 { color: #7d5a1e !important; }
.text-blue-300 { color: #c0a3b2 !important; }
.text-blue-400 { color: #6d2f4d !important; }
.text-blue-500 { color: #6d2f4d !important; }
.text-blue-600 { color: #6d2f4d !important; }
.text-blue-700 { color: #57263e !important; }
.text-blue-800 { color: #57263e !important; }
.text-gray-300 { color: #b7a9be !important; }
.text-gray-400 { color: #b7a9be !important; }
.text-gray-500 { color: #a89ba6 !important; }
.text-gray-600 { color: #8b7f88 !important; }
.text-gray-700 { color: #2a2228 !important; }
.text-gray-800 { color: #2a2228 !important; }
.text-gray-900 { color: #2a2228 !important; }
.text-indigo-500 { color: #7b3fb0 !important; }
.text-indigo-600 { color: #7b3fb0 !important; }
.text-orange-500 { color: #c8963e !important; }
.text-orange-600 { color: #c8963e !important; }
.text-orange-700 { color: #7d5a1e !important; }
.text-pink-600 { color: #6d2f4d !important; }
.text-pink-700 { color: #57263e !important; }
.text-purple-300 { color: #c9a7e8 !important; }
.text-purple-400 { color: #7b3fb0 !important; }
.text-purple-500 { color: #7b3fb0 !important; }
.text-purple-600 { color: #7b3fb0 !important; }
.text-purple-700 { color: #63308f !important; }
.text-purple-800 { color: #63308f !important; }
.text-rose-300 { color: #e0a9c2 !important; }
.text-rose-400 { color: #6d2f4d !important; }
.text-rose-500 { color: #6d2f4d !important; }
.text-rose-600 { color: #6d2f4d !important; }
.text-rose-700 { color: #57263e !important; }
.text-rose-800 { color: #57263e !important; }
.text-yellow-200 { color: #e5c98f !important; }
.text-yellow-300 { color: #e5c98f !important; }
.text-yellow-500 { color: #c8963e !important; }
.text-yellow-600 { color: #c8963e !important; }
.text-yellow-700 { color: #7d5a1e !important; }
.text-yellow-800 { color: #7d5a1e !important; }
.to-amber-500 { --tw-gradient-to: #c8963e !important; }
.to-blue-50 { --tw-gradient-to: #f4e9ee !important; }
.to-cyan-500 { --tw-gradient-to: #6d2f4d !important; }
.to-gray-600 { --tw-gradient-to: #8b7f88 !important; }
.to-indigo-500 { --tw-gradient-to: #7b3fb0 !important; }
.to-orange-500 { --tw-gradient-to: #c8963e !important; }
.to-pink-400 { --tw-gradient-to: #6d2f4d !important; }
.to-pink-50 { --tw-gradient-to: #f4e9ee !important; }
.to-pink-500 { --tw-gradient-to: #6d2f4d !important; }
.to-pink-600 { --tw-gradient-to: #6d2f4d !important; }
.to-purple-500 { --tw-gradient-to: #7b3fb0 !important; }
.to-rose-500 { --tw-gradient-to: #6d2f4d !important; }
.to-rose-600 { --tw-gradient-to: #6d2f4d !important; }
.to-yellow-400 { --tw-gradient-to: #c8963e !important; }

/* ============================================================
   Karten, Titel und Eingabefelder — Anmelden/Registrieren
   ============================================================
   `.glass-card` (27 Verwendungen) war eine Milchglas-Fläche für den
   früheren dunklen Hintergrund. Auf Creme wirkt Halbtransparenz
   schmutzig — hier wird daraus die weiße Karte aus dem Entwurf.
   ============================================================ */

.glass-card {
  background: var(--a-card) !important;
  border: 1px solid var(--a-line) !important;
  border-radius: var(--a-r-card) !important;
  box-shadow: var(--a-sh-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.glass-card:hover { box-shadow: var(--a-sh-card) !important; }

/* Titel mit .heading auf die Serife — betrifft Anmeldeseite und
   einige Überschriften in Unteransichten. */
.heading {
  font-family: var(--a-serif) !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  text-shadow: none !important;
}

/* Eingabefelder: durchgehende Linien statt halbtransparenter Ränder */
input[type="email"], input[type="password"], input[type="text"],
input[type="number"], input[type="date"], select, textarea {
  border: 1px solid var(--a-line) !important;
  background: var(--a-card) !important;
  color: var(--a-ink) !important;
  border-radius: var(--a-r-sm) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--a-violet) !important;
  outline: 2px solid var(--a-violet-pale);
  outline-offset: 1px;
}
input::placeholder, textarea::placeholder { color: var(--a-faint) !important; }

/* ============================================================
   Anmelden / Registrieren — zweispaltig am Desktop
   ============================================================
   Ein 1000px breites Anmeldeformular wäre unbrauchbar. Deshalb
   zwei Spalten: links das Formular in Lesebreite, rechts die
   Beschreibung. Auf dem Handy bleibt alles untereinander.
   ============================================================ */

/* Milchglas-Flächen auf solide Karten — betrifft auch die
   Beschreibungskarte auf der Anmeldeseite. */
#app [style*="backdrop-filter:blur"],
#app [style*="backdrop-filter: blur"] {
  background: var(--a-card) !important;
  border-color: var(--a-line) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (min-width: 1024px) {

  #app .max-w-md.mx-auto {
    max-width: 1000px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }

  /* Die Beschreibung belegt die rechte Spalte ab der ersten Zeile;
     alles andere (Logo, Titel, Formular) fließt links. */
  #app .max-w-md.mx-auto > .auth-info {
    grid-column: 2;
    grid-row: 1 / span 30;
  }
  #app .max-w-md.mx-auto > .auth-info > * { margin-bottom: 18px; }
}
