/* =========================================================
   Coach Deck Beta — Kopfleiste, Fuß, Feedback-Fenster
   ========================================================= */
.cb-bar{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem clamp(1rem, 3vw, 2rem);
  background: var(--deep-end); color: #fff;
  border-bottom: 3px solid var(--lane);
}
.cb-brand{ display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff !important; flex: none; }
.cb-mark{
  display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 34px; height: 34px; border-radius: 9px;
  background: var(--pool); padding: 0 7px; box-sizing: border-box; flex: none;
}
.cb-mark i{ display: block; height: 4px; border-radius: 2px; background: var(--lane); }
.cb-mark i:nth-child(2){ background: var(--foam); width: 70%; }
.cb-mark i:nth-child(3){ width: 85%; }
.cb-name{ font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.cb-beta{
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  background: var(--lane); color: var(--lane-ink); padding: .12rem .45rem; border-radius: 999px;
}
.cb-nav{ display: flex; gap: .4rem; margin-left: auto; align-items: center; }
.cb-btn{
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff !important; text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.04);
}
.cb-btn:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }
.cb-btn[aria-current="page"]{ background: rgba(255,255,255,.16); border-color: var(--lane); }
.cb-btn svg{ flex: none; }
.cb-act{ display: flex; align-items: center; gap: .5rem; flex: none; }
.cb-fb{
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700;
  background: var(--lane); color: var(--lane-ink); padding: .5rem .95rem; border-radius: 999px; white-space: nowrap;
}
.cb-fb:hover{ filter: brightness(1.05); }
.cb-fb:focus-visible, .cb-theme:focus-visible, .cb-btn:focus-visible{ outline: 2px solid var(--lane); outline-offset: 2px; }
.cb-theme{
  appearance: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1rem;
}
@media (max-width: 900px){
  .cb-btn span{ display: none; }
  .cb-btn{ padding: .45rem; width: 36px; height: 36px; justify-content: center; }
}
@media (max-width: 480px){
  .cb-bar{ gap: .4rem; padding: .55rem .7rem; }
  .cb-name, .cb-beta{ display: none; }
  .cb-nav{ gap: .25rem; }
  .cb-btn, .cb-theme{ width: 34px; height: 34px; }
  .cb-act{ gap: .3rem; }
  .cb-fb{ padding: .45rem .65rem; font-size: .82rem; }
}

.cb-pagehead{ padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1rem, 3vw, 2rem) .2rem; max-width: 1600px; margin: 0 auto; }
.cb-pagehead h1{ font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.cb-pagehead p{ margin: .2rem 0 0; font-size: .95rem; }

.cb-foot{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  margin: 2.5rem auto 0; max-width: 1600px; padding: 1rem clamp(1rem, 3vw, 2rem) 1.6rem;
  border-top: 1px solid var(--border); font-size: .8rem; color: var(--ink-soft);
}
.cb-foot span:first-child{ font-weight: 600; color: var(--ink); }

/* Willkommen (nur beim ersten Besuch) */
.cb-welcome{
  max-width: 1600px; margin: .8rem auto 0; padding: 0 clamp(1rem, 3vw, 2rem);
}
.cb-welcome > div{
  display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--lane);
  border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow-sm);
}
.cb-welcome .txt{ flex: 1 1 320px; }
.cb-welcome h2{ font-size: 1.2rem; margin: 0 0 .2rem; }
.cb-welcome p{ margin: 0; font-size: .9rem; }
.cb-welcome ol{ margin: .4rem 0 0; padding-left: 1.2rem; font-size: .88rem; color: var(--ink); }
.cb-welcome .btns{ display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Feedback-Fenster */
.cb-dlg{
  width: min(620px, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.cb-dlg::backdrop{ background: rgba(8,22,30,.55); }
.cb-dlg-in{ padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .75rem; }
.cb-dlg-head{ display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cb-dlg-head h2{ font-size: 1.45rem; margin: 0; }
.cb-x{ appearance: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; flex: none; }
.cb-lead{ margin: -.3rem 0 0; font-size: .9rem; }
.cb-qs{ display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .8rem; }
.cb-q{ display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.cb-stars{ display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.cb-stars label{ cursor: pointer; position: relative; }
.cb-stars input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.cb-stars span{ font-size: 1.55rem; line-height: 1; padding: 0 .08rem; color: var(--border-strong); transition: color .1s ease; }
.cb-stars .sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* DOM 5→1, angezeigt 1→5: gewählter Stern + alle links davon leuchten */
.cb-stars label:hover span, .cb-stars label:hover ~ label span,
.cb-stars label:has(input:checked) span, .cb-stars label:has(input:checked) ~ label span{ color: #E8A800; }
body[data-theme="dark"] .cb-stars label:hover span, body[data-theme="dark"] .cb-stars label:hover ~ label span, body[data-theme="dark"] .cb-stars label:has(input:checked) span, body[data-theme="dark"] .cb-stars label:has(input:checked) ~ label span{ color: var(--lane); }
.cb-stars input:focus-visible + span{ outline: 2px solid var(--pool); border-radius: 4px; }
.cb-f{ display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; font-weight: 600; color: var(--ink); }
.cb-f textarea, .cb-f input, .cb-f select{ font: inherit; font-weight: 400; font-size: .92rem; }
.cb-row{ display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px){ .cb-row{ grid-template-columns: 1fr; } }
.cb-seg{ display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.cb-seg label{ cursor: pointer; }
.cb-seg input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.cb-seg span{ display: block; padding: .38rem .8rem; font-weight: 600; font-size: .84rem; }
.cb-seg input:checked + span{ background: var(--pool); color: #fff; }
.cb-seg input:focus-visible + span{ outline: 2px solid var(--pool); outline-offset: -2px; }
.cb-chk{ display: flex; gap: .5rem; align-items: center; font-size: .86rem; }
.cb-msg{ margin: 0; font-size: .86rem; color: var(--ok); min-height: 1.2em; }
.cb-msg.bad{ color: var(--flag); }
.cb-btns{ display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.cb-btns .cb-fb{ padding: .6rem 1.2rem; }

@media print{ .cb-bar, .cb-pagehead, .cb-foot, .cb-welcome{ display: none !important; } }

[hidden]{ display: none !important; }
.cb-fb .s{ display: none; }
@media (max-width: 640px){ .cb-fb .l{ display: none; } .cb-fb .s{ display: inline; } }

/* Belastungszonen-Tabellen */
.cz-dlg{ width: min(1100px, calc(100vw - 1.5rem)); }
.cz-wrap{ overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.cz-wrap:focus-visible{ outline: 2px solid var(--pool); outline-offset: 2px; }
.cz-tbl{ width: 100%; border-collapse: collapse; font-size: .84rem; line-height: 1.4; }
.cz-tbl.cz-bz{ min-width: 920px; }
.cz-tbl.cz-us{ min-width: 720px; }
.cz-tbl th, .cz-tbl td{ padding: .5rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cz-tbl thead th{ background: var(--pool); color: #fff; font-weight: 700; font-size: .8rem; white-space: nowrap; }
body[data-theme="dark"] .cz-tbl thead th{ background: var(--bg-alt); color: var(--ink); }
.cz-tbl tbody th{ font-weight: 400; white-space: nowrap; background: var(--bg-alt); }
.cz-tbl tbody tr:last-child > *{ border-bottom: 0; }
.cz-tbl td:nth-child(2){ white-space: nowrap; }
.cz-sw{ display: inline-block; width: .9em; height: .9em; border-radius: 50%; border: 1px solid var(--border-strong); margin-right: .35rem; vertical-align: -.1em; }
.cz-note{ font-size: .84rem; margin: .7rem 0 0; color: var(--ink-soft); }
.cz-src{ font-size: .84rem; margin: .7rem 0 0; color: var(--ink); font-style: italic; }
.cz-btns{ display: flex; flex-wrap: wrap; gap: .5rem; }

.cb-foot a{ color: var(--ink-soft); text-underline-offset: 3px; }
.cb-foot a:hover{ color: var(--ink); }
.cb-legal{ display: inline-flex; gap: 1rem; }
.cb-priv{ margin: 0; font-size: .8rem; color: var(--ink-soft); }
.cb-priv a{ color: inherit; text-underline-offset: 2px; }
