@charset "UTF-8";
/* MindFlow 0.3.0 – Stylesheet
   Farbwelt aus dem Charakter-Board: Creme, Sand, Petrol, Salbei, warmes Apricot. */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); }

:root {
  --cream: #FDF8F3;
  --paper: #FFFFFF;
  --sand: #F3EADF;
  --line: #ECE3D7;
  --ink: #1B4352;
  --text: #2F3B40;
  --muted: #6E7C7E;
  --petrol: #2E7D73;
  --petrol-dark: #23655D;
  --sage: #7FBAA7;
  --mint: #E6F2EC;
  --sky: #E5EFF3;
  --sand-tint: #FBF0E1;
  --peach-tint: #FCE9DE;
  --coral: #EF7D5A;
  --apricot: #F4A276;
  --danger: #B44A3C;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(27, 67, 82, .05), 0 6px 20px rgba(27, 67, 82, .06);
  --shadow-lift: 0 2px 4px rgba(27, 67, 82, .06), 0 12px 28px rgba(27, 67, 82, .10);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.3, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
code { font-size: .9em; background: var(--sand); padding: .05em .35em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ic { width: 22px; height: 22px; flex: none; }
.ic-xs { width: 15px; height: 15px; vertical-align: -2px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--petrol); margin: 0 0 .8em; }

/* ---------- Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo-word { font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.logo-word b { color: var(--sage); font-weight: 800; }

/* ---------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--petrol); color: #fff; box-shadow: 0 6px 16px rgba(46, 125, 115, .28); }
.btn-primary:hover { background: var(--petrol-dark); }
.btn-soft { background: var(--mint); color: var(--petrol-dark); }
.btn-soft:hover { background: #d9ebe2; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.08rem; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; flex: none;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn-ghost { visibility: hidden; }
.icon-btn-lg { width: 56px; height: 56px; }
.icon-btn-lg .ic { width: 26px; height: 26px; }

/* ---------- App-Rahmen */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(253, 248, 243, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar-logo { text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--mint); color: var(--petrol-dark); font-weight: 800;
}
.chip-link { font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--sand); }
.chip-link.is-active { background: var(--ink); color: #fff; }
.main { padding: 4px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center; gap: 0;
  padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tabbar a {
  flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 700; border-radius: 14px;
}
.tabbar a .ic { width: 24px; height: 24px; }
.tabbar a.is-active { color: var(--petrol); }
.tabbar a.is-active .ic { stroke-width: 2.2; }

.page-title { font-size: 1.75rem; font-weight: 800; margin: 10px 0 .4em; }
.section { margin: 26px 0; }
.section-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.empty { padding: 20px; border-radius: var(--radius); background: var(--paper); color: var(--muted); text-align: center; }

/* ---------- Meldungen */
.flashes { display: grid; gap: 8px; margin: 6px 0 14px; }
.flash { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.flash-success { background: var(--mint); color: var(--petrol-dark); }
.flash-info { background: var(--sky); color: var(--ink); }
.flash-error { background: #FBE6E1; color: var(--danger); }

/* ---------- Start: Mino-Hero */
.hero-mino {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 6px 0 16px;
  display: grid; grid-template-columns: 60% 1fr; align-items: center; min-height: 230px;
  background: linear-gradient(120deg, #F7EADB, var(--cream) 75%); box-shadow: var(--shadow);
}
.hero-mino img {
  width: 100%; height: 100%; min-height: 230px; object-fit: cover; object-position: 38% 18%;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent);
  mask-image: linear-gradient(to right, #000 72%, transparent);
}
.hand-bubble {
  font-family: var(--hand); font-weight: 600; color: var(--ink); font-size: 1.65rem; line-height: 1.05;
  margin: 0;
}
.hero-mino .hand-bubble { padding: 12px 14px 12px 0; transform: rotate(-3deg); margin-left: -6px; position: relative; z-index: 1; }
.hand-bubble span { display: block; color: var(--petrol); }

/* Zeilen-Karten wie im Mockup */
.row-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 10px 0;
  border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.row-card:hover { box-shadow: var(--shadow-lift); }
.row-card:active { transform: scale(.99); }
.row-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.row-icon img { width: 24px; height: 24px; }
.row-icon-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 14px rgba(239, 125, 90, .35); }
.row-icon-coral .ic { width: 20px; height: 20px; margin-left: 3px; }
.row-icon-sage { background: var(--mint); }
.row-icon-sky { background: var(--sky); }
.row-icon-sand { background: var(--sand-tint); }
.row-icon-mint { background: #E9F3E7; }
.row-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-text b { font-weight: 800; font-size: 1.02rem; }
.row-text small { color: var(--muted); font-weight: 600; }
.row-chev { color: #A9B4B2; width: 20px; height: 20px; }
.row-today { background: linear-gradient(100deg, var(--peach-tint), #FFF7F2 70%); }

.tip-card {
  display: flex; gap: 14px; align-items: center; margin: 22px 0 8px; padding: 14px;
  border-radius: var(--radius); background: var(--sand-tint);
}
.tip-card img { width: 76px; height: 86px; object-fit: cover; object-position: 50% 15%; border-radius: 14px; flex: none; }
.tip-quote { font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; color: var(--ink); margin: 0 0 6px; }
.tip-meta { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Übungen */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 9px 16px; border-radius: 999px; background: var(--paper); color: var(--muted);
  text-decoration: none; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow);
}
.tab.is-active { background: var(--petrol); color: #fff; }

.scroller { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.routine-card {
  flex: none; width: 230px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
.routine-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.routine-body { display: flex; flex-direction: column; padding: 10px 14px 14px; }
.routine-body b { font-weight: 800; }
.routine-body small { color: var(--muted); font-weight: 600; }

.ex-list { display: grid; gap: 10px; }
.ex-item {
  display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); text-decoration: none; color: var(--text);
}
.ex-item img { width: 96px; height: 76px; object-fit: cover; border-radius: 12px; flex: none; background: var(--sand); }
.ex-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-text b { color: var(--ink); font-weight: 800; }
.ex-text small { color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-meta { font-size: .8rem; font-weight: 700; color: var(--petrol); display: flex; align-items: center; gap: 4px; }
.why { font-size: .86rem; color: var(--ink); background: var(--mint); padding: 3px 8px; border-radius: 8px; align-self: flex-start; margin: 2px 0; }

/* Detailseite */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -6px 6px; }
.detail-head-title { font-weight: 800; color: var(--ink); text-align: center; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media { margin: 0 0 18px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-tint); box-shadow: var(--shadow); position: relative; }
.media img, .media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-note { position: absolute; left: 10px; bottom: 10px; font-size: .74rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 999px; }
.detail-title { font-size: 1.55rem; font-weight: 800; }
.detail-lead { color: var(--muted); }
.facts {
  list-style: none; margin: 0 0 18px; padding: 14px 8px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--muted); text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }
.facts .ic { color: var(--ink); width: 26px; height: 26px; }
.steps-preview { margin: 18px 0; background: var(--paper); border-radius: var(--radius); padding: 4px 16px; box-shadow: var(--shadow); }
.steps-preview summary { cursor: pointer; font-weight: 800; color: var(--ink); padding: 12px 0; }
.steps-preview ol { margin: 0 0 14px; padding-left: 20px; }
.steps-preview li { margin: 6px 0; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); background: var(--paper); padding: 12px 14px; border-radius: var(--radius-sm); margin: 10px 0; }
.note .ic { color: var(--petrol); width: 20px; height: 20px; margin-top: 1px; }
.note-safety { background: var(--sand-tint); color: var(--text); }

.routine-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.routine-steps a { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: var(--paper); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.routine-steps img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.routine-steps span:last-child { display: flex; flex-direction: column; }
.routine-steps b { color: var(--ink); }
.routine-steps small { color: var(--muted); font-weight: 600; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--petrol-dark); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }

/* ---------- Player */
body.is-player { background: var(--cream); }
.player { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 16px calc(16px + var(--safe-b)); }
.player-top { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; }
.player-titles { flex: 1; display: flex; flex-direction: column; min-width: 0; text-align: center; }
.player-titles b { color: var(--ink); font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); }
.player-toggles { display: flex; }
.player-toggles .icon-btn { color: #A9B4B2; }
.player-toggles .icon-btn.is-on { color: var(--petrol); background: var(--mint); }
.player-progress { height: 6px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 4px 0 14px; }
.player-progress span { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 999px; transition: width .3s linear; }
.player-stage { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.stage-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-tint); box-shadow: var(--shadow); }
.stage-media img, .stage-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.is-breath .stage-media img { filter: saturate(.85) brightness(1.03); }
.pacer { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(253, 248, 243, .55); }
.pacer-circle {
  width: min(58%, 210px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .9), rgba(127, 186, 167, .75) 60%, rgba(46, 125, 115, .55));
  box-shadow: 0 0 0 10px rgba(127, 186, 167, .18), 0 0 40px rgba(46, 125, 115, .25);
  transform: scale(.55); will-change: transform;
}
.pacer-label { position: absolute; font-weight: 800; font-size: 1.25rem; color: var(--ink); background: rgba(255, 255, 255, .85); padding: 6px 14px; border-radius: 999px; }
.step-box { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-height: 116px; }
.step-count { margin: 0 0 4px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.step-text { margin: 0; font-size: 1.22rem; line-height: 1.45; color: var(--ink); font-weight: 600; }
.timer { position: relative; width: 104px; height: 104px; margin: 0 auto; }
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--sand); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--petrol); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.timer-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 10px 0 4px; }
.play-btn {
  width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--petrol); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(46, 125, 115, .35); transition: transform .15s var(--ease);
}
.play-btn:active { transform: scale(.96); }
.play-btn .ic { width: 32px; height: 32px; }
.play-btn [data-play-icon] .ic { margin-left: 4px; }
.player-hint { text-align: center; font-size: .9rem; color: var(--muted); min-height: 1.4em; margin: 6px 0 0; }

.player-done {
  position: fixed; inset: 0; z-index: 40; background: var(--cream); overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(30px + env(safe-area-inset-top, 0px)) 24px calc(24px + var(--safe-b));
}
.player-done > * { max-width: 420px; width: 100%; }
.player-done img { width: 180px; height: 210px; object-fit: cover; object-position: 50% 10%; border-radius: 50%; margin: 0 auto 14px; box-shadow: var(--shadow-lift); }
.player-done h2 { font-size: 2rem; font-weight: 800; outline: none; }
.player-done .hand { font-family: var(--hand); font-size: 1.7rem; color: var(--petrol); line-height: 1.1; }
.rate { margin: 14px 0 22px; }
.rate p { font-weight: 700; color: var(--ink); }
.rate-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rate-btn { min-height: 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font: 700 .98rem var(--font); color: var(--ink); cursor: pointer; }
.rate-btn.is-chosen { border-color: var(--petrol); background: var(--mint); }
.rate-btn:disabled:not(.is-chosen) { opacity: .5; }
.done-actions { display: grid; gap: 10px; }

/* ---------- Check-up */
.mino-say { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; }
.mino-say img { width: 84px; height: 96px; object-fit: cover; object-position: 50% 12%; border-radius: 20px; box-shadow: var(--shadow); flex: none; }
.mino-say .hand-bubble { background: var(--paper); padding: 12px 16px; border-radius: 20px 20px 20px 6px; box-shadow: var(--shadow); font-size: 1.45rem; }
.checkup { margin-top: 10px; }
.checkup-progress { font-size: .85rem; font-weight: 800; color: var(--petrol); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.question { border: 0; padding: 0; margin: 0 0 22px; }
.question legend { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; padding: 0; }
.choices { display: grid; gap: 10px; }
.choices-scale { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.choice-input { position: absolute; opacity: 0; pointer-events: none; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); border: 2px solid transparent; cursor: pointer; font-weight: 700; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.choices-scale .choice { flex-direction: column; justify-content: center; gap: 2px; padding: 10px 4px; text-align: center; font-size: .72rem; line-height: 1.15; }
.choices-scale .choice b { font-size: 1.3rem; }
.choice-input:checked + .choice { border-color: var(--petrol); background: var(--mint); }
.choice-input:focus-visible + .choice { outline: 3px solid var(--sage); outline-offset: 2px; }
.question-nav { display: flex; gap: 8px; margin-top: 8px; }
.js .checkup .question:not(.is-current) { display: none; }
.js .checkup [data-submit] { display: none; }
.js .checkup.is-last [data-submit] { display: flex; }
.answer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.answer-chips span { background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; color: var(--muted); box-shadow: var(--shadow); }

/* ---------- Fortschritt */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stats-4 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--petrol); line-height: 1.1; }
.stat span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 16px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.dot-day { aspect-ratio: 1; border-radius: 50%; background: var(--sand); }
.dot-day.has { background: var(--sage); }
.dot-day.many { background: var(--petrol); }
.dot-day.today { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--apricot); }
.area-bars { display: grid; gap: 10px; background: var(--paper); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.area-bar { display: grid; grid-template-columns: 130px 1fr 28px; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.area-bar b { text-align: right; color: var(--muted); }
meter { width: 100%; height: 12px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; background: var(--sand); }
meter::-webkit-meter-bar { background: var(--sand); border-radius: 999px; border: 0; height: 12px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { background: var(--sage); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--sage); border-radius: 999px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plain-list a { display: block; padding: 10px 14px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--ink); }
.plain-list .ic { color: var(--coral); }
.history { list-style: none; padding: 0; margin: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.history li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; }
.history li + li { border-top: 1px solid var(--line); }
.history b { color: var(--ink); font-weight: 700; }
.history-check { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--petrol); display: grid; place-items: center; }
.empty-mino { display: flex; gap: 14px; align-items: center; background: var(--paper); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-mino img { width: 72px; height: 82px; object-fit: cover; object-position: 50% 12%; border-radius: 14px; }
.empty-mino p { margin: 0; }

/* ---------- Formulare & Karten */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 14px 0; }
.card-title { font-size: 1.05rem; font-weight: 800; margin: 6px 0 4px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.field small { font-weight: 600; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(127, 186, 167, .25); background: #fff; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.5; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input, .check-inline input { width: 20px; height: 20px; accent-color: var(--petrol); margin-top: 2px; flex: none; }
.check-inline { display: inline-flex; gap: 8px; align-items: center; margin-right: 14px; font-weight: 600; }
.field-set { border: 0; padding: 0; margin: 0; }
.field-set legend { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 2px 0 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--petrol); }
.switch input:checked::after { transform: translateX(20px); }
.switch span { display: flex; flex-direction: column; }
.switch b { color: var(--ink); }
.switch small { color: var(--muted); }
.danger-zone { margin-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 700; }
.logout-form { margin: 18px 0 6px; }

/* ---------- Admin */
.admin-list { list-style: none; padding: 0; margin: 14px 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.admin-list li + li { border-top: 1px solid var(--line); }
.admin-list li > span { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.admin-list b { color: var(--ink); }
.admin-list small { color: var(--muted); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--sky); color: var(--ink); margin-right: 4px; }
.badge-active { background: var(--mint); color: var(--petrol-dark); }
.badge-pending_approval { background: var(--peach-tint); color: #A14E2F; }
.badge-suspended { background: #F3E1DD; color: var(--danger); }

/* ---------- Plain-Layout (Anmeldung, Landing) */
.plain { max-width: 980px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 24px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.plain-head { padding: 6px 0 16px; }
.plain-head a { text-decoration: none; }
.plain-main { flex: 1; }
.plain-foot { text-align: center; font-size: .8rem; color: var(--muted); padding-top: 24px; }
.auth-card { max-width: 420px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 22px; }
.auth-card.wide { max-width: 520px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; }
.auth-mino { width: 110px; height: 120px; object-fit: cover; object-position: 50% 10%; border-radius: 26px; margin: -4px auto 14px; box-shadow: var(--shadow); }
.auth-card.center { text-align: center; }
.auth-switch { text-align: center; margin: 16px 0 0; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 14px; }
.checklist li { padding: 4px 0; color: var(--muted); }
.checklist li.ok { color: var(--petrol); font-weight: 700; }
.error-detail { text-align: left; white-space: pre-wrap; font-size: .75rem; background: var(--sand); padding: 12px; border-radius: 10px; max-height: 300px; overflow: auto; }

.landing-hero { display: grid; gap: 22px; align-items: center; }
.landing-text h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.landing-mino { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--sand-tint); }
.landing-mino img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 40% 20%; }
.landing-mino .bubble { position: absolute; left: 14px; bottom: 16px; max-width: 58%; font-family: var(--hand); font-weight: 600; font-size: 1.6rem; line-height: 1.05; color: var(--ink); background: rgba(255, 255, 255, .9); padding: 12px 16px; border-radius: 22px 22px 22px 6px; transform: rotate(-2deg); box-shadow: var(--shadow); }
.landing-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.landing-points li { display: flex; gap: 14px; align-items: center; background: var(--paper); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.landing-points li div { display: flex; flex-direction: column; }
.landing-points b { color: var(--ink); }
.landing-points span:not(.dot) { color: var(--muted); font-size: .92rem; }
.dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--petrol-dark); }
.dot-sage { background: var(--mint); } .dot-sky { background: var(--sky); } .dot-sand { background: var(--sand-tint); } .dot-peach { background: var(--peach-tint); color: #A14E2F; }

@media (min-width: 760px) {
  .landing-hero { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .landing-points { grid-template-columns: repeat(2, 1fr); }
  .stats-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 380px) {
  .hero-mino .hand-bubble { font-size: 1.35rem; }
  .area-bar { grid-template-columns: 100px 1fr 24px; }
  .choices-scale .choice span { display: none; }
}

/* ---------- Reizarmer Modus & reduzierte Bewegung */
body.calm { --coral: #C9A48F; --shadow: 0 1px 2px rgba(27, 67, 82, .06); --shadow-lift: var(--shadow); }
body.calm .row-today { background: var(--paper); }
body.calm .hero-mino img, body.calm .tip-card img, body.calm .landing-mino img { filter: saturate(.7); }
body.calm *, body.calm *::before, body.calm *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
