/* ══════════════════════════════════════════════════════════════
   Pfotenplan – Designsystem
   Dunkel als Grundton, Glasflächen, weiche Tiefe, ruhige Bewegung.
   ══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Flächen */
  --bg:        #07090b;
  --bg-2:      #0b0f12;
  /* Für Flächen, die über dem Inhalt liegen. Bewusst deckend:
     halbdurchsichtige Farben mit backdrop-filter darunter lassen den
     Inhalt durchscheinen und machen Text unlesbar. */
  --panel:     #12181c;
  --surface:   rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .10);
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .16);

  /* Schrift */
  --ink:       #eef2ef;
  --ink-2:     rgba(238, 242, 239, .68);
  --ink-3:     rgba(238, 242, 239, .42);

  /* Akzente */
  --mint:      #46e6a4;
  --mint-2:    #16b877;
  --mint-ink:  #072a1c;
  --amber:     #ffb454;
  --amber-2:   #e08a2b;
  --rose:      #ff7a6b;
  --sky:       #6fb6ff;

  --accent-grad: linear-gradient(135deg, #5ff0b0 0%, #16b877 55%, #0e9a86 100%);
  --amber-grad:  linear-gradient(135deg, #ffcb7a, #e08a2b);

  --glow-mint: 0 0 0 1px rgba(70,230,164,.22), 0 12px 40px -12px rgba(70,230,164,.45);

  /* Form */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 4px 16px -4px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow-3: 0 30px 70px -28px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.4);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --sidebar-w: 282px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Helles Thema ── */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4f6f4;
  --bg-2:      #eceeea;
  --surface:   rgba(255, 255, 255, .78);
  --surface-2: rgba(255, 255, 255, .92);
  --surface-3: #ffffff;
  --line:      rgba(16, 28, 22, .10);
  --line-2:    rgba(16, 28, 22, .18);
  --panel:     #ffffff;
  --ink:       #11201a;
  --ink-2:     rgba(17, 32, 26, .66);
  --ink-3:     rgba(17, 32, 26, .42);
  --mint:      #0d8f5e;
  --mint-2:    #0a7a50;
  --mint-ink:  #ffffff;
  --amber:     #b3701c;
  --rose:      #c6402f;
  --glow-mint: 0 0 0 1px rgba(13,143,94,.2), 0 12px 34px -14px rgba(13,143,94,.4);
  --shadow-2: 0 4px 18px -6px rgba(16,28,22,.16), 0 1px 2px rgba(16,28,22,.08);
  --shadow-3: 0 30px 70px -28px rgba(16,28,22,.3), 0 2px 8px rgba(16,28,22,.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.62;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: var(--mint-ink); }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.18; font-weight: 700; letter-spacing: -.021em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.06rem; }
p  { margin: 0 0 1em; }
a  { color: var(--mint); }

h1 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--mint); color: var(--mint-ink); padding: .7rem 1.1rem; z-index: 300; border-radius: 0 0 var(--r) 0; font-weight: 600; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ═══════════ Hintergrund ═══════════ */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.b1 { width: 52vw; height: 52vw; left: -14vw; top: -16vw; background: radial-gradient(circle, rgba(22,184,119,.42), transparent 66%); animation: drift1 30s ease-in-out infinite; }
.b2 { width: 44vw; height: 44vw; right: -12vw; top: 14vh; background: radial-gradient(circle, rgba(111,182,255,.24), transparent 66%); animation: drift2 38s ease-in-out infinite; }
.b3 { width: 40vw; height: 40vw; left: 26vw; bottom: -18vw; background: radial-gradient(circle, rgba(255,180,84,.20), transparent 66%); animation: drift3 34s ease-in-out infinite; }
:root[data-theme="light"] .blob { opacity: .4; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7vw, 5vh) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, 8vh) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-7vh) scale(1.15); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: overlay;
}

/* ═══════════ App-Gerüst ═══════════ */

.shell { display: flex; min-height: 100dvh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 70;
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.3rem 1rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border-right: 1px solid var(--line);
}

.content { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

/* ── Marke ── */
.brand { display: flex; align-items: center; gap: .7rem; padding: .2rem .35rem; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: 13px; background: var(--accent-grad); color: var(--mint-ink);
  box-shadow: 0 8px 22px -8px rgba(22,184,119,.7);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { display: block; font-size: .7rem; color: var(--ink-3); margin-top: -3px; letter-spacing: .01em; }
.sidebar-close { display: none; margin-left: auto; }

/* ── Hundekarte ── */
.dog-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .8rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.dog-ring { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.dog-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 3; }
.ring-fill {
  fill: none; stroke: url(#g) var(--mint); stroke: var(--mint); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 119.4; stroke-dashoffset: 119.4;
  transition: stroke-dashoffset .8s var(--ease);
  filter: drop-shadow(0 0 5px rgba(70,230,164,.55));
}
.dog-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.15rem; }
.dog-meta { min-width: 0; }
.dog-meta strong { display: block; font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dog-meta small { display: block; font-size: .72rem; color: var(--ink-3); }

/* ── Navigation ── */
.steps { display: flex; flex-direction: column; gap: 2px; }

.step {
  position: relative; display: flex; align-items: center; gap: .7rem;
  border: 0; background: transparent; cursor: pointer; width: 100%;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  padding: .62rem .7rem; border-radius: 11px; text-align: left;
  transition: color .18s, background .18s;
}
.step i { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; color: inherit; opacity: .8; }
.step i svg { width: 100%; height: 100%; }
.step span { flex: 1; }
.step:hover { color: var(--ink); background: var(--surface); }

.step.active { color: var(--ink); background: var(--surface-2); }
.step.active::before {
  content: ""; position: absolute; left: -1rem; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.step.active i { opacity: 1; color: var(--mint); }

.tick { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.step.done .tick { opacity: 1; background: color-mix(in srgb, var(--mint) 22%, transparent); }
.step.done .tick::after { content: "✓"; font-size: .62rem; font-weight: 800; color: var(--mint); }

/* Anruf als Haupteinstieg */
.call-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem .9rem; margin-bottom: .9rem; border-radius: var(--r);
  background: var(--accent-grad); color: var(--mint-ink);
  border: 0; box-shadow: 0 10px 28px -10px rgba(22,184,119,.75);
}
.call-cta::before { display: none; }
.call-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }
.call-cta:hover { background: var(--accent-grad); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(22,184,119,.9); }
.call-cta.active { background: var(--accent-grad); }
.cta-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.22); }
.cta-icon svg { width: 19px; height: 19px; }
.cta-text { flex: 1; min-width: 0; line-height: 1.25; }
.cta-text strong { display: block; font-size: .9rem; font-weight: 800; white-space: nowrap; }
.cta-text small { display: block; font-size: .69rem; opacity: .82; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-cta .pulse { background: rgba(255,255,255,.95); }
:root[data-theme="light"] .call-cta { color: #fff; }

.nav-label { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-3); margin: .5rem 0 .4rem .75rem; }

/* Was Silke gerade tut */
.action-chip {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 7;
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; border-radius: 99px; font-size: .78rem; font-weight: 600;
  background: rgba(8,12,10,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent);
  color: var(--mint); white-space: nowrap;
  animation: slideIn .3s var(--ease);
}
.action-spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--mint); border-right-color: var(--mint); animation: spin .8s linear infinite; }
.pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 60%, transparent); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.sidebar-foot { margin-top: auto; display: grid; gap: 2px; }
.ghost-row {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: .82rem; font-weight: 500; color: var(--ink-3);
  padding: .5rem .7rem; border-radius: 10px; text-align: left;
  transition: color .15s, background .15s;
}
.ghost-row:hover { color: var(--ink); background: var(--surface); }

.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }

/* ── Kopfzeile ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem max(18px, 3vw);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: .84rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.nav-toggle { display: none; }

.dog-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; padding: .34rem .8rem; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}

.icon-btn {
  width: 36px; height: 36px; flex: 0 0 36px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  font-size: .9rem; transition: background .15s, color .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ── Layout ── */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 2.6rem max(18px, 3vw) 7rem; }

.banner {
  display: flex; gap: .8rem; align-items: flex-start;
  margin: 1rem max(18px, 3vw) 0; padding: .9rem 1.1rem;
  border-radius: var(--r); font-size: .87rem; line-height: 1.55;
  background: color-mix(in srgb, var(--amber) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  color: var(--ink);
}
.banner-icon { font-size: 1rem; }
.banner code { background: rgba(0,0,0,.28); padding: .12em .45em; border-radius: 6px; font-size: .9em; font-family: ui-monospace, SFMono-Regular, monospace; }
:root[data-theme="light"] .banner code { background: rgba(0,0,0,.08); }

/* ── Hero ── */
.hero { max-width: 66ch; margin-bottom: 2.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: var(--mint); margin-bottom: .85rem;
  padding: .3rem .7rem; border-radius: 99px;
  background: color-mix(in srgb, var(--mint) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint) 24%, transparent);
}
.eyebrow.center { margin-inline: auto; }
.hero p { color: var(--ink-2); font-size: 1.02rem; margin: .7rem 0 0; }

.section-head { display: flex; align-items: center; gap: 1.2rem; margin: 3rem 0 1.3rem; }
.section-head h2 { margin: 0; white-space: nowrap; }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ═══════════ Karten & Formular ═══════════ */

.card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); align-items: start; }

.card {
  position: relative; margin: 0; padding: 1.5rem;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
  transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); }

.card.highlight {
  border-color: color-mix(in srgb, var(--mint) 30%, transparent);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 60%),
    var(--surface);
}

legend { display: flex; align-items: center; gap: .6rem; padding: 0 0 1rem; font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.legend-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }

.row { display: flex; gap: .8rem; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; }
.row > .field.small { flex: 0 1 110px; }

.field { display: block; margin-bottom: 1rem; font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }
.field em { color: var(--amber); font-style: normal; }
.field.inline { display: inline-flex; align-items: center; gap: .55rem; margin: 0; }

/* Alle Texteingaben erfassen - eine Aufzählung einzelner Typen übersieht
   zu leicht welche (email, password, tel, search ...). */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=file]),
select, textarea {
  width: 100%; margin-top: .4rem; padding: .7rem .85rem;
  font: inherit; font-size: .92rem; font-weight: 400; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: #fff; }
.field.inline input, .field.inline select { margin-top: 0; width: auto; }
textarea { resize: vertical; line-height: 1.55; }
::placeholder { color: var(--ink-3); opacity: .75; }

input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--mint) 16%, transparent);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
  padding-right: 2.2rem;
}

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 1rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 23px; flex: 0 0 40px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background .22s var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-3); transition: transform .22s var(--ease), background .22s; }
.switch input:checked + .track { background: var(--accent-grad); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(17px); background: #fff; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--mint) 20%, transparent); }

/* Regler */
input[type=range].range { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; margin-top: .9rem; border: 0; border-radius: 99px; background: var(--surface-3); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-grad); border: 3px solid var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.5), 0 0 0 1px var(--line); cursor: grab; transition: transform .15s; }
.range::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--mint); border: 3px solid var(--bg); cursor: grab; }
.range-out { display: inline-block; margin-top: .55rem; font-size: .8rem; font-weight: 700; color: var(--mint); }

.note { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; font-weight: 400; line-height: 1.55; color: var(--ink-3); padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.note.bare { background: none; border: 0; padding: 0; margin-bottom: 1rem; }

.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding-top: .5rem; }
.save-state { font-size: .8rem; color: var(--ink-3); }
.save-state.ok { color: var(--mint); }
.save-state.err { color: var(--rose); }

/* ═══════════ Schaltflächen ═══════════ */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-size: .88rem; font-weight: 700; letter-spacing: -.005em;
  padding: .72rem 1.3rem; border-radius: 13px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease), box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn.lg { padding: .88rem 1.7rem; font-size: .95rem; border-radius: 15px; }
.btn.block { width: 100%; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn.primary { background: var(--accent-grad); color: var(--mint-ink); box-shadow: 0 6px 20px -8px rgba(22,184,119,.75); }
.btn.primary:hover:not([disabled]) { box-shadow: 0 10px 30px -8px rgba(22,184,119,.9); transform: translateY(-1px); }
:root[data-theme="light"] .btn.primary { color: #fff; }

.btn.primary.glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--accent-grad); filter: blur(14px); opacity: .55;
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .38; } 50% { opacity: .72; } }

.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover:not([disabled]) { background: var(--surface-2); border-color: var(--ink-3); }

.btn-arrow { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.spark { font-size: .9em; }

.toolbar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* ═══════════ Leerzustand ═══════════ */

.empty { text-align: center; padding: 4.5rem 1rem; max-width: 46ch; margin: 0 auto; }
.empty-art { position: relative; width: 108px; height: 108px; margin: 0 auto 1.6rem; display: grid; place-items: center; }
.empty-art .orb { position: absolute; inset: 0; border-radius: 50%; background: var(--accent-grad); opacity: .16; filter: blur(16px); animation: breathe 4s ease-in-out infinite; }
.empty-art .emoji { font-size: 2.9rem; filter: grayscale(.2); }
.empty h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.empty p { color: var(--ink-3); font-size: .92rem; margin: 0; }

/* ═══════════ Themenkatalog ═══════════ */

.problem-layout { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .problem-layout { grid-template-columns: 1fr 350px; align-items: start; } }

/* ── Katalog: Suche und einklappbare Gruppen ── */
.cat-search { position: relative; margin-bottom: 1.2rem; }
.cat-search input { margin: 0; padding-left: 2.6rem; font-size: .95rem; }
.cat-search::before {
  content: ""; position: absolute; left: .9rem; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%); pointer-events: none; opacity: .5;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.cat-clear {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--ink-3); font-size: .8rem; display: grid; place-items: center;
}
.cat-clear:hover { color: var(--ink); }

.cat-group { margin-bottom: .55rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.cat-group > summary {
  display: flex; align-items: center; gap: .7rem; cursor: pointer; list-style: none;
  padding: .85rem 1rem; font-size: .92rem; font-weight: 700; transition: background .15s;
}
.cat-group > summary::-webkit-details-marker { display: none; }
.cat-group > summary:hover { background: var(--surface-2); }
.cat-group > summary::after {
  content: "⌄"; margin-left: auto; color: var(--ink-3); font-size: 1rem; line-height: 1;
  transition: transform .25s var(--ease);
}
.cat-group[open] > summary::after { transform: rotate(180deg); }
.cat-icon { font-size: 1.1rem; }
.cat-name { flex: 1; }
.cat-count, .cat-total {
  min-width: 22px; height: 22px; padding: 0 .45rem; border-radius: 99px;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.cat-count { background: var(--accent-grad); color: var(--mint-ink); margin-left: auto; }
.cat-total { background: var(--surface-3); color: var(--ink-3); margin-left: auto; }
.cat-group > summary::after { margin-left: .5rem; }

.cat-items { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); padding: .2rem 1rem 1rem; }

.cat-none { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.cat-none p { margin-bottom: 1rem; }

.prob {
  position: relative; overflow: hidden; text-align: left; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: .95rem 2.8rem .95rem 1.05rem;
  transition: border-color .2s, background .2s, transform .18s var(--ease);
}
.prob::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 62%);
}
.prob:hover { border-color: var(--line-2); transform: translateY(-2px); }
.prob:hover::before { opacity: .6; }
.prob strong { position: relative; display: block; font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.prob span { position: relative; display: block; font-size: .78rem; line-height: 1.5; color: var(--ink-3); }

.prob::after {
  content: "+"; position: absolute; right: .85rem; top: .85rem;
  width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3);
  font-size: .95rem; line-height: 1; transition: background .2s, color .2s, transform .2s var(--ease);
}
.prob.on { border-color: color-mix(in srgb, var(--mint) 45%, transparent); background: color-mix(in srgb, var(--mint) 9%, var(--surface)); }
.prob.on::before { opacity: 1; }
.prob.on::after { content: "✓"; background: var(--accent-grad); border-color: transparent; color: var(--mint-ink); font-size: .68rem; font-weight: 800; transform: rotate(360deg); }

.prob .flag { position: relative; display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--amber); }

/* ── Auswahlpanel ── */
.selected-panel {
  position: sticky; top: 76px;
  padding: 1.3rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.panel-head h2 { margin: 0; font-size: 1rem; }
.count { min-width: 25px; height: 25px; padding: 0 .5rem; border-radius: 99px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--accent-grad); color: var(--mint-ink); }

.selected-list { display: grid; gap: .55rem; margin: 1rem 0; }
.sel-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); transition: border-color .2s; }
.sel-item:hover { border-color: var(--line-2); }
.sel-head { display: flex; align-items: center; gap: .55rem; padding: .7rem .8rem; cursor: pointer; }
.sel-head strong { flex: 1; font-size: .85rem; font-weight: 600; }
.sev-pip { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--line-2); }
.sev-pip.s1 { background: #7fb069; }
.sev-pip.s2 { background: #b3c45c; }
.sev-pip.s3 { background: var(--amber); }
.sev-pip.s4 { background: #e8834a; }
.sev-pip.s5 { background: var(--rose); }
.sel-more { margin-top: .3rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.sel-more > summary { cursor: pointer; list-style: none; font-size: .75rem; font-weight: 700; color: var(--ink-3); padding: .25rem 0; }
.sel-more > summary::-webkit-details-marker { display: none; }
.sel-more > summary::before { content: "▸ "; color: var(--mint); }
.sel-more[open] > summary::before { content: "▾ "; }
.sel-more > summary:hover { color: var(--ink); }
.sel-head .hint { font-size: .72rem; color: var(--ink-3); }
.sel-head .rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: .9rem; padding: 0 .2rem; line-height: 1; transition: color .15s; }
.sel-head .rm:hover { color: var(--rose); }
.sel-body { padding: .2rem .8rem .8rem; border-top: 1px solid var(--line); }
.sel-body .field { font-size: .73rem; margin-bottom: .7rem; }

.sev-dots { display: flex; gap: 4px; margin-top: .4rem; }
.sev-dots button { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; transition: background .18s, border-color .18s, transform .18s; }
.sev-dots button:hover { transform: scale(1.15); }
.sev-dots button.on { background: var(--amber-grad); border-color: transparent; }

.custom-add { border: 1px dashed var(--line-2); border-radius: var(--r); margin-bottom: 1rem; transition: border-color .2s; }
.custom-add:hover { border-color: var(--mint); }
.custom-add summary { padding: .75rem .9rem; cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--mint); list-style: none; }
.custom-add summary::-webkit-details-marker { display: none; }
.custom-form { padding: 0 .9rem .9rem; }

/* ═══════════ Plan ═══════════ */

.summary-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.sum-card {
  position: relative; overflow: hidden; padding: 1.4rem;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
}
.sum-card h3 { display: flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: .8rem; }
.sum-card p, .sum-card li { font-size: .89rem; line-height: 1.65; color: var(--ink-2); }
.sum-card p { margin: 0; }
.sum-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.sum-card li { position: relative; padding-left: 1.3rem; }
.sum-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.sum-card.win { border-color: color-mix(in srgb, var(--mint) 32%, transparent); background: radial-gradient(110% 80% at 0% 0%, color-mix(in srgb, var(--mint) 13%, transparent), transparent 58%), var(--surface); }
.sum-card.win h3 { color: var(--mint); }
.sum-card.alert { border-color: color-mix(in srgb, var(--rose) 38%, transparent); background: radial-gradient(110% 80% at 0% 0%, color-mix(in srgb, var(--rose) 14%, transparent), transparent 58%), var(--surface); }
.sum-card.alert h3 { color: var(--rose); }
.sum-card.alert li::before { background: var(--rose); }

.modules { display: grid; gap: .9rem; }

.module {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2); overflow: hidden;
  transition: border-color .22s;
}
.module:hover { border-color: var(--line-2); }
.module.open { border-color: color-mix(in srgb, var(--mint) 28%, transparent); }

.mod-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.35rem 1.5rem; cursor: pointer; }
.mod-num {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-grad); color: var(--mint-ink); font-weight: 800; font-size: .88rem;
  box-shadow: 0 6px 16px -6px rgba(22,184,119,.7);
}
.mod-head-text { flex: 1; min-width: 0; }
.mod-head h3 { margin-bottom: .3rem; letter-spacing: -.018em; }
.mod-goal { font-size: .87rem; color: var(--ink-2); margin: 0; }
.mod-meta { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }

.tag { font-size: .69rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); }
.tag.call { background: color-mix(in srgb, var(--amber) 16%, transparent); border-color: color-mix(in srgb, var(--amber) 30%, transparent); color: var(--amber); }

.mod-toggle { color: var(--ink-3); font-size: 1.1rem; transition: transform .3s var(--ease); line-height: 1; margin-top: .3rem; }
.module.open .mod-toggle, .step-card.open .mod-toggle { transform: rotate(180deg); }

.mod-body { display: none; padding: 0 1.5rem 1.5rem; }
.module.open .mod-body { display: block; animation: slideIn .35s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }

.info-cols { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); margin: 0 0 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.info-block h4 { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); margin-bottom: .55rem; }
.info-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.info-block li { position: relative; padding-left: 1.1rem; font-size: .85rem; line-height: 1.55; color: var(--ink-2); }
.info-block li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.info-block p { font-size: .85rem; margin: 0; color: var(--ink-2); }

.steps-list { display: grid; gap: .6rem; margin-top: 1rem; }

.step-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; transition: border-color .2s; }
.step-card:hover { border-color: var(--line-2); }
.step-card.open { border-color: color-mix(in srgb, var(--mint) 25%, transparent); }
.step-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; cursor: pointer; }
.step-lvl { font-size: .65rem; font-weight: 800; padding: .25rem .55rem; border-radius: 7px; background: color-mix(in srgb, var(--mint) 15%, transparent); color: var(--mint); white-space: nowrap; letter-spacing: .03em; }
.step-head strong { flex: 1; font-size: .89rem; font-weight: 600; }
.step-time { font-size: .74rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.step-body { display: none; padding: 0 1.1rem 1.1rem; }
.step-card.open .step-body { display: block; animation: slideIn .3s var(--ease); }
.step-desc { font-size: .89rem; line-height: 1.7; margin: .3rem 0 1.1rem; color: var(--ink-2); }

.howto { counter-reset: h; margin: 0 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.howto li { counter-increment: h; position: relative; padding-left: 2.1rem; font-size: .87rem; line-height: 1.6; color: var(--ink-2); }
.howto li::before {
  content: counter(h); position: absolute; left: 0; top: .1rem;
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--mint); font-size: .67rem; font-weight: 800;
}

.kv { display: grid; gap: .55rem; margin: 0; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.kv-row { display: grid; grid-template-columns: minmax(102px, auto) 1fr; gap: .8rem; font-size: .84rem; align-items: start; }
.kv-row dt { color: var(--ink-3); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.kv-row dd { margin: 0; color: var(--ink-2); }
.kv-row.accent dd { color: var(--mint); font-weight: 600; }

.mistakes { border-radius: var(--r); padding: 1.1rem 1.2rem; margin-top: 1.2rem; background: color-mix(in srgb, var(--amber) 9%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 24%, transparent); }
.mistakes h4 { color: var(--amber); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: .6rem; }
.mistakes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.mistakes li { position: relative; padding-left: 1.2rem; font-size: .85rem; line-height: 1.55; color: var(--ink-2); }
.mistakes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

.trouble { margin-top: 1.2rem; display: grid; gap: .4rem; }
.trouble details { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); overflow: hidden; }
.trouble summary { padding: .65rem .9rem; cursor: pointer; font-size: .85rem; font-weight: 600; list-style: none; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::before { content: "→ "; color: var(--mint); }
.trouble p { padding: 0 .9rem .8rem; margin: 0; font-size: .85rem; color: var(--ink-2); }

/* ═══════════ Kalender ═══════════ */

.progress-card {
  display: flex; align-items: center; gap: 1.3rem; margin-bottom: 2rem;
  padding: 1.2rem 1.5rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.progress-num { display: flex; align-items: baseline; gap: .1rem; font-variant-numeric: tabular-nums; }
.progress-num strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress-num span { font-size: .95rem; font-weight: 700; color: var(--ink-3); }
.progress-body { flex: 1; min-width: 0; }
.progress-bar { height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: .45rem; }
.progress-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent-grad); box-shadow: 0 0 14px color-mix(in srgb, var(--mint) 65%, transparent); transition: width .7s var(--ease); }
#progressText { font-size: .82rem; color: var(--ink-3); }

.weeks { display: grid; gap: 1.3rem; }

.week { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-2); overflow: hidden; }
.week-head { padding: 1.3rem 1.5rem 1.1rem; background: radial-gradient(90% 130% at 0% 0%, color-mix(in srgb, var(--mint) 11%, transparent), transparent 60%); }
.week-head h3 { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .35rem; }
.week-num { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--mint); padding: .25rem .6rem; border-radius: 99px; background: color-mix(in srgb, var(--mint) 13%, transparent); }
.week-head p { font-size: .87rem; color: var(--ink-2); margin: 0; max-width: 78ch; }

.days { display: grid; gap: .5rem; padding: 1.1rem 1.5rem 1.5rem; }
@media (min-width: 860px) { .days { grid-template-columns: repeat(7, 1fr); gap: .5rem; } }

.day {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); padding: .8rem;
  background: var(--bg-2); display: flex; flex-direction: column; gap: .45rem; min-height: 132px;
  cursor: pointer; transition: border-color .2s, transform .18s var(--ease), background .2s;
}
.day:hover { border-color: var(--line-2); transform: translateY(-2px); }
.day.rest { background: transparent; border-style: dashed; }
.day.all-done { background: color-mix(in srgb, var(--mint) 11%, var(--bg-2)); border-color: color-mix(in srgb, var(--mint) 35%, transparent); }
.day.all-done::after { content: "✓"; position: absolute; top: .6rem; right: .7rem; font-size: .7rem; font-weight: 800; color: var(--mint); }
.day.today { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 8px 24px -10px color-mix(in srgb, var(--amber) 60%, transparent); }

.day-top { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem; }
.day-wd { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); }
.day-date { font-size: .68rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.day-focus { font-size: .77rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.day-sessions { display: grid; gap: .25rem; margin-top: auto; }

.chip { font-size: .66rem; font-weight: 600; padding: .26rem .5rem; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.done { background: var(--accent-grad); border-color: transparent; color: var(--mint-ink); }
.chip.rest { background: none; border: 0; color: var(--ink-3); font-style: italic; padding-left: 0; }

.week-review { padding: 0 1.5rem 1.5rem; }
.week-review .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem; }
.week-review h4 { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); margin-bottom: .55rem; }
.week-review ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.week-review li { position: relative; padding-left: 1.2rem; font-size: .85rem; color: var(--ink-2); }
.week-review li::before { content: "?"; position: absolute; left: 0; color: var(--mint); font-weight: 800; }

/* Tagesdetail */
.sess { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; margin-bottom: .8rem; background: var(--surface); }
.sess-top { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .7rem; }
.sess-top input[type=checkbox] { width: 21px; height: 21px; accent-color: var(--mint); cursor: pointer; margin: 0; flex: 0 0 21px; }
.sess-top h4 { flex: 1; margin: 0; font-size: .96rem; }
.sess-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.sess p { font-size: .88rem; margin: 0 0 .6rem; color: var(--ink-2); }
.sess-note { width: 100%; font-size: .85rem; }
.rating { display: flex; gap: .15rem; align-items: center; margin: .6rem 0; }
.rating button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; padding: 0 2px; filter: grayscale(1); opacity: .3; transition: opacity .15s, filter .15s, transform .15s; }
.rating button:hover { transform: scale(1.18); }
.rating button.on { filter: none; opacity: 1; }
.rating span { font-size: .76rem; color: var(--ink-3); margin-left: .5rem; }

/* ═══════════ Videocall ═══════════ */

.view-call { max-width: none; padding: 0; }
body.in-call { overflow: hidden; }
body.in-call .sidebar, body.in-call .topbar, body.in-call .banner { display: none; }
body.in-call .content { margin-left: 0; }
body.in-call main { max-width: none; padding: 0; }

.call-stage { position: relative; width: 100%; height: calc(100dvh - 62px); overflow: hidden; background: #05070a; border-radius: var(--r-lg); border: 1px solid var(--line); }
body.in-call .call-stage { height: 100dvh; border-radius: 0; border: 0; }

.tile-silke { position: absolute; inset: 0; }
.tile-silke canvas { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile-label {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(8,12,10,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: .76rem; font-weight: 600;
  padding: .38rem .8rem; border-radius: 99px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.live-dot.speaking { animation: ping2 1s infinite; }
.live-dot.listening { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: ping2 .7s infinite; }
@keyframes ping2 { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.4); } }

.tile-status {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: rgba(8,12,10,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.85); font-size: .75rem; font-weight: 500;
  padding: .38rem 1rem; border-radius: 99px;
}

/* Tonvisualisierung */
.viz { position: absolute; left: 50%; bottom: 108px; transform: translateX(-50%); z-index: 3; display: flex; align-items: flex-end; gap: 4px; height: 26px; opacity: 0; transition: opacity .3s; }
.viz.on { opacity: .85; }
.viz span { width: 3px; border-radius: 99px; background: var(--mint); height: 20%; box-shadow: 0 0 8px color-mix(in srgb, var(--mint) 70%, transparent); transition: height .08s linear; }

.tile-self {
  position: absolute; right: 18px; top: 18px; z-index: 4;
  width: clamp(124px, 20vw, 216px); aspect-ratio: 4/3;
  border-radius: var(--r); overflow: hidden; background: #0d1210;
  box-shadow: 0 16px 44px -14px rgba(0,0,0,.85); border: 1px solid rgba(255,255,255,.12);
}
.tile-self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.tile-self .tile-label { left: 9px; bottom: 9px; font-size: .66rem; padding: .22rem .55rem; }
.no-cam { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4rem; color: rgba(255,255,255,.35); font-size: .74rem; }
.no-cam svg { width: 24px; height: 24px; }
.tile-self.has-video .no-cam { display: none; }

/* Intro */
.call-overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(5,8,7,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.intro-card {
  position: relative; width: 100%; max-width: 470px; max-height: 92dvh; overflow-y: auto;
  padding: 2.2rem 2rem; text-align: center; border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
  animation: popIn .5s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.intro-glow { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); width: 220px; height: 160px; border-radius: 50%; background: var(--accent-grad); filter: blur(60px); opacity: .35; pointer-events: none; }
.intro-avatar { position: relative; width: 116px; height: 116px; margin: 0 auto 1.2rem; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 12px 34px -12px rgba(0,0,0,.7); }
.intro-avatar canvas { width: 100%; height: 100%; display: block; }
.intro-card h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.intro-card p { font-size: .89rem; color: var(--ink-2); }
.intro-list { text-align: left; list-style: none; margin: 1.3rem 0 1.5rem; padding: 0; display: grid; gap: .55rem; }
.intro-list li { display: flex; gap: .65rem; align-items: center; font-size: .83rem; color: var(--ink-2); padding: .5rem .75rem; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.intro-actions { display: grid; gap: 1rem; justify-items: center; }
#introVoiceTest { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

/* Bedienleiste */
.call-bar {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; gap: .5rem; padding: .6rem;
  background: rgba(8,12,10,.62); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-radius: 99px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px -16px rgba(0,0,0,.9);
}
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center;
  transition: background .18s, transform .14s var(--ease), box-shadow .2s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.round-btn:active { transform: scale(.93); }
.round-btn.on { background: var(--accent-grad); color: var(--mint-ink); box-shadow: 0 6px 18px -6px rgba(22,184,119,.8); }
.round-btn.off { background: rgba(255,255,255,.05); color: rgba(255,255,255,.4); }
.round-btn.accent { background: var(--amber-grad); color: #2a1706; }
.round-btn.danger { background: #d9412f; }
.round-btn.danger:hover { background: #ef5340; }
.round-btn.rec { background: var(--amber-grad); color: #2a1706; box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 60%, transparent); animation: ping 1.4s infinite; }

.type-bar {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; gap: .5rem; width: min(580px, calc(100% - 32px));
  background: rgba(8,12,10,.62); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  padding: .55rem; border-radius: var(--r); border: 1px solid rgba(255,255,255,.12);
}
.type-bar input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: #fff; margin: 0; }
.type-bar input::placeholder { color: rgba(255,255,255,.4); }

.caption {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 5;
  max-width: min(740px, calc(100% - 32px)); text-align: center;
  background: rgba(8,12,10,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; padding: .85rem 1.3rem; border-radius: var(--r);
  font-size: .96rem; line-height: 1.55; max-height: 32dvh; overflow-y: auto;
  animation: slideIn .3s var(--ease);
}
.caption.user { background: color-mix(in srgb, var(--mint-2) 55%, rgba(8,12,10,.7)); }

.transcript {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 8;
  width: min(390px, 100%); display: flex; flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line-2); box-shadow: -20px 0 60px -20px rgba(0,0,0,.8);
  animation: slideLeft .32s var(--ease);
}
@keyframes slideLeft { from { transform: translateX(100%); } }
.transcript-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.transcript-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.msg { font-size: .87rem; line-height: 1.6; max-width: 93%; animation: slideIn .3s var(--ease); }
.msg .who { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--ink-3); display: block; margin-bottom: .3rem; }
.msg.silke .bubble { background: color-mix(in srgb, var(--mint) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 22%, transparent); color: var(--ink); padding: .75rem .95rem; border-radius: 4px 16px 16px 16px; }
.msg.me { align-self: flex-end; }
.msg.me .bubble { background: var(--surface-2); border: 1px solid var(--line); padding: .75rem .95rem; border-radius: 16px 4px 16px 16px; }

/* ═══════════ Overlays ═══════════ */

.modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 18px; background: rgba(4,7,6,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .22s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(720px, 100%); max-height: 90dvh; display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); animation: popIn .34s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.08rem; }
.modal-body { padding: 1.5rem 1.6rem; overflow-y: auto; }
.modal-body h2 { font-size: 1.02rem; margin-top: 1.6rem; }
.modal-body h3 { font-size: .94rem; margin-top: 1.3rem; }
.modal-body p, .modal-body li { color: var(--ink-2); font-size: .9rem; }
.modal-body ul { padding-left: 1.2rem; }
.modal-body li { margin-bottom: .4rem; }
.modal-body strong { color: var(--ink); }

.sheet {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 120;
  min-width: 250px; padding: .4rem; display: grid; gap: 2px;
  border-radius: var(--r); background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
  animation: popIn .26s var(--ease);
}
.sheet button { display: flex; align-items: center; gap: .65rem; text-align: left; font: inherit; font-size: .85rem; font-weight: 500; border: 0; background: none; padding: .62rem .8rem; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.sheet button:hover { background: var(--surface-2); color: var(--ink); }
.sheet button.danger { color: var(--rose); }

/* Ladeanzeige */
.loader { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; background: rgba(4,7,6,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade .25s; }
.loader-box { width: min(390px, 100%); padding: 2.4rem 2rem 2rem; text-align: center; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); }
.loader-box p { font-weight: 700; font-size: 1rem; margin: 1.4rem 0 .35rem; }
.loader-box small { display: block; color: var(--ink-3); font-size: .82rem; min-height: 2.4em; line-height: 1.5; }

.loader-orb { position: relative; width: 86px; height: 86px; margin: 0 auto; display: grid; place-items: center; }
.loader-orb .ring { position: absolute; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--mint); }
.loader-orb .r1 { inset: 0; animation: spin 1.5s linear infinite; }
.loader-orb .r2 { inset: 11px; border-top-color: var(--amber); animation: spin 2.1s linear infinite reverse; }
.loader-orb .r3 { inset: 22px; border-top-color: var(--sky); animation: spin 1.1s linear infinite; }
.loader-orb .paw { font-size: 1.4rem; animation: breathe 2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loader-track { height: 3px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 1.4rem; }
.loader-track span { display: block; height: 100%; width: 35%; border-radius: 99px; background: var(--accent-grad); animation: slide 1.6s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(330%); } }

/* Hinweise */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 180; display: grid; gap: .5rem; width: min(460px, calc(100% - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .85rem 1.15rem; border-radius: var(--r); font-size: .86rem; line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--line-2); color: var(--ink);
  box-shadow: var(--shadow-3);
  animation: toastIn .35s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast::before { content: "•"; font-size: 1.2em; line-height: 1; color: var(--ink-3); }
.toast.ok { border-color: color-mix(in srgb, var(--mint) 42%, transparent); }
.toast.ok::before { content: "✓"; color: var(--mint); font-size: .95em; font-weight: 800; }
.toast.err { border-color: color-mix(in srgb, var(--rose) 45%, transparent); }
.toast.err::before { content: "!"; color: var(--rose); font-weight: 800; }

/* ═══════════ Einblendungen ═══════════ */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.view.switching { animation: viewIn .34s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ═══════════ Anpassung an kleine Bildschirme ═══════════ */

@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-3); }
  body.nav-open .sidebar { transform: none; }
  .content { margin-left: 0; }
  .nav-toggle, .sidebar-close { display: grid; }
  .sheet { left: 50%; transform: translateX(-50%); width: min(320px, calc(100% - 32px)); }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  main { padding: 1.8rem 16px 6rem; }
  .card { padding: 1.2rem; }
  .hero { margin-bottom: 1.8rem; }
  .call-bar { gap: .35rem; padding: .45rem; bottom: 18px; }
  .round-btn { width: 44px; height: 44px; }
  .round-btn svg { width: 18px; height: 18px; }
  .transcript { width: 100%; }
  .tile-self { width: 108px; right: 12px; top: 12px; }
  .progress-card { flex-direction: column; align-items: stretch; gap: .8rem; text-align: center; }
  .viz { bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .sidebar, .topbar, .toolbar, .call-bar, .loader, .toast-wrap, .sheet, .empty, .aurora, .banner { display: none !important; }
  .content { margin-left: 0; }
  .view[hidden] { display: none !important; }
  .mod-body, .step-body { display: block !important; }
  body { background: #fff; color: #000; }
  .module, .card, .week, .sum-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   Anmelden und Registrieren
   ══════════════════════════════════════════════════════════════ */

.auth-page { display: grid; place-items: center; padding: 24px 18px; }

.auth-wrap {
  display: grid; gap: 3.5rem; align-items: center;
  width: 100%; max-width: 1060px; margin: auto;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) { .auth-wrap { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; } }

/* ── Linke Seite ── */
.auth-intro { max-width: 34rem; animation: slideIn .6s var(--ease); }
.auth-intro .brand { padding: 0; margin-bottom: 2.4rem; }
.auth-intro h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.9rem); margin-bottom: .8rem; }
.auth-intro > p { color: var(--ink-2); font-size: 1.02rem; max-width: 46ch; }

.auth-points { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.auth-points li { display: flex; gap: .9rem; align-items: flex-start; font-size: .89rem; color: var(--ink-2); line-height: 1.55; }
.auth-points li > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font-size: 1rem; }
.auth-points strong { display: block; color: var(--ink); font-size: .92rem; margin-bottom: .1rem; }

/* ── Rechte Seite ── */
.auth-card {
  position: relative; width: 100%; max-width: 440px; justify-self: center;
  padding: 2rem; border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  animation: popIn .55s var(--ease);
}
.auth-card::before {
  content: ""; position: absolute; left: 50%; top: -80px; transform: translateX(-50%);
  width: 240px; height: 170px; border-radius: 50%;
  background: var(--accent-grad); filter: blur(70px); opacity: .3; pointer-events: none; z-index: -1;
}

.auth-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 4px; margin-bottom: 1.7rem; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line);
}
.auth-tab {
  position: relative; z-index: 2; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .86rem; font-weight: 700; color: var(--ink-3);
  padding: .6rem .5rem; border-radius: 10px; transition: color .22s;
}
.auth-tab.on { color: var(--mint-ink); }
:root[data-theme="light"] .auth-tab.on { color: #fff; }
.auth-slide {
  position: absolute; z-index: 1; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 10px;
  background: var(--accent-grad); box-shadow: 0 4px 14px -5px rgba(22,184,119,.8);
  transition: transform .3s var(--ease);
}

.auth-form { display: none; }
.auth-form.on { display: block; animation: slideIn .32s var(--ease); }
.auth-form .field { margin-bottom: 1.1rem; }
.auth-form .btn { margin-top: .4rem; }

.auth-error {
  margin: 1rem 0 0; padding: .7rem .9rem; border-radius: var(--r-sm);
  font-size: .84rem; line-height: 1.5;
  background: color-mix(in srgb, var(--rose) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--rose) 35%, transparent);
  color: var(--ink);
  animation: slideIn .28s var(--ease);
}

.auth-foot { margin: 1.6rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--ink-3); line-height: 1.6; }

/* Passwortstärke */
.strength { display: flex; gap: 4px; margin-top: .55rem; }
.strength span { flex: 1; height: 3px; border-radius: 99px; background: var(--surface-3); transition: background .25s; }
.strength span.weak   { background: var(--rose); }
.strength span.okay   { background: var(--amber); }
.strength span.good   { background: #8ed36a; }
.strength span.strong { background: var(--mint); }
.strength-text { display: block; margin-top: .4rem; font-size: .73rem; font-weight: 500; color: var(--ink-3); }

/* Konto in der Seitenleiste */
.account {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .7rem; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: .35rem;
}
.account .avatar {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  background: var(--accent-grad); color: var(--mint-ink);
}
.account .who { flex: 1; min-width: 0; line-height: 1.2; }
.account .who strong { display: block; font-size: .78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .who small { display: block; font-size: .67rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .out { border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: .2rem; border-radius: 7px; display: grid; place-items: center; }
.account .out svg { width: 15px; height: 15px; }
.account .out:hover { color: var(--rose); background: var(--surface-2); }

/* Uhrzeit im Kalenderchip */
.chip b { font-weight: 800; opacity: .75; font-variant-numeric: tabular-nums; }
.chip.done b { opacity: .85; }
.chip.touched { border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.tag.time { font-variant-numeric: tabular-nums; }

/* Was Silke im Gespräch geändert hat */
.step-card.touched { border-color: color-mix(in srgb, var(--amber) 38%, transparent); }
.module.paused { opacity: .62; }
.tag.paused { background: color-mix(in srgb, var(--ink-3) 18%, transparent); color: var(--ink-3); }
.silke-note {
  display: block; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: var(--r-sm);
  font-size: .85rem; line-height: 1.55; color: var(--ink-2);
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 26%, transparent);
}
.silke-note b { color: var(--amber); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   Heute – das Wesentliche, groß
   ══════════════════════════════════════════════════════════════ */

.today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.today-head h1 { margin: 0; text-transform: capitalize; }

.today-ring { position: relative; width: 74px; height: 74px; flex: 0 0 74px; }
.today-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.today-ring .ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 3.5; }
.today-ring .ring-fill {
  fill: none; stroke: var(--mint); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 100.5; stroke-dashoffset: 100.5;
  transition: stroke-dashoffset .6s var(--ease);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--mint) 65%, transparent));
}
.today-ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.today-ring.complete .ring-fill { stroke: var(--mint); }
.today-ring.complete span { color: var(--mint); }

.today-focus { font-size: 1.08rem; color: var(--ink-2); margin: -1rem 0 1.6rem; max-width: 60ch; }

/* ── Trainingseinheit ── */
.today-card {
  position: relative; overflow: hidden;
  padding: 1.6rem; margin-bottom: 1rem; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
  transition: border-color .25s, opacity .25s;
  animation: slideIn .4s var(--ease);
}
.today-card.done { border-color: color-mix(in srgb, var(--mint) 38%, transparent); }
.today-card.done h2 { color: var(--ink-2); }

.today-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.today-time {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.today-dur, .today-mod {
  font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3);
}
.today-card h2 { font-size: 1.4rem; letter-spacing: -.025em; margin-bottom: .6rem; }
.today-do { font-size: 1rem; line-height: 1.65; color: var(--ink-2); margin-bottom: .8rem; }
.today-goal { font-size: .92rem; color: var(--ink-2); margin-bottom: 1.3rem; }
.today-goal b { color: var(--mint); font-weight: 700; }

/* ── Abhaken ── */
.done-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  padding: .95rem 1.4rem; border-radius: 15px;
  border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .12s var(--ease);
}
.done-btn:hover { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 10%, var(--surface-2)); }
.done-btn:active { transform: scale(.985); }
.done-btn .check {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  border: 2px solid var(--line-2); display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; transition: background .2s, border-color .2s, color .2s;
}
.done-btn.on { background: var(--accent-grad); border-color: transparent; color: var(--mint-ink); }
.done-btn.on .check { background: rgba(255,255,255,.28); border-color: transparent; color: inherit; }
:root[data-theme="light"] .done-btn.on { color: #fff; }

/* ── Kurzes Feedback ── */
.fb-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; animation: slideIn .3s var(--ease); }
.fb-label { font-size: .82rem; font-weight: 600; color: var(--ink-3); margin-right: .2rem; }
.fb-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  padding: .5rem .9rem; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  transition: border-color .18s, background .18s, color .18s, transform .12s;
}
.fb-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.fb-btn .fb-icon { font-size: 1.1rem; filter: grayscale(1); opacity: .6; transition: filter .18s, opacity .18s; }
.fb-btn.on { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, transparent); color: var(--ink); }
.fb-btn.on .fb-icon { filter: none; opacity: 1; }
.fb-note { margin-top: .7rem; font-size: .9rem; animation: slideIn .3s var(--ease); }

/* ── Ruhetag und Tipp ── */
.rest-card, .tip-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--r-xl); margin-bottom: 1rem;
  border: 1px solid var(--line); background: var(--surface);
}
.rest-card { background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--sky) 12%, transparent), transparent 60%), var(--surface); }
.rest-icon { font-size: 2rem; line-height: 1; }
.rest-card h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.rest-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tip-card { background: color-mix(in srgb, var(--amber) 9%, transparent); border-color: color-mix(in srgb, var(--amber) 26%, transparent); font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
.tip-card b { color: var(--amber); }
.tip-icon { font-size: 1.2rem; line-height: 1.4; }

.today-foot { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.today-week { font-size: .82rem; color: var(--ink-3); margin-left: auto; }
.empty .btn { margin-top: 1.4rem; }

@media (max-width: 620px) {
  .today-head { gap: 1rem; }
  .today-ring { width: 60px; height: 60px; flex-basis: 60px; }
  .today-card { padding: 1.2rem; }
  .today-card h2 { font-size: 1.2rem; }
  .today-time { font-size: 1.3rem; }
  .today-week { margin-left: 0; width: 100%; }
}

/* ── Profil: Übersicht statt Formularwand ── */
.profile-card {
  padding: 1.6rem; border-radius: var(--r-xl); margin-bottom: 1.6rem;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
}
.profile-facts { display: grid; gap: .9rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.fact { min-width: 0; }
.fact-label { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .15rem; }
.fact strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.profile-longs { display: grid; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.profile-longs .long p { margin: .2rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
.profile-card > .btn { margin-top: 1.6rem; }

/* ── Plan: Details hinter einem Klick ── */
.step-facts, .mod-info { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.step-facts > summary, .mod-info > summary {
  cursor: pointer; list-style: none; font-size: .78rem; font-weight: 700;
  color: var(--ink-3); padding: .35rem 0; transition: color .15s;
}
.step-facts > summary::-webkit-details-marker, .mod-info > summary::-webkit-details-marker { display: none; }
.step-facts > summary::before, .mod-info > summary::before { content: "▸ "; color: var(--mint); }
.step-facts[open] > summary::before, .mod-info[open] > summary::before { content: "▾ "; }
.step-facts > summary:hover, .mod-info > summary:hover { color: var(--ink); }
.mod-info { border-top: 0; padding-top: 0; margin: 1.2rem 0 0; }
.mod-info .info-cols { border-top: 0; padding-top: .8rem; margin-bottom: 0; }
.goal-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); margin-right: .35rem; }
.step-desc { font-size: .95rem; }

/* ── Videoauswertung ── */
.video-input { padding: .7rem !important; cursor: pointer; }
.video-preview { margin-bottom: 1.1rem; }
.video-preview video { width: 100%; max-height: 260px; border-radius: var(--r); background: #000; display: block; }
.video-name { display: block; margin-top: .45rem; font-size: .78rem; color: var(--ink-3); }

.video-result { display: grid; gap: 1.5rem; }
.vr-block h3 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); margin-bottom: .6rem; }
.vr-block p { margin: 0; font-size: .94rem; line-height: 1.65; color: var(--ink-2); }
.vr-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.vr-block li { position: relative; padding-left: 1.3rem; font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
.vr-block li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.vr-block.good { padding: 1.1rem 1.2rem; border-radius: var(--r); background: color-mix(in srgb, var(--mint) 10%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 28%, transparent); }
.vr-block.good h3 { color: var(--mint); }
.vr-block.good li::before { background: var(--mint); }

.vr-items { display: grid; gap: .8rem; }
.vr-item { padding: 1rem 1.1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.vr-item strong { display: block; font-size: 1rem; margin-bottom: .45rem; }
.vr-item p { margin: 0 0 .35rem; font-size: .89rem; line-height: 1.6; color: var(--ink-2); }
.vr-why b { color: var(--ink-3); font-weight: 700; }
.vr-how b { color: var(--mint); font-weight: 700; }

.vr-next { padding: 1.3rem 1.4rem; border-radius: var(--r-lg); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--mint) 14%, transparent), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--mint) 32%, transparent); }
.vr-next h3 { color: var(--mint); }
.vr-next p { font-size: 1rem; color: var(--ink); }

.vr-limits { border: 1px solid var(--line); border-radius: var(--r); }
.vr-limits summary { padding: .7rem .95rem; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink-3); list-style: none; }
.vr-limits summary::-webkit-details-marker { display: none; }
.vr-limits summary::before { content: "▸ "; color: var(--ink-3); }
.vr-limits[open] summary::before { content: "▾ "; }
.vr-limits ul { padding: 0 .95rem .9rem 2.1rem; }

.vr-ask { padding: 1.1rem 1.2rem; border-radius: var(--r); background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 26%, transparent); }
.vr-ask p { margin: 0 0 .9rem; font-size: .94rem; color: var(--ink-2); }
.vr-ask b { color: var(--amber); }

.video-history { display: grid; gap: .55rem; }
.vh-item { display: grid; gap: .2rem; text-align: left; font: inherit; cursor: pointer; padding: .9rem 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .18s; }
.vh-item:hover { border-color: var(--mint); }
.vh-item strong { font-size: .94rem; }
.vh-item span { font-size: .76rem; color: var(--ink-3); }
.vh-item em { font-size: .82rem; color: var(--ink-2); font-style: normal; }

/* ══════════════════════════════════════════════════════════════
   Textseiten (Datenschutz)
   ══════════════════════════════════════════════════════════════ */

.doc-page { padding: 0; }
.doc-wrap { max-width: 50rem; margin: 0 auto; padding: 3rem max(18px, 4vw) 6rem; }
.doc-back { display: inline-block; margin-bottom: 2rem; font-size: .85rem; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.doc-back:hover { color: var(--ink); }
.doc-lead { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; margin-bottom: 2.5rem; }

.doc-block { padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.doc-block h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.doc-block h2 em { font-family: var(--display); font-style: italic; font-weight: 400; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-block p { font-size: .94rem; line-height: 1.7; color: var(--ink-2); }
.doc-block ul { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: .7rem; }
.doc-block li { position: relative; padding-left: 1.5rem; font-size: .94rem; line-height: 1.65; color: var(--ink-2); }
.doc-block li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.doc-block strong { color: var(--ink); }
.doc-block code { background: var(--surface-3); padding: .12em .45em; border-radius: 5px; font-size: .88em; font-family: ui-monospace, SFMono-Regular, monospace; }

.doc-block.good { border-color: color-mix(in srgb, var(--mint) 30%, transparent); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--mint) 9%, transparent), transparent 60%), var(--surface); }
.doc-block.good li::before { background: var(--mint); }
.doc-block.warn { border-color: color-mix(in srgb, var(--amber) 30%, transparent); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 60%), var(--surface); }

.doc-service { padding: 1.1rem 1.2rem; margin-bottom: .9rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.doc-service h3 { font-size: 1rem; margin-bottom: .5rem; }
.doc-service p:last-child { margin-bottom: 0; }
.doc-meta { font-size: .82rem !important; color: var(--ink-3) !important; }
.doc-note { padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .89rem !important; }
.doc-foot { margin-top: 2rem; font-size: .82rem; color: var(--ink-3); text-align: center; }

/* ══════════════════════════════════════════════════════════════
   Übungs-Timer
   ══════════════════════════════════════════════════════════════ */

.tm-wrap {
  position: relative; overflow: hidden;
  margin: 1.2rem 0; padding: .9rem 1rem .85rem;
  border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line);
  transition: border-color .25s;
}
.tm-wrap.running { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.tm-wrap.done { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }

.tm-bar { position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--surface-3); }
.tm-fill { display: block; height: 100%; width: 0; background: var(--accent-grad); transition: width 1s linear; }
.tm-wrap.done .tm-fill { background: var(--amber-grad); }

.tm-row { display: flex; align-items: center; gap: .6rem; }

.tm-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  padding: .55rem .9rem; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  transition: background .18s, border-color .18s, transform .1s;
}
.tm-btn:hover { border-color: var(--mint); }
.tm-btn:active { transform: scale(.96); }
.tm-btn.play { min-width: 104px; justify-content: center; }
.tm-wrap.running .tm-btn.play { background: var(--accent-grad); border-color: transparent; color: var(--mint-ink); }
:root[data-theme="light"] .tm-wrap.running .tm-btn.play { color: #fff; }
.tm-icon { font-size: .8em; }

.tm-time {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; min-width: 3.4rem;
}
.tm-wrap.running .tm-time { color: var(--mint); }
.tm-wrap.done .tm-time { color: var(--amber); }

.tm-count {
  margin-left: auto; display: flex; align-items: center; gap: .5rem;
  font: inherit; cursor: pointer; padding: .5rem .85rem; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2);
  transition: border-color .18s, background .18s;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.tm-count:hover { border-color: var(--amber); }
.tm-count b { font-size: 1.25rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1.2rem; text-align: right; }
.tm-count-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tm-count.bump { animation: bump .22s var(--ease); }
@keyframes bump { 50% { transform: scale(1.08); background: color-mix(in srgb, var(--amber) 20%, transparent); } }

.tm-hint { display: block; margin-top: .6rem; font-size: .76rem; color: var(--ink-3); }

@media (max-width: 520px) {
  .tm-row { flex-wrap: wrap; }
  .tm-count { margin-left: 0; width: 100%; justify-content: space-between; }
  .tm-btn.play { min-width: 92px; }
}

/* ── Offline ── */
.offline-bar {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .6rem 1rem; font-size: .84rem; font-weight: 600;
  background: var(--amber-grad); color: #2a1706;
  text-align: center;
}
body.is-offline .call-cta { opacity: .5; pointer-events: none; }
.toast.install { display: block; }
.toast.install::before { display: none; }
.install-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.install-actions .btn { flex: 1; padding: .5rem 1rem; font-size: .82rem; }

/* ══════════════════════════════════════════════════════════════
   Fortschritt
   ══════════════════════════════════════════════════════════════ */

#progressPanel { margin-bottom: 1.5rem; }

.pg-tiles { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.pg-tile {
  padding: 1.1rem 1.2rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.pg-tile strong {
  display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-tile span { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-top: .25rem; }
.pg-tile small { display: block; font-size: .7rem; color: var(--ink-3); margin-top: .15rem; }

.pg-block { padding: 1.2rem 1.3rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: .8rem; }
.pg-block h3 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); margin-bottom: .9rem; }
.pg-block.warn { background: color-mix(in srgb, var(--amber) 8%, transparent); border-color: color-mix(in srgb, var(--amber) 26%, transparent); }
.pg-block.warn h3 { color: var(--amber); }
.pg-block ul { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.pg-block li { font-size: .9rem; color: var(--ink-2); }
.pg-block li b { color: var(--ink); }

.pg-bars { display: grid; gap: .6rem; }
.pg-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: .8rem; align-items: center; }
.pg-bar-name { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-bar-track { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pg-bar-fill { display: block; height: 100%; background: var(--accent-grad); border-radius: 99px; transition: width .6s var(--ease); }
.pg-bar-val { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .pg-bar-row { grid-template-columns: minmax(0, 1fr) 60px auto; gap: .5rem; }
  .pg-tile strong { font-size: 1.6rem; }
}

/* ── Datenexport ── */
.export-opts { display: grid; gap: .6rem; margin-top: 1.2rem; }
.export-opt {
  display: grid; gap: .15rem; text-align: left; font: inherit; cursor: pointer;
  padding: 1rem 1.1rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .18s, transform .12s var(--ease);
}
.export-opt:hover { border-color: var(--mint); transform: translateY(-1px); }
.export-opt strong { font-size: .95rem; }
.export-opt span { font-size: .82rem; color: var(--ink-3); }

/* ══════════════════════════════════════════════════════════════
   Hunde und Betreuer
   ══════════════════════════════════════════════════════════════ */

.dog-wrap { position: relative; }
.dog-card { width: 100%; text-align: left; font: inherit; cursor: default; }
.dog-card.switchable { cursor: pointer; transition: border-color .18s, background .18s; }
.dog-card.switchable:hover { border-color: var(--line-2); background: var(--surface-2); }
.dog-caret { color: var(--ink-3); font-size: 1rem; line-height: 1; margin-left: auto; }
.role-pill {
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: .12rem .4rem; border-radius: 5px;
  background: color-mix(in srgb, var(--sky) 22%, transparent); color: var(--sky);
}

.dog-list {
  position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 40;
  padding: .35rem; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3); display: grid; gap: 1px;
  animation: popIn .2s var(--ease);
}
.dog-opt {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  text-align: left; font: inherit; font-size: .85rem; cursor: pointer;
  border: 0; background: none; color: var(--ink); padding: .55rem .7rem; border-radius: 9px;
}
.dog-opt:hover { background: var(--surface-2); }
.dog-opt.on { background: color-mix(in srgb, var(--mint) 12%, transparent); }
.dog-opt-name { font-weight: 600; }
.dog-opt-meta { font-size: .7rem; color: var(--ink-3); }
.dog-opt-check { margin-left: auto; color: var(--mint); font-weight: 800; }
.dog-opt.add { font-size: .8rem; color: var(--ink-3); }
.dog-opt.add:hover { color: var(--mint); }
.dog-list-sep { height: 1px; background: var(--line); margin: .3rem .2rem; }

.partner-list { display: grid; gap: .5rem; margin: 1.2rem 0; }
.partner { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.partner-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800; background: var(--accent-grad); color: var(--mint-ink); }
.partner-who { flex: 1; min-width: 0; line-height: 1.25; }
.partner-who strong { display: block; font-size: .88rem; }
.partner-who small { display: block; font-size: .72rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.partner-role { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: .2rem .5rem; border-radius: 99px; background: var(--surface-3); color: var(--ink-3); }
.partner-role.owner { background: color-mix(in srgb, var(--mint) 20%, transparent); color: var(--mint); }
.partner-rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: .2rem .3rem; border-radius: 7px; }
.partner-rm:hover { color: var(--rose); background: var(--surface-2); }

.invite-box { display: grid; gap: .5rem; margin-bottom: .5rem; }
.invite { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: var(--r); background: color-mix(in srgb, var(--mint) 9%, transparent); border: 1px solid color-mix(in srgb, var(--mint) 26%, transparent); }
.invite code { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .1em; color: var(--mint); }
.invite span { flex: 1; font-size: .74rem; color: var(--ink-3); }
.invite .btn { padding: .35rem .8rem; font-size: .78rem; }
.code-input { font-family: ui-monospace, SFMono-Regular, monospace !important; font-size: 1.15rem !important; letter-spacing: .12em; text-align: center; text-transform: uppercase; }

/* ══════════════════════════════════════════════════════════════
   Fototagebuch
   ══════════════════════════════════════════════════════════════ */

.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.photo-month { grid-column: 1 / -1; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); margin: 1.2rem 0 -.2rem; }
.photo-month:first-child { margin-top: 0; }

.photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .18s var(--ease); }
.photo:hover { border-color: var(--line-2); transform: translateY(-2px); }
.photo.picked { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.photo-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-img img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo figcaption { padding: .8rem .9rem; display: grid; gap: .1rem; }
.photo figcaption strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo figcaption span { font-size: .75rem; color: var(--ink-3); }
.photo figcaption small { font-size: .7rem; color: var(--ink-3); opacity: .8; }
.photo-pick {
  position: absolute; right: .6rem; top: .6rem; width: 30px; height: 30px;
  border-radius: 9px; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(8,12,10,.6); backdrop-filter: blur(8px); color: #fff;
  font-size: .8rem; display: grid; place-items: center; transition: background .18s;
}
.photo-pick:hover { background: rgba(8,12,10,.85); }
.photo.picked .photo-pick { background: var(--accent-grad); border-color: transparent; color: var(--mint-ink); }

.photo-preview img { width: 100%; max-height: 240px; object-fit: contain; border-radius: var(--r); background: #000; display: block; }
.photo-big img { width: 100%; border-radius: var(--r); display: block; margin-bottom: 1rem; }
.photo-date { font-size: .84rem; color: var(--ink-3); }

.compare { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; margin-top: 1.2rem; }
.compare figure { margin: 0; }
.compare img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); display: block; }
.compare figcaption { margin-top: .5rem; font-size: .8rem; color: var(--ink-3); }
.compare figcaption b { color: var(--mint); }
.cmp-title { display: block; color: var(--ink-2); margin-top: .1rem; }

@media (max-width: 520px) {
  .compare { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
