/* =========================================================================
   CUB3SOFT Akademie — Design-System
   Vorgaben: DESIGNVORGABEN.md · Look von cub3soft.de
   ========================================================================= */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                           */
/* ------------------------------------------------------------------ */

:root {
  /* Marke */
  --cub-primary: #2dafc8;
  --cub-accent: #5ee7ff;

  /* Flächen */
  --cub-bg: #0a0d11;
  --cub-panel: #12171d;
  --cub-panel-2: #1a2129;
  --cub-panel-3: #222b35;
  --cub-line: rgba(45, 175, 200, 0.18);
  --cub-line-soft: rgba(255, 255, 255, 0.08);

  /* Text */
  --cub-text: #ffffff;
  --cub-muted: rgba(255, 255, 255, 0.66);
  --cub-faint: rgba(255, 255, 255, 0.42);

  /* Signale */
  --cub-gold: #f1c40f;
  --cub-success: #2ecc71;
  --cub-danger: #ff5c6c;
  --cub-warning: #ff9f43;

  /* Effekte */
  --cub-glow: 0 0 20px rgba(45, 175, 200, 0.45);
  --cub-glow-soft: 0 0 32px rgba(45, 175, 200, 0.18);
  --cub-radius: 14px;
  --cub-radius-sm: 9px;
  --cub-radius-lg: 22px;
  --cub-ease: cubic-bezier(0.22, 0.9, 0.28, 1);

  /* Maße */
  --cub-wrap: 1180px;
  --cub-nav-h: 68px;

  color-scheme: dark;
}

/* ------------------------------------------------------------------ */
/* 2. Grundgerüst                                                      */
/* ------------------------------------------------------------------ */

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

/* Das Attribut `hidden` muss immer stärker sein als ein `display` aus einer
   Klasse. Sonst blendet `element.hidden = true` im JavaScript nichts aus —
   ein Fehler, den man erst im fertigen Bild sieht. */
[hidden] { display: none !important; }

html {
  /* Kein scroll-behavior: smooth — Chrome auf Michaels Rechner führt die
     Animation nicht aus, Sprungmarken blieben dann einfach stehen (06.09.2026). */
  /* Sprungziele nicht unter der fixierten Kopfleiste verstecken. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cub-text);
  background:
    radial-gradient(ellipse at 20% 12%, rgba(45, 175, 200, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 84% 76%, rgba(94, 231, 255, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #0d1218 0%, #0a0d11 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dezente Rausch-Textur, damit die Flächen nicht digital-flach wirken */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cub-accent);
  text-decoration: none;
  transition: color 0.24s var(--cub-ease), text-shadow 0.24s var(--cub-ease);
}
a:hover { color: #fff; text-shadow: 0 0 10px rgba(45, 175, 200, 0.75); }

:focus-visible {
  outline: 2px solid var(--cub-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

code, kbd, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}

hr {
  border: 0;
  border-top: 1px solid var(--cub-line-soft);
  margin: 2.5rem 0;
}

::selection { background: rgba(45, 175, 200, 0.35); color: #fff; }

/* ------------------------------------------------------------------ */
/* 3. Layout                                                           */
/* ------------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--cub-wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 780px; }
.wrap-wide { max-width: 1420px; }

.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Vier Kacheln sollen vier Spalten bleiben, solange Platz ist — sonst
   steht die letzte allein in einer Zeile und wirkt wie ein Fehler. */
@media (min-width: 900px) {
  .grid-4-fixed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 2rem; }

.row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }

.spacer { flex: 1 1 auto; }

/* ------------------------------------------------------------------ */
/* 4. Typografische Helfer                                             */
/* ------------------------------------------------------------------ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cub-primary);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--cub-primary);
}

.lead {
  font-size: 1.14rem;
  color: var(--cub-muted);
  line-height: 1.72;
}

.muted { color: var(--cub-muted); }
.faint { color: var(--cub-faint); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.accent { color: var(--cub-primary); }
.headline-bar {
  border-left: 4px solid var(--cub-primary);
  padding-left: 1.25rem;
}

.gradient-text {
  background: linear-gradient(100deg, var(--cub-accent) 0%, var(--cub-primary) 60%, #fff 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ */
/* 5. Buttons                                                          */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--cub-ease), background-color 0.22s var(--cub-ease),
              box-shadow 0.22s var(--cub-ease), border-color 0.22s var(--cub-ease),
              color 0.22s var(--cub-ease);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--cub-primary);
  border-color: var(--cub-primary);
  color: #05161b;
}
.btn-primary:not(:disabled):hover {
  background: var(--cub-accent);
  border-color: var(--cub-accent);
  color: #05161b;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(45, 175, 200, 0.38);
  text-shadow: none;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(45, 175, 200, 0.55);
  color: var(--cub-primary);
  backdrop-filter: blur(8px);
}
.btn-outline:not(:disabled):hover {
  color: var(--cub-accent);
  border-color: var(--cub-accent);
  background: rgba(45, 175, 200, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--cub-glow);
  text-shadow: none;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--cub-muted);
  padding-inline: 14px;
}
.btn-ghost:not(:disabled):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-shadow: none;
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 92, 108, 0.5);
  color: var(--cub-danger);
}
.btn-danger:not(:disabled):hover {
  background: rgba(255, 92, 108, 0.14);
  border-color: var(--cub-danger);
  color: #fff;
  text-shadow: none;
}

.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; border-width: 1.5px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ */
/* 6. Flächen                                                          */
/* ------------------------------------------------------------------ */

.card {
  background: var(--cub-panel);
  border: 1px solid var(--cub-line-soft);
  border-radius: var(--cub-radius);
  padding: 1.6rem;
  transition: border-color 0.28s var(--cub-ease), transform 0.28s var(--cub-ease),
              box-shadow 0.28s var(--cub-ease);
}

.card-hover:hover {
  border-color: var(--cub-line);
  transform: translateY(-4px);
  box-shadow: var(--cub-glow-soft);
}

.card-raised { background: var(--cub-panel-2); }

.panel {
  background: var(--cub-panel);
  border: 1px solid var(--cub-line-soft);
  border-radius: var(--cub-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cub-line), transparent);
  margin: 2rem 0;
}

/* ------------------------------------------------------------------ */
/* 7. Badges, Pills, Chips                                             */
/* ------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  border: 1px solid var(--cub-line);
  background: rgba(45, 175, 200, 0.1);
  color: var(--cub-accent);
  white-space: nowrap;
}
.badge-success { border-color: rgba(46, 204, 113, 0.4); background: rgba(46, 204, 113, 0.12); color: var(--cub-success); }
.badge-warning { border-color: rgba(255, 159, 67, 0.4); background: rgba(255, 159, 67, 0.12); color: var(--cub-warning); }
.badge-danger  { border-color: rgba(255, 92, 108, 0.4); background: rgba(255, 92, 108, 0.12); color: var(--cub-danger); }
.badge-gold    { border-color: rgba(241, 196, 15, 0.4); background: rgba(241, 196, 15, 0.12); color: var(--cub-gold); }
.badge-neutral { border-color: var(--cub-line-soft); background: rgba(255, 255, 255, 0.05); color: var(--cub-muted); }

/* ------------------------------------------------------------------ */
/* 8. Fortschritt                                                      */
/* ------------------------------------------------------------------ */

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cub-primary), var(--cub-accent));
  box-shadow: 0 0 14px rgba(94, 231, 255, 0.5);
  transition: width 0.6s var(--cub-ease);
}
.progress-thin { height: 4px; }

/* ------------------------------------------------------------------ */
/* 9. Navigation                                                       */
/* ------------------------------------------------------------------ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 17, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cub-line);
}

.site-nav-inner {
  max-width: var(--cub-wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--cub-nav-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
/* Das Logo ist eine Wortmarke im Verhältnis 600:121 — Höhe vorgeben,
   Breite rechnet der Browser. */
.site-nav-brand img {
  height: 31px;
  width: auto;
  display: block;
  transition: filter 240ms cubic-bezier(0.22, 0.9, 0.28, 1);
}
.site-nav-brand:hover img { filter: drop-shadow(0 0 10px rgba(45, 175, 200, 0.65)); }
.site-nav-brand .sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cub-muted);
  /* Die Wortmarke hat unten etwas Luft — der Zusatz sitzt sonst zu tief. */
  padding-bottom: 1px;
}

.site-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav-link {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.24s var(--cub-ease), background-color 0.24s var(--cub-ease);
}
.site-nav-link:hover {
  color: var(--cub-accent);
  background: rgba(255, 255, 255, 0.05);
  text-shadow: none;
}
.site-nav-link[aria-current='page'] { color: var(--cub-primary); }

.site-nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cub-line);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav-menu {
    position: absolute;
    top: var(--cub-nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(10, 13, 17, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cub-line);
    display: none;
  }
  .site-nav-menu.is-open { display: flex; }
  .site-nav-menu .btn { width: 100%; margin-top: 6px; }
}

/* ------------------------------------------------------------------ */
/* 10. Footer                                                          */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--cub-line-soft);
  background: rgba(0, 0, 0, 0.25);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--cub-muted);
}
.site-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cub-faint);
  margin-bottom: 0.9rem;
}
.site-footer a { color: var(--cub-muted); }
.site-footer a:hover { color: var(--cub-accent); text-shadow: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cub-line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--cub-faint);
}

/* ------------------------------------------------------------------ */
/* 11. Formulare                                                       */
/* ------------------------------------------------------------------ */

.field { margin-bottom: 1.25rem; }

.field label,
.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.field .hint {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--cub-faint);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='search'],
input[type='tel'],
input[type='url'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  /* Nie unter 16px: Darunter zoomt iOS beim Antippen in die Seite hinein. */
  font-size: max(1rem, 16px);
  color: #fff;
  background: var(--cub-panel-2);
  border: 1px solid var(--cub-line-soft);
  border-radius: var(--cub-radius-sm);
  transition: border-color 0.22s var(--cub-ease), box-shadow 0.22s var(--cub-ease);
}

input::placeholder,
textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cub-primary);
  box-shadow: 0 0 0 3px rgba(45, 175, 200, 0.18);
}

textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235ee7ff' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.55;
}
.check input[type='checkbox'],
.check input[type='radio'] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cub-primary);
  cursor: pointer;
}

.form-error,
.field .error {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  color: var(--cub-danger);
}
ul.form-error-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }

/* ------------------------------------------------------------------ */
/* 12. Hinweise                                                        */
/* ------------------------------------------------------------------ */

.notice {
  display: flex;
  gap: 13px;
  padding: 1.1rem 1.3rem;
  border-radius: var(--cub-radius);
  border: 1px solid var(--cub-line-soft);
  border-left-width: 3px;
  background: var(--cub-panel-2);
  font-size: 0.94rem;
  line-height: 1.65;
}
.notice-icon { flex-shrink: 0; font-size: 1.15rem; line-height: 1.4; }
.notice-info    { border-left-color: var(--cub-primary); }
.notice-success { border-left-color: var(--cub-success); }
.notice-warning { border-left-color: var(--cub-warning); }
.notice-danger  { border-left-color: var(--cub-danger); }

.flash-stack {
  position: fixed;
  top: calc(var(--cub-nav-h) + 14px);
  right: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}
.flash-stack .notice {
  background: rgba(18, 23, 29, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: flashIn 0.4s var(--cub-ease);
}
@keyframes flashIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* 13. Tabellen                                                        */
/* ------------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cub-line-soft);
  border-radius: var(--cub-radius);
  background: var(--cub-panel);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th,
table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--cub-line-soft);
  vertical-align: middle;
}
table.data th {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cub-faint);
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background-color 0.18s var(--cub-ease); }
table.data tbody tr:hover { background: rgba(45, 175, 200, 0.05); }
table.data th.num,
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

.empty-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--cub-faint);
}
.empty-state .icon { font-size: 2.6rem; opacity: 0.5; margin-bottom: 0.8rem; }

/* ------------------------------------------------------------------ */
/* 14. Hero + Startseite                                               */
/* ------------------------------------------------------------------ */

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { max-width: 56ch; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-proof {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--cub-line-soft);
}
.hero-proof .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cub-primary);
  line-height: 1.1;
}
.hero-proof .cap { font-size: 0.82rem; color: var(--cub-faint); }

/* Kurskachel */
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--cub-panel);
  border: 1px solid var(--cub-line-soft);
  border-radius: var(--cub-radius-lg);
  overflow: hidden;
  transition: border-color 0.3s var(--cub-ease), transform 0.3s var(--cub-ease),
              box-shadow 0.3s var(--cub-ease);
}
.course-card:hover {
  border-color: var(--cub-line);
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), var(--cub-glow-soft);
}
.course-card-head {
  padding: 1.7rem 1.7rem 1.2rem;
  background: linear-gradient(150deg, rgba(45, 175, 200, 0.12), transparent 65%);
  border-bottom: 1px solid var(--cub-line-soft);
}
.course-card-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 0.9rem; }
.course-card-body { padding: 1.5rem 1.7rem; flex: 1; }
.course-card-foot {
  padding: 1.2rem 1.7rem 1.7rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.course-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.course-card .price small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--cub-faint);
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(45, 175, 200, 0.1);
  border: 1px solid var(--cub-line);
  font-size: 1.25rem;
}
.feature h4 { margin-bottom: 0.35rem; }
.feature p { font-size: 0.93rem; color: var(--cub-muted); margin: 0; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  color: var(--cub-muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 175, 200, 0.14);
  color: var(--cub-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Preistabelle */
.tier-table td.tier-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.tier-table tr.is-current { background: rgba(45, 175, 200, 0.09); }

/* ------------------------------------------------------------------ */
/* 15. Dashboard-Kacheln                                               */
/* ------------------------------------------------------------------ */

.stat-tile {
  background: var(--cub-panel);
  border: 1px solid var(--cub-line-soft);
  border-radius: var(--cub-radius);
  padding: 1.35rem 1.5rem;
}
.stat-tile .label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cub-faint);
  margin-bottom: 0.5rem;
}
.stat-tile .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-tile .delta { font-size: 0.82rem; color: var(--cub-muted); margin-top: 0.35rem; }
.stat-tile.accent .value { color: var(--cub-primary); }
.stat-tile.gold .value { color: var(--cub-gold); }
.stat-tile.success .value { color: var(--cub-success); }

/* ------------------------------------------------------------------ */
/* 16. Bewegung abschalten                                             */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ */
/* 17. Druck                                                           */
/* ------------------------------------------------------------------ */

@media print {
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .site-nav, .site-footer, .btn, .flash-stack { display: none !important; }
  .card, .panel { border: 1px solid #ccc; background: #fff; }
}

/* ------------------------------------------------------------------ */
/* Touchbedienung                                                      */
/* ------------------------------------------------------------------ */

/* `pointer: coarse` trifft genau die Geräte, die mit dem Finger bedient
   werden — Handy und Tablet, nicht die Maus am Schreibtisch. Dort gelten
   44 x 44 px als kleinste sicher treffbare Fläche. */
@media (pointer: coarse) {
  .btn,
  .btn-sm {
    min-height: 44px;
  }

  .btn-sm {
    padding: 12px 18px;
  }

  /* Fußzeilen- und Listenlinks sind reiner Text und damit nur so hoch wie
     die Zeile. Die Trefferfläche wird über Innenabstand vergrößert, ohne
     dass sich am Aussehen etwas ändert. */
  .site-footer a {
    display: inline-block;
    padding: 14px 0;
    line-height: 1.2;
  }
  .site-footer li + li { margin-top: 0; }

  .site-nav-brand { min-height: 44px; }
  .site-nav-toggle { min-width: 44px; min-height: 44px; }

  /* Hinweiszeilen unter den Hauptknöpfen enthalten oft den zweitwichtigsten
     Weg („oder erst die Inhalte ansehen"). Sie stehen allein in ihrer Zeile,
     also stört der zusätzliche Innenabstand keinen Textfluss. */
  p.small a,
  p.tiny a {
    display: inline-block;
    padding: 12px 0;
    line-height: 1.2;
  }

  .site-nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Zwischen zwei Zielen muss Luft bleiben, sonst trifft der Daumen daneben. */
  .hero-actions { gap: 12px; }
  .row > .btn + .btn { margin-left: 4px; }
}

/* Überschrift über dem Ablaufplan im Lernbereich */
.map-intro {
  margin: 2.5rem 0 1.2rem;
}
.map-intro h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-bottom: 0.5rem;
}
.map-intro p {
  max-width: 62ch;
  margin: 0;
  font-size: 0.95rem;
}
