/* =========================================================
   Dozenten Tools - Marketing-Website
   Design-System "Vitalzeichen"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Farben */
  --ink: #0e1b18;
  --ink-soft: #3c4a47;
  --paper: #f1f5f3;
  --paper-alt: #e6ede9;
  --card: #ffffff;
  --teal-deep: #0b3b36;
  --teal: #12645a;
  --teal-light: #e3f1ee;
  --mint: #35c59a;
  --pulse: #ff5a5f;
  --pulse-dark: #d63a40;
  --line: rgba(14, 27, 24, 0.12);
  --shadow: 0 20px 50px -25px rgba(11, 59, 54, 0.35);

  /* Typografie */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal-deep); color: #fff; }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--pulse); color: #fff; }
.btn-accent:hover { background: var(--pulse-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--teal-deep); }
.btn-outline:hover { border-color: var(--teal); background: var(--teal-light); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 245, 243, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 12px; max-width: 1320px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--teal-deep); text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .68rem; color: var(--teal); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 1px; }
.main-nav a {
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  padding: 8px 11px; border-radius: 999px; transition: all .15s ease; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal-deep); background: var(--teal-light); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal-deep); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 1180px) {
  .brand small { display: none; }
  .main-nav {
    position: fixed; top: 78px; right: 0; bottom: 0; left: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 18px 24px;
    gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: .2s ease; overflow-y: auto; height: calc(100vh - 78px);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
}

/* ---------- Pulse line signature ---------- */
.pulse-divider {
  width: 100%; height: 46px; overflow: hidden; display: block;
}
.pulse-divider svg { width: 100%; height: 100%; display: block; }
.pulse-divider path {
  fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw-pulse 2.2s ease-out forwards;
}
.pulse-divider.dim path { stroke: var(--line); stroke-width: 1.5; }
@keyframes draw-pulse { to { stroke-dashoffset: 0; } }

.pulse-inline { display: inline-flex; align-items: center; height: 1em; vertical-align: middle; }
.pulse-inline svg { height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-mono); font-weight: 600; font-size: 1.7rem; color: var(--teal-deep); display: block; }
.hero-stat .label { font-size: .82rem; color: var(--ink-soft); }

.hero-visual {
  position: relative; background: var(--teal-deep); border-radius: 28px;
  padding: 34px; color: #fff; box-shadow: var(--shadow);
  min-height: 380px; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-visual .monitor-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); opacity: .9; }
.hero-visual .monitor-line { flex: 1; display: flex; align-items: center; margin: 18px 0; }
.hero-visual .monitor-line svg { width: 100%; }
.hero-visual .monitor-line path { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.hero-visual .module-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: .72rem; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #eafff8;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-alt { background: var(--paper-alt); }
.bg-deep { background: var(--teal-deep); color: #fff; }
.bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep p { color: rgba(255,255,255,.78); }
.bg-deep .eyebrow { color: var(--mint); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border-radius: 20px; padding: 28px;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-tile {
  width: 48px; height: 48px; border-radius: 13px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--teal-deep); flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Module cards ---------- */
.module-card {
  background: var(--card); border-radius: 20px; border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.module-video {
  position: relative; aspect-ratio: 16/10; background: var(--teal-deep);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  overflow: hidden;
}
.module-video::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(53,197,154,.35), transparent 60%);
}
.play-btn {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.module-video:hover .play-btn { transform: scale(1.08); background: var(--mint); border-color: var(--mint); }
.play-btn svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.video-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--font-mono); font-size: .68rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.35); color: #fff; letter-spacing: .04em;
}
.module-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.module-cat { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 6px; }
.module-body h3 { margin-bottom: 8px; }
.module-body p { font-size: .92rem; flex: 1; margin-bottom: 14px; }
.module-body .btn { align-self: flex-start; }

.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.category-tabs button {
  font-family: var(--font-body); font-weight: 600; font-size: .86rem;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink-soft); cursor: pointer; transition: .15s;
}
.category-tabs button.active, .category-tabs button:hover { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

/* ---------- Team ---------- */
.team-card {
  background: var(--card); border-radius: 22px; padding: 32px; border: 1px solid var(--line);
  text-align: center;
}
.avatar {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #fff;
  box-shadow: var(--shadow);
}
.team-card h3 { margin-bottom: 2px; }
.team-role { font-family: var(--font-mono); font-size: .78rem; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; display: block; }
.team-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.team-tags span { font-family: var(--font-mono); font-size: .7rem; padding: 5px 11px; border-radius: 999px; background: var(--teal-light); color: var(--teal-deep); }

/* ---------- Pricing / shop ---------- */
.product-card {
  background: var(--card); border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
}
.product-thumb {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--teal-light), var(--paper-alt));
  display: flex; align-items: center; justify-content: center; color: var(--teal);
}
.product-thumb svg { width: 40px; height: 40px; }
.product-body { padding: 20px 22px 24px; }
.price-tag { font-family: var(--font-mono); font-weight: 600; font-size: 1.2rem; color: var(--teal-deep); }
.badge-soon {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; padding: 4px 10px;
  border-radius: 999px; background: rgba(255,90,95,.12); color: var(--pulse-dark); margin-bottom: 10px;
}

/* ---------- Course booking ---------- */
.course-row {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 14px;
}
.course-date { text-align: center; font-family: var(--font-mono); }
.course-date .day { font-size: 1.6rem; font-weight: 700; color: var(--teal-deep); line-height: 1; }
.course-date .month { font-size: .74rem; text-transform: uppercase; color: var(--teal); }
.course-row h3 { margin-bottom: 4px; font-size: 1.08rem; }
.course-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-soft); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.seats-left { font-family: var(--font-mono); font-size: .74rem; color: var(--pulse-dark); }
@media (max-width: 700px) { .course-row { grid-template-columns: 1fr; text-align: left; } .course-date { display: flex; gap: 8px; align-items: baseline; text-align: left; } }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border-radius: 22px; padding: 40px; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; color: var(--teal-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: .95rem; background: var(--paper); color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-soft); }
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }

/* ---------- Timeline / process ---------- */
.process-step { display: flex; gap: 20px; }
.process-num {
  font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--teal);
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--teal); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.process-step:not(:last-child) { margin-bottom: 30px; position: relative; }
.process-step:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 42px; width: 2px; height: calc(100% + 8px);
  background: var(--line);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,.82); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: #fff; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-grid a { display: block; color: rgba(255,255,255,.75); text-decoration: none; font-size: .92rem; margin-bottom: 10px; transition: color .15s; }
.footer-grid a:hover { color: var(--mint); }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.55); flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (Unterseiten) ---------- */
.page-header { padding: 56px 0 20px; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header p.lede { max-width: 60ch; font-size: 1.05rem; }
.breadcrumb { font-size: .82rem; font-family: var(--font-mono); color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.reveal { opacity: 1; transform: none; }
.reveal.pre-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.pre-reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(11, 27, 24, 0.82); align-items: center; justify-content: center; padding: 24px;
}
.video-modal.is-open { display: flex; }
.video-modal-inner {
  background: var(--teal-deep); border-radius: 20px; width: min(720px, 100%);
  padding: 26px; color: #fff; position: relative;
}
.video-modal-close {
  position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); border: none;
  color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.video-modal-body {
  aspect-ratio: 16/9; background: rgba(0,0,0,.3); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-top: 10px; flex-direction: column; gap: 10px;
}
.video-modal-body span { font-family: var(--font-mono); font-size: .82rem; color: var(--mint); }
