/* BETAMOVE — Kletterschule Leipzig
   Design tokens, extracted from the original Claude Design canvas export. */
:root {
  --color-bg: #ffffff;
  --color-surface: #DEE4EC;
  --color-text: #114A7A;
  --color-divider: rgba(17, 74, 122, 0.20);
  --color-accent: #114A7A;
  --color-accent-2: #407397;

  --color-accent-100: #DEE4EC;
  --color-accent-200: #cbd7e4;
  --color-accent-300: #a9bccf;
  --color-accent-400: #6d92b2;
  --color-accent-500: #407397;
  --color-accent-600: #2f6088;
  --color-accent-700: #114A7A;
  --color-accent-800: #0d3a60;
  --color-accent-900: #092b47;

  --color-accent-2-100: #eaeff5;
  --color-accent-2-200: #DEE4EC;
  --color-accent-2-300: #bccbdb;
  --color-accent-2-400: #7fa1bd;
  --color-accent-2-500: #407397;
  --color-accent-2-600: #35648a;
  --color-accent-2-700: #1d5585;
  --color-accent-2-800: #114A7A;
  --color-accent-2-900: #0b3559;

  --color-neutral-100: #ffffff;
  --color-neutral-200: #f3f6fa;
  --color-neutral-300: #DEE4EC;
  --color-neutral-400: #b7c4d3;
  --color-neutral-500: #8b9cb0;
  --color-neutral-600: #5f7489;
  --color-neutral-700: #3c5a75;
  --color-neutral-800: #21415c;
  --color-neutral-900: #114A7A;

  --font-heading: "Poppins", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Poppins", system-ui, sans-serif;

  /* Not present in the design-token export — chosen to match the rounded,
     soft-shadow look used throughout the canvas. */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(17, 74, 122, 0.10), 0 1px 2px rgba(17, 74, 122, 0.06);
  --shadow-md: 0 10px 30px rgba(17, 74, 122, 0.14);
  --shadow-lg: 0 24px 60px rgba(9, 43, 71, 0.22);
}

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.btn { font-weight: 600; letter-spacing: 0.005em; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; text-decoration: none; cursor: pointer; border: none; font: inherit; }
.btn-primary { background: #114A7A; color: #ffffff; box-shadow: 0 4px 16px rgba(17, 74, 122, 0.30); }
.btn-primary:hover { background: #407397; box-shadow: 0 6px 20px rgba(17, 74, 122, 0.38); }
.btn-primary:active { background: #0d3a60; box-shadow: 0 2px 8px rgba(17, 74, 122, 0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-secondary { border: 2px solid #114A7A; color: #114A7A; background: #ffffff; }
.btn-secondary:hover { background: #DEE4EC; }
.btn-secondary:active { background: #cbd7e4; }
.btn-onblue { background: #ffffff; color: #114A7A; box-shadow: 0 4px 16px rgba(9, 43, 71, 0.35); }
.btn-onblue:hover { background: #DEE4EC; }
.btn-onblue:active { background: #cbd7e4; }
.btn-outline-light { border: 2px solid #ffffff; color: #ffffff; background: rgba(17, 74, 122, 0.35); }
.btn-outline-light:hover { background: #ffffff; color: #114A7A; }

html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-size: 17px; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); line-height: 1.6; }
* { box-sizing: border-box; }
img, video { max-width: 100%; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-neutral-300); border-radius: 999px; }
[hidden] { display: none !important; }

@keyframes bmFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Components missing from the (unavailable) external stylesheet ----
   Reconstructed from how they are used throughout the canvas export. */

.tag { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; font-weight: 600; font-size: 12px; line-height: 1.3; white-space: nowrap; background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-200); color: var(--color-neutral-700); }

.card { background: #ffffff; border: 1px solid var(--color-divider); border-radius: calc(var(--radius-lg) * 1.15); padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.elev-sm { box-shadow: var(--shadow-sm); }
.card-kicker { display: inline-block; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-600); margin-bottom: 2px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.input { width: 100%; font: inherit; font-size: 15px; color: var(--color-text); background: #ffffff; border: 2px solid var(--color-divider); border-radius: var(--radius-md); padding: 12px 16px; outline: none; transition: border-color 0.15s ease; }
.input:focus { border-color: var(--color-accent); }
textarea.input { resize: vertical; font-family: inherit; }

.radio { position: relative; display: flex; align-items: center; cursor: pointer; }
.radio input[type="checkbox"] { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; z-index: 1; }
.radio .dot { width: 22px; height: 22px; flex: none; border: 2px solid var(--color-accent-300); border-radius: 6px; background: #ffffff; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s ease, border-color 0.15s ease; }
.radio .dot::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: transparent; }
.radio input:checked + .dot { background: var(--color-accent); border-color: var(--color-accent); }
.radio input:checked + .dot::after { content: "✓"; width: auto; height: auto; color: #ffffff; font-size: 13px; font-weight: 700; }
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent-400); outline-offset: 2px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 16px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-700); opacity: 0.75; font-weight: 700; }
.table td { padding: 13px 16px; border-top: 1px solid var(--color-divider); }
.table tbody tr:first-child td { border-top: 1px solid var(--color-divider); }

.dot { display: inline-block; }

/* Preview banner for pages that need the future Supabase-backed account system */
.preview-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--color-accent-2-100); color: var(--color-accent-2-900); border: 1px solid var(--color-accent-2-300); border-radius: var(--radius-md); padding: 11px 18px; font-size: 13.5px; margin-bottom: 24px; }
.preview-banner svg { flex: none; }

/* Fehlerzustand bei Formularen (z.B. Supabase-Insert fehlgeschlagen oder
   noch nicht konfiguriert) — bewusst eigene, gedeckte Rot-Töne, da die
   Design-Tokens oben keine Fehlerfarbe vorsehen. */
.form-error { display: flex; gap: 10px; align-items: flex-start; background: #fbeaea; color: #7a2020; border: 1px solid #e3b3b3; border-radius: var(--radius-md); padding: 13px 18px; font-size: 14.5px; margin-top: 16px; max-width: 60ch; }
.form-error svg { flex: none; margin-top: 1px; }

/* Hover states that were `style-hover="…"` attributes in the canvas export
   (a Claude Design authoring feature with no plain-CSS equivalent) */
.hover-tint:hover { background: var(--color-accent-100) !important; }
.hover-border:hover { border-color: var(--color-accent-400) !important; }
.hover-underline:hover { text-decoration: underline; }

/* ---- Layout & nav ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider); }
[data-r="nav"] { max-width: 1160px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
[data-r="nav"] > a.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
[data-r="nav"] > a.brand img { height: 56px; width: auto; }
[data-r="navlinks"] { display: flex; align-items: center; gap: 22px; font-weight: 500; }
[data-r="navlinks"] a { font-size: 15px; color: var(--color-text); text-decoration: none; }
[data-r="navlinks"] a[aria-current="page"] { font-weight: 700; }
[data-r="navactions"] { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-login { display: flex; align-items: center; gap: 7px; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--color-accent); background: #ffffff; color: var(--color-accent); }
.nav-login:hover { background: var(--color-accent-100); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--color-accent); flex: none; }

.site-footer { background: var(--color-neutral-900); color: var(--color-neutral-200); }
.site-footer a { color: var(--color-neutral-200); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.footer-grid { max-width: 1160px; margin: 0 auto; padding: 56px 28px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 34px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-bottom { max-width: 1160px; margin: 0 auto; padding: 0 28px 44px; font-size: 13.5px; opacity: 0.55; }

/* Chat widget */
.chat-fab-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-fab { cursor: pointer; font: inherit; display: flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 0; background: var(--color-accent); color: #ffffff; font-size: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(17,74,122,0.38); }
.chat-fab:hover { background: var(--color-accent-2-500); }
.chat-panel { width: min(384px, calc(100vw - 48px)); height: min(580px, calc(100vh - 92px)); background: #ffffff; border-radius: calc(var(--radius-lg) * 1.4); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: bmFade 0.22s ease both; }
.chat-panel-head { background: var(--color-accent-700); color: #ffffff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; flex: none; }
.chat-panel-head button { cursor: pointer; font: inherit; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,0.18); color: #ffffff; font-size: 19px; line-height: 1; display: grid; place-items: center; }
.chat-list { flex: 1; min-height: 120px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 86%; border-radius: var(--radius-lg); padding: 13px 16px; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; }
.chat-msg.bot { align-self: flex-start; background: var(--color-surface); color: var(--color-text); }
.chat-msg.user { align-self: flex-end; background: var(--color-accent); color: #ffffff; }
.chat-suggestions { flex: none; padding: 0 16px 10px; display: flex; gap: 7px; flex-wrap: nowrap; overflow-x: auto; }
.chat-suggestions button { cursor: pointer; font: inherit; font-size: 12.5px; white-space: nowrap; flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-accent-300); background: #ffffff; color: var(--color-accent-700); }
.chat-suggestions button:hover { background: var(--color-accent-100); }
.chat-input-row { flex: none; border-top: 1px solid var(--color-divider); padding: 11px 14px; display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 110px; resize: none; border: 2px solid var(--color-divider); border-radius: var(--radius-md); padding: 12px 14px; font: inherit; font-size: 15.5px; color: var(--color-text); outline: none; background: #ffffff; }
.chat-input-row textarea:focus { border-color: var(--color-accent); }
.chat-input-row button { cursor: pointer; font: inherit; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--color-accent); color: #ffffff; display: grid; place-items: center; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: 11px; line-height: 1.4; opacity: 0.55; }

/* Accordion / disclosure chevrons used for FAQ, team bios, course details */
.disclosure-btn { cursor: pointer; font: inherit; text-align: left; background: transparent; border: 0; padding: 0; display: flex; gap: 14px; align-items: center; color: inherit; }
.disclosure-mark { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--color-accent-100); color: var(--color-accent-700); display: grid; place-items: center; font-size: 20px; font-weight: 700; line-height: 1; transition: background 0.2s ease, color 0.2s ease; }
.disclosure-btn[aria-expanded="true"] .disclosure-mark { background: var(--color-accent-700); color: #ffffff; }

/* ---- Responsive rules (from the canvas export's own breakpoints) ---- */
@media (max-width: 1040px) {
  [data-r="2col"] { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  [data-r="card"] { flex-direction: column !important; }
  [data-r="card"] > [role="img"] { width: 100% !important; min-height: 210px !important; }
  [data-r="aside"] { position: static !important; }
  [data-r="steps"] { flex-wrap: wrap !important; }
  [data-r="steps"] > li { min-width: 44%; }
  [data-r="path"] { grid-template-columns: minmax(0, 1fr) !important; }
  [data-r="dash"] { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  [data-r="dashside"] { position: static !important; top: auto !important; }
  [data-r="trust"] { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; padding: 24px 26px !important; }
  [data-r="medal"] { position: static !important; width: 150px !important; height: 150px !important; margin: -46px auto 0 !important; }
  [data-r="hero"] h1 { font-size: 34px !important; }
  [data-r="summary"] { grid-template-columns: minmax(0, 1fr) !important; }
  [data-r="summary"] dt { padding-bottom: 0 !important; border-top: 1px solid var(--color-divider) !important; }
  [data-r="summary"] dd { padding-top: 2px !important; border-top: 0 !important; }
}
@media (max-width: 560px) {
  [data-r="pad"] { padding-left: 18px !important; padding-right: 18px !important; }

  /* Startseiten-Hero: auf schmalen Screens war der Inhalt per flex-end nach
     unten gedrückt (funktioniert bei breiten Desktop-Bildern, auf hohen
     Handy-Screens landet dadurch das Badge sehr weit unten und die Buttons
     rutschen teils aus dem ersten Bildschirm). Für Mobile: Inhalt oben
     ausrichten, Section-Höhe reduzieren, weniger Innenabstand oben. */
  [data-r="herowrap"] { min-height: auto !important; }
  [data-r="hero"] { justify-content: flex-start !important; padding: 22px 18px 34px !important; gap: 14px !important; min-height: 480px; }
}

/* Mobile hamburger nav — an addition on top of the canvas export, which did
   not define a collapsed mobile nav (it assumed the SPA framework's own
   chrome). Collapses nav links behind a toggle below 900px. */
@media (max-width: 900px) {
  [data-r="nav"] { flex-wrap: nowrap; gap: 14px !important; padding: 10px 20px !important; position: relative; }
  [data-r="nav"] > a.brand img { height: 46px !important; }
  [data-r="navlinks"] { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #ffffff; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 20px 18px; border-bottom: 1px solid var(--color-divider); box-shadow: var(--shadow-md); }
  [data-r="navlinks"].open { display: flex; }
  [data-r="navlinks"] a { display: block; padding: 10px 4px; width: 100%; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  [data-r="navactions"] .btn-primary { display: none; }
}
