/* =========================================================
   JOURNAL – das Aussehen
   (benutzt auch Teile aus kalender.css: .monat-kopf, .feld, .eintrag, .knopf-leise ...)
   ========================================================= */

/* ---------- Die Streak oben (glänzender Goldrand) ---------- */
.journal-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: linear-gradient(#17181b, #17181b) padding-box, var(--gold-verlauf) border-box;
}
.flamme { font-size: 2rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.55)); }
.flamme.aus { filter: grayscale(1); opacity: 0.45; }
.streak-zahl { font-size: 1.35rem; font-weight: 800; color: #f0d68a; }
.streak-klein { font-size: 0.78rem; color: var(--text-leise); }
.streak-hinweis { margin-left: auto; text-align: right; font-size: 0.8rem; color: var(--text-leise); max-width: 45%; }

/* ---------- Suche ---------- */
.journal-suche {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0d68a;               /* gold, damit die Suche auffällt */
}
.journal-suche input {
  flex: 1;
  min-width: 0;
  background: linear-gradient(#17181b, #17181b) padding-box, var(--gold-verlauf) border-box;
  border: 1.5px solid transparent;
  font-weight: 400;
  color: var(--text);
  border-radius: 99px;
  padding: 9px 14px;
  font: inherit;
  font-size: 1rem;
  color-scheme: dark;
}
.journal-suche input:focus { outline: none; box-shadow: 0 0 10px rgba(216, 180, 90, 0.35); }
.treffer-text { font-size: 0.85rem; color: var(--text); margin-top: 6px; line-height: 1.4; overflow-wrap: anywhere; }
.treffer-text mark { background: rgba(216, 180, 90, 0.35); color: #f7e4ac; border-radius: 3px; padding: 0 2px; }

/* ---------- Tag wählen ---------- */
.monat-kopf button:disabled { opacity: 0.25; cursor: default; }
.journal-wahl {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}
/* Das echte Datumsfeld ist unsichtbar, der Knopf "Tag wählen" öffnet es */
.journal-wahl .unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  color-scheme: dark;
}

/* ---------- Die Überschrift hervorheben: Goldrand und große, goldene Schrift ---------- */
.journal-karte.ueberschrift-karte {
  border: 1.5px solid transparent;
  background: linear-gradient(#17181b, #17181b) padding-box, var(--gold-verlauf) border-box;
}
.ueberschrift-karte .feld { color: #f0d68a; font-weight: 600; }
.ueberschrift-karte input {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f7e4ac;
}

/* ---------- Die Karten ---------- */
.journal-karte {
  background: var(--flaeche);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.journal-karte > .feld:last-child { margin-bottom: 0; }
.journal-titel {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rot);
  text-shadow: 0 0 10px rgba(255, 31, 61, 0.35);
  margin-bottom: 12px;
}

/* Lange Textfelder wachsen beim Schreiben mit */
.journal-karte textarea {
  background: var(--hintergrund);
  border: 1px solid var(--linie);
  color: var(--text);
  border-radius: 10px;
  padding: 11px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  width: 100%;
  resize: vertical;
  field-sizing: content;
  min-height: 3.2em;
}
.journal-karte textarea.gross { min-height: 8em; }
.journal-karte input:focus, .journal-karte textarea:focus {
  outline: none;
  border-color: rgba(255, 31, 61, 0.6);
  box-shadow: 0 0 8px rgba(255, 31, 61, 0.25);
}

.dankbar-zeile { display: flex; align-items: center; gap: 8px; }
.dankbar-zeile span { width: 1.4em; color: #f0d68a; font-weight: 700; text-align: right; }
.dankbar-zeile input { flex: 1; min-width: 0; }

/* ---------- Stimmung und Energie: 1 bis 10 ---------- */
.skala-kopf {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-leise);
  margin-bottom: 6px;
}
.skala-wert { color: var(--text); font-weight: 600; }
.skala {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
}
.skala:last-child { margin-bottom: 0; }
.skala button {
  background: var(--hintergrund);
  border: 1px solid var(--linie);
  color: var(--text);
  border-radius: 8px;
  height: 38px;
  padding: 0;
  display: flex;                 /* Zahl genau in die Mitte */
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.skala button.aktiv {
  background: var(--rot-kreis);
  border-color: transparent;
  color: white;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 31, 61, 0.5);
}

.journal-fertig { display: flex; justify-content: center; margin: 6px 0 10px; }
.journal-fertig .plus-knopf { min-width: 160px; padding: 11px 24px; font-size: 1rem; }

/* "✓ Gespeichert": leuchtet unten kurz auf */
.gespeichert-hinweis {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  background: #1d1e22;
  border: 1.5px solid transparent;
  background: linear-gradient(#1d1e22, #1d1e22) padding-box, var(--gold-verlauf) border-box;
  color: #f0d68a;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.gespeichert-hinweis.sichtbar { opacity: 1; transform: translate(-50%, 0); }

.journal-fuss { font-size: 0.8rem; color: var(--text-leise); text-align: center; margin: 4px 0 10px; }
#journal-loeschen-reihe { justify-content: center; margin-bottom: 20px; }
