* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #111; color: #f2f2f2; }
header { padding: 16px; text-align: center; border-bottom: 1px solid #2a2a2a; }
h1 { margin: 0; font-size: 2rem; letter-spacing: 4px; color: #ff5a1f; }
h2 { margin-top: 0; }
main { max-width: 680px; margin: 0 auto; padding: 16px; }
.card { background: #1b1b1b; border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.today { text-align: center; }
.label { margin: 0; color: #aaa; }
.big { font-size: 5rem; font-weight: 800; margin: 4px 0; color: #ff5a1f; }
.buttons { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
button { cursor: pointer; border: 0; border-radius: 10px; background: #ff5a1f; color: #fff;
  font-size: 1.1rem; font-weight: 700; padding: 12px 22px; }
button:hover { background: #ff7a45; }
#eigen { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
input { font-size: 1rem; padding: 10px; border-radius: 10px; border: 1px solid #444;
  background: #111; color: #fff; width: 150px; }
button.klein { background: transparent; color: #aaa; font-size: .85rem; font-weight: 400;
  text-decoration: underline; padding: 4px; }
button.klein:hover { background: transparent; color: #fff; }
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tabs button { background: #2a2a2a; font-size: .95rem; padding: 8px 16px; }
.tabs button.aktiv { background: #ff5a1f; }
.summe { color: #aaa; }
.summe strong { color: #fff; font-size: 1.3rem; }
svg { width: 100%; height: auto; }
svg text { fill: #aaa; font-size: 11px; }
svg .wert { fill: #f2f2f2; font-weight: 700; }
svg rect.balken { fill: #ff5a1f; }
svg line { stroke: #333; }
svg rect.klickbar { cursor: pointer; transition: fill .15s; }
svg rect.klickbar:hover { fill: rgba(255, 255, 255, .07); }

/* Tagesdetails-Fenster mit weichem Übergang */
.detail { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, 0); backdrop-filter: blur(0);
  visibility: hidden; pointer-events: none;
  transition: background .3s, backdrop-filter .3s, visibility 0s .3s; }
.detail.offen { background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px);
  visibility: visible; pointer-events: auto; transition: background .3s, backdrop-filter .3s; }
.detail-box { position: relative; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: #1b1b1b; border: 1px solid #333; border-radius: 18px; padding: 24px;
  opacity: 0; transform: translateY(30px) scale(.94);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.detail.offen .detail-box { opacity: 1; transform: none; }
.detail-box h2 { margin: 4px 0 16px; text-transform: uppercase; letter-spacing: 1px; }
.detail-box h3 { margin: 20px 0 10px; color: #aaa; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.detail-zu { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0;
  border-radius: 50%; background: #2a2a2a; font-size: 1.4rem; line-height: 1; }
.kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kachel { background: #111; border-radius: 12px; padding: 14px; text-align: center; }
.kachel b { display: block; font-size: 2rem; color: #ff5a1f; }
.kachel span { color: #aaa; font-size: .85rem; }
.satz { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .9rem; }
.satz .nr { width: 56px; color: #aaa; }
.satz .spur { flex: 1; background: #111; border-radius: 6px; height: 22px; overflow: hidden; }
.satz .fuell { height: 100%; width: 0; background: #ff5a1f; border-radius: 6px;
  transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.satz .anz { width: 36px; text-align: right; font-weight: 700; }
.leer { color: #aaa; text-align: center; padding: 16px 0; }

/* --- Etappe 2: Anmeldung, Herausforderungen --- */
header { position: relative; }
.login { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #111; }
.login[hidden], #haupt[hidden], .benutzer[hidden] { display: none; }
.login .detail-box { opacity: 1; transform: none; text-align: center; }
.login input { width: 100%; margin: 12px 0; }
#login-vorhanden { margin-top: 16px; }
#login-vorhanden button { background: #2a2a2a; font-size: .9rem; padding: 8px 14px; margin: 4px; }
.fehler { color: #ff6b6b; min-height: 1.2em; margin: 8px 0 0; }
.hinweis { color: #aaa; min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; }
.hinweis.fehler { color: #ff6b6b; }
.fordern { display: flex; gap: 8px; flex-wrap: wrap; }
.fordern select { flex: 1; min-width: 120px; font-size: 1rem; padding: 10px; border-radius: 10px;
  border: 1px solid #444; background: #111; color: #fff; }
.fordern input { width: 90px; }
.fordern button:disabled { background: #444; color: #999; cursor: not-allowed; }
.klein-titel { margin: 20px 0 8px; color: #aaa; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.eintrag { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid #2a2a2a; font-size: .95rem; }
.status-offen { color: #ffb020; }
.status-erledigt { color: #4cd68a; }
.status-verpasst { color: #ff6b6b; }
.alarm { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #ff5a1f; color: #fff; border-radius: 14px; padding: 16px 20px; margin-bottom: 16px;
  animation: puls 1.6s ease-in-out infinite; }
.alarm strong { font-size: 1.1rem; }
.alarm .zeit { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.alarm button { background: #fff; color: #ff5a1f; }
.alarm button:hover { background: #ffe9df; }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .5); } 50% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } }
.login-knoepfe { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
button.zweit { background: #2a2a2a; }
button.zweit:hover { background: #3a3a3a; }

/* --- Etappe 3: Rangliste und Team-Ziel --- */
.team-zahl { margin: 4px 0 12px; color: #aaa; }
.team-zahl strong { color: #fff; font-size: 1.6rem; }
.spur.team-spur { background: #111; border-radius: 8px; height: 26px; overflow: hidden; }
.team-spur .fuell { height: 100%; width: 0; background: #ff5a1f; border-radius: 8px;
  transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.rang { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #2a2a2a; }
.rang .platz { width: 32px; font-weight: 800; color: #aaa; }
.rang .rname { flex: 1; }
.rang .rzahl { font-weight: 700; font-variant-numeric: tabular-nums; }
.rang.erster .platz, .rang.erster .rzahl { color: #ff5a1f; }
.rang.ich .rname { font-weight: 800; }

/* --- Reiter oben --- */
.reiter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.reiter button { flex: 1; background: #2a2a2a; font-size: .9rem; padding: 10px 14px; white-space: nowrap; }
.reiter button:hover { background: #ff5a1f; }
.panel .detail-box h2 { padding-right: 40px; }

/* --- Spruch im Kopf und dezenter Benutzer oben rechts --- */
.spruch { margin: 6px 0 0; font-size: 1rem; color: #f2f2f2; }
.benutzer { position: absolute; top: 8px; right: 12px; margin: 0; font-size: .75rem; color: #666; }
.benutzer button.klein { font-size: .75rem; color: #666; padding: 0 0 0 6px; }
.benutzer:hover, .benutzer:hover button.klein { color: #aaa; }

/* --- Wasser-Banner mit Pokalglas --- */
.wasser { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 20px; }
.glas { background: transparent; padding: 0; border-radius: 12px; width: 64px; height: 98px; flex: none;
  display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.glas:hover { background: transparent; transform: translateY(-3px); }
.glas svg { width: 100%; height: 100%; overflow: visible; }
.glas-rand { fill: rgba(242, 242, 242, .06); stroke: #f2f2f2; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glas-boden { fill: none; stroke: #f2f2f2; stroke-width: 1.4; opacity: .5; }
.glas-wasser { fill: #4aa8ff; opacity: .85; }
.glas-glanz { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.glas.getrunken svg { animation: glasKipp .5s ease; transform-origin: 50% 90%; }
@keyframes glasKipp { 0% { transform: rotate(0); } 35% { transform: rotate(-22deg) scale(1.05); } 100% { transform: rotate(0); } }
.wasser-text { flex: 1; min-width: 160px; }
.wasser-zahl { margin: 0; color: #aaa; }
.wasser-zahl strong { font-size: 2.2rem; color: #4aa8ff; font-weight: 800; }
.wasser-ziel { margin: 6px 0 0; font-size: 1.4rem; font-weight: 800; color: #f2f2f2; }
.wasser button.klein { align-self: flex-end; }

/* --- Handy-Ansicht (Bildschirme bis 600 px Breite) --- */
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }  /* kein Zoom-Ruckeln beim Tippen */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
@media (hover: none) { .glas:hover { transform: none; } }                         /* kein "Kleben" des Hover-Effekts am Finger */

@media (max-width: 600px) {
  header { padding: 14px 12px; }
  h1 { font-size: 1.8rem; }
  .spruch { font-size: .95rem; padding: 0 28px; }
  main { padding: 12px; }
  .card { padding: 16px; margin-bottom: 12px; }
  h2 { font-size: 1.3rem; }

  /* Die drei Reiter untereinander, groß genug zum Tippen */
  .reiter { flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .reiter button { white-space: normal; width: 100%; padding: 14px; font-size: 1rem; }

  /* Wasser-Banner: Glas links, Text rechts, "Zurücknehmen" darunter */
  .wasser { gap: 12px; padding: 12px 16px; }
  .glas { width: 72px; height: 108px; }
  .wasser-text { min-width: 0; }
  .wasser-zahl strong { font-size: 1.9rem; }
  .wasser button.klein { align-self: center; width: 100%; }

  /* Heute: Zahl und Knöpfe */
  .big { font-size: 4.5rem; }
  .buttons { gap: 8px; }
  .buttons button { flex: 1; padding: 14px 8px; font-size: 1.2rem; }
  #eigen { flex-wrap: wrap; }
  #eigen input { flex: 1 1 140px; width: auto; min-width: 0; }
  #eigen button { flex: 1 1 120px; padding: 12px; }
  button.klein { padding: 12px 8px; }                      /* größere Tippfläche für kleine Links */

  /* Statistik: Knöpfe gleich breit, Beschriftung im Diagramm größer */
  .tabs { gap: 6px; }
  .tabs button { flex: 1; padding: 10px 6px; }
  svg text { font-size: 15px; }

  /* Fenster: fast bildschirmfüllend, mitscrollen, × leicht zu treffen */
  .detail { padding: 8px; align-items: flex-end; }
  .detail-box { max-height: 92vh; max-height: 92dvh; padding: 20px 16px; border-radius: 16px; }
  .detail-zu { width: 44px; height: 44px; top: 8px; right: 8px; }
  .detail-box h2 { font-size: 1.3rem; padding-right: 48px; }
  .kacheln { gap: 8px; }
  .kachel { padding: 12px 8px; }
  .kachel b { font-size: 1.6rem; }
  .satz .nr { width: 52px; }

  /* Anmeldung und Herausfordern */
  .login { align-items: flex-start; overflow-y: auto; padding: 12px; }
  .login input, .fordern select, .fordern input { width: 100%; min-height: 46px; flex: 1 1 100%; }
  .login-knoepfe button, .fordern button { flex: 1 1 100%; padding: 14px; }
  .alarm { padding: 14px; }
  .alarm button { width: 100%; padding: 14px; }
  .benutzer { top: 6px; right: 8px; }
}

/* Sehr kleine Handys */
@media (max-width: 360px) {
  .big { font-size: 3.8rem; }
  .buttons button { font-size: 1.05rem; }
  .glas { width: 60px; height: 90px; }
}

/* --- EMOM-Training --- */
[hidden] { display: none !important; }
.emom-knopf { display: block; width: 100%; margin-bottom: 16px; padding: 16px; font-size: 1.1rem; }
.feld { display: block; margin: 14px 0; color: #aaa; font-size: .9rem; }
.feld input { display: block; width: 100%; margin-top: 6px; }
.emom-erklaerung { color: #aaa; font-size: .95rem; line-height: 1.4; margin: 0 0 16px; }
.emom-summe { color: #aaa; margin: 12px 0 16px; }
.emom-summe strong { color: #ff5a1f; font-size: 1.8rem; }
.emom-zeit { font-size: 5rem; font-weight: 800; color: #ff5a1f; margin: 4px 0 12px;
  font-variant-numeric: tabular-nums; text-align: center; line-height: 1; }
.spur.emom-spur { background: #111; border-radius: 8px; height: 18px; overflow: hidden; }
.emom-spur .fuell { height: 100%; width: 0; background: #ff5a1f; border-radius: 8px; transition: width .5s linear; }
.emom-info { text-align: center; color: #aaa; margin: 12px 0 18px; }
#emom-lauf button { display: block; margin: 0 auto 10px; }
#emom-lauf button:disabled { opacity: .5; cursor: not-allowed; }
.emom-frage-titel { margin: 8px 0 4px; font-size: 1.4rem; color: #f2f2f2; text-transform: none; letter-spacing: 0; }
#emom-frage .login-knoepfe { justify-content: flex-start; }
@media (max-width: 600px) {
  .emom-zeit { font-size: 4rem; }
  .emom-knopf { padding: 16px; }
  #emom-frage .login-knoepfe button { flex: 1 1 100%; padding: 14px; }
}

/* Fußzeile mit Entwickler-Infos */
.fuss { margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid #2a2a2a; text-align: center; color: #888; font-size: .85rem; }
.fuss p { margin: 0 0 8px; }
.fuss-zitat { font-style: italic; font-size: 1.2rem; line-height: 1.5; color: #b5b5b5; }
@media (max-width: 600px) { .fuss-zitat { font-size: 1.05rem; } }

/* Musik-Player: schmal, schwarz-weiß */
.card.musik { padding: 14px 16px; }
.musik-anzeige { display: flex; align-items: center; gap: 12px; background: #000; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.musik-note { color: #ff5a1f; font-size: 1.4rem; line-height: 1; }
.musik-titel { color: #f2f2f2; font-size: 1.1rem; margin: 0; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equalizer { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.equalizer span { width: 4px; height: 3px; background: #f2f2f2; border-radius: 2px; }
.musik.spielt .equalizer span { animation: eq 0.9s ease-in-out infinite; }
.musik.spielt .equalizer span:nth-child(2) { animation-delay: .2s; }
.musik.spielt .equalizer span:nth-child(3) { animation-delay: .4s; }
.musik.spielt .equalizer span:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 18px; } }
.musik-zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.musik-knoepfe { display: flex; align-items: center; gap: 10px; }
.musik-knoepfe button { border-radius: 50%; width: 46px; height: 46px; padding: 0; font-size: 1.25rem; background: #2a2a2a; color: #f2f2f2;
  display: flex; align-items: center; justify-content: center; transition: transform .1s, background .2s; }
.musik-knoepfe button:hover { background: #3a3a3a; }
.musik-knoepfe button:active { transform: scale(.92); }
.musik-knoepfe #musik-play { width: 56px; height: 56px; font-size: 1.5rem; background: #f2f2f2; color: #111; }
.musik-knoepfe #musik-play:hover { background: #fff; }
.musik-laut { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 150px; font-size: 1.2rem; filter: grayscale(1); }
.musik-laut input { flex: 1; accent-color: #f2f2f2; cursor: pointer; }
.musik-versteckt { position: absolute; left: -9999px; width: 200px; height: 200px; overflow: hidden; }

/* Übungswahl (Swipe) */
.uebung-wahl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uebung-wahl h2 { margin: 0; font-size: 1.4rem; text-align: center; flex: 1; }
button.pfeil { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #2a2a2a; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; }
button.pfeil:hover { background: #3a3a3a; }
.punkte { display: flex; justify-content: center; gap: 8px; margin: 10px 0 14px; }
.punkte span { width: 8px; height: 8px; border-radius: 50%; background: #3a3a3a; transition: background .2s, transform .2s; }
.punkte span.aktiv { background: #ff5a1f; transform: scale(1.3); }
.card.today { touch-action: pan-y; }
#uebung-flaeche.rein-rechts { animation: reinRechts .25s ease-out; }
#uebung-flaeche.rein-links { animation: reinLinks .25s ease-out; }
@keyframes reinRechts { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes reinLinks { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

/* Kuchendiagramm */
.kuchen-titel { margin: 24px 0 10px; color: #aaa; }
.kuchen { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.kuchen svg { width: 180px; max-width: 100%; flex: 0 0 auto; }
svg text.kuchen-zahl { fill: #f2f2f2; font-size: 26px; font-weight: 800; }
.legende { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; }
.legende li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #2a2a2a; }
.legende .punkt { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.legende .l-name { flex: 1; color: #f2f2f2; }
.legende .l-wert { color: #aaa; }

/* Musik: Playlist-Eingabe und Spotify */
#musik-form .label { margin: 0 0 8px; }
#musik-link { width: 100%; box-sizing: border-box; }
.musik-form-knoepfe { display: flex; gap: 8px; margin-top: 10px; }
#musik-form .fehler { margin: 8px 0 0; }
#musik-spotify iframe { display: block; }

/* Joggen (Cardio) */
.cardio-info { color: #aaa; text-align: center; margin: 6px 0 14px; }
#cardio-form .feld { display: block; margin-bottom: 12px; }
#cardio-form input { width: 100%; box-sizing: border-box; }
.cardio-tempo { color: #aaa; min-height: 1.3em; margin: 0 0 10px; }

/* Versteckte Elemente bleiben immer versteckt, auch wenn ihre Klasse "display" setzt */
[hidden] { display: none !important; }

/* Rekorde, Wochenvergleich, Toast */
#rekorde-kacheln { margin-top: 14px; }
.kachel span { line-height: 1.35; }
.woche-zeile { background: #111; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.woche-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.woche-kopf .plus { color: #6fdc8c; font-size: .9rem; }
.woche-kopf .minus { color: #ff7a7a; font-size: .9rem; }
.woche-kopf .gleich { color: #aaa; font-size: .9rem; }
.woche-balken { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin: 4px 0; font-size: .8rem; color: #aaa; }
.woche-balken .spur { background: #2a2a2a; border-radius: 6px; height: 10px; overflow: hidden; }
.woche-balken .fuell { height: 100%; border-radius: 6px; }
.woche-balken .fuell.dieses { background: #ff5a1f; }
.woche-balken .fuell.letzte { background: #7a7a7a; }
.woche-balken .anz { color: #f2f2f2; min-width: 3.5em; text-align: right; }
.woche-ganze { margin: 6px 0 0; color: #777; font-size: .78rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px);
  background: #ff5a1f; color: #fff; font-weight: 700; padding: 14px 20px; border-radius: 12px; text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5); animation: toastRein .3s ease-out; }
@keyframes toastRein { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 600px) {
  .reiter-unten { flex-direction: row; }
  .reiter-unten button { width: auto; flex: 1; padding: 12px 8px; font-size: .9rem; }
  .woche-balken { grid-template-columns: 84px 1fr auto; font-size: .72rem; }
}

/* Hintergrund: Löwenpaar-Foto (nur lokal, siehe README), stark abgedunkelt. Fehlt das Bild, bleibt es einfach schwarz. */
body {
  background:
    linear-gradient(rgba(17, 17, 17, .82), rgba(17, 17, 17, .82)),
    url("bilder/loewen.jpg") center 40% / cover no-repeat fixed,
    #111;
}

/* Dezente Deko in den Rändern (nur breite Bildschirme). Das Hintergrundbild bleibt unverändert. */
.deko { display: none; }
@media (min-width: 1100px) {
  .deko { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .deko-text { position: absolute; margin: 0; font-weight: 800; white-space: nowrap; color: transparent;
    writing-mode: vertical-rl; }
  .deko-links { left: 2vw; top: 22vh; transform: rotate(180deg); font-size: 4.5vw; letter-spacing: .1em;
    -webkit-text-stroke: 1px rgba(255, 90, 31, .22); }
  .deko-rechts { right: 2.4vw; top: 22vh; font-size: 1.9vw; letter-spacing: .08em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .14); }
}

/* Motivationsspruch zwischen Kopfzeile und Liga-Reitern */
.mindset { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; margin: 4px 0 18px; line-height: 1; }
.mindset p { margin: 0; text-transform: uppercase; }
.mindset-gross { font-size: 2.6rem; font-weight: 900; letter-spacing: .06em; color: #f2f2f2; }
.mindset-klein { font-size: .95rem; font-weight: 700; letter-spacing: .35em; color: #ff5a1f; }
@media (max-width: 600px) { .mindset-gross { font-size: 2.1rem; } .mindset-klein { font-size: .8rem; } }

/* Wasser-Auswertung: Woche, Monat, Jahr */
.wasser-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.wasser-stats div { background: #111; border-radius: 10px; padding: 8px 6px; text-align: center; }
.wasser-stats b { display: block; font-size: 1.1rem; color: #4aa8ff; }
.wasser-stats span { color: #aaa; font-size: .72rem; }

/* Tagescheck */
.gew-knopf { position: absolute; top: 32px; right: 12px; background: #2a2a2a; color: #f2f2f2; font-size: 1rem; line-height: 1; padding: 5px 9px; border-radius: 14px; }
.gew-knopf:hover { background: #ff5a1f; }
.gew-frage { background: #111; border-radius: 12px; padding: 16px; margin-top: 14px; text-align: center; }
.gew-emoji { font-size: 3rem; line-height: 1; }
.gew-text { font-size: 1.15rem; font-weight: 700; margin: 10px 0 14px; }
.gew-antworten { display: flex; gap: 10px; justify-content: center; }
.gew-antworten button { flex: 1; max-width: 140px; background: #2a2a2a; }
.gew-antworten button.ja.aktiv { background: #2e9e57; }
.gew-antworten button.nein.aktiv { background: #c0392b; }
@media (max-width: 600px) { .gew-knopf { top: 28px; right: 8px; } }

/* Tägliche Fragen: Obst-Auswahl, Statistik, Eltern-Banner */
.gew-abschnitt { margin: 22px 0 8px; color: #aaa; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.gew-fertig { text-align: center; font-weight: 700; margin: 18px 0 4px; }
.gew-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #111; border-radius: 10px; padding: 10px 12px; margin-top: 6px; font-size: .9rem; }
.obst-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.chip { background: #2a2a2a; color: #f2f2f2; font-size: .9rem; padding: 8px 12px; border-radius: 20px; font-weight: 600; }
.chip:hover { background: #3a3a3a; }
.chip.aktiv { background: #ff5a1f; }
.chip.statisch { cursor: default; background: #111; font-weight: 400; }
.gew-antworten button:disabled { opacity: .4; cursor: not-allowed; }
.gew-tabelle { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 6px 8px; align-items: center; background: #111; border-radius: 12px; padding: 12px; }
.gew-tabelle .kopf { color: #aaa; font-size: .75rem; text-align: center; }
.gew-tabelle .zeile-name { font-size: .9rem; }
.gew-tabelle b { text-align: center; font-size: 1.1rem; color: #ff5a1f; }
.eltern-banner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 6px 12px;
  background: #f2f2f2; color: #111; font-weight: 600; font-size: .85rem; text-align: center; }
.eltern-banner button { background: #111; color: #f2f2f2; padding: 4px 12px; font-size: .8rem; }
.eltern-banner button:hover { background: #333; }
.eltern-banner[hidden] { display: none; }

/* REPZ-League-ALLSTARS: Fortschritt und Beiträge */
#panel-team .team-box { max-width: 560px; }
.team-hero { margin: 18px 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-zahl { font-size: 3.6rem; font-weight: 800; line-height: 1; color: #f2f2f2; }
.hero-von { color: #aaa; }
.hero-von b { color: #f2f2f2; font-weight: 600; }
.meter { height: 14px; border-radius: 7px; background: #3a1f14; overflow: hidden; }
.meter-fuell { height: 100%; width: 0; border-radius: 7px; background: #ff5a1f; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.meter-text { margin: 8px 0 0; color: #aaa; font-size: .85rem; }
.person { background: #111; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.person.ich { box-shadow: inset 3px 0 0 #ff5a1f; }
.person-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.person-name { color: #f2f2f2; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-wert { color: #f2f2f2; white-space: nowrap; }
.b-spur { height: 14px; }
.b-balken { height: 100%; min-width: 2px; background: #8a8a8a; border-radius: 0 4px 4px 0; }
.b-balken.ich { background: #ff5a1f; }
.person-anteil { margin: 6px 0 0; color: #aaa; font-size: .8rem; }
@media (max-width: 600px) { .hero-zahl { font-size: 3rem; } }

/* Musik: Titelliste (schwarz-weiß) */
#musik-liste-knopf[aria-expanded="true"] { background: #555; }
/* "Playlist ändern": kleines Zahnrad oben rechts in der Karte, damit der Player schmal bleibt */
.card.musik { position: relative; }
#musik-aendern { position: absolute; top: 16px; right: 16px; padding: 2px 6px; font-size: 1.2rem; color: #777; z-index: 1; }
#musik-aendern .txt { display: none; }
#musik-youtube .musik-anzeige { padding-right: 52px; }
/* Bei Spotify (großer Player) steht der Text darunter, damit nichts überdeckt wird */
.musik.spotify-aktiv #musik-aendern { position: static; display: block; margin: 6px auto 0; font-size: .85rem; }
.musik.spotify-aktiv #musik-aendern .txt { display: inline; }
#musik-liste-box { margin-top: 8px; }
#musik-suche { width: 100%; box-sizing: border-box; margin-bottom: 8px; font-size: 1rem; padding: 10px 12px; }
.musik-liste { max-height: 320px; overflow-y: auto; background: #000; border-radius: 10px; padding: 4px; }
.titel-zeile { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; background: transparent; color: #bbb;
  font-size: 1rem; font-weight: 400; padding: 11px 12px; border-radius: 8px; }
.titel-zeile:hover { background: #1b1b1b; color: #fff; }
.titel-zeile.aktiv { background: #222; color: #fff; font-weight: 700; }
.titel-zeile.laeuft .titel-nr::before { content: "▶ "; }
.titel-nr { color: #999; min-width: 2.6em; font-variant-numeric: tabular-nums; }
.titel-zeile.aktiv .titel-nr { color: #fff; }
.titel-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Musik-Player auf dem Handy: etwas kleinere Knöpfe, damit alles in eine Reihe passt */
@media (max-width: 600px) {
  .musik-knoepfe { gap: 8px; }
  .musik-knoepfe button { width: 42px; height: 42px; }
  .musik-knoepfe #musik-play { width: 50px; height: 50px; }
}

/* ===== Apple-Feeling =====
   Nur Effekte: Schrift-Glättung, weichere Rundungen, feine Schatten, federnde Bewegungen,
   Milchglas hinter den Fenstern. Anordnung und Farben bleiben, wie sie sind.
   Alles steht in diesem einen Block: Wer den alten Look will, löscht ihn einfach. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
}
.big, .hero-zahl, .mindset-gross { letter-spacing: -.03em; }

/* Weichere Rundungen und feine Schatten (oben ein hauchdünner Lichtrand wie bei Apple-Karten) */
.card { border-radius: 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 32px rgba(0, 0, 0, .35); }
button { border-radius: 12px; }
input { border-radius: 12px; }
.person, .kpi, .kachel, .gew-frage, .woche-zeile { border-radius: 16px; }

/* Federnde Bewegung: Knöpfe geben beim Drücken nach, alles gleitet weich */
button {
  transition: transform .3s cubic-bezier(.32, .72, 0, 1), background-color .25s ease, opacity .25s ease, box-shadow .25s ease, color .25s ease;
}
button:active:not(:disabled) { transform: scale(.96); }
input { transition: border-color .2s ease, box-shadow .2s ease; }
input:focus { outline: none; border-color: #8a8a8a; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 2px; }
input:focus-visible { outline: none; }

/* Fenster: Milchglas dahinter, sanftes Aufgleiten wie bei iOS */
.detail { transition: background .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease, visibility 0s .45s; }
.detail.offen { background: rgba(0, 0, 0, .55); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  transition: background .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease; }
.detail-box { border-radius: 26px; overscroll-behavior: contain; transform: translateY(26px) scale(.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 80px rgba(0, 0, 0, .6);
  transition: opacity .35s ease, transform .55s cubic-bezier(.32, .72, 0, 1); }

/* Beim Start gleiten die Karten nacheinander sanft ein */
@keyframes apfelEin { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
main > * { animation: apfelEin .75s cubic-bezier(.32, .72, 0, 1) both; }
main > :nth-child(1) { animation-delay: 0.0s; }
main > :nth-child(2) { animation-delay: 0.05s; }
main > :nth-child(3) { animation-delay: 0.1s; }
main > :nth-child(4) { animation-delay: 0.15s; }
main > :nth-child(5) { animation-delay: 0.2s; }
main > :nth-child(6) { animation-delay: 0.25s; }
main > :nth-child(7) { animation-delay: 0.3s; }
main > :nth-child(8) { animation-delay: 0.35s; }
main > :nth-child(9) { animation-delay: 0.4s; }
main > :nth-child(10) { animation-delay: 0.45s; }
main > :nth-child(11) { animation-delay: 0.5s; }
main > :nth-child(12) { animation-delay: 0.55s; }

/* Wer Bewegung am Gerät reduziert hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== Einladung: Besucher ohne Einladung sehen nur "DISCIPLINE." ===== */
body.fremd header, body.fremd .deko { display: none; }
body.fremd { background: #111; } /* ohne Löwenfoto */
.discipline { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
.discipline[hidden], #einladung[hidden], #ein-form[hidden], #ein-willkommen[hidden] { display: none; }
.discipline p { margin: 0; font-weight: 800; letter-spacing: .12em; font-size: clamp(2rem, 9vw, 5.5rem); text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); animation: apfelEin 1.2s cubic-bezier(.32, .72, 0, 1) both; }
#einladung .detail-box { opacity: 1; transform: none; text-align: center; animation: apfelEin .8s cubic-bezier(.32, .72, 0, 1) both; }
#einladung input { width: 100%; margin: 12px 0; }
.ein-text { color: #ddd; line-height: 1.55; margin: 12px 0; }
.ein-schluss { color: #ff5a1f; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0; }
.einladen-link { width: 100%; margin: 6px 0 10px; font-size: .85rem; }
a.knopf-link { display: inline-block; background: #2a2a2a; color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; }
a.knopf-link:hover { background: #3a3a3a; }

/* ===== Apfel: Reiter, To-do, Kaaba ===== */
.apfel-tabs { margin: 0 0 14px; }
.apfel-tabs button { flex: 1; }
.todo-form { display: flex; flex-direction: column; gap: 10px; }
.todo-form input, .todo-form textarea, .todo-editor input, .todo-editor textarea { width: 100%; }
textarea { font: inherit; font-size: 1rem; padding: 10px; border-radius: 12px; border: 1px solid #444; background: #111; color: #fff; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease; }
textarea:focus { outline: none; border-color: #8a8a8a; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.todo-bis-feld { display: flex; align-items: center; gap: 10px; color: #aaa; font-size: .9rem; }
.todo-bis-feld input { flex: 1; color-scheme: dark; }
.todo-zeile { background: #111; border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.todo-kopf { display: flex; align-items: flex-start; gap: 12px; }
button.todo-haken { flex: none; width: 28px; height: 28px; padding: 0; margin-top: 2px; border-radius: 50%; background: #1b1b1b; border: 2px solid #555; color: #fff; font-size: .9rem; }
button.todo-haken.aktiv { background: #2e9e57; border-color: #2e9e57; }
button.todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: transparent; color: #f2f2f2; padding: 2px 0; text-align: left; font-weight: 400; }
button.todo-text:hover { background: transparent; }
.todo-titel { font-weight: 700; overflow-wrap: anywhere; }
.todo-bis { font-size: .8rem; }
.todo-text .todo-bis { color: #aaa; }
.todo-bis.heute { color: #ffb020; }
.todo-bis.ueberfaellig { color: #ff6b6b; }
.todo-notiz { color: #aaa; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.todo-zeile.erledigt .todo-titel { text-decoration: line-through; color: #777; }
.todo-editor { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.kompass { text-align: center; margin: 14px 0; }
.kompass svg { width: 220px; max-width: 70%; margin: 0 auto; display: block; }
.k-rand { fill: #111; stroke: #444; stroke-width: 2; }
.k-n { fill: #aaa; font-size: 14px; font-weight: 700; }
.k-pfeil { fill: #ff5a1f; }
.k-kaaba { fill: #000; stroke: #ffb020; stroke-width: 2; }
.k-linie { stroke: #ff5a1f; stroke-width: 3; stroke-linecap: round; opacity: .5; }
.k-mitte { fill: #f2f2f2; }
.kompass-grad { font-size: 1.6rem; font-weight: 800; margin: 10px 0 4px; }
.kompass-info { color: #aaa; margin: 0; font-size: .9rem; }
.kompass.treffer .k-rand { stroke: #2e9e57; stroke-width: 4; }
.kompass.treffer .kompass-info { color: #2e9e57; font-weight: 700; }
#kaaba-start { display: block; margin: 12px auto 0; }
#kaaba-start:disabled { opacity: .5; cursor: wait; }
.kaaba-hinweis { text-align: center; }

/* ===== Dezente 3D-Effekte =====
   Knöpfe wirken wie sanft erhabene Tasten und geben beim Drücken nach. Eingabefelder wirken leicht eingelassen.
   Nur Schatten und Lichtkanten, keine neuen Farben. Zum Entfernen diesen Block löschen. */
button:not(.klein):not(.glas):not(.detail-zu):not(.todo-text):not(:disabled) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .12));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 -2px 0 rgba(0, 0, 0, .22) inset,
    0 2px 0 rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .28);
}
button:not(.klein):not(.glas):not(.detail-zu):not(.todo-text):not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .26) inset, 0 -2px 0 rgba(0, 0, 0, .22) inset,
    0 3px 0 rgba(0, 0, 0, .35), 0 10px 20px rgba(0, 0, 0, .32);
}
button:not(.klein):not(.glas):not(.detail-zu):not(.todo-text):not(:disabled):active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .45) inset, 0 1px 0 rgba(255, 255, 255, .06);
  transition-duration: .08s;
}
.tabs button.aktiv:not(:disabled), .musik-knoepfe button:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -2px 0 rgba(0, 0, 0, .22) inset, 0 3px 8px rgba(0, 0, 0, .3); }
button.todo-haken { box-shadow: 0 2px 4px rgba(0, 0, 0, .4) inset; background-image: none; }
button.todo-haken.aktiv { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 3px 8px rgba(0, 0, 0, .35); }
input, select, textarea { box-shadow: 0 2px 5px rgba(0, 0, 0, .35) inset; }
input:focus, textarea:focus { box-shadow: 0 2px 5px rgba(0, 0, 0, .35) inset, 0 0 0 4px rgba(255, 255, 255, .08); }
.card, .detail-box { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .38); }
@media (prefers-reduced-motion: reduce) { button:hover { transform: none !important; } }

/* ===== Wichtige Aufgaben (⭐) als zweites Banner unter dem Eltern-Banner ===== */
.wichtig-banner { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px; background: #ff5a1f; color: #fff; font-weight: 600; font-size: .85rem; }
.wichtig-banner[hidden] { display: none; }
.wichtig-zeile { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.wichtig-text { overflow-wrap: anywhere; }
.wichtig-banner button { background: #111; color: #f2f2f2; padding: 4px 12px; font-size: .8rem; }
.wichtig-banner button:hover { background: #333; }

/* ===== To-do: Stern, Übersicht, Gruppen ===== */
.todo-stern-feld { display: flex; align-items: center; gap: 10px; color: #ddd; font-size: .9rem; cursor: pointer; }
.todo-stern-feld input { width: 20px; height: 20px; padding: 0; box-shadow: none; accent-color: #ff5a1f; }
.todo-alle { display: block; width: 100%; margin-top: 14px; }
button.todo-stern { flex: none; background: transparent; background-image: none; box-shadow: none; padding: 2px 6px; font-size: 1.15rem; color: #777; }
button.todo-stern:hover { background: transparent; transform: none; }
button.todo-stern.aktiv { color: #ffb020; }
.todo-gruppe { margin: 18px 0 4px; }
.todo-gruppe.ueberfaellig { color: #ff6b6b; }

/* ===== Admin-Dashboard ===== */
.admin-box { max-width: 720px; }
.admin-kacheln { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.admin-kacheln .kachel b { font-size: 1.6rem; }
.admin-zeile { background: #111; border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.admin-zeile.gesperrt { opacity: .7; border: 1px solid #c0392b; }
.admin-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-marke { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #2a2a2a; color: #ffb020; padding: 2px 8px; border-radius: 8px; }
.admin-marke.rot { color: #ff6b6b; }
.admin-info { color: #aaa; font-size: .85rem; margin: 6px 0 10px; }
.admin-aktionen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-aktionen button { font-size: .85rem; padding: 7px 12px; }
.admin-apfel { display: flex; align-items: center; gap: 6px; color: #ddd; font-size: .85rem; margin-right: auto; cursor: pointer; }
.admin-apfel input { width: 18px; height: 18px; padding: 0; box-shadow: none; accent-color: #ff5a1f; }
button.admin-loeschen { color: #ff6b6b; }
.admin-knopf2 { display: block; width: 100%; margin-top: 18px; }
#admin-knopf { color: #ffb020; }

/* ===== Kopfzeile rechts: bei vielen Knöpfen sauber umbrechen ===== */
.benutzer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 92vw; }

/* ===== Apfel- und To-do-Fenster: Löwenpaar dezent im Hintergrund (wie auf der Seite) ===== */
#panel-gewohnheiten .detail-box, #panel-todos .detail-box {
  background:
    linear-gradient(rgba(17, 17, 17, .8), rgba(17, 17, 17, .86)),
    url("bilder/loewen.jpg") center 35% / cover no-repeat,
    #1b1b1b;
  border-color: rgba(255, 255, 255, .1);
}
/* Karten im Fenster werden zu dunklem Milchglas, so schimmert der Löwe leicht durch */
#panel-gewohnheiten .gew-frage, #panel-gewohnheiten .gew-zeile, #panel-gewohnheiten .gew-tabelle, #panel-gewohnheiten .kompass svg .k-rand,
#panel-todos .todo-zeile {
  background-color: rgba(17, 17, 17, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#panel-gewohnheiten .kompass svg .k-rand { fill: rgba(17, 17, 17, .55); backdrop-filter: none; }
#panel-gewohnheiten input:not([type=checkbox]), #panel-gewohnheiten textarea, #panel-todos input:not([type=checkbox]), #panel-todos textarea {
  background: rgba(10, 10, 10, .6);
}
#panel-gewohnheiten .apfel-tabs button:not(.aktiv) { background-color: rgba(42, 42, 42, .7); }

/* ===== To-do: einladender, mit Farbstreifen, Datum-Chip und größeren Knöpfen ===== */
.todo-form { gap: 12px; }
.todo-form input[type=text] { font-size: 1.05rem; padding: 14px 16px; }
.todo-form textarea { padding: 12px 16px; }
.todo-stern-feld { background: rgba(255, 176, 32, .08); border: 1px solid rgba(255, 176, 32, .25); border-radius: 14px; padding: 10px 14px; }
.todo-form > button[type=submit] { font-size: 1.05rem; padding: 14px; }
.todo-alle { padding: 14px; font-size: 1rem; }
.todo-alle span { color: #ffb020; margin-left: 4px; }

.todo-zeile { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 14px 14px 20px; margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1), box-shadow .3s ease; }
.todo-zeile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #ff7a45, #ff5a1f); }
.todo-zeile.erledigt::before { background: #2e9e57; }
.todo-zeile:has(.ueberfaellig):not(.erledigt)::before { background: #ff6b6b; }
.todo-zeile:has(.todo-bis.heute):not(.erledigt)::before { background: #ffb020; }
.todo-zeile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.todo-zeile.erledigt { opacity: .7; }
.todo-kopf { gap: 14px; align-items: center; }
button.todo-haken { width: 34px; height: 34px; border-color: #ff5a1f; font-size: 1.05rem; }
button.todo-haken:hover { background: rgba(255, 90, 31, .25); transform: scale(1.08); }
button.todo-haken.aktiv { border-color: #2e9e57; }
button.todo-text { gap: 6px; }
.todo-titel { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.todo-text .todo-bis { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #ddd; }
.todo-text .todo-bis::before { content: "📅 "; }
.todo-text .todo-bis.heute { background: rgba(255, 176, 32, .18); color: #ffb020; }
.todo-text .todo-bis.ueberfaellig { background: rgba(255, 107, 107, .18); color: #ff8a8a; }
.todo-notiz { font-size: .88rem; color: #bbb; line-height: 1.45; }
.todo-notiz::before { content: "📝 "; }
button.todo-stern { font-size: 1.5rem; padding: 4px 8px; }
button.todo-stern:hover { transform: scale(1.15); }
.todo-editor { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.todo-gruppe { display: flex; align-items: center; gap: 12px; margin: 22px 2px 2px; color: #f2f2f2; font-size: .8rem; }
.todo-gruppe::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .25), transparent); }
.todo-gruppe.ueberfaellig { color: #ff8a8a; }
#panel-todos h2 { font-size: 1.5rem; }
#panel-todos .gew-fertig { font-size: 1.1rem; padding: 26px 0; }
@media (prefers-reduced-motion: reduce) { .todo-zeile:hover { transform: none; } }

/* ===== To-do-Kacheln wie das Eingabefeld "Was ist zu tun?" ===== */
#panel-todos .todo-zeile {
  background-color: rgba(10, 10, 10, .6); border: 1px solid #444; border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35) inset; padding: 12px 14px;
}
.todo-zeile::before { display: none; }
.todo-zeile:hover { transform: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .35) inset; }
.todo-zeile.erledigt { opacity: .65; }
#panel-todos .todo-zeile:has(.ueberfaellig):not(.erledigt) { border-color: rgba(255, 107, 107, .6); }
#panel-todos .todo-zeile:has(.todo-bis.heute):not(.erledigt) { border-color: rgba(255, 176, 32, .6); }

/* ===== Datum: nur der Kalender-Knopf ===== */
.datum-wahl { display: flex; align-items: center; gap: 10px; }
.datum-text { color: #ddd; font-size: .9rem; }
button.datum-weg { background: transparent; background-image: none; box-shadow: none; color: #aaa; padding: 2px 8px; font-size: 1.1rem; }
button.datum-weg:hover { background: transparent; color: #fff; transform: none; box-shadow: none; }
button.datum-weg[hidden] { display: none; }
.todo-form input.datum-knopf, .todo-editor input.datum-knopf, input.datum-knopf {
  position: relative; flex: none; width: 46px; height: 46px; padding: 0; overflow: hidden; cursor: pointer; color: transparent;
  background-color: rgba(10, 10, 10, .6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 24px;
}
#panel-gewohnheiten input.datum-knopf, #panel-todos input.datum-knopf {
  background-color: rgba(10, 10, 10, .6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 24px;
}
input.datum-knopf:hover { border-color: #8a8a8a; }
input.datum-knopf::-webkit-datetime-edit, input.datum-knopf::-webkit-datetime-edit-fields-wrapper { display: none; }
input.datum-knopf::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ===== Dashboard: Zahnräder und Einstellungen ===== */
.admin-zahnrad { position: absolute; top: 12px; right: 56px; width: 36px; height: 36px; padding: 0; font-size: 1.15rem; line-height: 1; border-radius: 50%; background: #2a2a2a; color: #f2f2f2; }
.admin-zahnrad[aria-expanded="true"] { background: #ff5a1f; }
.admin-einst { background: rgba(17, 17, 17, .6); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px 16px 16px; margin-bottom: 16px; }
.admin-einst h3 { margin-top: 4px; }
.admin-block { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-block input:not([type=checkbox]) { width: 100%; }
.admin-block input[type=date] { color-scheme: dark; }
.admin-block .label { font-size: .85rem; }
.admin-titel { margin: 0; font-weight: 700; }
.admin-schalter { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; color: #ddd; font-size: .9rem; }
.admin-schalter input { width: 20px; height: 20px; padding: 0; box-shadow: none; accent-color: #ff5a1f; flex: none; }
button.admin-rad { width: 38px; height: 38px; padding: 0; font-size: 1.1rem; border-radius: 50%; }
.admin-menue { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-menue button { font-size: .85rem; padding: 8px 12px; }
.admin-menue .label { font-size: .85rem; }

/* ===== Impressum und Datenschutz (Platzhalter-Seiten) ===== */
.fuss-links a, .recht-zurueck a { color: #aaa; text-decoration: none; border-bottom: 1px solid #444; }
.fuss-links a:hover, .recht-zurueck a:hover { color: #fff; border-bottom-color: #ff5a1f; }
.discipline p.discipline-links { position: absolute; bottom: 18px; left: 0; right: 0; font-size: .8rem; font-weight: 400; letter-spacing: .04em;
  color: #888; -webkit-text-stroke: 0; animation: none; }
body.rechtsseite header h1 a { color: inherit; }
.recht h3 { margin: 22px 0 6px; color: #aaa; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.recht p { color: #ddd; line-height: 1.6; margin: 6px 0; }
.recht p.recht-hinweis { color: #ffb020; background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .25); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.recht-zurueck { text-align: center; margin: 16px 0; }

/* ===== Apfel: sechs Reiter ===== */
.apfel-tabs { flex-wrap: wrap; }
.apfel-tabs button { flex: 1 1 28%; padding: 9px 8px; font-size: .88rem; }

/* ===== 🔥 Serie ===== */
.serie-held { text-align: center; padding: 18px 12px 14px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 90, 31, .28), rgba(17, 17, 17, .55) 70%);
  border: 1px solid rgba(255, 90, 31, .35); border-radius: 18px; margin-bottom: 14px; }
.serie-flamme { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(255, 90, 31, .6)); }
.serie-grosse-zahl { font-size: 4.4rem; font-weight: 800; line-height: 1; color: #ff5a1f; letter-spacing: -.03em; margin-top: 4px; }
.serie-held-text { margin: 6px 0 4px; font-weight: 700; }
.serie-zeile { display: flex; align-items: center; gap: 12px; background: rgba(10, 10, 10, .6); border: 1px solid #444; border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35) inset; padding: 10px 12px; margin-top: 8px; }
.serie-zeile.erledigt { border-color: rgba(46, 158, 87, .6); }
.serie-emoji { font-size: 1.6rem; flex: none; }
.serie-mitte { flex: 1; min-width: 0; }
.serie-name { display: block; font-weight: 700; overflow-wrap: anywhere; }
.serie-punkte { display: flex; gap: 5px; margin-top: 6px; }
.serie-punkt { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2a; box-shadow: 0 1px 2px rgba(0, 0, 0, .5) inset; }
.serie-punkt.an { background: #ff5a1f; box-shadow: 0 0 6px rgba(255, 90, 31, .6); }
.serie-punkt.heute { outline: 2px solid rgba(255, 255, 255, .45); outline-offset: 1px; }
.serie-zahl { flex: none; text-align: right; line-height: 1.25; }
.serie-zahl b { display: block; font-size: 1.1rem; color: #888; }
.serie-zahl b.an { color: #ff5a1f; }
.serie-zahl span { color: #aaa; font-size: .75rem; }
button.serie-haken { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #1b1b1b; border: 2px solid #ff5a1f; font-size: 1.1rem; }
button.serie-haken.aktiv { background: #2e9e57; border-color: #2e9e57; }
button.serie-haken:disabled { opacity: .55; cursor: default; border-color: #555; }
button.serie-weg { flex: none; background: transparent; background-image: none; box-shadow: none; color: #777; padding: 2px 8px; font-size: 1.2rem; }
button.serie-weg:hover { background: transparent; color: #ff6b6b; transform: none; box-shadow: none; }
.serie-form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.serie-form input[type=text]:first-child { width: 64px; text-align: center; }
.serie-form input[type=text]:nth-child(2) { flex: 1; min-width: 160px; width: auto; }
.serie-form[hidden] { display: none; }

/* ===== Gebetszeiten ===== */
.gebet-naechstes { text-align: center; padding: 16px 12px; background: rgba(17, 17, 17, .55); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; margin-bottom: 12px; }
.gebet-name { font-size: 1.15rem; font-weight: 700; margin: 6px 0 0; }
.gebet-countdown { font-size: 2.8rem; font-weight: 800; color: #ff5a1f; letter-spacing: -.02em; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.gebet-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; margin-top: 6px;
  background: rgba(10, 10, 10, .6); border: 1px solid #444; border-radius: 12px; box-shadow: 0 2px 5px rgba(0, 0, 0, .35) inset; }
.gebet-zeile.naechstes { border-color: #ff5a1f; background: rgba(255, 90, 31, .14); }
.gebet-zeile.nebenzeile { opacity: .65; }
.gebet-links b { margin-right: 8px; }
.gebet-links small { color: #aaa; }
.gebet-zeit { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gebet-einst { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.gebet-einst select { width: 100%; font-size: 1rem; padding: 10px; border-radius: 12px; border: 1px solid #444; background: rgba(10, 10, 10, .6); color: #fff; margin-top: 4px; }
.gebet-hinweis { font-size: .8rem; line-height: 1.5; }

/* ===== Hadith ===== */
#hadith-karte { background: rgba(17, 17, 17, .55); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 18px 18px 14px; text-align: center; }
.hadith-kopf { margin: 0 0 12px; color: #ffb020; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hadith-text { font-size: 1.2rem; line-height: 1.6; font-weight: 600; margin: 0 0 14px; }
.hadith-von { margin: 0; color: #ddd; font-size: .9rem; }
.hadith-quelle { margin: 6px 0 0; color: #ff5a1f; font-weight: 700; font-size: .9rem; }
.hadith-grad { margin: 4px 0 10px; color: #aaa; font-size: .8rem; }
.hadith-knoepfe { margin-top: 12px; }
#hadith-bib { margin-top: 12px; }
#hadith-suche { width: 100%; margin-bottom: 8px; }
.hadith-liste { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
button.hadith-eintrag { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font-weight: 400; padding: 10px 14px; background-color: rgba(10, 10, 10, .6); }
button.hadith-eintrag b { font-size: .95rem; }
button.hadith-eintrag small { color: #aaa; }
button.hadith-eintrag.aktiv { border: 1px solid #ff5a1f; }
.hadith-hinweis { font-size: .78rem; line-height: 1.5; text-align: center; }
#panel-gewohnheiten .gebet-naechstes, #panel-gewohnheiten #hadith-karte, #panel-gewohnheiten .serie-held { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Offline-Hinweis (oben am Rand) */
.offline-hinweis { position: sticky; top: 0; z-index: 50; background: #ffb020; color: #111; text-align: center;
  font-weight: 700; font-size: .9rem; padding: 6px 12px; }
.offline-hinweis[hidden] { display: none; }
