/* MYMA – Basis-Designsystem (gemeinsam für Webseite, App, Trainer und Verwaltung) */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/barlow-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }

:root {
  --red: #d0202e;
  --red-dark: #a8161f;
  --red-on-dark: #ff5a66; /* Rot für Text auf dunklem Grund (Kontrast ≥ 4,5:1) */
  --red-soft: #fdeced;
  --ink: #14181f;
  --ink-2: #2b2f36;
  --muted: #646b76;
  --line: #e4e6ea;
  --line-strong: #cfd3d9;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-dark: #111418;
  --bg-dark-2: #1a1f26;
  --green: #167a3e; /* Kontrast ≥ 4,5:1 auf Weiß und green-soft */
  --green-soft: #e6f6ec;
  --amber: #9a5800; /* Kontrast ≥ 4,5:1 auf Weiß und amber-soft */
  --amber-soft: #fff4e0;
  --blue: #1c6dd0;
  --blue-soft: #e8f1fd;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06), 0 1px 1px rgba(20, 24, 31, .04);
  --shadow: 0 6px 24px rgba(20, 24, 31, .08), 0 2px 6px rgba(20, 24, 31, .05);
  --shadow-lg: 0 24px 60px rgba(20, 24, 31, .16);
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid rgba(208, 32, 46, .45); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); text-transform: uppercase; font-weight: 800; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.55; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.rule { width: 72px; height: 4px; border-radius: 4px; background: var(--red); margin: .2rem 0 1.4rem; border: 0; }
.text-center .rule, .rule.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sm { padding: clamp(36px, 5vw, 60px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #c9ced6; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
/* Lesbares Rot auf dunklen Flächen */
.section-dark .eyebrow, .hero .eyebrow, .app-hero .eyebrow, .auth-side .eyebrow, .bw-summary .eyebrow, .ticket-head .eyebrow, .graphic-panel .eyebrow, .site-footer .eyebrow { color: var(--red-on-dark); }
.section-dark a:not(.btn), .auth-side a:not(.btn), .app-hero a:not(.btn) { color: var(--red-on-dark); }
.section-dark .lead, .section-dark .muted { color: #9aa2ad; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.text-center { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* Buttons */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.35em; border-radius: 8px; border: 2px solid transparent; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; background: var(--ink); color: #fff; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(208, 32, 46, .28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f1; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); padding-left: .6em; padding-right: .6em; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c2c6; }
.btn-danger:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; }
.btn-lg { font-size: 1.08rem; padding: 1em 1.6em; }
.btn-sm { font-size: .88rem; padding: .5em .9em; border-radius: 7px; }
.btn-block { width: 100%; }
.btn { max-width: 100%; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; } }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Karten */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.card-accent { border-left: 4px solid var(--red); border-radius: 4px var(--radius) var(--radius) 4px; }
.card-soft { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.card h3 { margin-bottom: .35em; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--red); padding: 18px 22px; border-radius: 4px 10px 10px 4px; }
.callout strong:first-child { color: var(--red); display: block; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; margin-bottom: 4px; }
.callout-dark { background: var(--bg-dark-2); color: #c9ced6; }

/* Formulare */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: .72em .85em; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(208, 32, 46, .35); }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.check input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #e9a1a7; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; line-height: 1.45; cursor: pointer; margin-bottom: 12px; }
.check[hidden] { display: none; } /* sonst überschreibt display:flex das hidden-Attribut (z. B. Digital-Zustimmung im Shop) */
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.help { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hinweise */
.alert { padding: 14px 18px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; font-size: .96rem; }
.alert-success { background: var(--green-soft); border-color: #b6e3c6; color: #135c33; }
.alert-error { background: var(--red-soft); border-color: #f4c1c5; color: #8e1520; }
.alert-info { background: var(--blue-soft); border-color: #c4dbf7; color: #134b8f; }
.alert-warn { background: var(--amber-soft); border-color: #f5d9a8; color: #7a4a00; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.badge-red { background: var(--red-soft); color: var(--red-dark); }
.badge-green { background: var(--green-soft); color: #13703b; }
.badge-amber { background: var(--amber-soft); color: #8a5300; }
.badge-blue { background: var(--blue-soft); color: #1553a0; }
.badge-dark { background: var(--ink); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; background: var(--ink); color: #fff; font-weight: 600; padding: 11px 14px; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
.table th:first-child { border-top-left-radius: 0; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:nth-child(even) td { background: #fafbfc; }
.table-light th { background: var(--bg-soft); color: var(--ink); border-bottom: 1px solid var(--line); }

/* Fortschritt */
.progress { height: 12px; background: #e9ebef; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ef4351); border-radius: 99px; transition: width .6s var(--ease); }
.progress.is-done > span { background: linear-gradient(90deg, var(--green), #37c172); }

/* Icons */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 30px; height: 30px; }

/* Vorschau-Hinweis */
.demo-banner { background: #fff7d6; color: #6b5200; font-size: .85rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid #f0e2a6; }
.demo-banner a { color: inherit; font-weight: 700; }
.placeholder { background: #fff3c4; color: #6b5200; padding: 0 .3em; border-radius: 4px; font-style: normal; }

/* Belt-Chip */
.belt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.belt-swatch { width: 34px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); flex: none; }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s var(--ease); z-index: 300; font-weight: 600; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
