:root{
  /* Layout: 12-Spalten-Raster bis 1360px. Desktop: gläserne Kopfleiste, Hero als geteilte Bühne, darunter Bento. Handy: eine Spalte, Leiste unten. Weiß dominiert, Navy trägt, Türkis akzentuiert. */
  --bg:#F8FAFC;
  --surface:#FFFFFF;
  --surface-2:#F1F5F7;
  --navy:#123B63;
  --blue:#1769A6;
  --teal:#19A7A0;
  --aqua:#E4F7F5;
  --text:#182333;
  --muted:#66758A;
  --line:#E5EBF0;
  --crit:#C8463D;
  --warn:#B7791F;
  --r-s:10px; --r-m:14px; --r-l:20px;
  --sh-1:0 1px 2px rgba(18,59,99,.04),0 4px 14px rgba(18,59,99,.05);
  --sh-2:0 2px 4px rgba(18,59,99,.05),0 14px 34px rgba(18,59,99,.10);
  --ease:cubic-bezier(.2,.7,.2,1);
  --display:"Plus Jakarta Sans","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
h1,h2{font-family:var(--display);margin:0;text-wrap:balance;color:var(--text)}
h1{font-size:clamp(28px,3.3vw,44px);line-height:1.12;font-weight:700;letter-spacing:-.025em}
h2{font-size:18px;line-height:1.3;font-weight:700;letter-spacing:-.01em;margin-bottom:12px}
p{margin:0 0 12px}
.num{font-variant-numeric:tabular-nums}
.cap{font-size:13.5px;line-height:1.5;color:var(--muted)}
.eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--blue);margin-bottom:8px}
.lead{color:var(--muted);font-size:17px;max-width:52ch}
em.warn{font-style:normal;color:var(--crit);font-weight:600}
.crit{color:var(--crit)!important}.teal{color:var(--teal)}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Schaltflächen und Felder */
button,.btn{font:inherit;font-weight:600;font-size:15px;color:#fff;background:var(--navy);border:1px solid var(--navy);border-radius:12px;padding:0 18px;min-height:46px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease)}
button:hover,.btn:hover{background:#0E3156;box-shadow:0 6px 16px rgba(18,59,99,.18);transform:translateY(-1px)}
button:active{transform:translateY(0);box-shadow:none}
button:disabled{opacity:.4;cursor:default;transform:none;box-shadow:none}
button.ghost{background:var(--surface);color:var(--text);border-color:var(--line)}
button.ghost:hover{background:var(--surface);border-color:#C9D5DF;box-shadow:var(--sh-1)}
button.sq{width:46px;padding:0}
button.link,button.flink{background:none;border:0;min-height:0;padding:0;color:var(--blue);font-weight:500;font-size:inherit;box-shadow:none;transform:none}
button.link{text-decoration:underline}
body.busy button[type=submit]{opacity:.6;pointer-events:none}
input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 14px;width:100%;min-height:48px;transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--teal);box-shadow:0 0 0 4px rgba(25,167,160,.14)}
textarea{resize:vertical;min-height:0;line-height:1.5}
label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
label.check{flex-direction:row;align-items:center;gap:10px;color:var(--text);font-size:15px}
label.check input{width:22px;height:22px;min-height:0;flex:none;accent-color:var(--teal);box-shadow:none}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.grid .wide{grid-column:1/-1}
.form{display:flex;flex-direction:column;gap:14px}

/* Kopfleiste */
.nav{position:sticky;top:0;z-index:20;background:rgba(248,250,252,.6);border-bottom:1px solid transparent;transition:background .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease)}
.nav.scrolled{background:rgba(255,255,255,.78);-webkit-backdrop-filter:saturate(1.4) blur(16px);backdrop-filter:saturate(1.4) blur(16px);border-bottom-color:var(--line);box-shadow:0 6px 24px rgba(18,59,99,.05)}
.nav-in{max-width:1360px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:24px}
.brand{display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:-.01em;color:var(--text);text-decoration:none}
.brand svg{width:32px;height:32px}
.links{display:none;gap:4px;margin:0 auto}
.links button{background:none;border:0;color:var(--muted);font-weight:500;min-height:42px;padding:0 16px;border-radius:10px;position:relative;box-shadow:none;transform:none}
.links button .ico{display:none}
.links button:hover{color:var(--text);background:none}
.links button::after{content:"";position:absolute;left:16px;right:16px;bottom:5px;height:2px;border-radius:2px;background:var(--teal);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease)}
.links button:hover::after{transform:scaleX(.35)}
.links button.on{color:var(--navy);font-weight:600}
.links button.on::after{transform:scaleX(1)}
.cta{margin-left:auto;min-height:42px;padding:0 16px}
.tabbar{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:20;display:flex;gap:2px;padding:6px;border-radius:20px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(1.4) blur(18px);backdrop-filter:saturate(1.4) blur(18px);border:1px solid var(--line);box-shadow:var(--sh-2)}
.tabbar button{flex:1;flex-direction:column;gap:2px;background:none;border:0;color:var(--muted);font-size:11px;font-weight:600;min-height:52px;padding:4px 0;border-radius:14px;box-shadow:none;transform:none}
.tabbar button .ico{width:22px;height:22px}
.tabbar button.on{color:var(--navy);background:var(--aqua)}
@media (min-width:900px){.links{display:flex}.tabbar{display:none}.cta{margin-left:0}.nav-in{padding:14px 32px}}

/* Seite */
.view{max-width:1360px;margin:0 auto;padding:20px 16px 40px;display:flex;flex-direction:column;gap:20px;min-height:70vh}
@media (min-width:900px){.view{padding:28px 32px 72px;gap:28px}}
.view.enter>*{animation:rise .42s var(--ease) both}
.view.enter>*:nth-child(2){animation-delay:.05s}.view.enter>*:nth-child(3){animation-delay:.1s}.view.enter>*:nth-child(n+4){animation-delay:.15s}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.top{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-end;justify-content:space-between;padding-top:8px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:22px;box-shadow:var(--sh-1);min-width:0;transition:box-shadow .3s var(--ease),transform .3s var(--ease)}
.card ul{margin:0 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.card ul.txt li{max-width:72ch}
.card strong{font-weight:600}
.prop{border-left:4px solid var(--warn);background:linear-gradient(90deg,#FFFBF2,var(--surface) 40%)}
.prop.good{border-left-color:var(--teal);background:linear-gradient(90deg,var(--aqua),var(--surface) 40%)}

/* Hero */
.hero{display:grid;grid-template-columns:1fr;gap:20px;align-items:center;padding:8px 0}
.hero-txt{display:flex;flex-direction:column;gap:16px;align-items:flex-start;min-width:0}
.hero-txt h1{max-width:16ch}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;max-width:58ch}
.steps li{display:flex;gap:12px;align-items:flex-start;color:var(--text)}
.steps .ico{color:var(--teal);margin-top:3px;width:18px;height:18px}
.datenav{display:flex;gap:8px;align-items:center}
.hero-vis{position:relative;min-height:340px;display:grid;place-items:center;isolation:isolate}
.blob{position:absolute;inset:4% 6%;z-index:-1;background:linear-gradient(150deg,#DCEBF6 0%,var(--aqua) 55%,#F8FAFC 100%);border-radius:58% 42% 47% 53%/46% 55% 45% 54%}
.blob::after{content:"";position:absolute;inset:-8% -4% auto auto;width:46%;height:46%;border:1px solid rgba(23,105,166,.18);border-radius:50%}
.ring{width:min(280px,72%);height:auto;filter:drop-shadow(0 14px 30px rgba(18,59,99,.14));background:var(--surface);border-radius:50%;padding:14px}
.ring .rv{font-family:var(--display);font-weight:700;font-size:44px;letter-spacing:-.03em;fill:var(--text);font-variant-numeric:tabular-nums}
.ring .rl{font-size:12.5px;font-weight:600;fill:var(--muted)}
.ring .rs{font-size:11.5px;fill:var(--muted);font-variant-numeric:tabular-nums}
.float{position:absolute;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:var(--r-m);padding:10px 14px;box-shadow:var(--sh-2);display:flex;flex-direction:column;line-height:1.3}
.float b{font-family:var(--display);font-size:18px;font-weight:700;letter-spacing:-.01em}
.float .cap{font-size:12px}
.float.f1{left:0;top:8%}.float.f2{right:0;top:30%}.float.f3{left:6%;bottom:6%}
.dotc{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--teal);margin-right:6px}
@media (min-width:900px){.hero{grid-template-columns:7fr 5fr;gap:48px;padding:24px 0 8px}.hero-vis{min-height:420px}.ring{width:300px}}

/* Bento */
.bento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bento>.card,.bento>.quick{grid-column:1/-1}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0;box-shadow:var(--sh-1);transition:box-shadow .3s var(--ease),transform .3s var(--ease),border-color .3s var(--ease)}
.tile.wide2{grid-column:1/-1}
.tile.tap{cursor:pointer}
.tile.tap:hover,.dayc:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.tile .l{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.tile .v{font-family:var(--display);font-weight:700;font-size:30px;line-height:1.1;letter-spacing:-.025em}
.tile .v.sm{font-size:22px}
.tile .v small{font-family:var(--body);font-weight:500;font-size:13px;color:var(--muted);letter-spacing:0}
.bar{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--navy));border-radius:3px;transition:width .45s var(--ease)}
.bar.over i{background:var(--crit)}.bar.teal i,.bar.blue i{background:var(--teal)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.big{font-family:var(--display);font-weight:700;font-size:40px;line-height:1.1;letter-spacing:-.03em;margin-bottom:8px}
.big small{font-family:var(--body);font-weight:500;font-size:14px;color:var(--muted);letter-spacing:0}
@media (min-width:900px){
  .bento{grid-template-columns:repeat(12,minmax(0,1fr));gap:20px}
  .bento>.coachcard{grid-column:span 7}.bento>.guide{grid-column:span 5}.bento>.guide.full{grid-column:1/-1}
  .bento>.tile{grid-column:span 3}.bento>.tile.wide2{grid-column:span 4}
  .bento>.tile:nth-of-type(1),.bento>.tile:nth-of-type(2),.bento>.tile:nth-of-type(3),.bento>.tile:nth-of-type(4){grid-column:span 2}
  .bento>.quick{grid-column:1/-1}.bento>.proto{grid-column:1/-1}
}
.coachcard{background:linear-gradient(160deg,#fff 0%,#fff 55%,var(--aqua) 140%);display:flex;flex-direction:column;gap:12px}
.ch{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ch h2{margin:0}
.brief{white-space:pre-wrap;font-size:16.5px;line-height:1.65;max-width:62ch;flex:1}
.skel{display:flex;flex-direction:column;gap:10px;padding:6px 0}
.skel i{height:12px;border-radius:6px;background:linear-gradient(90deg,var(--surface-2) 25%,#E8EEF2 37%,var(--surface-2) 63%);background-size:400% 100%;animation:shimmer 1.4s ease infinite}
.skel i:nth-child(2){width:86%}.skel i:nth-child(3){width:64%}
@keyframes shimmer{from{background-position:100% 0}to{background-position:0 0}}
.tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tl li{position:relative;padding:0 0 14px 22px;display:flex;flex-direction:column;border-left:2px solid var(--line);margin-left:5px}
.tl li:last-child{padding-bottom:0;border-left-color:transparent}
.tl li::before{content:"";position:absolute;left:-6px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid #C9D5DF}
.tl li b{font-weight:600;font-size:14.5px}
.tl li span{font-size:14px;color:var(--muted);line-height:1.5}
.tl li.past::before{background:#C9D5DF}
.tl li.past b{color:var(--muted)}
.tl li.now::before{background:var(--teal);border-color:var(--teal);box-shadow:0 0 0 5px rgba(25,167,160,.16)}
.tl li.now span{color:var(--text)}

.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick .qb{flex-direction:column;align-items:flex-start;gap:2px;min-height:92px;padding:14px 16px;background:var(--surface);color:var(--text);border-color:var(--line);border-radius:var(--r-m);box-shadow:var(--sh-1);text-align:left;line-height:1.3}
.quick .qb:hover{background:var(--surface);border-color:var(--teal);box-shadow:var(--sh-2)}
.quick .qb .ico{color:var(--blue);width:22px;height:22px;margin-bottom:6px}
.quick .qb b{font-weight:600;font-size:15px}
.quick .qb span{font-weight:400;font-size:13px;color:var(--muted)}
.quick .qb:first-child{grid-column:1/-1;background:var(--navy);border-color:var(--navy);color:#fff}
.quick .qb:first-child .ico{color:#8FDCD6}.quick .qb:first-child span{color:#C5D6E6}
@media (min-width:720px){.quick{grid-template-columns:repeat(5,minmax(0,1fr))}.quick .qb:first-child{grid-column:auto}.quick.insheet{grid-template-columns:repeat(2,minmax(0,1fr))}.quick.insheet .qb:first-child{grid-column:1/-1}}

.li{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.li:first-of-type{border-top:0}
.li img,.li .ic{width:48px;height:48px;border-radius:12px;object-fit:cover;flex:none;background:#EAF2F8;color:var(--blue);display:grid;place-items:center}
.li .ic.teal{background:var(--aqua);color:var(--teal)}
.li .lt{flex:1;min-width:0;display:flex;flex-direction:column}
.li .lt b{font-weight:600;overflow-wrap:anywhere}
.li .lv{font-weight:600;white-space:nowrap}
.li .x{background:none;border:0;color:var(--muted);font-size:22px;width:44px;padding:0;flex:none;box-shadow:none}
.li .x:hover{background:var(--surface-2);color:var(--crit);transform:none}

/* Coach */
.chat{display:flex;flex-direction:column;gap:14px;padding:18px}
.chatlog{display:flex;flex-direction:column;gap:14px;max-height:58vh;min-height:200px;overflow:auto;padding:4px}
.empty{max-width:56ch;margin:auto 0}
.chatlog .msg{display:flex;flex-direction:column;gap:3px;max-width:min(86%,68ch)}
.chatlog .msg.u{align-self:flex-end;align-items:flex-end}
.bub{padding:12px 16px;border-radius:16px 16px 16px 4px;background:var(--surface-2);overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.6}
.msg.u .bub{background:var(--navy);color:#fff;border-radius:16px 16px 4px 16px}
.bub.think{display:flex;gap:6px;padding:16px}
.bub.think i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:dots 1.1s ease-in-out infinite}
.bub.think i:nth-child(2){animation-delay:.15s}.bub.think i:nth-child(3){animation-delay:.3s}
@keyframes dots{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.logchip{align-self:center;display:inline-flex;align-items:center;gap:8px;background:var(--aqua);color:#0E6E69;border-radius:10px;padding:6px 12px;font-size:13.5px;font-weight:500;max-width:100%}
.logchip .ico{width:16px;height:16px}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
@media (min-width:900px){.chips{flex-wrap:wrap;overflow:visible}}
.chip{flex:none;background:var(--surface);color:var(--text);border-color:var(--line);border-radius:10px;font-weight:500;font-size:14px;min-height:38px;padding:0 14px}
.chip:hover{background:var(--surface);border-color:var(--teal);color:var(--navy)}
.chatform{display:flex;gap:10px;align-items:flex-end}
.chatform textarea{flex:1}

/* Plan, Verlauf */
.seg{display:inline-flex;background:var(--surface-2);border-radius:12px;padding:4px;gap:2px;align-self:flex-start;max-width:100%;overflow-x:auto}
.seg button{background:none;border:0;min-height:40px;padding:0 16px;font-size:14.5px;font-weight:500;color:var(--muted);box-shadow:none;transform:none;border-radius:9px;white-space:nowrap}
.seg button.on{background:var(--surface);color:var(--navy);font-weight:600;box-shadow:0 1px 2px rgba(18,59,99,.08),0 2px 8px rgba(18,59,99,.06)}
.days{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.dayc.fast{background:linear-gradient(170deg,var(--aqua),var(--surface) 46%)}
.dh{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}
.dh h2{margin:0;font-size:17px}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.kv div{display:flex;flex-direction:column}
.kv b{font-weight:600;font-family:var(--display);font-size:17px;letter-spacing:-.01em}
.dayc ul{font-size:14.5px;gap:6px;margin:0;color:var(--text)}
.tagp{display:inline-block;padding:3px 10px;border-radius:8px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--muted);white-space:nowrap}
.tagp.fast{background:var(--aqua);color:#0E6E69}.tagp.ex{background:#FBEAE8;color:var(--crit)}.tagp.eat{background:#EAF2F8;color:var(--blue)}.tagp.halten{background:#E9EEF4;color:var(--navy)}
.pre{white-space:pre-wrap;font-size:15px;max-width:75ch;margin-bottom:14px}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}
svg{max-width:100%}
.card>svg{width:100%;height:auto;display:block}
canvas#figure{width:100%;max-width:290px;height:auto;display:block;margin:0 auto 10px;border-radius:var(--r-m);background:radial-gradient(ellipse at 50% 36%,#fff 0%,#EAF2F8 80%)}
input[type=range]{padding:0;min-height:32px;border:0;background:none;accent-color:var(--teal);box-shadow:none}
.lg{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;color:var(--muted);margin-bottom:8px}
.lg i{display:inline-block;width:16px;height:0;border-top:3px solid;margin-right:6px;vertical-align:middle;border-radius:2px}
.lg i.dash{border-top-style:dashed}.lg i.box{height:9px;border:0}.lg i.dot{width:9px;height:9px;border:0;border-radius:50%}
.tblwrap{overflow:auto;border:1px solid var(--line);border-radius:var(--r-m);max-height:560px}
table{border-collapse:collapse;width:100%;min-width:680px;font-size:14px;font-variant-numeric:tabular-nums}
th,td{padding:11px 14px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
th:first-child,td:first-child,th:nth-child(2),td:nth-child(2){text-align:left}
td:last-child{white-space:normal}
thead th{position:sticky;top:0;background:var(--surface-2);font-weight:600;color:var(--muted);font-size:11.5px;text-transform:uppercase;letter-spacing:.07em}
tr[data-act]{cursor:pointer}tr[data-act] td{transition:background .2s var(--ease)}tr[data-act]:hover td{background:var(--bg)}
tr.fast td{background:rgba(228,247,245,.55)}
tr.today td{background:#EAF2F8;font-weight:600}
td.soll{font-weight:600}td.fatc{color:var(--blue)}td.istc{color:var(--blue);font-weight:600}
td.d-good{color:var(--teal);font-weight:600}td.d-over{color:var(--crit);font-weight:600}td.d-under{color:var(--warn);font-weight:600}
.v-mehr .foot-note,.view>.cap.foot{max-width:80ch}

/* Dialog */
dialog{border:0;padding:0;background:transparent;width:100%;max-width:580px;max-height:100dvh;margin:auto auto 0}
dialog[open]{animation:sheet .32s var(--ease)}
@keyframes sheet{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
dialog::backdrop{background:rgba(18,35,51,.42);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.sh{background:var(--surface);border-radius:24px 24px 0 0;padding:26px 20px calc(24px + env(safe-area-inset-bottom));max-height:92dvh;overflow:auto;display:flex;flex-direction:column;gap:10px;box-shadow:var(--sh-2)}
.sh h2{font-size:22px;margin-bottom:0}
@media (min-width:720px){dialog{margin:auto}.sh{border-radius:24px;padding:30px}}
.photo{border:1.5px dashed #C9D5DF;border-radius:var(--r-m);padding:20px;align-items:center;text-align:center;cursor:pointer;color:var(--text);font-size:15px;background:var(--bg);transition:border-color .2s var(--ease)}
.photo:hover{border-color:var(--teal)}
.photo input{position:absolute;width:1px;height:1px;opacity:0;min-height:0;padding:0}
.photo:focus-within{border-color:var(--teal);box-shadow:0 0 0 4px rgba(25,167,160,.14)}
.photo img{max-width:100%;max-height:260px;border-radius:12px;display:block;margin:0 auto}
.items{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r-m)}
.items li{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;border-top:1px solid var(--line);font-size:14.5px}
.items li:first-child{border-top:0}
.msg.info,.msg.warn,.msg.bad{padding:11px 14px;border-radius:12px;font-size:14.5px;display:block;margin:0;max-width:none}
.msg.info{background:#EAF2F8;color:var(--navy)}.msg.warn{background:#FDF5E3;color:#7A5108}.msg.bad{background:#FBEAE8;color:#8E2A22}

#toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translate(-50%,16px);background:var(--text);color:#fff;padding:12px 18px;border-radius:14px;font-size:14.5px;max-width:min(92vw,540px);opacity:0;pointer-events:none;transition:opacity .25s var(--ease),transform .25s var(--ease);z-index:60;box-shadow:var(--sh-2)}
#toast.show{opacity:1;transform:translate(-50%,0)}
#toast.bad{background:var(--crit)}
@media (min-width:900px){#toast{bottom:32px}}

/* Fuß */
.foot{background:var(--navy);color:#C5D6E6;margin-top:24px;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.foot-in{max-width:1360px;margin:0 auto;padding:40px 20px;display:grid;grid-template-columns:1fr;gap:28px}
.foot .brand{color:#fff;margin-bottom:10px}
.foot .brand svg rect{fill:#fff}.foot .brand svg path{stroke:var(--navy)}
.foot p{max-width:46ch;font-size:14px;margin:0}
.fcol{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.fcol b{color:#fff;font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:600;margin-bottom:4px}
button.flink{color:#C5D6E6;font-size:14.5px;min-height:28px}
button.flink:hover{color:#fff;background:none}
@media (min-width:900px){.foot{padding-bottom:0}.foot-in{grid-template-columns:2fr 1fr 1fr;padding:56px 32px}}

/* Anmeldung und Einrichtung */
.auth{max-width:460px;margin:6vh auto;padding:36px 28px;display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--sh-2)}
@media (max-width:520px){.auth{margin:0;border-radius:0;border:0;box-shadow:none;min-height:100dvh;padding:40px 20px}}
.auth h1{font-size:32px}
.auth h2{margin:10px 0 0}
code{background:var(--surface-2);padding:1px 6px;border-radius:5px;font-size:.92em}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* Handy-Feinschliff */
@media (max-width:899px){
  .tile .v small{display:block;margin-top:3px}
  .tile{padding:16px}
  .hero-txt h1{max-width:none}
}
@media (max-width:600px){
  .li{display:grid;grid-template-columns:44px minmax(0,1fr) 40px;column-gap:12px;row-gap:2px;align-items:start}
  .li img,.li .ic{width:44px;height:44px;grid-row:1/3}
  .li .lt{grid-column:2}
  .li .lv{grid-column:2;grid-row:2;font-size:14.5px}
  .li .x{grid-column:3;grid-row:1/3;width:40px;align-self:center}
  .card{padding:18px}
}
@media (max-width:899px){.chatlog{max-height:calc(100dvh - 450px);min-height:170px}}
@media (max-width:899px){.chatlog{max-height:calc(100dvh - 510px)}}
input[type=range]{-webkit-appearance:none;appearance:none;height:32px}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:var(--line)}
input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:var(--line)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:var(--teal);border:3px solid #fff;box-shadow:0 1px 4px rgba(18,59,99,.3);margin-top:-7px}
input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--teal);border:3px solid #fff;box-shadow:0 1px 4px rgba(18,59,99,.3)}
