/* ═══════════════════════════════════════════════════════════════════
   DIE 7-TAGE-BEOBACHTUNG
   Bewusst nüchtern: keine Farbe für gut oder schlecht, kein Raster für
   „richtige" Essenszeiten, kein Balken, der sich füllt. Die Leiste zeigt,
   was war. Modul 8 sagt: nur hinschauen, nichts verändern.
   ═══════════════════════════════════════════════════════════════════ */
.beob-text { font-size: 0.86rem; line-height: 1.6; margin-bottom: 12px; }
.beob-status {
  font-size: 0.8rem; font-weight: 700; color: var(--purple-mid);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.beob-knoepfe { display: flex; gap: 8px; margin-bottom: 12px; }
.beob-btn {
  flex: 1; font-family: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  padding: 14px 12px; border-radius: 12px; border: 1px solid var(--purple-light);
  background: var(--white); color: var(--gray-text);
}
.beob-btn-start {
  width: 100%; background: var(--purple-mid); color: #14101f; border-color: var(--purple-mid);
  margin-top: 6px;
}
.beob-leer, .beob-dash-text {
  font-size: 0.8rem; line-height: 1.5; color: var(--text-muted);
}
.beob-liste { margin-top: 4px; }
.beob-zeile {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--gray-light);
}
.beob-zeile:last-child { border-bottom: none; }
.beob-zeichen { font-size: 0.95rem; }
.beob-zeile input[type=time] {
  font-family: inherit; font-size: 0.86rem; color: var(--gray-text);
  padding: 6px 8px; border: 1px solid var(--purple-light); border-radius: 8px;
  background: var(--white);
}
.beob-weg { border: none; background: none; cursor: pointer; font-size: 0.9rem; margin-left: auto; padding: 2px; }

/* Die Leisten */
.beob-leisten { margin-top: 16px; }
.beob-skala {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--text-muted); margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.beob-tag { margin-bottom: 12px; }
.beob-kommt { opacity: 0.45; }
.beob-kopf {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 0.74rem; color: var(--text-muted); margin-bottom: 3px;
}
.beob-datum { font-weight: 700; color: var(--gray-text); }
/* Rechts stehen die gerechneten Angaben: die längste Pause am Tag, die
   Nachtpause, und das Wort für „beim Aufwachen da". Als eigene Gruppe, damit
   sie am Handy zusammen umbrechen statt einzeln auseinanderzufallen. */
.beob-rechts { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.beob-pause { font-variant-numeric: tabular-nums; }
.beob-aufwach { color: var(--purple-mid); font-weight: 600; }
.beob-schiene {
  position: relative; height: 16px; border-radius: 8px;
  background: var(--gray-light);
}
.beob-marke {
  position: absolute; top: 3px; width: 10px; height: 10px; border-radius: 50%;
  margin-left: -5px;
}
.beob-essen { background: var(--purple-mid); }
.beob-koffein { background: var(--teal-mid); width: 8px; height: 8px; top: 4px; margin-left: -4px; }

/* Die Attacke liegt als Hintergrund in der Schiene, nicht als Punkt darauf:
   Sie ist der Rahmen des Tages, nicht noch ein Ereignis. Gedeckt gehalten,
   nicht als Alarmfarbe: Die Leiste soll zeigen, nicht warnen. */
.beob-attacke-band {
  position: absolute; top: 0; bottom: 0;
  background: rgba(198, 40, 40, 0.16);
  border-radius: 8px;
}
.beob-attacke-ganz { background: rgba(198, 40, 40, 0.09); }
.beob-attacke {
  position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px;
  background: rgba(198, 40, 40, 0.55); border-radius: 2px;
}
/* Anderer Kopfschmerz, kein Migränetag: derselbe Aufbau, ruhigerer Ton. Die
   App kennt den Unterschied, also darf die Leiste ihn auch zeigen. */
.beob-attacke-kopf { background: rgba(72, 96, 136, 0.42); }
.beob-attacke-band.beob-attacke-kopf { background: rgba(72, 96, 136, 0.15); }
.beob-attacke-ganz.beob-attacke-kopf { background: rgba(72, 96, 136, 0.09); }

/* Im Dunkelmodus ist die Schiene selbst dunkel, und gedeckte Farben
   verschwinden darin. Beide Töne werden deshalb kräftiger, der Abstand
   zwischen Migräne und anderem Kopfschmerz bleibt derselbe. */
:root[data-theme="dark"] .beob-attacke { background: rgba(255, 120, 120, 0.85); }
:root[data-theme="dark"] .beob-attacke-band { background: rgba(255, 120, 120, 0.26); }
:root[data-theme="dark"] .beob-attacke-ganz { background: rgba(255, 120, 120, 0.14); }
:root[data-theme="dark"] .beob-attacke-kopf { background: rgba(150, 185, 245, 0.75); }
:root[data-theme="dark"] .beob-attacke-band.beob-attacke-kopf { background: rgba(150, 185, 245, 0.24); }
:root[data-theme="dark"] .beob-attacke-ganz.beob-attacke-kopf { background: rgba(150, 185, 245, 0.13); }

/* Die Anfangszeit der Attacke, nur in dieser Woche. Bewusst unter dem
   Nachtragen und nicht darüber: Der Rhythmus ist das Thema der Woche, die
   Attacke ist das, was man daneben legt. */
.beob-attacke-feld {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray-light);
  font-size: 0.8rem; color: var(--gray-text);
}
.beob-attacke-feld input[type=time] {
  font-family: inherit; font-size: 0.82rem; color: var(--gray-text);
  padding: 5px 7px; border: 1px solid var(--purple-light); border-radius: 7px;
  background: var(--white);
}
/* Beschriftung auf eine eigene Zeile: Sonst schiebt sie am Handy den
   Papierkorb allein in die nächste, und der steht dort ohne Bezug. */
.beob-attacke-feld label { flex-basis: 100%; }
.beob-attacke-hinweis { flex-basis: 100%; font-size: 0.72rem; line-height: 1.5; color: var(--text-muted); }
.beob-attacke-fest { color: var(--text-muted); font-size: 0.76rem; }
.beob-legende {
  font-size: 0.72rem; line-height: 1.5; color: var(--text-muted); margin-top: 10px;
}
.beob-dash-link, .beob-dash-text a { color: var(--purple-mid); font-weight: 700; }

/* Der Block in der Journey, als eigener Kasten im Modul */
.beob-modulblock {
  background: var(--white); border-radius: 14px; padding: 16px;
  margin-bottom: 16px; border: 1px solid var(--purple-light);
}
.beob-modul-titel {
  font-size: 0.8rem; font-weight: 700; color: var(--purple-mid);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
/* Auf dem Dashboard schlank, ohne eigene Karte */
.beob-dash {
  background: var(--white); border-radius: 14px; padding: 14px;
  margin-bottom: 14px;
}
.beob-dash .beob-knoepfe { margin-bottom: 8px; }

/* Der Brückensatz zu den Modulfragen. Die Beobachtung wird bewusst nicht
   ausgewertet, sie ist die Grundlage fürs eigene Antworten. */
.beob-wozu {
  font-size: 0.8rem; line-height: 1.6; margin-top: 12px;
  color: var(--text-muted);
}
.beob-wozu-fertig {
  background: var(--lavender-soft); border-radius: 10px; padding: 12px 13px;
  color: var(--gray-text);
}

/* Das Trinkfeld: Knöpfe für die üblichen Mengen, daneben die Tagesmenge zum
   direkten Eintragen. Beides ist richtig, mittippen wie abends hinschreiben. */
.beob-trinkfeld {
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--gray-light); border-radius: 12px;
}
.beob-trinkzeile { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--gray-text); }
.beob-trink-text { flex: 1; }
.beob-trink-eingabe {
  width: 62px; text-align: right;
  font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--purple-dark);
  padding: 8px 9px; border: 1px solid var(--purple-light); border-radius: 9px;
  background: var(--white);
}
.beob-trink-einheit { font-size: 0.82rem; color: var(--text-muted); }
.beob-trink-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.beob-trink-knoepfe button {
  font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  padding: 8px 11px; border-radius: 9px;
  border: 1px solid var(--purple-light); background: var(--white); color: var(--purple-dark);
}
.beob-trink-null { color: var(--text-muted) !important; border-style: dashed !important; }
/* In der Leistenzeile: schmal, damit jeder Tag nachtragbar bleibt */
.beob-trink-mini {
  width: 42px; text-align: right;
  font-family: inherit; font-size: 0.74rem; color: var(--gray-text);
  padding: 2px 4px; border: 1px solid var(--purple-light); border-radius: 6px;
  background: var(--white);
}

/* Die Umschaltung zwischen den Beobachtungswochen. Jede bleibt erhalten,
   damit man vergleichen kann: damals unregelmäßig, heute anders. */
.beob-wochenwahl { margin-top: 14px; }
.beob-wochen-titel {
  font-size: 0.74rem; color: var(--text-muted); margin-bottom: 6px;
}
.beob-wochen-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.beob-woche {
  font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  padding: 7px 12px; border-radius: 20px;
  border: 1px solid var(--purple-light); background: var(--white); color: var(--gray-text);
}
.beob-woche.aktiv {
  background: var(--lavender-soft); border-color: var(--purple-mid);
  color: var(--purple-dark);
}
.beob-woche-laeuft {
  font-size: 0.68rem; font-weight: 400; color: var(--text-muted);
}
.beob-loeschen {
  display: block; width: 100%; margin-top: 10px; padding: 9px 0;
  font-family: inherit; font-size: 0.78rem; cursor: pointer;
  background: none; border: none; color: var(--text-muted);
  text-decoration: underline;
}

/* Jede Leiste lässt sich antippen und nachtragen: Eingetragen wird oft erst
   spätabends oder nach Mitternacht, dann ist der gemeinte Tag schon vorbei. */
.beob-schiene { cursor: pointer; }
.beob-schiene.offen { box-shadow: 0 0 0 2px var(--purple-mid); }
.beob-bearbeiten {
  margin-top: 8px; padding: 10px 12px;
  background: var(--gray-light); border-radius: 10px;
}
.beob-neu {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--purple-light);
}
.beob-neu input[type=time] {
  font-family: inherit; font-size: 0.82rem; color: var(--gray-text);
  padding: 5px 7px; border: 1px solid var(--purple-light); border-radius: 8px;
  background: var(--white);
}
.beob-neu-text { font-size: 0.76rem; color: var(--text-muted); }
.beob-trink-regel {
  font-size: 0.74rem; line-height: 1.45; margin-top: 7px;
  color: var(--text-muted);
}
