/* ============================================================
   Startfrei — der Coaching-Hub von dinkelfrei · Design-System
   Dunkler Teal-Look wie in der Dinkelfrei-App / Landingpage
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #071e1a;
  --bg-2: #092420;
  --card: #0d2f29;
  --card-2: #113831;
  --card-3: #16443b;
  --line: #1c473f;
  --line-soft: #163b34;
  --ink: #f2faf7;
  --muted: #9cc0b6;
  --muted-2: #6f978d;
  --accent: #3ddbb0;
  --accent-deep: #14b88c;
  --accent-soft: rgba(61, 219, 176, 0.12);
  --gold: #f5c04e;
  --bad: #e2604b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(61, 219, 176, 0.07), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(20, 184, 140, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
p { color: #cfe4dd; margin-bottom: 0.8rem; }
strong { color: var(--ink); font-weight: 700; }
ul { padding-left: 1.25rem; color: #cfe4dd; }
li { margin-bottom: 0.35rem; }
hr { border: none; border-top: 1px solid var(--line); margin: 1.6rem 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7, 30, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 1.2rem;
}
/* Logo im Marken-Muster von dinkelfrei.de:
   Zeile 1: „startfrei" (start weiß, frei gedimmt) + kleines „by"
   Zeile 2: DINKELFREI gesperrt, bündig zur ersten Zeile ausgetrieben */
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; width: max-content; }
.brand-name { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; color: #ffffff; white-space: nowrap; }
.brand-name em { font-style: normal; color: rgba(255, 255, 255, 0.75); }
.brand-by { font-size: 0.55em; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); margin-left: 7px; vertical-align: 2px; }
.brand-sub {
  font-size: 0.65rem; letter-spacing: 0.34em; color: rgba(255, 255, 255, 0.75);
  font-weight: 600; text-transform: uppercase; margin-top: 1px;
  /* bündig über die volle Logobreite spreizen (Fallback: letter-spacing oben) */
  text-align: justify; text-align-last: justify;
}

/* Desktop-Tabs oben */
.tabs-desktop { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs-desktop::-webkit-scrollbar { display: none; }
.tabs-desktop .tab-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 0.88rem;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tabs-desktop .tab-btn:hover { color: var(--ink); background: var(--card); }
.tabs-desktop .tab-btn.active { color: #06251f; background: var(--accent); border-color: var(--accent); }
.tabs-desktop .tab-btn.active svg { stroke: #06251f; }
.tab-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* Mobile Bottom-Nav (App-Feeling) */
.tabs-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(9, 33, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabs-mobile .tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--muted-2); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 6px 2px; border-radius: 10px;
  transition: color 0.15s ease;
}
.tabs-mobile .tab-btn svg { width: 22px; height: 22px; }
.tabs-mobile .tab-btn.active { color: var(--accent); }

/* ---------- Sektionen ---------- */
.sec { display: none; max-width: 820px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }
.sec.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(61, 219, 176, 0.25);
  font-weight: 700; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 0.9rem;
}
.stitle { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 0.3rem; }
.ssub { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 1.2rem; }

/* ---------- Karten ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.card-accent { border-color: rgba(61, 219, 176, 0.35); }
.hl {
  background: var(--card-2);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}
.hl p { margin: 0; }

.kicker {
  font-weight: 800; color: var(--accent); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem;
}

/* Feature-Liste (Home) */
.feature-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.9rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid rgba(61, 219, 176, 0.2);
  border-radius: 12px; font-size: 1.15rem;
}
.feature-row h4 { font-size: 0.98rem; margin-bottom: 2px; }
.feature-row p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Schritte (Home) */
.step-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1rem; }
.step-row:last-child { margin-bottom: 0; }
.step-num {
  width: 28px; height: 28px; flex-shrink: 0; margin-top: 1px;
  background: var(--accent); color: #06251f;
  font-weight: 800; font-size: 0.85rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.step-row h4 { font-size: 0.98rem; margin-bottom: 2px; }
.step-row p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Akkordeons ---------- */
.acc { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 0.7rem; background: var(--card); }
.acc-h {
  width: 100%; text-align: left;
  padding: 1rem 1.15rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: transparent; border: none; color: var(--ink);
  transition: background 0.15s;
}
.acc-h:hover { background: var(--card-2); }
.acc-h h4 { font-size: 1rem; font-weight: 700; }
.acc-h .arr {
  color: var(--accent); font-size: 1.25rem; font-weight: 400;
  transition: transform 0.2s; flex-shrink: 0; line-height: 1;
}
.acc-h.open .arr { transform: rotate(45deg); }
.acc-b { display: none; padding: 0.4rem 1.15rem 1.15rem; }
.acc-b.open { display: block; }

/* ---------- Tabellen ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0.5rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.tbl th {
  background: var(--card-3); color: var(--accent);
  font-weight: 700; padding: 9px 11px; text-align: left;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.tbl td { padding: 9px 11px; border-top: 1px solid var(--line-soft); color: #c7ddd6; vertical-align: top; }
.tbl td a { color: var(--accent); text-decoration: none; font-size: 12px; white-space: nowrap; font-weight: 600; display: inline-block; padding: 6px 8px 6px 0; }
.tbl td a:hover { text-decoration: underline; }
.ex-name { color: var(--ink); font-weight: 700; font-size: 13.5px; }

/* ---------- Workout-Log ---------- */
.wlog-section {
  background: var(--card-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 1rem; margin-top: 1rem;
}
.wlog-section h5 { color: var(--accent); font-size: 0.92rem; margin-bottom: 0.5rem; }
.wlog-ex { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; margin: 1rem 0 0.3rem; }
.wlog-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wlog-tbl { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 430px; }
.wlog-tbl th { background: var(--card-3); color: var(--muted); font-weight: 700; padding: 6px 8px; text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wlog-tbl td { padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.wlog-tbl .wk-lbl { color: var(--muted); font-size: 11px; white-space: nowrap; padding: 3px 8px; width: 44px; font-weight: 600; }
.wlog-tbl input {
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 6px 8px; border-radius: 7px; font-size: 12px; width: 100%;
}
.wlog-tbl input:focus { outline: none; border-color: var(--accent); }
.wlog-tbl .wk-sep td { border-bottom: 2px solid var(--line); }

/* ---------- Programm-Auswahl ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin: 1rem 0 1.4rem; }
.pc {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.1rem 0.9rem; text-align: center;
  cursor: pointer; transition: all 0.15s ease;
}
.pc:hover { border-color: rgba(61, 219, 176, 0.4); transform: translateY(-1px); }
.pc.sel { border-color: var(--accent); background: var(--accent-soft); }
.pc .em { font-size: 1.7rem; margin-bottom: 0.35rem; }
.pc h4 { font-size: 0.98rem; }
.pc p { font-size: 11.5px; color: var(--muted); margin: 0; }
.wc { display: none; }
.wc.active { display: block; animation: fadeIn 0.25s ease; }

/* ---------- Formulare ---------- */
.fg { display: flex; flex-direction: column; gap: 0.35rem; }
.fg label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fg input, .fg select, .fg textarea {
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: 15px; width: 100%;
  transition: border-color 0.15s;
  appearance: none; -webkit-appearance: none;
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239cc0b6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--accent); }
.fg textarea { resize: vertical; min-height: 76px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 0.9rem; }

/* Radio-Pills */
.radio-stack { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.4rem; }
.ro-pill {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  font-size: 15px; color: #cfe4dd;
  background: var(--card-2); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: var(--radius-sm); width: 100%;
  transition: all 0.15s;
}
.ro-pill input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.ro-pill:has(input:checked) { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  transition: all 0.15s ease; border: none;
}
.btn-primary { background: #ffffff; color: #06251f; }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #06251f; }
.btn-accent:hover { background: #5fe6c2; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { background: var(--card-3); color: #c7ddd6; }
.btn-ghost:hover { background: var(--line); }
.btn-sm { padding: 7px 15px; font-size: 0.8rem; }
.btn-danger { background: transparent; color: var(--bad); border: 1.5px solid rgba(226, 96, 75, 0.4); }
.btn-danger:hover { background: rgba(226, 96, 75, 0.1); }

/* ---------- Chips (Wochen / Tage) ---------- */
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--accent); color: #06251f; border-color: var(--accent); }
.chip.logged { border-color: var(--accent-deep); color: var(--accent); }
.chip.logged.active { background: var(--accent); color: #06251f; }

/* ---------- Stat-Karten ---------- */
.scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.7rem; margin: 1rem 0; }
.sc {
  background: var(--card); border-radius: var(--radius-sm);
  padding: 0.95rem 0.6rem; text-align: center; border: 1px solid var(--line-soft);
}
.sc .v { font-size: 1.55rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.sc .l { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* Fortschrittsbalken */
.sbar { margin-bottom: 0.85rem; }
.sbar-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.sbar-lbl span:last-child { color: var(--ink); }
.sbar-t { height: 8px; background: var(--card-3); border-radius: 5px; overflow: hidden; }
.sbar-f { height: 100%; background: var(--gold); border-radius: 5px; transition: width 0.3s; }
.sbar-f.good { background: var(--accent); }
.sbar-f.over { background: var(--bad); }

/* Mini-Balkenchart (Ernährung, Wochen-Flexibilität) */
.mini-bars { display: flex; gap: 4px; align-items: flex-end; height: 72px; margin-bottom: 0.4rem; }
.mini-bars > div {
  flex: 1; border-radius: 4px 4px 0 0;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 4px;
}
.mini-bars span { font-size: 9px; font-weight: 700; }
.mb-flat { background: var(--card-3); }
.mb-flat span { color: var(--muted); }
.mb-low { background: var(--accent-deep); }
.mb-low span { color: #06251f; }
.mb-high { background: var(--gold); }
.mb-high span { color: #06251f; }

/* ---------- Rechner-Ergebnis ---------- */
.calc-result {
  background: var(--card); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem; margin: 1.3rem 0; display: none;
}
.cres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.cres-c { background: var(--card-2); border-radius: var(--radius-sm); padding: 0.95rem 0.5rem; text-align: center; }
.cres-c .cv { font-size: 1.8rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.cres-c .cv2 { font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.cres-c .cl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; font-weight: 600; }

/* ---------- Benachrichtigung ---------- */
.notif {
  background: var(--accent); color: #06251f;
  padding: 0.75rem 1.1rem; border-radius: var(--radius-sm);
  margin-top: 0.8rem; font-weight: 700; font-size: 13.5px; display: none;
}
.notif.show { display: block; animation: fadeIn 0.2s ease; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1.5px solid rgba(61, 219, 176, 0.35);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; margin: 2rem 0 1rem;
  text-align: center;
}
.cta h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.cta p { color: var(--muted); margin-bottom: 1.1rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Gewichtsgraf ---------- */
.trend-card svg { width: 100%; height: auto; display: block; }
.trend-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.trend-legend { display: flex; gap: 0.9rem; font-size: 12px; color: var(--muted); font-weight: 600; align-items: center; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { display: inline-block; border-radius: 999px; }
.trend-legend .dot-raw { width: 16px; height: 3px; background: rgba(124, 231, 198, 0.45); }
.trend-legend .dot-smooth { width: 16px; height: 4px; background: var(--accent); }

/* ---------- YouTube Click-to-Play ---------- */
.yt-facade {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: #04120f;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.yt-facade img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0.88; transition: opacity 0.2s ease, transform 0.4s ease;
}
.yt-facade:hover img, .yt-facade:focus-visible img { opacity: 1; transform: scale(1.02); }
/* Play-Button bewusst grau-transparent statt Teal */
.yt-facade .yt-play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(35, 40, 42, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: scale(1.1); background: rgba(60, 66, 68, 0.75); }
.yt-facade .yt-play svg { width: 32px; height: 32px; fill: rgba(255, 255, 255, 0.92); margin-left: 4px; transition: fill 0.2s; }
.yt-facade:hover .yt-play svg, .yt-facade:focus-visible .yt-play svg { fill: #ffffff; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade.playing { cursor: default; }

/* ---------- Rezeptkarten ---------- */
.recipe {
  background: var(--card-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 0.8rem;
}
.recipe:last-child { margin-bottom: 0; }
.recipe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.15rem; }
.recipe-head h5 { font-size: 1.02rem; font-weight: 800; }
.recipe-kcal {
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(61, 219, 176, 0.25);
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.recipe-macros { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; }
.recipe p { font-size: 0.88rem; margin-bottom: 0.45rem; }
.recipe p:last-child { margin-bottom: 0; }

/* ---------- Warn-Karte (Daten nur im Browser) ---------- */
.warn-card {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: rgba(245, 192, 78, 0.07);
  border: 1.5px solid rgba(245, 192, 78, 0.45);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-bottom: 1.4rem;
}
.warn-card .warn-ico { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.warn-card h4 { font-size: 1rem; color: var(--gold); margin-bottom: 0.35rem; }
.warn-card p { font-size: 0.88rem; color: #d9e7e2; margin: 0; }

/* ---------- Range-Slider (Teal) ---------- */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 4px 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff; border: 3px solid var(--accent);
  margin-top: -7px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 5px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #ffffff; border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- Video-Embed ---------- */
.video-embed { margin: 1rem 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Maße ---------- */
.mcard { background: var(--card-2); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 0.7rem; border: 1px solid var(--line-soft); }
.mcard .mlabel {
  background: transparent; border: none; color: var(--accent);
  font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  width: 100%; cursor: text; margin-bottom: 0.7rem; font-family: inherit;
}
.mcard .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.6rem; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 1.6rem 0 0.5rem; border-top: 1px solid var(--line-soft); margin-top: 1rem; }
.foot p { color: var(--muted); font-size: 13.5px; }

/* ---------- Responsive ---------- */
/* Breakpoint bewusst bei 860px: darunter würden die 6 Desktop-Tabs neben dem
   Logo überlaufen, also übernimmt dort die App-Bottom-Nav. */
@media (max-width: 860px) {
  .tabs-desktop { display: none; }
  .tabs-mobile { display: flex; }
  body { padding-bottom: 76px; }
  .sec { padding: 1.2rem 1rem 3rem; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .scards { grid-template-columns: repeat(2, 1fr); }
  .cres-grid { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .card { padding: 1.05rem 1.1rem; }
  .cta { padding: 1.3rem 1.1rem; }
  /* iOS Safari zoomt beim Fokus in Felder mit weniger als 16px Schrift —
     deshalb auf Touch-Größen alle Eingabefelder auf 16px anheben */
  .fg input, .fg select, .fg textarea, .wlog-tbl input { font-size: 16px; }
}
@media (max-width: 380px) {
  .fgrid { grid-template-columns: 1fr; }
}

/* ---------- Rechtliches (globaler Mini-Footer) ---------- */
.site-legal {
  max-width: 820px; margin: 0 auto;
  padding: 0.6rem 1.2rem 2.2rem;
  display: flex; gap: 0.6rem; justify-content: center; align-items: center;
  font-size: 12.5px; color: var(--muted-2);
}
.site-legal a { color: var(--muted-2); text-decoration: underline; }
.site-legal a:hover { color: var(--muted); }
.site-legal .cmp-link { color: var(--muted-2); }
@media (max-width: 860px) {
  .site-legal { padding-bottom: 5.5rem; }
}
