/* ============================================================
   toOrdr – Design System (nach toOrdr Styleguide / Claude Design)
   Slate · Teal · Sage · Amber — Hairlines statt Schatten
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Brand core ---- */
  --slate: #4D6D84;   /* primary – wordmark, heading anchor, button hover */
  --teal:  #5F9EB1;   /* accent + primary CTA (exactly ONE per view)      */
  --sage:  #8DC5BB;   /* soft accent – gradients, icon fills              */
  --amber: #E89A3C;   /* B2C / restaurateur layer ONLY                    */

  /* ---- Neutrals (warm, teal-tinted) ---- */
  --white:    #FFFFFF;
  --paper:    #F6F8F8;
  --hairline: #E4EBEB;
  --hairline-strong: #D2DCDC;
  --muted:    #9AAAB1;
  --ink-2:    #6E828C;
  --ink-1:    #2C4150;

  /* ---- Functional tints ---- */
  --teal-12:  rgba(95,158,177,0.12);
  --slate-08: rgba(77,109,132,0.08);
  --sage-16:  rgba(141,197,187,0.16);
  --amber-14: rgba(232,154,60,0.14);

  /* ---- Signature gradients ---- */
  --grad-mark: linear-gradient(145deg, var(--sage) 0%, var(--slate) 100%);
  --grad-soft: linear-gradient(135deg, var(--sage) 0%, var(--teal) 100%);

  /* ---- Type ---- */
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-h1: 44px; --lh-h1: 1.06; --tr-h1: -0.025em;
  --fs-h2: 32px; --lh-h2: 1.12; --tr-h2: -0.02em;
  --fs-h3: 24px; --lh-h3: 1.2;  --tr-h3: -0.015em;
  --fs-h4: 19px; --lh-h4: 1.3;  --tr-h4: -0.01em;
  --fs-body: 16px; --lh-body: 1.55;
  --fs-small: 14px; --fs-caption: 12px;
  --fs-mono-kpi: 40px; --tr-mono: -0.02em;

  /* ---- Spacing (8px grid) ---- */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 48px; --s-5: 72px; --s-6: 96px;
  --section-pad: 88px;

  /* ---- Radii ---- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  /* ---- Borders & Shadows (sparing – prefer hairlines) ---- */
  --border-hair: 1px solid var(--hairline);
  --shadow-xs: 0 1px 2px rgba(44,65,80,0.04);
  --shadow-sm: 0 2px 8px rgba(44,65,80,0.06);
  --shadow-md: 0 8px 28px rgba(44,65,80,0.08);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;

  /* ---- Layer accent (teal = B2B; amber pages override) ---- */
  --accent: var(--teal);
  --accent-tint: var(--teal-12);
}

/* Amber layer: Gastronomen & Click-und-Collect (B2C / restaurateur) */
.layer-amber {
  --accent: var(--amber);
  --accent-tint: var(--amber-14);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ===== TYPE ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-1);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tr-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--tr-h4); }
p  { text-wrap: pretty; }
.lead  { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); letter-spacing: 0.01em; color: var(--ink-2); }

/* Eyebrow – uppercase mono, the engineering signal */
.td-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  display: inline-block;
}

/* KPI / metric – always JetBrains Mono */
.kpi, .mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tr-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}

a { color: var(--teal); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--slate); }

/* ===== LAYOUT ===== */
.td-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.td-section { padding: var(--section-pad) 0; }
.td-section.paper { background: var(--paper); }
.td-section-head { max-width: 640px; margin-bottom: 48px; }
.td-section-head h2 { font-size: 38px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin: 14px 0 0; }
.td-section-head p { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; line-height: 1.5; }
.td-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== BUTTONS ===== */
.td-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--r-sm); padding: 12px 20px;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  white-space: nowrap; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.td-btn:active { transform: translateY(1px); }
.td-btn-primary { background: var(--accent); color: #fff; }
.td-btn-primary:hover { background: var(--slate); color: #fff; }
.td-btn-secondary { background: #fff; color: var(--slate); border-color: var(--hairline-strong); }
.td-btn-secondary:hover { background: var(--slate-08); color: var(--slate); }
.td-btn-ghost { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.td-btn-ghost:hover { color: var(--slate); }
.td-btn-light { background: #fff; color: var(--slate); }
.td-btn-light:hover { background: var(--paper); }
.td-btn svg { flex: none; }

/* ===== HEADER ===== */
.td-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-hair);
}
.td-header .in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.td-logo { height: 50px; width: auto; }
.td-nav { display: flex; align-items: center; gap: 30px; }
.td-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.td-nav a:hover, .td-nav a.active { color: var(--ink-1); }
.td-header-cta { display: flex; align-items: center; gap: 14px; }
.td-header-cta .login { font-size: 14.5px; font-weight: 600; color: var(--slate); }
.td-header-cta .phone {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.01em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.td-header-cta .phone:hover { color: var(--slate); }
.td-header-cta .phone svg { flex: none; color: var(--muted); transition: color var(--dur) var(--ease); }
.td-header-cta .phone:hover svg { color: var(--teal); }
@media (max-width: 1100px) { .td-header-cta .phone { display: none; } }

/* Header-CTA erscheint erst nach dem Scrollen (nur Startseite) */
.td-header-cta .cta-onscroll {
  opacity: 0; transform: translateY(-10px) scale(0.96);
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.65s var(--ease);
}
.td-header-cta .cta-onscroll.show {
  opacity: 1; transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

/* Mobile burger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 110; flex: none;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink-1);
  margin: 5px auto; transition: all var(--dur) var(--ease); border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.td-hero { padding: 84px 0 72px; }
.td-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.td-hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; margin: 18px 0 0; }
.td-hero .lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 22px 0 30px; max-width: 480px; }
.td-hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* metric strip */
.td-strip { display: flex; gap: 48px; margin-top: 48px; padding-top: 28px; border-top: var(--border-hair); flex-wrap: wrap; }
.td-strip .kpi { font-weight: 600; font-size: 32px; line-height: 1; }
.td-strip .kpi .u { color: var(--accent); font-size: 18px; }
.td-strip .cap { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* ===== PHOTO (echtes Foto oder kuratierter Platzhalter) ===== */
.td-photo {
  background: var(--paper); border: var(--border-hair);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); width: 100%;
  border-radius: var(--r-lg); overflow: hidden; position: relative;
}
.td-photo img { width: 100%; height: 100%; object-fit: cover; }
.td-photo .ph-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; inset: 0; justify-content: center;
  background: var(--paper); opacity: 0; pointer-events: none;
}
.td-photo.img-missing .ph-label { opacity: 1; }
.td-photo.img-missing img { visibility: hidden; }

/* ===== STEPS ===== */
.td-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.td-step { background: #fff; border: var(--border-hair); border-radius: var(--r-md); padding: 28px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.td-step:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-sm); }
.td-step .no { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.td-step .ic {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--sage-16); color: var(--slate);
  display: flex; align-items: center; justify-content: center; margin: 18px 0 16px;
}
.layer-amber .td-step .ic { background: var(--amber-14); }
.td-step h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.td-step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ===== PROOF BAND ===== */
.td-band {
  background: var(--ink-1); color: #fff; border-radius: var(--r-lg);
  padding: 52px 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.td-band.cols-3 { grid-template-columns: repeat(3, 1fr); }
.td-band .kpi { font-weight: 600; font-size: 44px; line-height: 1; color: #fff; }
.td-band .kpi .u { color: var(--sage); font-size: 24px; }
.td-band .cap { font-size: 14px; color: #aebcc4; margin-top: 12px; }

/* ===== FEATURE SPLIT ===== */
.td-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.td-split h2.big { font-size: 38px; letter-spacing: -0.025em; margin: 14px 0 0; line-height: 1.1; font-weight: 700; }
.td-featlist { list-style: none; margin: 24px 0 0; }
.td-featlist li { display: flex; gap: 14px; padding: 14px 0; border-top: var(--border-hair); align-items: flex-start; }
.td-featlist li .c { color: var(--accent); flex: none; margin-top: 1px; }
.td-featlist li .x { color: var(--muted); flex: none; margin-top: 1px; }
.td-featlist li h4 { font-size: 16px; margin: 0 0 3px; }
.td-featlist li p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ===== PRICING ===== */
.td-price {
  background: #fff; border: var(--border-hair); border-radius: var(--r-lg);
  padding: 48px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 1px 1.1fr; gap: 48px; align-items: center;
}
.td-price .big { font-family: var(--font-mono); font-weight: 600; font-size: 72px; letter-spacing: -0.03em; color: var(--ink-1); line-height: 0.9; font-variant-numeric: tabular-nums; }
.td-price .big .u { font-size: 34px; color: var(--accent); }
.td-price .sub { font-size: 15px; color: var(--ink-2); margin-top: 14px; }
.td-price .vline { background: var(--hairline); width: 1px; height: 100%; }
.td-price ul { list-style: none; }
.td-price li { display: flex; gap: 12px; padding: 11px 0; font-size: 15px; align-items: center; }
.td-price li .c { color: var(--accent); flex: none; }

/* ===== QUOTE / REFERENZ ===== */
.td-quote {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1.3; letter-spacing: -0.015em;
  font-weight: 600; color: var(--ink-1); text-wrap: balance;
}
.td-attrib { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.td-attrib .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-soft); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); font-size: 15px;
  overflow: hidden; flex: none;
}
.td-attrib .avatar img { width: 100%; height: 100%; object-fit: cover; }
.td-attrib strong { display: block; font-size: 15px; }
.td-attrib span { font-size: 13px; color: var(--ink-2); }

.td-facts { background: #fff; border: var(--border-hair); border-radius: var(--r-lg); padding: 36px; }
.td-facts.on-white { background: var(--paper); }
.td-facts h3 { font-size: 20px; margin-bottom: 4px; }
.td-facts .since { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; margin-bottom: 20px; }
.td-fact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: var(--border-hair); }
.td-fact-row .lbl { font-size: 14px; color: var(--ink-2); }
.td-fact-row .val { font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-fact-row .val .u { color: var(--accent); font-size: 14px; }

/* ===== SOLUTION TEASER CARDS ===== */
.td-solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.td-solution {
  background: #fff; border: var(--border-hair); border-radius: var(--r-md);
  padding: 32px; display: block;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.td-solution:hover { border-color: var(--hairline-strong); box-shadow: var(--shadow-sm); }
.td-solution .ic {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--amber-14); color: var(--amber);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.td-solution h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink-1); }
.td-solution p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }
.td-solution .go { font-size: 14.5px; font-weight: 600; color: var(--amber); display: inline-flex; align-items: center; gap: 7px; }
.td-solution:hover .go { color: var(--slate); }

/* ===== BACKEND MOCK (Gastro) ===== */
.backend-mock { background: #fff; border-radius: var(--r-md); overflow: hidden; border: var(--border-hair); box-shadow: var(--shadow-md); font-size: 13px; }
.backend-topbar { background: var(--ink-1); color: #fff; padding: 12px 18px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; }
.backend-topbar .dots { display: flex; gap: 5px; margin-right: 8px; }
.backend-topbar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); display: block; }
.backend-body { display: flex; }
.backend-side { background: var(--paper); padding: 14px 0; min-width: 132px; border-right: var(--border-hair); }
.backend-side span { display: block; padding: 8px 18px; color: var(--ink-2); font-size: 12.5px; }
.backend-side span.active { background: var(--accent-tint); color: var(--ink-1); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.backend-main { flex: 1; padding: 18px; }
.backend-main h4 { font-size: 13.5px; margin-bottom: 12px; }
.order-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: var(--border-hair); border-radius: var(--r-sm); margin-bottom: 8px; background: #fff; }
.order-row strong { font-size: 12.5px; display: block; }
.order-row span { font-size: 11.5px; color: var(--ink-2); }
.order-status { background: var(--sage-16); color: #3d7d6f; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; flex: none; }
.backend-stats { display: flex; gap: 10px; margin-top: 14px; }
.backend-stat { flex: 1; background: var(--paper); border-radius: var(--r-sm); padding: 10px; text-align: center; }
.backend-stat strong { display: block; font-family: var(--font-mono); font-size: 15px; letter-spacing: -0.02em; }
.backend-stat span { font-size: 10.5px; color: var(--ink-2); }

/* ===== APP-FRAME (animierte App-Vorschau) ===== */
.app-frame {
  width: 260px; background: #fff; border-radius: 34px;
  border: var(--border-hair); box-shadow: var(--shadow-md);
  overflow: hidden; margin: 0 auto;
}
.app-notch { width: 88px; height: 20px; background: var(--hairline); border-radius: 0 0 12px 12px; margin: 0 auto; }
.app-screen { background: var(--paper); padding: 14px; min-height: 420px; display: flex; flex-direction: column; gap: 8px; }
.app-header-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.app-header-sub { font-size: 11px; color: var(--ink-2); }
.app-section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding: 8px 2px 2px; }
.app-card {
  background: #fff; border: var(--border-hair); border-radius: var(--r-sm); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(10px);
  animation: cardIn 0.5s var(--ease) forwards;
}
.app-card:nth-of-type(1) { animation-delay: 0.25s; }
.app-card:nth-of-type(2) { animation-delay: 0.5s; }
.app-card:nth-of-type(3) { animation-delay: 0.75s; }
.app-card:nth-of-type(4) { animation-delay: 1s; }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
.app-card-dot { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--sage-16); flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.app-card-info { flex: 1; min-width: 0; }
.app-card-name { font-size: 12px; font-weight: 600; }
.app-card-sub { font-size: 10.5px; color: var(--ink-2); }
.app-card-price { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.app-order-btn { background: var(--teal); color: #fff; border: none; border-radius: var(--r-sm); padding: 12px; font-family: var(--font-body); font-size: 13px; font-weight: 600; margin-top: 6px; cursor: default; }

/* ===== STORE BADGES ===== */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-1); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.store-badge:hover { background: var(--slate); color: #fff; }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge-text { line-height: 1.25; text-align: left; }
.store-badge-text small { display: block; font-size: 10px; opacity: 0.75; }
.store-badge-text strong { font-size: 14.5px; font-weight: 600; }

/* ===== DEMO FORM ===== */
.td-form { background: #fff; border: var(--border-hair); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.td-field { margin-bottom: 18px; }
.td-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.td-field input, .td-field select, .td-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: var(--border-hair); border-radius: var(--r-sm); color: var(--ink-1); background: #fff;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.td-field input:focus, .td-field select:focus, .td-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-12);
}
.td-form .fine { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.form-ok { text-align: center; padding: 24px 8px; }
.form-ok .ring {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sage-16); color: #3d7d6f;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-ok h3 { font-size: 22px; margin-bottom: 8px; }
.form-ok p { color: var(--ink-2); font-size: 15px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Kontaktzeile unter dem Formular / CTA */
.contact-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.contact-links a { font-size: 14.5px; font-weight: 600; color: var(--slate); display: inline-flex; align-items: center; gap: 8px; }
.contact-links a:hover { color: var(--teal); }
.contact-links svg { flex: none; color: var(--accent); }

/* ===== FOOTER ===== */
.td-footer { background: var(--ink-1); color: #cfd9de; padding: 64px 0 36px; }
.td-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.td-footer h5 { font-size: 13px; color: #fff; margin: 0 0 16px; font-family: var(--font-body); font-weight: 600; }
.td-footer a { display: block; color: #aebcc4; font-size: 14px; padding: 6px 0; }
.td-footer a:hover { color: #fff; }
.td-footer .logo { height: 40px; width: auto; margin-bottom: 18px; }
.td-footer .about { font-size: 14px; color: #aebcc4; line-height: 1.5; max-width: 260px; }
.td-footer .bottom {
  border-top: 1px solid #3a4f5e; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #8fa1aa; font-family: var(--font-mono);
}

/* ===== GRID BACKGROUND (dekorativ) ===== */
.td-grid-bg {
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===== FAQ (Akkordeon) ===== */
.faq-list { max-width: 820px; }
.faq-item { border-top: var(--border-hair); }
.faq-list .faq-item:last-child { border-bottom: var(--border-hair); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink-1);
  transition: color var(--dur) var(--ease);
}
.faq-item summary:hover { color: var(--slate); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--hairline-strong); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), background var(--dur) var(--ease);
}
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--teal-12); }
.faq-item .faq-body { padding: 0 54px 24px 0; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.faq-item .faq-body a { font-weight: 600; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 72px 0 90px; }
.legal-page .td-wrap { max-width: 820px; }
.legal-page h1 { font-size: var(--fs-h1); margin-bottom: 10px; }
.legal-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 44px; }
.legal-content h2 { font-size: var(--fs-h3); margin: 44px 0 14px; }
.legal-content h3 { font-size: var(--fs-h4); margin: 28px 0 10px; }
.legal-content h4 { font-size: 16px; margin: 20px 0 8px; }
.legal-content p { margin-bottom: 14px; font-size: 15px; color: var(--ink-1); }
.legal-content ul, .legal-content ol { margin: 0 0 16px 22px; font-size: 15px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { word-break: break-word; }
.legal-content em { color: var(--ink-2); }

/* ===== CHOREOGRAFIERTER KAPITEL-AUFBAU =====
   Container mit direktem Eyebrow-Kind bauen sich inszeniert auf:
   1. Eyebrow blendet ein (Letter-Spacing zieht sich zusammen)
   2. Headline/Quote schiebt sich aus einer Maskierung hoch
   3. Restlicher Inhalt folgt gestaffelt */
@supports selector(:has(*)) {
  .reveal:has(> .td-eyebrow) { opacity: 1; transform: none; }

  .reveal:has(> .td-eyebrow) > .td-eyebrow {
    display: inline-block;
    opacity: 0; transform: translateY(10px); letter-spacing: 0.26em;
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), letter-spacing 0.7s var(--ease);
  }
  .reveal.visible:has(> .td-eyebrow) > .td-eyebrow {
    opacity: 1; transform: none; letter-spacing: 0.14em;
  }

  .reveal:has(> .td-eyebrow) > h2,
  .reveal:has(> .td-eyebrow) > .td-quote {
    clip-path: inset(0 0 100% 0);
    transform: translateY(30px);
    transition: clip-path 0.75s var(--ease) 0.15s, transform 0.75s var(--ease) 0.15s;
  }
  .reveal.visible:has(> .td-eyebrow) > h2,
  .reveal.visible:has(> .td-eyebrow) > .td-quote {
    clip-path: inset(-8% -4% -18% -4%);
    transform: none;
  }

  .reveal:has(> .td-eyebrow) > *:not(.td-eyebrow):not(h2):not(.td-quote) {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s var(--ease) 0.34s, transform 0.6s var(--ease) 0.34s;
  }
  .reveal.visible:has(> .td-eyebrow) > *:not(.td-eyebrow):not(h2):not(.td-quote) {
    opacity: 1; transform: none;
  }
}

/* ===== SCROLL REVEAL (dezent) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal > * { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; letter-spacing: inherit !important; }
  .reveal > .td-eyebrow { letter-spacing: 0.14em !important; }
  * { animation: none !important; }
  .c svg path { stroke-dashoffset: 0 !important; }
  html { scroll-behavior: auto; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 300;
  max-width: 520px; margin: 0 auto;
  background: #fff; border-radius: var(--r-md);
  border: var(--border-hair); box-shadow: var(--shadow-md);
  padding: 24px 26px;
  transform: translateY(24px); opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner h4 { font-size: 16px; margin-bottom: 8px; }
.cookie-banner p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .td-btn { padding: 10px 18px; font-size: 14px; }

/* ===== DEKOR: HAIRLINE-RASTER IM HERO ===== */
.td-hero { position: relative; }
.td-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 80% 15%, rgba(0,0,0,0.75), transparent 72%);
  mask-image: radial-gradient(ellipse 55% 75% at 80% 15%, rgba(0,0,0,0.75), transparent 72%);
}
.td-hero > .td-wrap { position: relative; z-index: 1; }

/* ===== SCROLLSPY-UNTERSTRICH ===== */
.td-nav a { position: relative; }
.td-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.td-nav a.active::after { transform: scaleX(1); }
.td-nav a.active { color: var(--ink-1); }

/* ===== BAND: TOORDR-MARKENVERLAUF + TRENNLINIEN ===== */
.td-band {
  background: linear-gradient(145deg,
    rgba(141,197,187,0.42) 0%,
    rgba(95,158,177,0.22) 42%,
    rgba(77,109,132,0.10) 68%,
    rgba(44,65,80,0) 100%), var(--ink-1);
}
@media (min-width: 961px) {
  .td-band > div + div { border-left: 1px solid rgba(255,255,255,0.09); padding-left: 32px; }
}

/* ===== QUOTE-DEKORATION ===== */
.td-quote::before {
  content: '„'; display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 64px; line-height: 0.35; color: var(--sage);
  margin: 10px 0 20px;
}

/* ===== OFFSET-BILDRAHMEN ===== */
.photo-offset {
  --offset-bg: var(--white);
  box-shadow: 12px 12px 0 -1px var(--offset-bg), 12px 12px 0 0 var(--hairline-strong);
}
.paper .photo-offset, .td-section.paper .photo-offset { --offset-bg: var(--paper); }

/* ===== MICRO-INTERACTIONS ===== */
.td-btn svg { transition: transform var(--dur) var(--ease); }
.td-btn:hover svg { transform: translateX(3px); }
.td-solution .go svg { transition: transform var(--dur) var(--ease); }
.td-solution:hover .go svg { transform: translateX(3px); }
.td-step { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.td-step:hover { transform: translateY(-3px); }
.td-step .ic { transition: transform 0.3s var(--ease); }
.td-step:hover .ic { transform: scale(1.08); }

/* Check-Häkchen zeichnen sich beim Reveal */
.c svg path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.visible .c svg path { animation: drawCheck 0.45s var(--ease) forwards; }
.visible .td-featlist li:nth-child(2) .c svg path { animation-delay: 0.12s; }
.visible .td-featlist li:nth-child(3) .c svg path { animation-delay: 0.24s; }
.visible .td-featlist li:nth-child(4) .c svg path { animation-delay: 0.36s; }
.visible .td-featlist li:nth-child(5) .c svg path { animation-delay: 0.48s; }
.visible .td-price li:nth-child(2) .c svg path { animation-delay: 0.12s; }
.visible .td-price li:nth-child(3) .c svg path { animation-delay: 0.24s; }
.visible .td-price li:nth-child(4) .c svg path { animation-delay: 0.36s; }
.visible .td-price li:nth-child(5) .c svg path { animation-delay: 0.48s; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ===== HERO: SCHWEBENDE LIVE-KARTEN ===== */
.hero-photo-wrap { position: relative; }
.hero-float {
  position: absolute; z-index: 3;
  display: flex; gap: 11px; align-items: center;
  background: #fff; border: var(--border-hair); border-radius: var(--r-md);
  padding: 12px 16px; box-shadow: var(--shadow-md);
  animation: floatY 4.5s ease-in-out infinite;
}
.hero-float.f-left { left: -26px; top: 40px; }
.hero-float.f-right { right: -18px; bottom: 56px; animation-delay: 2.2s; }
.hero-float .ic {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: none;
  background: var(--sage-16); color: #3d7d6f;
  display: flex; align-items: center; justify-content: center;
}
.hero-float strong { display: block; font-size: 13px; line-height: 1.3; color: var(--ink-1); }
.hero-float span { font-size: 11.5px; color: var(--ink-2); font-family: var(--font-mono); letter-spacing: -0.01em; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ===== STEPS-SHIMMER (Schimmer wandert durch die 3 Karten) ===== */
.steps-shimmer .td-step { position: relative; overflow: hidden; }
.steps-shimmer .td-step::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -70%; width: 55%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(95,158,177,0.07) 40%,
    rgba(141,197,187,0.18) 52%,
    rgba(95,158,177,0.07) 64%,
    transparent 100%);
  transform: skewX(-14deg);
  animation: stepShimmer 14.4s var(--ease) infinite;
  pointer-events: none;
}
.steps-shimmer .td-step { animation: stepGlow 14.4s infinite; }
.steps-shimmer .td-step:nth-child(1),
.steps-shimmer .td-step:nth-child(1)::after { animation-delay: 0s; }
.steps-shimmer .td-step:nth-child(2),
.steps-shimmer .td-step:nth-child(2)::after { animation-delay: 4.8s; }
.steps-shimmer .td-step:nth-child(3),
.steps-shimmer .td-step:nth-child(3)::after { animation-delay: 9.6s; }
@keyframes stepShimmer {
  0%   { left: -70%; }
  16%  { left: 115%; }
  100% { left: 115%; }
}
@keyframes stepGlow {
  0%, 18%, 100% { border-color: var(--hairline); }
  8% { border-color: rgba(95,158,177,0.5); }
}

/* ===== BENEFIT-RECHNER ===== */
.calc {
  background: #fff; border: var(--border-hair); border-radius: var(--r-lg);
  padding: 40px 48px; box-shadow: var(--shadow-sm); margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
}
.calc h3 { font-size: 22px; letter-spacing: -0.015em; }
.calc .calc-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 10px 0 26px; }
.calc-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.calc-label strong { font-family: var(--font-mono); color: var(--ink-1); font-size: 16px; }
.calc input[type="range"] {
  width: 100%; accent-color: var(--teal); cursor: pointer; height: 28px;
}
.calc-out { display: flex; flex-direction: column; gap: 22px; }
.calc-out .kpi { font-size: 32px; font-weight: 600; line-height: 1; }
.calc-out .kpi .u { color: var(--teal); font-size: 18px; }
.calc-out .cap { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .td-hero h1 { font-size: 44px; }
  .td-hero-grid, .td-split { grid-template-columns: 1fr; gap: 40px; }
  /* Mobile Lesereihenfolge: Zitat vor Zahlenbox (Auto-Christian-Case) */
  .m-order-first { order: -1; }
  .td-steps, .td-solutions { grid-template-columns: 1fr; }
  .td-band { grid-template-columns: 1fr 1fr; padding: 40px; }
  .td-band.cols-3 { grid-template-columns: 1fr 1fr; }
  .td-price { grid-template-columns: 1fr; gap: 32px; }
  .td-price .vline { display: none; }
  .td-section { padding: 64px 0; }
  .td-hero { padding: 56px 0; }

  .hero-float { display: none; }
  .calc { grid-template-columns: 1fr; gap: 32px; padding: 32px; }

  .nav-toggle { display: block; }
  /* Logo auf Mobil größer (Platz da, weil Nav-Links im Burger stecken) */
  .td-logo { height: 48px; }
  /* WICHTIG: backdrop-filter am Header sperrt position:fixed-Kinder in den
     Header ein (Containing Block) – auf Mobil deshalb deaktivieren. */
  .td-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #ffffff;
  }
  .td-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100dvh;
    z-index: 105;
    background: #F6F8F8;
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .td-nav.open { transform: translateX(0); }
  .td-nav a { font-size: 19px; color: var(--ink-1); }
  .td-header-cta .login { display: none; }
}
@media (max-width: 600px) {
  .td-wrap { padding: 0 20px; }
  .td-section { padding: 56px 0; }
  .td-hero { padding: 44px 0; }
  .td-hero h1 { font-size: 36px; }
  .td-section-head h2 { font-size: 30px; }
  .td-section-head { margin-bottom: 36px; }

  /* Sekundäre Elemente auf Mobil ausblenden */
  .m-hide { display: none !important; }

  /* Dunkles KPI-Band: kompaktes 2x2-Raster statt Riesen-Stapel */
  .td-band { grid-template-columns: repeat(2, 1fr); padding: 28px 26px; gap: 22px; border-radius: var(--r-md); }
  .td-band.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .td-band .kpi { font-size: 27px; }
  .td-band .kpi .u { font-size: 15px; }
  .td-band .cap { font-size: 12px; margin-top: 6px; }

  /* Hero-KPI-Strip kompakter */
  .td-strip { gap: 16px 28px; margin-top: 36px; padding-top: 22px; }
  .td-strip .kpi { font-size: 24px; }
  .td-strip .kpi .u { font-size: 14px; }
  .td-strip .cap { font-size: 12px; margin-top: 5px; }

  /* Backend-Mockup: Seitenleiste weglassen, nur Bestell-Liste zeigen */
  .backend-side { display: none; }

  /* Vollbreiten-Banner: weniger extrem beschnitten */
  .banner-wide { aspect-ratio: 16/9 !important; }

  /* Preis & Rechner kompakter */
  .td-price .big { font-size: 54px; }
  .td-price .big .u { font-size: 26px; }
  .calc-out { gap: 16px; }
  .calc-out .kpi { font-size: 26px; }

  .field-grid { grid-template-columns: 1fr; }
  .td-footer .cols { grid-template-columns: 1fr 1fr; }
  .td-price { padding: 32px; }
  .td-header-cta .td-btn { padding: 10px 14px; font-size: 14px; }
  .td-logo { height: 44px; }
  .td-header .in { height: 68px; }
}
