/* mydoos Landing Page
   Sprache: helles, modernes SaaS. Weißer Grund, Petrol als Marke, Verlauf nur in
   der Überschrift, Karten mit feinen Linien und sehr weichen Schatten, Schrift Outfit.
   Bewegung zeigt das Produkt. Alles ist über prefers-reduced-motion abschaltbar. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7fbfa;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --ink: #16191d;
  --text: #2a2f36;
  --muted: #5f6771;
  --subtle: #8b939c;
  --line: #e8ecef;
  --line-soft: #f0f3f5;

  --brand: #0f6b63;
  --brand-2: #2aa394;
  --brand-3: #4e9fd1;
  --brand-deep: #0a4a44;
  --brand-soft: #e8f4f2;

  --danger: #c2362b;
  --danger-soft: #fdeceb;
  /* Rot heißt hier immer dasselbe: Aufnahme läuft oder Zeit läuft ab.
     Es ist nie bloß Dekoration und nie die Hauptaktion. */
  --rot: #c2362b;
  --rot-tief: #a82e24;
  --rot-soft: #fdeceb;
  --warn-soft: #fdf3e2;
  --warn-text: #a8660f;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 2px rgba(22, 25, 29, 0.04);
  --shadow: 0 1px 2px rgba(22, 25, 29, 0.04), 0 12px 34px rgba(22, 25, 29, 0.07);
  --shadow-lg: 0 10px 24px rgba(22, 25, 29, 0.08), 0 40px 90px rgba(22, 25, 29, 0.14);
  --shell: 1140px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 24px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Fortschrittsbalken und Lichtschein ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--rot));
}
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  background: radial-gradient(circle, rgba(42, 163, 148, 0.11), transparent 62%);
}

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 107, 99, 0.3), 0 8px 20px rgba(15, 107, 99, 0.16);
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15, 107, 99, 0.3), 0 14px 28px rgba(15, 107, 99, 0.22);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--brand-2);
  transform: translateY(-2px);
}
.btn-lg {
  min-height: 54px;
  padding: 0 26px;
  font-size: 16.5px;
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after {
  transform: translateX(5px);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.25s;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 72px;
}
.nav-brand {
  flex: 0 0 auto;
}
.nav-brand img {
  height: 29px;
  width: auto;
  /* Ohne das staucht Flexbox das Bild in der Breite, während die Höhe bleibt. */
  flex: none;
  display: block;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-login {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.nav-login:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), #fff 62%);
  padding-top: clamp(44px, 5vw, 72px);
}
.sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 163, 148, 0.9) 0%, rgba(78, 159, 209, 0.55) 45%, transparent 100%);
  animation: float-mark 7s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes float-mark {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: calc(var(--o, 1) * 0.25);
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: calc(var(--o, 1) * 0.8);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
}
h1 {
  margin-top: 22px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 650;
  color: var(--ink);
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}
.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--subtle);
}

/* ---------- Produktfenster ---------- */

.shot {
  position: relative;
  max-width: 980px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.tilt {
  transition: transform 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7dde1;
}
.frame-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--subtle);
  background: #fff;
  border-radius: 999px;
  padding: 4px 14px;
}
.frame-body {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: #fbfcfd;
}
.mini-side {
  display: grid;
  gap: 9px;
  align-content: start;
}
.mini-logo {
  height: 22px;
  border-radius: 7px;
  background: var(--brand);
}
.mini-nav {
  height: 9px;
  border-radius: 99px;
  background: #e7ebee;
}
.mini-nav.is-active {
  background: color-mix(in srgb, var(--brand) 45%, #e7ebee);
}
.mini-gap {
  height: 8px;
}
.mini-proj {
  height: 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--pc) 55%, #e7ebee);
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.column {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 10px;
  min-height: 236px;
}
.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 4px 10px;
  color: var(--ink);
}
.column-head .count {
  margin-left: auto;
  color: var(--muted);
  transition: color 0.3s;
}
.column-head .count.is-bump {
  color: var(--brand);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-open {
  background: #9aa2ab;
}
.dot-doing {
  background: #d4a13a;
}
.slot {
  height: 0;
  transition: height 0.45s var(--ease);
}
.slot.is-open {
  height: var(--slot-h, 116px);
}
.card {
  background: color-mix(in srgb, var(--pc) 15%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--pc) 58%, #fff);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
}
.card:last-child {
  margin-bottom: 0;
}
.card-project {
  font-size: 11.5px;
  color: var(--muted);
}
.card h3 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
  color: var(--ink);
}
.prio {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--warn-soft);
  color: var(--warn-text);
}
.card-due {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 6px;
  transition: background 0.5s, color 0.5s;
}
.card-due.is-late {
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}
.card-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
  overflow: hidden;
}
.card-progress span {
  display: block;
  height: 100%;
  width: 60%;
  border-radius: 99px;
  background: var(--brand);
  transition: width 0.7s var(--ease);
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.who {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}
.card-flying {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  box-shadow: var(--shadow-xs);
  will-change: transform;
}

/* ---------- Live-Feed ---------- */

.feed {
  position: absolute;
  right: -28px;
  bottom: 8px;
  width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  animation: pulse-dot 2.2s ease-out infinite;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 163, 148, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(42, 163, 148, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 163, 148, 0);
  }
}
.feed-list {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}
.feed-row {
  display: grid;
  gap: 1px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  animation: feed-in 0.55s var(--ease) both;
}
.feed-row:last-child {
  border-bottom: 0;
}
.feed-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.feed-detail {
  font-size: 12.5px;
  color: var(--muted);
}
@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(42, 163, 148, 0.08);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Laufband ---------- */

.marquee {
  overflow: hidden;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 44s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.chip {
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, #fff);
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Zahlen ---------- */

.stats {
  padding: clamp(42px, 5vw, 66px) 0;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Abschnitte ---------- */

.section {
  padding: clamp(66px, 8vw, 112px) 0;
}
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow-light {
  color: rgba(255, 255, 255, 0.7);
}
.section-head h2,
.split-copy h2,
.cta-inner h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 620;
  color: var(--ink);
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
}
.on-dark {
  color: #fff;
}

/* ---------- Module ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.module:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
}
.module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.module-icon svg {
  width: 21px;
  height: 21px;
}
.module h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.module p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Geteilte Abschnitte ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split + .split {
  margin-top: clamp(48px, 6vw, 88px);
}
.split-flip .split-copy {
  order: 2;
}
.split-copy p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 46ch;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
  font-size: 16.5px;
}
.panel-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.panel-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  margin: 16px 0 18px;
  overflow: hidden;
}
.panel-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.6s var(--ease);
}
.demo-check {
  display: grid;
  gap: 13px;
  font-size: 16px;
  color: var(--muted);
}
.demo-check li {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s;
}
.demo-check .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d4dade;
  position: relative;
  flex: none;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.demo-check .box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.demo-check li.is-done .box {
  background: var(--brand);
  border-color: var(--brand);
}
.demo-check li.is-done .box::after {
  transform: rotate(45deg) scale(1);
}
.demo-check li.is-done {
  color: var(--subtle);
  text-decoration: line-through;
}

.due-stack {
  display: grid;
  gap: 12px;
}
.due-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #d4dade;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}
.due-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  min-width: 68px;
}
.due-task {
  font-weight: 550;
  color: var(--ink);
}
.due-row.is-soon {
  border-left-color: var(--warn-text);
}
.due-row.is-late {
  border-left-color: var(--danger);
  background: #fff7f6;
}
.due-row.is-late .due-date {
  color: var(--danger);
}
.due-flag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--danger);
  padding: 4px 10px;
  border-radius: 999px;
}
.due-row.is-late.is-in .due-flag {
  animation: pop 0.5s var(--ease) 0.2s both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Band mit den Schritten ---------- */

.band {
  background: linear-gradient(145deg, var(--brand-deep), var(--brand) 55%, #157f74);
  color: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.steps li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 650;
  margin-bottom: 16px;
}
.steps h3 {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}
.steps p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
}

/* ---------- Fragen ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-head {
  margin: 0;
  text-align: left;
  position: sticky;
  top: 110px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17.5px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.faq details p {
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 62ch;
}
.faq details[open] p {
  animation: feed-in 0.4s var(--ease) both;
}

/* ---------- Warteliste ---------- */

.cta-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner > p {
  margin-top: 14px;
  color: var(--muted);
}
.waitlist-form {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}
.field input,
.field select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8dee2;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 50px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder {
  color: var(--subtle);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.15);
}
.field input[aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 13.5px;
}
.waitlist-form .btn {
  margin-top: 20px;
  width: 100%;
}
.form-status {
  font-size: 15px;
  min-height: 1.4em;
  margin-top: 12px;
  text-align: center;
}
.form-status.is-error {
  color: var(--danger);
}
.form-status.is-success {
  color: var(--brand);
  font-weight: 600;
}
.cta-note {
  margin-top: 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--subtle);
}

/* ---------- Fußzeile ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 calc(52px + env(safe-area-inset-bottom));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer img {
  height: 26px;
  width: auto;
}
.footer p {
  margin-top: 12px;
  max-width: 26ch;
}
.footer h3 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}
.footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 15.5px;
}
.footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer nav a:hover {
  color: var(--ink);
}

/* ---------- Einblenden ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .cursor-glow,
  .sparkles {
    display: none;
  }
  .tilt {
    transform: none !important;
  }
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 1040px) {
  .modules,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-flip .split-copy {
    order: 0;
  }
  .faq-head {
    position: static;
  }
  .feed {
    position: static;
    width: auto;
    margin-top: 16px;
  }
  .tilt {
    transform: none !important;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .shell {
    padding-inline: 18px;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    height: 64px;
    gap: 12px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-login {
    font-size: 15px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .modules,
  .steps,
  .stats-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-grid {
    gap: 28px;
  }
  .board {
    grid-template-columns: minmax(0, 1fr);
  }
  .column {
    min-height: 0;
  }
  .frame-body {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .footer-grid {
    gap: 28px;
  }
}

/* Sehr schmale Geräte: Die Kopfleiste muss in eine Zeile passen, ohne dass der
   Knopf abgeschnitten wird oder das Logo leidet. */
@media (max-width: 480px) {
  .nav-brand img {
    height: 24px;
  }
  .nav-login {
    font-size: 14.5px;
  }
  .nav-actions .btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14.5px;
    white-space: nowrap;
  }
}

/* ---------- Rechtstexte ---------- */

.legal {
  max-width: 760px;
}
/* Lange Wörter wie „Datenschutzerklärung“ dürfen auf dem Handy umbrechen. */
.legal .section-title {
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  hyphens: auto;
  overflow-wrap: break-word;
}
.legal-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}
.legal p,
.legal li {
  line-height: 1.7;
  color: var(--text);
}
.legal p {
  margin: 0 0 12px;
}
.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal li {
  margin-bottom: 6px;
}
.legal a {
  color: var(--brand);
}
.legal-back {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 14px 0 18px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.legal th {
  font-weight: 600;
  background: var(--bg-soft);
}
.legal tr:last-child td {
  border-bottom: 0;
}
/* Auf schmalen Bildschirmen darf die Tabelle seitlich scrollen, statt die Seite zu sprengen. */
@media (max-width: 640px) {
  .legal table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
  .legal td,
  .legal th {
    min-width: 8.5rem;
  }
}

/* ===============================================================
   SPRECHEN – der Grund, warum es mydoos gibt
   =============================================================== */

.eyebrow-rot {
  color: var(--rot);
  background: var(--rot-soft);
}

.badge-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rec-punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rot);
  box-shadow: 0 0 0 0 rgba(194, 54, 43, 0.45);
  animation: puls 2.4s ease-out infinite;
}
@keyframes puls {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 54, 43, 0.45);
  }
  60%,
  100% {
    box-shadow: 0 0 0 9px rgba(194, 54, 43, 0);
  }
}

.sprechen {
  background: var(--bg-soft);
}

.buehne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.buehne-sprechen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rec {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.rec svg {
  width: 32px;
  height: 32px;
}
.rec:hover {
  background: var(--rot-tief);
}
.rec:active {
  transform: scale(0.96);
}
.rec:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 4px;
}
.rec-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--rot);
  opacity: 0;
}
.buehne.laeuft .rec-ring {
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.welle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
}
.welle span {
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: var(--rot);
  opacity: 0.35;
  transition: height 0.18s var(--ease), opacity 0.18s var(--ease);
}
.buehne.laeuft .welle span {
  opacity: 0.9;
}

.gesagt {
  position: relative;
  /* Volle Breite und reservierte Höhe: Sonst wächst die Blase beim Sprechen
     mit und die halbe Seite ruckelt hinterher. */
  width: 100%;
  min-height: 7.2em;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: left;
}
.caret {
  display: none;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--rot);
  vertical-align: -0.18em;
  animation: blink 1s steps(2) infinite;
}
.buehne.laeuft .caret {
  display: inline-block;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.gesagt-status {
  margin: 0;
  color: var(--subtle);
  font-size: 0.88rem;
}

.buehne-pfeil {
  display: grid;
  place-items: center;
  color: var(--line);
}
.buehne-pfeil svg {
  width: 26px;
  height: 26px;
}

.buehne-ergebnis {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ergebnis {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ergebnis h3 {
  margin: 8px 0 16px;
  font-size: 1.22rem;
  line-height: 1.25;
}
.ergebnis-projekt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}
.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b8ed0;
}
.ergebnis-felder {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ergebnis-felder > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
}
.ergebnis-felder dt {
  color: var(--muted);
  font-size: 0.88rem;
}
.ergebnis-felder dd {
  margin: 0;
  font-weight: 600;
}
.prio-hoch {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: 0.84rem;
}
.ergebnis-schritte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.ergebnis-label {
  width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
}
.schritt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
}
.schritt .box {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-strong, #d3d8de);
  border-radius: 4px;
}
.ergebnis-note {
  margin: 0;
  color: var(--subtle);
  font-size: 0.86rem;
  text-align: center;
}

/* Die Felder tauchen nacheinander auf, wenn die Aufnahme ausgewertet ist. */
.buehne [data-feld] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.buehne [data-feld].is-da {
  opacity: 1;
  transform: none;
}
.buehne [data-feld].is-frisch {
  box-shadow: inset 0 0 0 2px var(--rot-soft);
  border-radius: var(--radius-sm);
}

/* Zuordnung: welches Wort welches Feld füllt */
.zuordnung {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.zuordnung li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
}
.zuordnung .wort {
  color: var(--muted);
  font-style: italic;
}
.zuordnung .pfeil {
  color: var(--rot);
  font-weight: 700;
}
.zuordnung .feld {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.zuordnung-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

/* Die Kachel der Sprachaufnahme trägt die Akzentfarbe. */
.module-rot .module-icon {
  background: var(--rot-soft);
  color: var(--rot);
}

@media (max-width: 920px) {
  .buehne {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .buehne-pfeil {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-punkt,
  .buehne.laeuft .rec-ring,
  .buehne.laeuft .caret {
    animation: none;
  }
  .buehne [data-feld] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Rot, weitergedacht ---------- */

/* Der Strich unter dem Wort, auf das alles hinausläuft. */
.strich {
  position: relative;
  white-space: nowrap;
}
.strich::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.12em;
  border-radius: 999px;
  background: var(--rot);
  transform: scaleX(0);
  transform-origin: left;
  animation: strich 0.7s var(--ease) 0.5s forwards;
}
@keyframes strich {
  to {
    transform: scaleX(1);
  }
}

/* Das Fenster braucht die Stellung für das Handy daneben. */
.frame {
  position: relative;
}

/* Der Navigationspunkt, der zur Aufnahme führt, trägt ihr Zeichen. */
.nav-sprechen {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-punkt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rot);
}

/* Der Schritt, in dem gesprochen wird. */
.step-rot {
  background: var(--rot);
  color: #fff;
}

/* Eine offene Frage bekommt eine rote Kante – man sieht, wo man ist. */
.faq details[open] {
  border-left: 3px solid var(--rot);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Der Pfeil im Text zeigt dorthin, wo es weitergeht. */
.link-arrow:hover {
  color: var(--rot);
}

@media (prefers-reduced-motion: reduce) {
  .strich::after {
    transform: scaleX(1);
    animation: none;
  }
  .mini-mic::before {
    animation: none;
  }
}

/* ---------- Handy im Hero: dort wird gesprochen ---------- */

.handy {
  position: absolute;
  left: -48px;
  bottom: -28px;
  width: 172px;
  padding: 9px;
  border-radius: 30px;
  background: #1b1f24;
  box-shadow: var(--shadow-lg);
}
.handy-schirm {
  display: flex;
  flex-direction: column;
  height: 286px;
  border-radius: 22px;
  background: #f5f6f8;
  overflow: hidden;
}
.handy-kopf {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.handy-logo {
  width: 54px;
  height: 9px;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0.85;
}
.handy-karten {
  display: grid;
  gap: 7px;
  padding: 10px;
}
.hk {
  height: 38px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent);
  background: color-mix(in srgb, var(--pc) 9%, #fff);
}
.handy-blase {
  margin: auto 12px 12px;
  padding: 11px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.handy-blase p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text);
}
.handy-welle {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.handy-welle i {
  width: 3px;
  height: 5px;
  border-radius: 99px;
  background: var(--rot);
  animation: welle 1.1s ease-in-out infinite;
}
.handy-welle i:nth-child(2n) {
  animation-delay: 0.14s;
}
.handy-welle i:nth-child(3n) {
  animation-delay: 0.28s;
}
.handy-welle i:nth-child(5n) {
  animation-delay: 0.42s;
}
@keyframes welle {
  0%,
  100% {
    height: 5px;
    opacity: 0.5;
  }
  50% {
    height: 16px;
    opacity: 1;
  }
}
.handy-leiste {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 46px 1fr 1fr;
  align-items: center;
  justify-items: center;
  height: 46px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.hl {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--line);
}
.handy-mic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  box-shadow: 0 5px 14px rgba(194, 54, 43, 0.36);
}
.handy-mic svg {
  width: 19px;
  height: 19px;
}
.handy-mic::before {
  content: '';
  position: absolute;
  width: 42px;
  height: 42px;
  margin-top: -16px;
  border-radius: 50%;
  border: 2px solid var(--rot);
  animation: ring 1.9s ease-out infinite;
}

/* Unter 1040px wird es zu eng – dann trägt die Sprech-Sektion die Botschaft. */
@media (max-width: 1040px) {
  .handy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .handy-welle i,
  .handy-mic::before {
    animation: none;
  }
}

/* ===============================================================
   BLOG
   Lesen, nicht bedienen: ruhige Zeilenlänge, großzügige Abstände,
   keine Kästen um Dinge, die keine Kästen brauchen.
   =============================================================== */

.blog-body .nav {
  border-bottom: 1px solid var(--line);
}
.shell-schmal {
  max-width: 720px;
}

.blog-kopf {
  padding: 56px 0 8px;
}
.blog-kopf h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.blog-kopf .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}

.blog-liste {
  padding-bottom: 72px;
}
.blog-liste section {
  margin-top: 48px;
}
.blog-liste h2 {
  margin: 0 0 2px;
  font-size: 22px;
}
.blog-liste section > .muted {
  margin: 0 0 18px;
}

/* ---------- Einzelner Artikel ---------- */

.artikel {
  padding: 40px 0 72px;
}
.krumen {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--subtle);
}
.krumen a {
  color: var(--muted);
  text-decoration: none;
}
.krumen a:hover {
  color: var(--brand);
}
.artikel h1 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.artikel-vor {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.artikel-meta {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--subtle);
}

.artikel-text {
  font-size: 17.5px;
  line-height: 1.75;
}
.artikel-text h2 {
  margin: 44px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.artikel-text h3 {
  margin: 32px 0 8px;
  font-size: 20px;
}
.artikel-text p {
  margin: 0 0 20px;
}
.artikel-text ul,
.artikel-text ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.artikel-text li {
  margin-bottom: 10px;
}
.artikel-text a {
  color: var(--brand);
  text-underline-offset: 3px;
}
.artikel-text blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--rot);
  color: var(--ink);
  font-size: 19px;
}
.artikel-text blockquote p:last-child {
  margin-bottom: 0;
}
.artikel-text table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: 16px;
}
.artikel-text th,
.artikel-text td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.artikel-text th {
  background: var(--surface-2);
  font-weight: 600;
}
.artikel-text hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.artikel-text code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.92em;
}

.artikel-cta {
  margin: 48px 0 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}
.artikel-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.artikel-cta p {
  margin: 0 auto 20px;
  max-width: 44ch;
  color: var(--muted);
}

.weiterlesen {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.weiterlesen h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.weiterlesen ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.weiterlesen li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.weiterlesen a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.weiterlesen-bild {
  flex: none;
  width: 96px;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}
.weiterlesen a:hover {
  color: var(--brand);
}

@media (max-width: 680px) {
  .artikel-text {
    font-size: 17px;
  }
  .artikel-cta {
    padding: 24px 20px;
  }
}

/* Inhaltsverzeichnis: zeigt, was kommt, und springt hin. */
.artikel-inhalt {
  margin: 28px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.artikel-inhalt > p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}
.artikel-inhalt ol {
  margin: 0;
  padding-left: 20px;
}
.artikel-inhalt li {
  margin-bottom: 7px;
  color: var(--subtle);
}
.artikel-inhalt li:last-child {
  margin-bottom: 0;
}
.artikel-inhalt a {
  color: var(--text);
  text-decoration: none;
}
.artikel-inhalt a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Die Navigation klebt oben – die Sprungziele brauchen Luft darunter. */
.artikel-text h2,
.artikel-text h3 {
  scroll-margin-top: 92px;
}

/* ===============================================================
   BAUSTEINE IM ARTIKEL
   Gezeichnet statt fotografiert: scharf auf jedem Bildschirm,
   sofort da, und sie veralten nicht mit der App.
   =============================================================== */

.fig {
  margin: 32px 0;
}
.fig figcaption,
.artikel-text .fig figcaption {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--subtle);
  text-align: center;
}

/* Merksatz */
.fig-merksatz {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--rot);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}
.artikel-text .fig-merksatz p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

/* Zwei Spalten: so nicht, so besser */
.fig-gegenueber {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.fig-seite {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.fig-seite .fig-kopf {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fig-schlecht {
  border-color: color-mix(in srgb, var(--rot) 30%, var(--line));
  background: var(--rot-soft);
}
.fig-schlecht .fig-kopf {
  color: var(--rot);
}
.fig-gut {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-soft);
}
.fig-gut .fig-kopf {
  color: var(--brand);
}
.artikel-text .fig-seite ul {
  margin: 0;
  padding-left: 18px;
}
.artikel-text .fig-seite li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.5;
}
.artikel-text .fig-seite li:last-child {
  margin-bottom: 0;
}

/* Kleines Board */
.fig-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.fig-spalte {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fig-spalte-kopf {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.fig-punkt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.fig-karte {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: var(--shadow-xs);
}

/* Aufgabenkarte – dieselbe Darstellung wie auf der Startseite */
.fig-karte-wrap,
.fig.fig-karte {
  margin: 32px 0;
}
.fig.fig-karte .ergebnis {
  margin: 0 auto;
  max-width: 460px;
}

/* Gesprochener Satz und seine Zuordnung */
.fig-sprache {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.artikel-text .fig-satz {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
}
.fig-welle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  height: 26px;
}
.fig-welle i {
  width: 3px;
  height: 9px;
  border-radius: 99px;
  background: var(--rot);
}
.fig-welle i:nth-child(2) {
  height: 17px;
}
.fig-welle i:nth-child(3) {
  height: 22px;
}
.fig-welle i:nth-child(4) {
  height: 13px;
}
.fig-welle i:nth-child(5) {
  height: 19px;
}
.artikel-text .fig-zuordnung {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.artikel-text .fig-zuordnung li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 15.5px;
}
.fig-wort {
  color: var(--muted);
  font-style: italic;
}
.fig-pfeil {
  color: var(--rot);
  font-weight: 700;
}
.fig-ziel {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Schmale Handys (ab 360 px abwärts): Logo und Schaltflächen passten nicht
   nebeneinander, die Kopfzeile lief seitlich über. */
@media (max-width: 480px) {
  .nav-brand img {
    width: 118px;
    height: auto;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-login {
    font-size: 14.5px;
  }
  .nav-actions .btn-sm {
    padding: 0 14px;
    font-size: 14.5px;
  }
}
@media (max-width: 380px) {
  .nav-login {
    display: none;
  }
}

/* Sehr schmale Geräte (iPhone SE und älter): Datum, Aufgabe und Schild
   passen nicht in eine Zeile. */
@media (max-width: 400px) {
  .due-row {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .due-row .due-task {
    flex: 1 1 100%;
    order: 3;
  }
  .due-flag {
    margin-left: 0;
  }
}

/* Vorlagen zum Abschreiben. Monospace, damit die Spalten stehen – aber als
   ruhiger Kasten, nicht als nackter Text. */
.artikel-text pre {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
.artikel-text pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  color: var(--text);
  white-space: pre;
}

@media (max-width: 680px) {
  .artikel-text pre {
    padding: 14px 16px;
    font-size: 12.5px;
  }
}

/* Häufige Fragen im Artikel */
.fig-fragen details {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.fig-fragen summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.fig-fragen summary::-webkit-details-marker {
  display: none;
}
/* Ein gedrehtes Winkelzeichen statt eines Schriftzeichens: Das kann nicht
   zum fehlenden Glyphen werden. */
.fig-fragen summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}
.fig-fragen details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.fig-fragen summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}
.artikel-text .fig-fragen details > div {
  padding: 0 18px 14px;
}
.artikel-text .fig-fragen p {
  margin: 0 0 10px;
  font-size: 16.5px;
  color: var(--muted);
}
.artikel-text .fig-fragen p:last-child {
  margin-bottom: 0;
}

/* Themenleiste auf Übersicht und Kategorieseiten */
.blog-bereiche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.blog-bereiche p {
  margin: 0 6px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}
.blog-bereiche a {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  text-decoration: none;
}
.blog-bereiche a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.blog-liste h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-liste h2 a:hover {
  color: var(--brand);
}
.blog-kopf .krumen {
  margin-bottom: 14px;
}

/* ---------- Blog: Kartenraster ---------- */

.blog-liste {
  padding-bottom: 80px;
}
.blog-liste section {
  margin-top: 56px;
}
.blog-abschnitt-kopf {
  margin-bottom: 18px;
}
.blog-liste h2 {
  margin: 0 0 2px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.blog-liste h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-liste h2 a:hover {
  color: var(--brand);
}
.blog-abschnitt-kopf .muted {
  margin: 0;
}

.blog-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.blog-karte {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.blog-karte:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
/* Das Bild sitzt randlos oben in der Karte. Die Karte hat Innenabstand, darum
   zieht das Bild ihn mit negativen Rändern wieder heraus. aspect-ratio hält den
   Platz frei, bevor das Bild geladen ist – sonst springt die Liste beim Laden. */
.blog-karte-bild {
  display: block;
  /* Die Regel img { max-width: 100% } weiter oben würde das Bild auf die
     Innenbreite der Karte stutzen – dann bliebe rechts eine Lücke. */
  max-width: none;
  width: calc(100% + 48px);
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin: -22px -24px 6px;
  border-radius: 15px 15px 0 0;
  background: var(--surface-2);
}
.blog-karte strong {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.blog-karte .muted {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
}
.blog-karte-bereich {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.blog-karte-fuss {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* Hervorgehobener Artikel */
.blog-gross {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s var(--ease);
}
.blog-gross:hover {
  border-color: var(--brand);
}
.blog-gross-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-gross-text strong {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.blog-gross-text .muted {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
}
.blog-gross-bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
}

.artikel-bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin: 28px 0 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

/* ---------- Blog: Artikel in zwei Spalten ---------- */

.artikel-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.artikel-haupt {
  max-width: 720px;
  min-width: 0;
}
.artikel-rand {
  display: none;
}

@media (min-width: 1040px) {
  .artikel-raster {
    grid-template-columns: minmax(0, 1fr) 272px;
  }
  .artikel-rand {
    display: block;
  }
  /* Auf breiten Schirmen trägt die Seitenspalte das Verzeichnis. */
  .artikel-haupt > .artikel-inhalt {
    display: none;
  }
}

.artikel-rand-klebt {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rand-inhalt {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.rand-inhalt > p {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.rand-inhalt ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kapitel;
}
.rand-inhalt li {
  counter-increment: kapitel;
  margin-bottom: 9px;
}
.rand-inhalt li:last-child {
  margin-bottom: 0;
}
.rand-inhalt a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}
.rand-inhalt a:hover {
  color: var(--brand);
}

.rand-cta {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 16px;
  background: var(--brand-soft);
}
.rand-cta-titel {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.rand-cta .muted {
  margin: 0 0 14px;
  line-height: 1.5;
}

/* Weiterlesen mit Bereichsangabe */
.weiterlesen li a {
  display: flex;
  align-items: center;
  gap: 14px;
}
.weiterlesen-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.weiterlesen-bereich {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

@media (max-width: 760px) {
  .blog-gross {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }
  /* Auf dem Handy steht das Bild oben, so wie bei den kleinen Karten auch. */
  .blog-gross-bild {
    order: -1;
  }
}

/* Tabellen im Artikel rollen für sich, statt die Seite zu schieben. */
.artikel-text .tabelle-rahmen {
  margin: 0 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.artikel-text .tabelle-rahmen table {
  margin: 0;
  min-width: 100%;
  width: auto;
}

/* ---------- Vorlagen zum Abschreiben ---------- */

.fig-vorlage,
.fig-checkliste {
  padding: 22px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.artikel-text .vorlage-kopf {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}
.vorlage-felder {
  display: grid;
  gap: 20px;
}
.vorlage-feld {
  display: grid;
  gap: 2px;
}
.vorlage-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.vorlage-hinweis {
  font-size: 14px;
  color: var(--subtle);
}
.vorlage-linie {
  margin-top: 8px;
  height: 1px;
  border-bottom: 1px dashed var(--line-strong, #d3d8de);
}

.artikel-text .fig-checkliste ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.artikel-text .fig-checkliste li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.45;
}
.fig-checkliste .kasten {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border: 1.5px solid var(--line-strong, #d3d8de);
  border-radius: 5px;
}

@media (max-width: 680px) {
  .fig-vorlage,
  .fig-checkliste {
    padding: 18px 18px 20px;
  }
  .vorlage-felder {
    gap: 16px;
  }
}

