/* MSYNERGY Mitgliederbereich – Login, Registrierung und Dashboard. Gleiche Marken-Tokens wie die Startseite. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ink: #0f1215;
  --anthracite: #181c21;
  --graphite: #252b32;
  --steel: #6b757f;
  --silver: #c3cad0;
  --silver-light: #e6eaed;
  --white: #ffffff;
  --ice: #9fd3dc;
  --ice-deep: #3b7987;
  --text-inv: #eef1f3;
  --text-inv-muted: #a9b2ba;
  --danger: #f2a7a2;
  --line: rgba(255,255,255,.1);
  --glass: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --metal: linear-gradient(100deg, #8a949d 0%, #f4f6f8 22%, #a9b2ba 42%, #ffffff 58%, #8e98a1 78%, #dfe4e8 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(159,211,220,.12), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(159,211,220,.08), transparent 60%),
    var(--ink);
  color: var(--text-inv);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ice); }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.metal-text { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-inv); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-weight: 700; letter-spacing: .28em; font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, #f7f9fa 0%, #c9d0d6 45%, #f2f5f7 60%, #aab3bb 100%);
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 14px 40px -14px rgba(159,211,220,.5), inset 0 1px 0 #fff;
}
.btn--primary:hover { box-shadow: 0 20px 50px -12px rgba(159,211,220,.7), inset 0 1px 0 #fff; }
.btn--ghost { color: var(--text-inv); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn--danger { color: var(--danger); border-color: rgba(242,167,162,.4); background: transparent; }
.btn--danger:hover { background: rgba(242,167,162,.08); }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .75rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ice); cursor: pointer; text-decoration: underline; font-size: .9rem; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-muted); }
.field input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text-inv);
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field input:hover { border-color: rgba(255,255,255,.28); }
.field input:focus { outline: none; border-color: var(--ice); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(159,211,220,.18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: .8rem; color: var(--text-inv-muted); }
.field__error { font-size: .85rem; color: var(--danger); }
.password { position: relative; }
.password input { padding-right: 52px; }
.password__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; cursor: pointer; color: var(--text-inv-muted);
  display: grid; place-items: center;
}
.password__toggle:hover { color: var(--ice); }
.password__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.55; color: var(--text-inv-muted); cursor: pointer; }
.check input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ice-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status:empty { display: none; }
.status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; text-align: center; }
.status.is-success { background: rgba(159,211,220,.12); color: var(--ice); }
.status.is-error { background: rgba(242,167,162,.1); color: var(--danger); }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ---------- Login / Registrierung ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__visual {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 4vw, 56px);
  background: url(/assets/hero-poster.webp) center / cover no-repeat;
}
.auth__visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,18,21,.75), rgba(15,18,21,.55) 40%, rgba(15,18,21,.92)),
              radial-gradient(circle at 70% 30%, rgba(159,211,220,.18), transparent 55%);
}
.auth__claim h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: .06em; line-height: 1.05; }
.auth__claim p { margin-top: 18px; max-width: 440px; color: var(--silver-light); font-size: 1.05rem; }
.auth__benefits { display: grid; gap: 12px; margin-top: 30px; }
.auth__benefits li { position: relative; padding-left: 34px; color: var(--text-inv); font-weight: 500; }
.auth__benefits li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(159,211,220,.18); border: 1px solid rgba(159,211,220,.5); }
.auth__benefits li::after { content: ""; position: absolute; left: 7.5px; top: 8px; width: 5px; height: 9px; border: solid var(--ice); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth__back { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-inv-muted); text-decoration: none; }
.auth__back:hover { color: var(--ice); }
.auth__panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px); }
.auth__card { width: 100%; max-width: 480px; padding: clamp(26px, 4vw, 44px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.tabs button {
  min-height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, #f7f9fa, #c3cad0); color: var(--ink); }
.auth__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.auth__lead { color: var(--text-inv-muted); margin-bottom: 26px; font-size: .95rem; }
.invite-note { margin: -14px 0 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(159,211,220,.1); border: 1px solid rgba(159,211,220,.3); color: var(--ice); font-size: .9rem; }
.auth__footer { margin-top: 18px; text-align: center; font-size: .88rem; color: var(--text-inv-muted); }

/* ---------- Dashboard ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 26px 18px;
  background: rgba(15,18,21,.6); border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.sidebar .brand { padding: 0 10px; }
.nav { display: grid; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  color: var(--text-inv-muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav a svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: rgba(255,255,255,.05); color: var(--text-inv); }
.nav a[aria-current="page"] { background: linear-gradient(135deg, rgba(159,211,220,.18), rgba(159,211,220,.06)); color: var(--text-inv); box-shadow: inset 0 0 0 1px rgba(159,211,220,.25); }
.nav a[aria-current="page"] svg { color: var(--ice); }
.sidebar__foot { margin-top: auto; display: grid; gap: 10px; padding: 0 6px; }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.user-chip__avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #2f363e, #14181c); color: var(--ice); font-weight: 700; }
.user-chip__name { font-weight: 600; font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.user-chip__mail { font-size: .75rem; color: var(--text-inv-muted); overflow-wrap: anywhere; }

.main { padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 56px) 80px; min-width: 0; }
.view { max-width: 1120px; animation: fade .5s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view__head { margin-bottom: clamp(26px, 4vw, 40px); }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ice); margin-bottom: 10px; }
.view__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.15; }
.view__lead { margin-top: 10px; color: var(--text-inv-muted); max-width: 680px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  text-decoration: none; color: inherit;
}
a.tile:hover, button.tile:hover { transform: translateY(-5px); border-color: rgba(159,211,220,.4); box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
button.tile { text-align: left; cursor: pointer; font: inherit; }
.tile__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #2f363e, #14181c); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.tile__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ice); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.partner__image { position: relative; aspect-ratio: 16 / 9; margin: -24px -24px 6px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: #12161a; }
.partner__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.partner__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,18,21,.55)); pointer-events: none; }
a.tile:hover .partner__image img, .partner:hover .partner__image img { transform: scale(1.04); }
.partner:hover { border-color: rgba(159,211,220,.4); }
.partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.partner__actions .tile__cta { margin: 0; text-decoration: none; }
.partner__actions--top { margin: -8px 0 24px; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: .88rem; text-decoration: none; }
.tile__icon--image { background: none; overflow: hidden; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.tile__icon--image img { width: 100%; height: 100%; object-fit: cover; }
.tile__title { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.tile__text { color: var(--text-inv-muted); font-size: .92rem; flex: 1; }
.tile__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; color: var(--text-inv-muted); }
.tile__cta { margin-top: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.tile__stat { font-size: 2rem; font-weight: 700; line-height: 1; }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; background: rgba(159,211,220,.12); color: var(--ice); border: 1px solid rgba(159,211,220,.3); }
.pill--new { background: linear-gradient(135deg, #f7f9fa, #c3cad0); color: var(--ink); border-color: transparent; }

.video-thumb {
  position: relative; aspect-ratio: 16 / 9; margin: -24px -24px 6px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(159,211,220,.25), transparent 60%), linear-gradient(135deg, #2a3138, #12161a);
}
.video-thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: transform .5s var(--ease), filter .5s var(--ease); }
button.tile:hover .video-thumb__img { transform: scale(1.03); filter: brightness(.95); }
.video-thumb__play { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.video-thumb__play svg { width: 22px; height: 22px; fill: var(--white); margin-left: 3px; }
button.tile:hover .video-thumb__play { transform: scale(1.1); background: rgba(159,211,220,.3); }
.video-thumb__logo { position: absolute; right: 14px; bottom: 12px; width: 30px; height: 30px; opacity: .55; border-radius: 50%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips button {
  min-height: 38px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-inv-muted);
  font-size: .85rem; font-weight: 500; transition: all .25s var(--ease);
}
.chips button:hover { color: var(--text-inv); border-color: rgba(255,255,255,.25); }
.chips button[aria-pressed="true"] { background: rgba(159,211,220,.15); border-color: rgba(159,211,220,.45); color: var(--text-inv); }

.empty {
  padding: clamp(32px, 5vw, 56px); text-align: center; border-radius: var(--radius-lg);
  border: 1px dashed rgba(255,255,255,.16); color: var(--text-inv-muted);
}
.empty svg { width: 44px; height: 44px; margin: 0 auto 14px; fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.empty strong { display: block; color: var(--text-inv); font-size: 1.1rem; margin-bottom: 6px; }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; margin-bottom: 24px; border-radius: var(--radius); background: rgba(159,211,220,.06); border: 1px solid rgba(159,211,220,.22); font-size: .9rem; color: var(--text-inv-muted); }
.notice svg { width: 24px; height: 24px; fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-linecap: round; }
.notice strong { color: var(--text-inv); }

.panel { padding: clamp(22px, 3vw, 32px); margin-bottom: 18px; }
.panel h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.panel > p { color: var(--text-inv-muted); font-size: .92rem; margin-bottom: 20px; }
.panel--danger { border-color: rgba(242,167,162,.25); }
.profile { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: .95rem; }
.profile dt { color: var(--text-inv-muted); }
.profile dd { margin: 0; overflow-wrap: anywhere; }

/* Academy: Unterbereiche und Wallets */
.tabs--inline { display: inline-grid; grid-template-columns: repeat(var(--tabs, 2), auto); margin-bottom: 26px; max-width: 100%; }
.tabs--inline button { padding: 0 22px; }
.wallet .tile__text { flex: none; }
.wallet__head { display: flex; align-items: center; gap: 14px; }
.wallet__head .tile__title { margin-bottom: 4px; }
.wallet__list { display: grid; gap: 8px; font-size: .9rem; color: var(--text-inv-muted); }
.wallet__list li { position: relative; padding-left: 26px; line-height: 1.5; }
.wallet__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 6px; height: 11px; border: solid var(--ice); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wallet__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wallet__ad { font-size: .72rem; letter-spacing: .06em; color: var(--text-inv-muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.wallet__code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(159,211,220,.08); border: 1px dashed rgba(159,211,220,.4); }
.wallet__code-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-muted); }
.wallet__code code { font-size: 1.05rem; font-weight: 600; letter-spacing: .1em; color: var(--text-inv); }
.wallet__code .link-btn { margin-left: auto; }
.wallet__note { margin: 16px 0 24px; font-size: .82rem; color: var(--text-inv-muted); }
.wallet-tips { margin-top: 8px; }
.wallet-tips h2 { margin-bottom: 14px !important; }
.wallet-tips .wallet__list li::before { border-color: #f5c97a; }
@media (max-width: 560px) { .tabs--inline { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); border-radius: 24px; } .tabs--inline button { padding: 0 10px; } }

/* Termin buchen (Calendly) */
.termin__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: -10px 0 24px; }
.termin__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .88rem; color: var(--text-inv); }
.termin__facts svg { width: 18px; height: 18px; fill: none; stroke: var(--ice); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.player.termin__player { aspect-ratio: auto; width: 100%; height: min(760px, calc(100vh - 220px)); min-height: 520px; background: #fff; }
.termin__player .consent { color: var(--text-inv); }
.wk-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.wk-bar__zone { flex: 1 1 280px; max-width: 420px; }
.wk-bar__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-bar__nav .btn[aria-label] { min-width: 40px; font-size: 1.1rem; padding-inline: 12px; }
.wk-bar__label { min-width: 150px; text-align: center; font-size: .92rem; }
.wk-bar__zone select { width: 100%; min-height: 48px; padding: 11px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text-inv); font: inherit; font-size: .92rem; }
.wk-bar__zone select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(159,211,220,.18); }
.wk-bar__zone option, .wk-bar__zone optgroup { color: #111; }
.wk { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass); -webkit-overflow-scrolling: touch; }
.wk__inner { min-width: 680px; }
.wk__row { display: grid; grid-template-columns: 52px repeat(7, minmax(86px, 1fr)); }
.wk__head { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: rgba(15,18,21,.92); }
.wk__corner { display: grid; place-items: center; font-size: .68rem; font-weight: 600; letter-spacing: .08em; color: var(--ice); }
.wk__day { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-left: 1px solid var(--line); }
.wk__dow { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-muted); }
.wk__date { font-size: 1rem; font-weight: 700; }
.wk__day.is-today .wk__date { padding: 1px 10px; border-radius: 999px; background: linear-gradient(135deg, #f7f9fa, #c3cad0); color: var(--ink); }
.wk__hours { position: sticky; left: 0; z-index: 1; background: #15191d; }
.wk__corner { position: sticky; left: 0; z-index: 1; background: #101316; }
.wk__hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .7rem; color: var(--text-inv-muted); }
.wk__hours span:first-child { transform: none; }
.wk__col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 1px, transparent 1px var(--hour)); }
.wk__col.is-today { background-color: rgba(159,211,220,.04); }
.wk__event { position: absolute; display: flex; flex-direction: column; gap: 1px; overflow: hidden; padding: 5px 7px; border-radius: 10px; border: 1px solid rgba(159,211,220,.7); background: linear-gradient(160deg, #35606a, #22424a); box-shadow: 0 8px 18px -12px rgba(0,0,0,.9); color: var(--text-inv); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wk__event > * { flex: none; }
.wk__event:hover, .wk__event.is-selected { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--ice), 0 12px 24px -14px rgba(0,0,0,.9); z-index: 1; }
.wk__event.is-past { opacity: .45; }
.wk__event.is-cancelled { border-color: rgba(255,120,120,.4); background: rgba(255,120,120,.1); }
.wk__event.is-cancelled .wk__title { text-decoration: line-through; }
.wk__time { font-size: .72rem; font-weight: 700; color: #bfe7ee; }
.wk__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .74rem; font-weight: 600; line-height: 1.25; color: #fff; }
.wk__lang { font-size: .66rem; color: var(--text-inv-muted); }
.wk__event.is-narrow { padding: 4px 5px; }
.wk__event.is-narrow .wk__lang { display: none; }
.wk__event.is-narrow .wk__title { font-size: .68rem; -webkit-line-clamp: 3; }
.wk__now { position: absolute; left: 0; right: 0; height: 2px; background: #f2a7a7; z-index: 1; }
.wk__now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #f2a7a7; }
.wk-hint { margin: 10px 2px 0; }
.wk-detail { margin-top: 18px; max-width: 520px; }
.webinar-day__title { margin-bottom: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-inv-muted); }
.webinar__time { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.webinar__local { display: block; margin-top: 6px; font-size: .78rem; font-weight: 500; color: var(--text-inv-muted); }
.webinar__local:empty { display: none; }
.webinar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.webinar.is-live { border-color: rgba(159,211,220,.55); box-shadow: 0 0 0 1px rgba(159,211,220,.25), 0 24px 50px -30px rgba(59,121,135,.8); }
.webinar.is-cancelled { opacity: .55; }
.webinar.is-cancelled .webinar__time { text-decoration: line-through; }
.pill--warn { background: rgba(255,120,120,.1); color: #f2a7a7; border-color: rgba(255,120,120,.3); }
.crypto-gate { max-width: 760px; }
.crypto-gate h2 { margin-bottom: 6px; }
.crypto-risks { display: grid; gap: 10px; margin: 18px 0 22px; padding-left: 20px; list-style: disc; color: var(--text-inv-muted); font-size: .92rem; }
.crypto-details { margin-top: 8px; }
.crypto-details summary { cursor: pointer; color: var(--ice); }
.crypto-details .crypto-risks { margin: 12px 0 4px; }
.crypto__head { display: flex; align-items: center; gap: 14px; }
.crypto__symbol { flex: none; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #2f363e, #14181c); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--ice); }
.crypto-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); align-items: start; }
.crypto { gap: 10px; padding: 20px 24px; }
.crypto__body { display: grid; justify-items: start; gap: 6px; }
.crypto__symbol.has-logo { padding: 6px; }
.crypto__symbol img { width: 40px; height: 40px; object-fit: contain; }
.crypto__text { white-space: pre-line; }
.crypto__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.crypto__more { font-size: .85rem; }
.crypto__position { font-size: .8rem; color: var(--text-inv-muted); padding-top: 10px; border-top: 1px solid var(--line); }
.crypto__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; font-size: .85rem; }
.termin__teaser { margin-top: 18px; flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.termin__teaser > div { flex: 1; min-width: 200px; }
.termin__teaser .tile__cta { margin: 0; }

/* Zwei-Faktor-Authentifizierung */
.code-input { font-size: 1.35rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.pill--ok { background: rgba(120,214,170,.14); color: #8fe0bb; border-color: rgba(120,214,170,.4); }
.pill--off { background: rgba(255,255,255,.05); color: var(--text-inv-muted); border-color: var(--line); }
.mfa__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.mfa__head h2 { margin: 0 !important; }
.mfa__steps { list-style: decimal; padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 22px; color: var(--text-inv-muted); font-size: .92rem; }
.mfa__steps strong { color: var(--text-inv); }
.mfa__setup { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.mfa__qr { width: 216px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px -24px rgba(0,0,0,.8); }
.mfa__qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.mfa__qr p { color: var(--ink); font-size: .85rem; padding: 12px; }
.mfa__manual { display: grid; gap: 10px; align-content: start; }
.mfa__manual .link-btn { justify-self: start; }
.mfa__secret { display: block; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .95rem; letter-spacing: .08em; word-break: break-all; color: var(--text-inv); }
.mfa__manual .form { margin-top: 10px; }
.mfa__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mfa__codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: 4px 0 18px; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mfa__codes code { font-size: 1rem; letter-spacing: .06em; color: var(--text-inv); }
.panel .check { margin: 18px 0 16px; }
.mfa__warn { color: #f5c97a; font-size: .9rem; margin-bottom: 14px; }
.panel .field__hint { margin-bottom: 14px; }
.mfa__more { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.mfa__more summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--text-inv); list-style-position: inside; }
.mfa__more summary:hover { color: var(--ice); }
.mfa__more[open] summary { margin-bottom: 10px; }
.mfa__more > p { color: var(--text-inv-muted); font-size: .88rem; margin-bottom: 14px; }
@media (max-width: 640px) {
  .mfa__setup { grid-template-columns: 1fr; justify-items: center; }
  .mfa__manual { justify-items: stretch; width: 100%; }
}

/* Mobile Navigation */
.topbar { display: none; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--text-inv-muted); }
.loading img { width: 64px; height: 64px; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* Video-Dialog */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8,10,12,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal__box { width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(18px, 3vw, 28px); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.modal__head h2 { font-size: 1.2rem; font-weight: 600; }
.modal__close { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; background: radial-gradient(circle at 30% 20%, rgba(159,211,220,.2), transparent 60%), linear-gradient(135deg, #2a3138, #12161a); }
.consent p { max-width: 520px; font-size: .88rem; color: var(--text-inv-muted); }
.modal__desc { margin-top: 16px; color: var(--text-inv-muted); font-size: .95rem; }

/* Übersicht: Einladungslink und Landing Page */
.my-links { margin-top: 16px; padding: 6px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.my-link { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; }
.my-link + .my-link { border-top: 1px solid var(--line); }
.my-link__label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-muted); text-decoration: none; }
.my-link__label:hover { color: var(--ice); }
.my-link__url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--text-inv); }
.my-link .btn--small { min-height: 32px; padding: 4px 14px; font-size: .68rem; }
@media (max-width: 640px) {
  .my-link { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .my-link__label { grid-column: 1 / -1; }
}

/* Persönliche Seite gestalten */
.panel__sub { margin: 22px 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.social-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
@media (max-width: 640px) { .social-fields { grid-template-columns: 1fr; } }
.page-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Leads */
.lead-rules { margin: 4px 0 18px; padding-left: 1.3em; list-style: decimal; display: grid; gap: 8px; color: var(--text-inv-muted); font-size: .92rem; line-height: 1.6; }
.lead-list { display: grid; gap: 16px; }
.lead__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.lead__head h3 { font-size: 1.1rem; font-weight: 600; margin-right: auto; }
.lead__head select { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--text-inv); font: inherit; font-size: .85rem; }
.lead__head select option { color: #111; }
.lead__contact { color: var(--text-inv-muted); font-size: .9rem; margin-bottom: 12px; word-break: break-all; }
.lead .mfa__actions .btn svg { width: 16px; height: 16px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lead__msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); color: var(--text-inv-muted); font-size: .92rem; white-space: pre-line; }
.lead__consent { margin-top: 12px; font-size: .82rem; color: var(--text-inv-muted); }
.lead__consent summary { cursor: pointer; color: var(--ice); }
.lead__consent p { margin-top: 8px; line-height: 1.6; }
.lead--revoked { opacity: .75; }

/* Mitteilung vom Admin (Popup bis „Gelesen“) – über John und allen Ansichten */
.notice { z-index: 300; }
.notice__box { width: min(620px, 100%); border-top: 2px solid var(--ice); }
.notice__title { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.notice__text { color: var(--text-inv-muted); font-size: .95rem; line-height: 1.65; }
.notice__text p { margin: 0 0 12px; }
.notice__text strong { color: var(--text-inv); }
.notice__text ul, .notice__text ol { margin: 0 0 14px; padding-left: 1.3em; }
/* News: Archiv der Mitteilungen */
.nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--ice); color: #0f1215; font-size: .72rem; font-weight: 700; }
.news { display: grid; gap: 18px; max-width: 820px; }
.news__item { position: relative; padding: 24px 26px; border-radius: var(--radius); }
.news__item.is-new { border-left: 3px solid var(--ice); }
.news__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .8rem; letter-spacing: .04em; color: var(--text-inv-muted); }
.news__title { font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.news__item.is-collapsed .news__text { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.news__item.is-collapsed .news__cta { display: none; }
.news__more { margin-top: 10px; }
.news__cta { margin-top: 6px; }
.notice__text ul { list-style: disc; }
.notice__text ol { list-style: decimal; }
.notice__text li::marker { color: var(--ice); }
.notice__text li { margin-bottom: 4px; }
.notice__text a { color: var(--ice); }
.notice__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
body.has-notice { overflow: hidden; }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth__visual { min-height: auto; padding-bottom: 36px; }
  .auth__benefits { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar {
    position: sticky; top: 0; z-index: 50; display: grid; gap: 12px;
    padding: 14px 16px 10px;
    background: rgba(15,18,21,.85); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  /* Burger-Menü: Knopf rechts, Menü klappt unter der Leiste nach unten auf */
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 11px; cursor: pointer;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
    transition: background-color .3s var(--ease), border-color .3s var(--ease);
  }
  .menu-toggle:hover, .menu-toggle:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(159,211,220,.5); }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text-inv); transition: transform .35s var(--ease), opacity .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar__menu { display: grid; gap: 12px; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 4px 0 8px; animation: menu-down .3s var(--ease); }
  .topbar__menu[hidden] { display: none; }
  .topbar .nav { display: grid; gap: 4px; }
  .topbar .nav a { padding: 11px 14px; font-size: .95rem; }
  .topbar .nav a svg { width: 18px; height: 18px; }
}
@keyframes menu-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; gap: 2px; }
  .profile dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Einladungslink und Partner-Links */
.invite-link { display: grid; gap: 12px; }
.invite-link code { display: block; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .9rem; color: var(--text-inv); word-break: break-all; }
.partner__contact { font-size: .82rem; color: var(--ice); }
.partner__headline { margin-top: -4px; font-size: .9rem; font-weight: 600; color: var(--ice); line-height: 1.45; }
.field label.check { font-size: .88rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-inv-muted); }
/* Einladungslink in der Übersicht steht über den Kacheln */
.view > .panel:first-of-type { margin-bottom: 22px; }

/* Team Partner */
.team__count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; color: var(--text-inv-muted); }
.team__number { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--text-inv); }
.team__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.team__list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.team__name { font-weight: 600; overflow-wrap: anywhere; }

/* Übersicht: vier kompakte Kacheln in einer Reihe */
.grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid--stats .tile { padding: 18px; gap: 8px; }
.grid--stats .tile__icon { width: 40px; height: 40px; border-radius: 12px; }
.grid--stats .tile__icon svg { width: 20px; height: 20px; }
.grid--stats .tile__stat { font-size: 1.6rem; }
.grid--stats .tile__title { font-size: .98rem; }
.grid--stats .tile__text { font-size: .82rem; line-height: 1.45; }
.grid--stats .tile__cta { font-size: .7rem; }
@media (max-width: 1100px) { .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid--stats { gap: 10px; } .grid--stats .tile { padding: 14px; } }
.notice__sub { margin-top: 8px; font-size: .82rem; opacity: .85; }

/* Profilbild */
.user-chip__avatar { overflow: hidden; }
.user-chip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.avatar-edit__preview {
  width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2f363e, #14181c); color: var(--ice); font-size: 2rem; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 14px 30px -14px rgba(0,0,0,.8);
}
.avatar-edit__preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.avatar-edit__actions .field__hint { flex-basis: 100%; margin: 0 !important; }
.avatar-edit__actions .status { flex-basis: 100%; }
.avatar-edit input[type="file"]:focus-visible + label { outline: 2px solid var(--ice); outline-offset: 3px; }
@media (max-width: 480px) { .avatar-edit { flex-direction: column; align-items: flex-start; } }

/* ---------- KI-Assistent ---------- */
.chat { display: flex; flex-direction: column; height: min(72vh, 760px); min-height: 420px; padding: 0; overflow: hidden; }
.chat__log { flex: 1; overflow-y: auto; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.chat__msg { display: flex; gap: 12px; align-items: flex-start; max-width: min(760px, 92%); }
.chat__msg--user { align-self: flex-end; }
.chat__avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.chat__avatar img { width: 26px; height: 26px; border-radius: 50%; }
.chat__bubble { padding: 13px 17px; border-radius: 18px; font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.chat__msg--assistant .chat__bubble { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-top-left-radius: 6px; }
.chat__msg--user .chat__bubble { background: linear-gradient(145deg, rgba(159,211,220,.22), rgba(159,211,220,.1)); border: 1px solid rgba(159,211,220,.35); border-top-right-radius: 6px; }
.chat__bubble p + p, .chat__bubble p + ul, .chat__bubble p + ol, .chat__bubble ul + p, .chat__bubble ol + p { margin-top: 10px; }
.chat__bubble ul, .chat__bubble ol { padding-left: 20px; display: grid; gap: 5px; }
.chat__bubble ul { list-style: disc; }
.chat__bubble ol { list-style: decimal; }
.chat__bubble strong { color: var(--white); font-weight: 600; }
.chat__bubble a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.chat__welcome { display: grid; gap: 18px; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 46px; }
.chat__chip { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(159,211,220,.35); background: rgba(159,211,220,.06); color: var(--text-inv); font: inherit; font-size: .86rem; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.chat__chip:hover, .chat__chip:focus-visible { background: rgba(159,211,220,.16); border-color: var(--ice); }
.chat__dots { display: inline-flex; gap: 5px; padding: 4px 0; }
.chat__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); animation: chat-dot 1.2s infinite ease-in-out; }
.chat__dots i:nth-child(2) { animation-delay: .15s; }
.chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.chat__error { align-self: center; }
.chat__form { display: flex; gap: 10px; align-items: flex-end; padding: 14px clamp(14px, 2.4vw, 22px); border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.chat__form textarea { flex: 1; resize: none; min-height: 50px; max-height: 180px; padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text-inv); font: inherit; font-size: .95rem; line-height: 1.5; }
.chat__form textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(159,211,220,.18); }
.chat__send { flex: none; width: 50px; height: 50px; padding: 0; border-radius: 50%; justify-content: center; }
.chat__send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.chat__send[disabled] { opacity: .55; cursor: progress; }
.chat__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 clamp(14px, 2.4vw, 22px) 12px; background: rgba(0,0,0,.18); font-size: .8rem; color: var(--text-inv-muted); }
@media (max-width: 640px) {
  .chat { height: calc(100dvh - 230px); min-height: 380px; }
  .chat__msg { max-width: 100%; }
  .chat__chips { padding-left: 0; }
  .chat__avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chat__dots i { animation: none; opacity: .7; } }

/* ---------- John: Chat-Blase unten rechts ---------- */
.john-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 22px 0 12px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; cursor: pointer;
  background: var(--metal); background-size: 180% 100%; color: var(--ink);
  font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .06em;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.7), 0 0 0 6px rgba(159,211,220,.12), 0 10px 30px -10px rgba(159,211,220,.6);
  transition: transform .3s var(--ease), background-position .6s var(--ease), box-shadow .3s var(--ease);
}
.john-fab:hover, .john-fab:focus-visible { transform: translateY(-2px); background-position: 100% 0; }
.john-fab__logo { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.john-fab__close { display: none; }
.john-fab__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* kleiner Puls, damit John auffällt */
.john-fab::after { content: ""; position: absolute; top: 6px; left: 44px; width: 12px; height: 12px; border-radius: 50%; background: #5fd38a; border: 2px solid #fff; }
.john-open .john-fab { width: 64px; padding: 0; justify-content: center; }
.john-open .john-fab__logo, .john-open .john-fab__label, .john-open .john-fab::after { display: none; }
.john-open .john-fab__close { display: inline-flex; }

.john-panel {
  position: fixed; right: 24px; bottom: 102px; z-index: 91;
  width: min(410px, calc(100vw - 48px)); height: min(640px, calc(100dvh - 140px)); min-height: 0;
  background: rgba(20,24,29,.97); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  animation: john-in .3s var(--ease);
}
.john-panel[hidden] { display: none; }
@keyframes john-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.john-panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(159,211,220,.12), rgba(255,255,255,.02)); }
.john-panel__avatar { position: relative; flex: none; }
.john-panel__avatar img { width: 42px; height: 42px; border-radius: 50%; }
.john-panel__avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #5fd38a; border: 2px solid #1a1f24; }
.john-panel__name { font-weight: 700; font-size: 1.05rem; }
.john-panel__role { font-size: .78rem; color: var(--text-inv-muted); letter-spacing: .04em; }
.john-panel__close { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text-inv); cursor: pointer; }
.john-panel__close:hover { background: rgba(255,255,255,.12); }
.john-panel__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.john-panel__note { padding: 9px 16px; font-size: .74rem; line-height: 1.45; color: var(--text-inv-muted); background: rgba(159,211,220,.05); border-bottom: 1px solid var(--line); }
.john-panel__note strong { color: var(--text-inv); }
.john-panel__note a { color: var(--ice); }
.john-panel .chat__log { padding: 16px; gap: 12px; }
.john-panel .chat__msg { max-width: 100%; }
.john-panel .chat__bubble { font-size: .9rem; padding: 11px 14px; }
.john-panel .chat__chips { padding-left: 0; }
.john-panel .chat__chip { font-size: .8rem; padding: 8px 13px; }
.john-panel .chat__avatar { width: 30px; height: 30px; }
.john-panel .chat__avatar img { width: 22px; height: 22px; }
.john-panel .chat__form { padding: 12px 14px; }
.john-panel .chat__form textarea { min-height: 46px; font-size: .9rem; padding: 11px 14px; }
.john-panel .chat__send { width: 46px; height: 46px; }
.john-panel .chat__foot { padding: 0 14px 10px; }
@media (max-width: 640px) {
  /* kompakt und etwas höher, damit unten nichts (z. B. „Abmelden“) verdeckt wird */
  .john-fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); height: 44px; gap: 8px; padding: 0 14px 0 6px; font-size: .78rem; letter-spacing: .04em; box-shadow: 0 12px 28px -12px rgba(0,0,0,.7), 0 0 0 4px rgba(159,211,220,.12); }
  .john-fab__logo { width: 32px; height: 32px; }
  .john-fab::after { top: 4px; left: 30px; width: 9px; height: 9px; }
  .john-fab .john-fab__tag { display: none; }
  .menu-open .john-fab { display: none; }
  .john-open .john-fab { display: none; }
  .john-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; z-index: 95; }
  .john-open { overflow: hidden; }
}
/* Platz unter dem Inhalt, damit die Blase nichts dauerhaft verdeckt */
.has-john .main { padding-bottom: 110px; }
@media (max-width: 640px) { .has-john .main { padding-bottom: 150px; } }
@media (prefers-reduced-motion: reduce) { .john-panel { animation: none; } }

/* ---------- Mitgliedschaft (Basis / Premium) ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.plan--premium { border-color: rgba(159,211,220,.45); box-shadow: 0 0 0 1px rgba(159,211,220,.2), 0 24px 60px -24px rgba(159,211,220,.45); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__head h2 { font-size: 1.35rem; font-weight: 700; }
.plan--premium .plan__head h2 { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price { font-size: 1.6rem; font-weight: 700; }
.plan__list { display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--text-inv); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice); transform: rotate(-45deg); }
.plan__cta { display: grid; gap: 10px; margin-top: 6px; }
.plan__legal { margin-top: 18px; font-size: .82rem; color: var(--text-inv-muted); max-width: 760px; }
.john-locked { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; }
.john-locked__title { font-weight: 700; font-size: 1.02rem; }
.john-locked__price { font-weight: 700; font-size: 1.2rem; }
.john-fab__tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--ice); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.john-fab--locked::after { background: var(--ice); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Kündigungsseite ---------- */
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice legend { margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-inv-muted); }
.choice .check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text-inv-muted); cursor: pointer; }
.choice .check:has(input:checked) { border-color: rgba(159,211,220,.55); background: rgba(159,211,220,.06); color: var(--text-inv); }
.choice input { margin-top: 3px; accent-color: var(--ice); }
.field textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text-inv); font: inherit; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(159,211,220,.18); }
.plan__hint { font-size: .8rem; color: var(--text-inv-muted); text-align: center; }
.plan__cancel { justify-self: center; font-size: .85rem; color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.plan__legal a { color: var(--ice); }

/* Auswahl Monatlich / 12 Monate */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-pick__opt { position: relative; display: grid; gap: 3px; text-align: left; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: var(--text-inv); font: inherit; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.plan-pick__opt:hover { border-color: rgba(159,211,220,.5); }
.plan-pick__opt[aria-checked="true"] { border-color: var(--ice); background: rgba(159,211,220,.1); box-shadow: 0 0 0 1px var(--ice) inset; }
.plan-pick__opt strong { font-size: .95rem; }
.plan-pick__price { font-size: 1.05rem; font-weight: 700; }
.plan-pick__sub { font-size: .74rem; color: var(--text-inv-muted); line-height: 1.35; }
.plan-pick__badge { position: absolute; top: -10px; right: 10px; padding: 2px 9px; border-radius: 999px; background: var(--metal); color: var(--ink); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
