:root {
  /* Blaue Stunde — Rauch ist blau, die Glut ist der Zug.
     Kontrast auf --tinte gemessen: asche 15.5:1, gold 9.3:1, glut 7.8:1 */
  --tinte:       #0B1622;  /* Seitengrund                   */
  --nacht:       #1A2E45;  /* Karten, erhabene Flächen      */
  --nacht-tief:  #081019;  /* Kopfleiste                    */
  --linie:       #2A4260;  /* Trennlinien                   */
  --linie-stark: #2F4A68;  /* Ränder, Eingabefelder         */
  --asche:       #E8EDF2;  /* Haupttext                     */
  --gold:        #D6B47C;  /* Zweitrangiger Text, Links     */
  --gold-hell:   #E2CFA4;  /* Hover, Aktiv                  */
  --glut:        #FF8A32;  /* Der eine Akzent — nur Flächen */
  --gut:         #5FA88C;
  --warnung:     #E5654A;
}

* { box-sizing: border-box; }

/* Der Grund ist kein Vollton mehr: oben ein kaum sichtbarer Schein hinter dem
   Kopf, nach unten läuft es ins Schwarzblaue. Die Farbe steht zusätzlich als
   background-color, damit auch ohne Verlaufsunterstützung nichts weiß bleibt. */
html { background-color: #070E17; }

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: #070E17;
  background-image:
    radial-gradient(120% 46% at 50% 0%, #16283C 0%, rgba(22, 40, 60, 0) 64%),
    linear-gradient(180deg, #0D1B29 0%, #0A1420 46%, #070E17 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--asche);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Das Glutzeichen ----------
   Dasselbe Zeichen wie im App-Icon: ein Glutkern mit Schein, umgeben von zwei
   Haarlinien-Ringen. Es erscheint klein in der Kopfleiste und groß als
   „Anzünden" in der Reiterleiste — ein Zeichen, zwei Größen. */

.glutmarke {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
}
.glutmarke::before,
.glutmarke::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}
.glutmarke::before { inset: 0;   border-color: rgba(214, 180, 124, 0.22); }
.glutmarke::after  { inset: 18%; border-color: rgba(255, 138, 50, 0.20); }
.glutmarke i {
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFDBAB 0%, #FF9A3E 44%, #E2571A 100%);
}

main {
  max-width: 720px;
  margin: 0 auto;
  /* unten Platz für die Reiterleiste (Leiste + Rand des Geräts) */
  padding: 1.1rem 1rem calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

/* ---------- Kopf ---------- */

.kopf {
  /* Kein Balken mehr, sondern ein Verlauf, der nach unten in den Grund ausläuft */
  background: linear-gradient(180deg, rgba(8, 16, 25, 0.92) 0%, rgba(8, 16, 25, 0) 100%);
  color: var(--asche);
  padding: 0.7rem 1rem 0.95rem;
  padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 0.6rem 0.7rem;
}
.kopf .glutmarke { width: 19px; height: 19px; }
.kopf .glutmarke::after { inset: 22%; }
.kopf .glutmarke i {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 7px 2px rgba(255, 138, 50, 0.45);
}
.kopf .marke {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--asche);
  text-decoration: none;
}
.kopf .dezent { margin-left: auto; color: #8CA1B8; }

/* ---------- Reiterleiste unten ----------
   Am Handy erreicht der Daumen nur diesen Rand. Fünf Plätze; der mittlere
   ist kein Reiter, sondern die Tat. Glut bleibt der einzige Akzent —
   deshalb glüht hier genau ein Platz und sonst keiner. */

.reiter {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Milchglas: der Inhalt schimmert beim Scrollen durch, statt an einem
     undurchsichtigen Balken abzuschneiden. */
  background: linear-gradient(180deg, rgba(9, 18, 29, 0.66) 0%, rgba(7, 14, 23, 0.95) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 20;
}
/* Oberkante als Goldhauch, der zu den Rändern hin ausläuft — keine harte Linie */
.reiter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(214, 180, 124, 0) 0%,
    rgba(214, 180, 124, 0.26) 22%,
    rgba(214, 180, 124, 0.26) 78%,
    rgba(214, 180, 124, 0) 100%);
}
/* Wo Weichzeichner fehlt (ältere Browser), muss die Leiste deckend werden,
   sonst läuft der Text darunter durch. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .reiter { background: linear-gradient(180deg, #0A1524 0%, #070E17 100%); }
}

.reiter a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.62rem 0.2rem 0.68rem;
  color: #8FA5BC;
  text-decoration: none;
  font-size: 0.655rem;
  letter-spacing: 0.07em;
  -webkit-tap-highlight-color: transparent;
}
.reiter a svg { width: 21px; height: 21px; }
.reiter a.aktiv { color: var(--gold-hell); }
/* Der aktive Reiter bekommt einen kurzen glimmenden Strich an der Oberkante,
   keinen Block — man sieht auf einen Blick, wo man ist. */
.reiter a.aktiv::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(214, 180, 124, 0.7);
}
.reiter a:active { color: var(--asche); }
.reiter a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* „Anzünden": das App-Icon in klein. Die Tippfläche kommt aus dem Innenabstand
   des Verweises (über 52 px), nicht aus der sichtbaren Scheibe — deshalb darf
   das Zeichen selbst zierlich bleiben. */
.reiter .glutplatz { padding-top: 0.5rem; color: var(--asche); }
.reiter .glutplatz .glutmarke {
  width: 44px;
  height: 44px;
  margin-top: -16px;
}
.reiter .glutplatz .glutmarke::before { border-color: rgba(214, 180, 124, 0.30); }
.reiter .glutplatz .glutmarke::after  { inset: 20%; border-color: rgba(255, 138, 50, 0.26); }
.reiter .glutplatz .glutmarke i {
  width: 13px;
  height: 13px;
  box-shadow: 0 0 11px 3px rgba(255, 138, 50, 0.42), 0 0 24px 9px rgba(255, 138, 50, 0.16);
}
/* Ein langsames Glimmen, wie eine Glut sie hat. Wer Bewegung abgestellt hat,
   bekommt sie nicht. */
@media (prefers-reduced-motion: no-preference) {
  .reiter .glutplatz .glutmarke i { animation: glimmen 5.5s ease-in-out infinite; }
  @keyframes glimmen {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.78; }
  }
}

/* ---------- Text ---------- */

h1 { font-size: 1.5rem; margin: 0.2rem 0 1rem; font-weight: normal; }
h2 { font-size: 1.15rem; margin: 1.8rem 0 0.7rem; font-weight: normal; color: var(--asche); }
p  { margin: 0.5rem 0; }
a  { color: var(--gold); }
.dezent { color: var(--gold); font-size: 0.9rem; }
.leer {
  text-align: center;
  color: var(--gold);
  padding: 2.5rem 1rem;
  border: 1px dashed rgba(214, 180, 124, 0.22);
  border-radius: 13px;
}

/* ---------- Karten ---------- */

.karte {
  background: linear-gradient(158deg, #1D3350 0%, #16273A 100%);
  border: 1px solid rgba(214, 180, 124, 0.13);
  border-radius: 13px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.karte-link { display: block; text-decoration: none; color: inherit; }
.karte-link:active { background: linear-gradient(158deg, #244064 0%, #1B3149 100%); }

.zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.titel { font-size: 1.05rem; }
.marke-name { font-weight: bold; }
.menge {
  background: var(--nacht-tief);
  color: var(--asche);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- Kennzahlen ---------- */

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.kennzahl {
  background: linear-gradient(158deg, #1D3350 0%, #16273A 100%);
  border: 1px solid rgba(214, 180, 124, 0.13);
  border-radius: 13px;
  padding: 0.8rem;
  text-align: center;
}
.kennzahl .wert { font-variant-numeric: tabular-nums; }
.kennzahl .wert { font-size: 1.6rem; color: var(--asche); display: block; }
.kennzahl .beschriftung { font-size: 0.8rem; color: var(--gold); }

/* ---------- Formulare ---------- */

label { display: block; margin: 0.9rem 0 0.25rem; font-size: 0.9rem; color: var(--gold); }
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--nacht);
  color: var(--asche);
}
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.7rem; }

button, .knopf {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.75rem 1.3rem;
  /* Verlauf wie die Karten, aber dunkler — der Rand macht ihn als Bedienelement
     auffindbar. Textfarbe bleibt --asche, damit der Kontrast hoch bleibt. */
  background: linear-gradient(180deg, #16273A 0%, #0C1725 100%);
  color: var(--asche);
  border: 1px solid rgba(214, 180, 124, 0.22);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
button:active, .knopf:active { background: linear-gradient(180deg, #22405F 0%, #16273A 100%); }
button:focus-visible, .knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.knopf-zweit { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.knopf-voll { display: block; width: 100%; }

/* Der frühere schwebende Plus-Knopf ist entfallen — seine Aufgabe hat der
   Glutplatz „Anzünden" in der Reiterleiste übernommen. */

/* ---------- Meldungen ---------- */

.meldung { padding: 0.7rem 0.9rem; border-radius: 8px; margin: 0.8rem 0; font-size: 0.95rem; }
.fehler  { background: #2E1712; color: #FFB4A0; border: 1px solid #5C2A1D; }
.info    { background: #13261D; color: #9FD9BC; border: 1px solid #24483A; }
.hinweis { background: #2A2317; color: #E2CFA4; border: 1px solid #4A3D25; }

/* ---------- Foto-Erkennung ---------- */

.ki-feld {
  border: 1px solid rgba(214, 180, 124, 0.13);
  border-radius: 13px;
  padding: 0.9rem;
  background: linear-gradient(158deg, #1D3350 0%, #16273A 100%);
  margin-bottom: 1.2rem;
}
.ki-feld h2 { margin-top: 0; }
#vorschau { max-width: 100%; border-radius: 8px; margin-top: 0.7rem; display: none; }

/* ---------- Sterne / Bewertung ---------- */

.sterne { color: var(--gold); letter-spacing: 0.1em; }

.foto-klein {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--linie); }
th { color: var(--gold); font-weight: normal; font-size: 0.85rem; }


/* ---------- Blaue Stunde: Anzeige-Schrift ---------- */

h1, h2, h3, .marke {
  font-family: Optima, Candara, "Gill Sans", "Trebuchet MS", sans-serif;
  font-weight: 400;
}

.kopf .marke {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-indent: 0.34em;
  font-size: 0.95rem;
  color: var(--asche);
}

/* Eingabefelder auf dunklem Grund */
input, select, textarea {
  background: var(--nacht);
  color: var(--asche);
  border-color: var(--linie-stark);
}
input::placeholder, textarea::placeholder { color: #7C8CA0; }

/* Das Betriebssystem soll Formularelemente dunkel zeichnen */
:root { color-scheme: dark; }

/* Ein SVG mit viewBox, aber ohne Größenangabe nimmt sich die volle Breite des
   Elternelements. In der Reiterleiste ist die Größe gesetzt — überall sonst
   deckelt diese Regel, damit kein Symbol die halbe Seite füllt. */
main svg { max-width: 100%; }


/* ══════════════════════════════════════════════════════════════════════
   DER VERLAUF — Mitschrift, während sie brennt
   Alles hier ist für einen Daumen gebaut: nichts unter 52 px, keine
   Ziehbewegungen, kein Zielen. Antippen genügt.
   ══════════════════════════════════════════════════════════════════════ */

.verlauf {
  background: linear-gradient(158deg, #1D3350 0%, #16273A 100%);
  border: 1px solid rgba(214, 180, 124, 0.13);
  border-radius: 13px;
  padding: 1rem;
  margin-bottom: 1.4rem;
}

/* ---------- Zustand 1: anzünden ---------- */

.anzuendknopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, #22405F 0%, #16273A 100%);
  border: 1px solid rgba(255, 138, 50, 0.35);
  border-radius: 12px;
  color: var(--asche);
  font-family: Optima, Candara, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.anzuendknopf .glutmarke { width: 34px; height: 34px; }
.anzuendknopf .glutmarke i {
  width: 11px; height: 11px;
  box-shadow: 0 0 10px 3px rgba(255, 138, 50, 0.45);
}
.anzuendknopf:active { background: linear-gradient(180deg, #2A4E71 0%, #1B3149 100%); }
.v-hinweis { text-align: center; margin: 0.7rem 0 0.2rem; }

/* ---------- Zustand 2: sie brennt ---------- */

.v-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.v-uhr {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--asche);
}
.v-drittel {
  font-family: Optima, Candara, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Drei Punkte statt einer Fortschrittsleiste — die Drittel sind gezählt, nicht gemessen */
.v-punkte { display: flex; gap: 0.4rem; margin-bottom: 1.1rem; }
.v-punkt {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(214, 180, 124, 0.16);
}
.v-punkt.an { background: var(--gold); }

.v-skala { border: none; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.v-skala legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--gold);
}
.v-skala legend .dezent { font-size: 0.78rem; }

/* Fünf Stufen nebeneinander. Angetippt füllt sich alles bis dorthin —
   man sieht den Pegel, nicht nur die Auswahl. */
.v-stufen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
.v-stufen button {
  margin: 0;
  min-height: 54px;
  padding: 0.3rem 0.15rem;
  background: rgba(8, 16, 25, 0.45);
  border: 1px solid var(--linie);
  border-radius: 9px;
  color: #9FB3C8;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
}
/* Stärke füllt sich mit Glut (Fläche), Körper mit einem Goldhauch —
   dieselbe Rollenteilung wie im Band: Glut ist Fläche, Gold ist Kontur. */
.v-stufen[data-feld="staerke"] button.an {
  background: linear-gradient(180deg, rgba(255, 138, 50, 0.42) 0%, rgba(255, 138, 50, 0.20) 100%);
  border-color: rgba(255, 138, 50, 0.5);
  color: var(--asche);
}
.v-stufen[data-feld="koerper"] button.an {
  background: rgba(214, 180, 124, 0.16);
  border-color: rgba(214, 180, 124, 0.45);
  color: var(--gold-hell);
}
.v-stufen button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Acht Familien, zwei Spalten. Jeder Tipp macht das Aroma eine Stufe
   deutlicher, der vierte nimmt es wieder weg. */
.v-aromen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.4rem; }
.v-aroma {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  min-height: 54px;
  padding: 0.5rem 0.7rem;
  background: rgba(8, 16, 25, 0.45);
  border: 1px solid var(--linie);
  border-radius: 10px;
  color: #9FB3C8;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
.v-aroma:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Die Intensität ist eine Glut, die aufgeht — kein Zahlenwert, kein Regler */
.v-glut {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 124, 0.28);
}
.v-aroma[data-stufe="1"],
.v-aroma[data-stufe="2"],
.v-aroma[data-stufe="3"] { color: var(--asche); border-color: rgba(255, 138, 50, 0.4); }
.v-aroma[data-stufe="1"] .v-glut,
.v-aroma[data-stufe="2"] .v-glut,
.v-aroma[data-stufe="3"] .v-glut {
  border-color: transparent;
  background: radial-gradient(circle at 38% 34%, #FFDBAB 0%, #FF9A3E 44%, #E2571A 100%);
}
.v-aroma[data-stufe="1"] .v-glut { transform: scale(0.5); box-shadow: 0 0 6px 1px rgba(255,138,50,.35); }
.v-aroma[data-stufe="2"] .v-glut { transform: scale(0.75); box-shadow: 0 0 9px 2px rgba(255,138,50,.42); }
.v-aroma[data-stufe="3"] .v-glut { transform: scale(1);    box-shadow: 0 0 13px 4px rgba(255,138,50,.5); }

.v-weiter { min-height: 56px; }

/* ---------- Zustand 3: ausgemacht ---------- */

.v-bilanz { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.v-bilanz-zeit { font-variant-numeric: tabular-nums; color: var(--asche); }
.v-neu {
  margin: 0;
  padding: 0.35rem 0.7rem;
  min-height: 0;
  background: none;
  border: 1px solid rgba(214, 180, 124, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  cursor: pointer;
}
.v-satz { color: var(--gold); margin: 0.5rem 0 0; }


/* ══════════════════════════════════════════════════════════════════════
   DAS BAND im Journal — die Zigarre von links nach rechts
   ══════════════════════════════════════════════════════════════════════ */

.band { margin: 0.9rem 0 0.3rem; }
.band-bild {
  display: block;
  width: 100%;
  height: 68px;
  overflow: visible;
}
.band-teiler { stroke: rgba(214, 180, 124, 0.14); stroke-width: 1; }
.band-basis  { stroke: rgba(214, 180, 124, 0.22); stroke-width: 1; }
.band-koerper {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.band-drittel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.band-abschnitt {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.35;
}
.band-nummer {
  font-variant-numeric: tabular-nums;
  color: rgba(214, 180, 124, 0.55);
  letter-spacing: 0.1em;
}
.band-aromen { color: var(--asche); }
.band-aromen.leer-still { color: rgba(143, 165, 188, 0.5); }
.band-satz { color: var(--gold); font-size: 0.9rem; margin: 0.6rem 0 0; }

/* ══════════════════════════════════════════════════════════════════════
   Nach Geschmack suchen (Entdecken)
   Eine Kachel hat drei Zustände. „muss" trägt die Glut, „ohne" ist
   durchgestrichen und bleibt kühl — die Farbregel gilt auch hier:
   Glut nur als Fläche, nie als Text.
   ══════════════════════════════════════════════════════════════════════ */

.geschmack { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); }
.geschmack h2 { margin-bottom: 0.3rem; }
.g-anleitung { margin: 0 0 0.8rem; font-size: 0.85rem; }

.g-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.4rem; }
.g-kachel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  min-height: 54px;
  padding: 0.5rem 0.7rem;
  background: rgba(8, 16, 25, 0.45);
  border: 1px solid var(--linie);
  border-radius: 10px;
  color: #9FB3C8;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}
.g-kachel:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.g-zahl {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: rgba(143, 165, 188, 0.75);
}
/* Familien, zu denen es noch keinen einzigen Eintrag gibt: sichtbar, aber leise */
.g-kachel[data-leer="1"] { opacity: 0.55; }

.g-kachel[data-zustand="muss"] {
  color: var(--asche);
  border-color: rgba(255, 138, 50, 0.45);
  background: linear-gradient(158deg, rgba(255,138,50,0.16) 0%, rgba(8,16,25,0.45) 100%);
}
.g-kachel[data-zustand="muss"] .g-zahl { color: var(--gold-hell); }

.g-kachel[data-zustand="ohne"] {
  color: #8CA1B8;
  border-color: rgba(229, 101, 74, 0.45);
  background: rgba(46, 23, 18, 0.4);
}
.g-kachel[data-zustand="ohne"] .g-name { text-decoration: line-through; }
.g-kachel[data-zustand="ohne"] .g-zahl::before { content: "kein "; }

.g-modus { margin-top: 1.2rem; }
.g-modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.3rem; }
.g-modus-wahl {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 48px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  color: #9FB3C8;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}
.g-modus-wahl input { position: absolute; opacity: 0; width: 0; height: 0; }
.g-modus-wahl.an { border-color: var(--gold); color: var(--gold-hell); background: rgba(214, 180, 124, 0.1); }
.g-modus-wahl:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }

.g-schalter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0 0.2rem;
  min-height: 52px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--linie);
  border-radius: 10px;
  color: #9FB3C8;
  font-size: 0.9rem;
  cursor: pointer;
}
.g-schalter input { flex: none; width: 22px; height: 22px; accent-color: #FF8A32; }
.g-schalter.an { border-color: rgba(255, 138, 50, 0.45); color: var(--asche); }
.g-schalter .dezent { font-size: 0.82rem; }

.g-ergebnis { margin-top: 1.8rem; }
.g-zuruecksetzen { margin-top: 0.5rem; text-align: center; text-decoration: none; }

/* ---------- Teilen-Schalter im Journal ---------- */
.teilen-form { margin: 0.8rem 0 0; }
.teilen-knopf {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.7rem;
  background: transparent;
  border: 1px dashed var(--linie);
  border-radius: 8px;
  color: #8CA1B8;
  font-size: 0.82rem;
  cursor: pointer;
}
.teilen-knopf.an {
  border-style: solid;
  border-color: rgba(214, 180, 124, 0.5);
  color: var(--gold-hell);
  background: rgba(214, 180, 124, 0.08);
}
.teilen-knopf:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ══════════════════════════════════════════════════════════════════════
   Aus der Zigarrenwelt (Startseite)
   Fremde Inhalte, deshalb ruhiger gesetzt als der eigene Bestand: kein
   Glutakzent, die Kategorie trägt Gold als Linie.
   ══════════════════════════════════════════════════════════════════════ */

.welt { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--linie); }
.nachricht { padding: 0.9rem; }
.n-kopf {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.n-fach {
  flex: none;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(214, 180, 124, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.n-quelle { color: #8CA1B8; font-size: 0.78rem; }
.n-text { margin: 0.35rem 0 0; color: #C3D2E0; font-size: 0.92rem; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════════════
   Sprachnotiz (Rauchen-Formular)
   ══════════════════════════════════════════════════════════════════════ */

.diktat { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); }
.diktat-schild {
  display: block;
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.9rem;
}
.diktat textarea { min-height: 4.2rem; }
.diktat-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.diktat-knoepfe .knopf { flex: 1 1 12rem; min-height: 48px; margin: 0; }
.diktat-hinweis { margin: 0.7rem 0 0; font-size: 0.85rem; }
.diktat-hinweis.fehler-text { color: #FFB4A0; }

/* Während das Mikrofon läuft, glimmt der Rand — sichtbar ohne Text zu lesen */
.diktat.hoert textarea {
  border-color: rgba(255, 138, 50, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 138, 50, 0.25);
}
.diktat.hoert #diktat-mikro { border-color: var(--glut); color: #FFC79A; }

/* ══════════════════════════════════════════════════════════════════════
   Zigarrenfreunde
   ══════════════════════════════════════════════════════════════════════ */

.freundeskreis { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); }
.f-wer { color: var(--gold-hell); }

.knopf-gefahr {
  background: transparent;
  color: var(--warnung, #E5654A);
  border: 1px solid var(--warnung, #E5654A);
}

.einladung.eingeloest { opacity: 0.6; }
.einladung .code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--asche);
}
.einladung-link { margin: 0.6rem 0 0; font-size: 0.82rem; }
.einladung-link .link-text {
  display: inline-block;
  color: #A9BCCE;
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;   /* einmal antippen wählt den ganzen Link aus */
}

/* Fußzeile eines Journaleintrags: teilen links, löschen rechts und leise */
.eintrag-fuss { display: flex; gap: 0.5rem; align-items: stretch; margin-top: 0.8rem; }
.eintrag-fuss .teilen-form { flex: 1; margin: 0; }
.eintrag-weg {
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px dashed var(--linie);
  border-radius: 8px;
  color: #8CA1B8;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}
.eintrag-weg:hover { border-color: var(--warnung); color: #FFB4A0; border-style: solid; }
.eintrag-weg:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
