/* Landingpage Terminbutler24. Baut auf den Tokens aus styles.css auf.
   Leitbild wie im Panel: kühle Fläche, Farbe nur für Wärme. Punkte, die zum
   Butler laufen, sind kalt; was ihn verlässt, glüht. */

body.landing { background: var(--bg); overflow-x: hidden; }
.landing main { display: block; }
.landing .knopf.gross { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 11px; }

/* Navigation: ohne Linie, solange die Seite oben steht; beim Scrollen kommt eine leise Kante */
.l-nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.l-nav.gescrollt { border-bottom-color: var(--rand); }
.l-nav .marke { padding: 0; }
.l-nav .marke-wort { font-size: 21px; }
.l-links { display: flex; gap: 4px; margin-left: 12px; }
.l-links a { padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 1100px) { .l-nav-rechts .knopf.still { display: none; } }
.l-links a:hover { color: var(--text); background: var(--flaeche-3); }
.l-nav-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Typografie der Abschnitte */
.l-pille {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--rand-stark); background: var(--flaeche); font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.l-pille-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--glut); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glut) 22%, transparent); }
.klein-pille { font-family: var(--font-data); font-weight: 500; font-size: 11.5px; padding: 3px 10px; border-radius: 6px; }
.l-titel {
  margin: 18px 0 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(2.8rem, 1.2rem + 5.2vw, 5.6rem); font-variation-settings: "wdth" 85; text-wrap: balance;
}
.l-titel span { display: block; }
.l-titel.mittel { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.02; }
.l-akzent { background: linear-gradient(92deg, var(--frost) 0%, var(--kuehl) 35%, var(--lau) 70%, var(--glut) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
/* Verlauf nur so breit wie der Text, damit die Glut am Wortende ankommt */
.l-titel .l-akzent { display: table; margin-inline: auto; }
.l-leise { color: var(--text-3); }
.l-unter { margin: 22px auto 0; max-width: 37rem; font-size: clamp(1rem, .95rem + .3vw, 1.18rem); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.l-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.l-klein { margin: 18px 0 0; font-size: 12.5px; color: var(--text-3); }

/* Hero */
.l-hero { position: relative; max-width: 1000px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.l-hero::after {
  /* das kalte und das heiße Glühen unter der Überschrift */
  content: ""; position: absolute; left: 10%; right: 10%; top: 38%; height: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 30% 50%, color-mix(in srgb, var(--frost) 22%, transparent), transparent 70%), radial-gradient(40% 60% at 72% 50%, color-mix(in srgb, var(--glut) 16%, transparent), transparent 70%);
  filter: blur(30px);
}

/* Bento */
.l-bento-bereich { max-width: 1120px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; text-align: left; }
.b-karte {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--rand); border-radius: 4px; background: var(--flaeche);
  background-image: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--flaeche-3) 70%, transparent), transparent 60%);
}
/* Eckmarken wie Schnittmarken auf einem Bogen */
.b-karte::before, .b-karte::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none; border-color: var(--text-3);
}
.b-karte::before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid; }
.b-karte::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.b-breit { grid-column: 1 / -1; }
.b-bild { display: block; width: 100%; height: auto; }
.b-breit .b-bild { padding: 18px 18px 0; }
.b-karte:not(.b-breit) .b-bild { padding: 18px 10px 0; }
.b-texte { padding: 6px 28px 28px; }
.b-texte.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.b-texte h3 { margin: 0; font-size: 15px; font-weight: 700; }
.b-texte p { margin: 6px 0 0; max-width: 34rem; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* SVG-Bausteine, alle an Tokens */
.b-kachel { fill: var(--flaeche-2); stroke: var(--rand-stark); stroke-width: 1; }
.b-kachel.stark { fill: var(--flaeche); stroke: var(--text-3); }
.b-strich { fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.b-strich.stark { stroke: var(--text); }
.b-ok { fill: var(--gut); stroke: var(--flaeche); stroke-width: 2; }
.b-weg { fill: none; stroke: var(--rand-stark); stroke-width: 1.4; stroke-dasharray: 3 5; }
.b-weg.gerade { stroke-dasharray: none; stroke: var(--rand-stark); }
.b-punkt.kalt { fill: var(--frost); }
.b-punkt.heiss { fill: var(--glut); filter: drop-shadow(0 0 5px var(--glut)); }
.b-mono { font-family: var(--font-data); font-size: 13px; letter-spacing: .14em; fill: var(--text-2); }
.b-mono.klein { font-size: 10.5px; letter-spacing: .1em; fill: var(--text-3); }
.b-mono.winzig { font-size: 7px; letter-spacing: .08em; fill: var(--glut-text); font-weight: 500; }
.b-blatt { fill: var(--flaeche); stroke: var(--rand-stark); }
.b-blatt.mitte { fill: var(--flaeche-2); opacity: .8; }
.b-blatt.hinten { fill: var(--flaeche-2); opacity: .5; }
.b-zeile { fill: var(--text-3); }
.b-zeile.leise { fill: var(--rand-stark); }
.b-balken { fill: var(--text-3); }
.b-balken.glut { fill: var(--glut); }
.b-pille { fill: var(--glut-flaeche); stroke: color-mix(in srgb, var(--glut) 40%, transparent); }

/* Prognose zum Hineinfahren */
.b-prognose { position: relative; color: var(--text); cursor: crosshair; outline: none; }
.b-prognose:focus-visible { box-shadow: inset 0 0 0 2px var(--fokus); }
.b-raster line { stroke: var(--rand); stroke-dasharray: 2 6; }
.b-flaeche { fill: url(#unter-kurve); }
/* Von Haus aus sichtbar. Nur solange JS auf das Hineinscrollen wartet, ist die Linie versteckt. */
.b-kurve { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--laenge, 2000); stroke-dashoffset: 0; }
.b-kurve.prognose { stroke: var(--glut); stroke-dasharray: 4 5; transition: opacity .4s .9s; }
.wartet .b-kurve:not(.prognose) { stroke-dashoffset: var(--laenge, 2000); }
.wartet .b-kurve.prognose { opacity: 0; transition: none; }
.zeichnet .b-kurve:not(.prognose) { animation: zeichnen 1.4s var(--ease) both; }
@keyframes zeichnen { from { stroke-dashoffset: var(--laenge, 2000); } to { stroke-dashoffset: 0; } }
.b-trenner { stroke: var(--text-3); stroke-dasharray: 3 4; }
.b-marke-linie { stroke: var(--text-2); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.b-marke-punkt { fill: var(--bg); stroke: var(--text); stroke-width: 2; opacity: 0; transition: opacity .15s; }
.b-prognose.zeigt .b-marke-linie, .b-prognose.zeigt .b-marke-punkt { opacity: 1; }
.b-tipp {
  position: absolute; top: 9%; right: 6%; padding: 4px 9px; border-radius: 6px;
  background: var(--tinte); color: var(--tinte-text); font-size: 12px; font-weight: 600; white-space: nowrap;
  transform: translate(0, 0); pointer-events: none; transition: opacity .2s;
}
.b-tipp .mono { font-family: var(--font-data); }
.b-zielpunkt {
  position: absolute; top: calc(9% - 10px); right: calc(6% - 18px); width: 18px; height: 18px; border-radius: 50%;
  background: var(--tinte); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glut) 35%, transparent);
}
.b-zielpunkt::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--glut); }
.b-prognose.zeigt .b-zielpunkt { opacity: 0; }

/* Ablauf: Zeitleiste kalt → heiß. Ohne laufende Animation zeigt jedes Bild seinen fertigen Zustand. */
.l-ablauf { max-width: 1180px; margin: 0 auto; padding: 100px 24px 40px; text-align: center; }
.l-weg { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.l-weg::before {
  content: ""; position: absolute; left: 17px; right: 17px; top: 16px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--frost), var(--kuehl) 35%, var(--lau) 65%, var(--glut)); opacity: .55;
}
.l-weg::after {
  content: ""; position: absolute; top: 14px; left: 17px; width: 80px; height: 6px; border-radius: 3px; opacity: 0;
  background: radial-gradient(closest-side, var(--glut), transparent); filter: blur(1px);
}
.l-weg.laeuft::after { animation: l-funke 4.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes l-funke { 0% { left: 17px; opacity: 0; background: radial-gradient(closest-side, var(--frost), transparent); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 97px); opacity: 0; } }
.l-schritt-kopf { display: flex; align-items: center; gap: 12px; }
/* Nummer und Beschriftung liegen über Linie und Funke (::after wird sonst zuletzt gezeichnet) */
.l-schritt-nr, .l-schritt-zeit { z-index: 1; }
.l-schritt-nr {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--bg); border: 2px solid; font-family: var(--font-data); font-size: 13px; font-weight: 500;
}
.kalt .l-schritt-nr { border-color: var(--frost); color: var(--frost-text); }
.warm .l-schritt-nr { border-color: var(--lau); color: var(--lau-text); }
.heiss .l-schritt-nr { border-color: var(--glut); color: var(--glut-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glut) 18%, transparent), 0 0 24px -2px color-mix(in srgb, var(--glut) 60%, transparent); }
.l-schritt-zeit { position: relative; padding: 2px 10px; margin-left: -4px; border-radius: 999px; background: var(--bg); font-family: var(--font-data); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.l-schritt-karte {
  position: relative; isolation: isolate; height: calc(100% - 50px); margin-top: 16px; padding: 18px 18px 22px; border-radius: 18px;
  border: 1px solid var(--rand); background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}
.l-schritt-karte::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.kalt .l-schritt-karte::before { background: radial-gradient(60% 55% at 25% 15%, color-mix(in srgb, var(--frost) 13%, transparent), transparent 70%); }
.warm .l-schritt-karte::before { background: radial-gradient(60% 55% at 50% 15%, color-mix(in srgb, var(--lau) 11%, transparent), transparent 70%); }
.heiss .l-schritt-karte::before { background: radial-gradient(60% 55% at 75% 15%, color-mix(in srgb, var(--glut) 15%, transparent), transparent 70%); }
.l-schritt-karte h3 { margin: 18px 0 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.l-schritt-karte p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.l-bild { display: grid; align-content: center; gap: 8px; height: 156px; padding: 14px; border-radius: 12px; border: 1px solid var(--rand); background: color-mix(in srgb, var(--bg) 70%, var(--flaeche)); overflow: hidden; }

/* Bild 1: Formular füllt sich */
.l-feld { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rand); background: var(--flaeche); }
.l-feld span { width: 52px; flex: none; font-size: 11px; color: var(--text-3); }
.l-feld b { display: block; width: calc(var(--z) * 1ch + 3px); overflow: hidden; white-space: nowrap; font-family: var(--font-data); font-size: 11.5px; font-weight: 500; color: var(--text); border-right: 1.5px solid transparent; }
.l-fortschritt { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.l-fortschritt i { position: relative; flex: 1; height: 5px; border-radius: 3px; background: var(--flaeche-3); overflow: hidden; }
.l-fortschritt i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--frost), var(--kuehl)); }
.l-fortschritt span { font-family: var(--font-data); font-size: 11px; color: var(--frost-text); }
.l-weg.laeuft .l-feld b { animation: l-tippen 7s steps(var(--z)) infinite; }
.l-weg.laeuft .l-feld:nth-child(2) b { animation-delay: .8s; }
.l-weg.laeuft .l-feld:nth-child(3) b { animation-delay: 1.6s; }
@keyframes l-tippen { 0% { width: 0; border-right-color: var(--frost); } 22% { width: calc(var(--z) * 1ch + 3px); border-right-color: var(--frost); } 24%, 92% { width: calc(var(--z) * 1ch + 3px); border-right-color: transparent; } 100% { width: 0; } }
.l-weg.laeuft .l-fortschritt i::after { animation: l-fuellen 7s ease-in-out infinite; }
@keyframes l-fuellen { 0% { transform: translateX(-100%); } 55%, 92% { transform: none; } 100% { transform: translateX(-100%); } }

/* Bild 2: Checkliste und Aufwärmen */
.l-punkt { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text); }
.l-punkt i { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--lau); background: var(--lau); }
.l-punkt i::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid #0B0D14; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.l-weg.laeuft .l-punkt i { animation: l-haken 7s infinite; animation-delay: calc(var(--n) * .7s); }
.l-weg.laeuft .l-punkt { animation: l-punkt-text 7s infinite; animation-delay: calc(var(--n) * .7s); }
@keyframes l-haken { 0%, 8% { background: transparent; border-color: var(--rand-stark); } 12%, 92% { background: var(--lau); border-color: var(--lau); } 100% { background: transparent; border-color: var(--rand-stark); } }
@keyframes l-punkt-text { 0%, 8% { color: var(--text-3); } 12%, 92% { color: var(--text); } 100% { color: var(--text-3); } }
.l-aufwaermen { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--text-3); }
.l-aufwaermen b { font-family: var(--font-data); font-weight: 400; color: var(--lau-text); }
.l-tage { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.l-tage i { height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--lau) 75%, var(--glut)); }
.l-weg.laeuft .l-tage i { animation: l-tag 7s infinite; }
.l-tage i:nth-child(1) { animation-delay: 2.2s; } .l-tage i:nth-child(2) { animation-delay: 2.45s; } .l-tage i:nth-child(3) { animation-delay: 2.7s; }
.l-tage i:nth-child(4) { animation-delay: 2.95s; } .l-tage i:nth-child(5) { animation-delay: 3.2s; } .l-tage i:nth-child(6) { animation-delay: 3.45s; }
.l-tage i:nth-child(7) { animation-delay: 3.7s; } .l-tage i:nth-child(8) { animation-delay: 3.95s; } .l-tage i:nth-child(9) { animation-delay: 4.2s; }
.l-tage i:nth-child(10) { animation-delay: 4.45s; }
@keyframes l-tag { 0%, 3% { background: var(--flaeche-3); } 6%, 60% { background: color-mix(in srgb, var(--lau) 75%, var(--glut)); } 66%, 100% { background: var(--flaeche-3); } }

/* Bild 3: Termine springen in die Woche */
.l-woche { align-content: start; gap: 6px; }
.l-woche-kopf, .l-woche-raster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.l-woche-kopf span { font-size: 10.5px; color: var(--text-3); text-align: center; }
.l-woche-raster i { height: 31px; border-radius: 7px; background: var(--flaeche-3); opacity: .55; }
.l-woche-raster i.t {
  display: grid; place-items: center; opacity: 1; font-style: normal; font-family: var(--font-data); font-size: 10.5px;
  background: var(--glut-flaeche); border: 1px solid var(--glut); color: var(--glut-text);
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--glut) 70%, transparent);
}
.l-weg.laeuft .l-woche-raster i.t { animation: l-termin 7s infinite; animation-delay: calc(var(--n) * .75s); }
@keyframes l-termin { 0%, 4% { opacity: 0; transform: scale(.6); } 9% { opacity: 1; transform: scale(1.08); } 13%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }

/* Abschluss: großes Feld mit Strahlen, kalt links, heiß rechts */
.l-schluss { max-width: 1180px; margin: 0 auto; padding: 90px 24px 110px; }
.l-schluss-feld {
  position: relative; isolation: isolate; overflow: hidden; padding: 76px 32px 58px; border-radius: 28px; text-align: center;
  border: 1px solid var(--rand); background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent);
}
.l-schluss-feld::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 70% at 8% 100%, color-mix(in srgb, var(--frost) 18%, transparent), transparent 70%), radial-gradient(45% 70% at 92% 100%, color-mix(in srgb, var(--glut) 18%, transparent), transparent 70%);
}
.l-schluss-strahlen {
  position: absolute; z-index: -1; left: 50%; top: 104px; width: 1400px; height: 1400px; margin-left: -700px; margin-top: -700px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rand-stark) 55%, transparent) 0deg 2.5deg, transparent 2.5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 75%); mask-image: radial-gradient(closest-side, #000, transparent 75%);
  opacity: .55; animation: l-drehen 90s linear infinite;
}
@keyframes l-drehen { to { transform: rotate(360deg); } }
.l-schluss-zeichen { display: block; margin: 0 auto; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--glut) 45%, transparent)); }
.l-zusagen { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; font-size: 13px; color: var(--text-2); }
.l-zusagen li { display: inline-flex; align-items: center; gap: 7px; }
.l-zusagen svg { width: 15px; height: 15px; fill: none; stroke: var(--glut); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .l-weg::after, .l-weg *, .l-schluss-strahlen { animation: none !important; } }

.l-fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 22px 24px 32px; border-top: 1px solid var(--rand); }
.marke-wort.klein { font-size: 16px; }
/* Fuß: Fliege und Wortmarke wie in der Kopfzeile, darunter der Rechtsträger */
.l-fuss .l-fuss-marke { padding: 0; gap: 10px; color: var(--text); }
.l-fuss .l-fuss-marke .marke-wort { font-size: 18px; }
.l-fuss .l-fuss-marke small { margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.l-fuss .l-fuss-marke:hover { color: var(--text); }
.l-fuss nav { display: flex; gap: 16px; }
.l-fuss a { color: var(--text-3); font-size: 13px; text-decoration: none; }
.l-fuss a:hover { color: var(--text); }

/* Hero-Hintergrund: Fließband auf gekippter Ebene, leise unter der unteren Hero-Hälfte */
.l-hero { isolation: isolate; padding-bottom: 340px; }
.l-hero > :not(.l-fliess) { position: relative; z-index: 1; }
.l-fliess {
  position: absolute; z-index: 0; left: 50%; top: auto; height: 620px; bottom: -90px; width: 100vw; margin-left: -50vw;
  perspective: 1500px; overflow: hidden; pointer-events: none; opacity: .62;
  /* außen und zur Überschrift hin auslaufen */
  -webkit-mask-image: radial-gradient(ellipse 62% 75% at 50% 58%, #000 40%, transparent 82%), linear-gradient(to bottom, transparent 18%, #000 46%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 62% 75% at 50% 58%, #000 40%, transparent 82%), linear-gradient(to bottom, transparent 18%, #000 46%);
  mask-composite: intersect;
}
/* Ebene, Bänder, Karten und Scanner-Linie stehen in fliessband.css */
@media (max-width: 860px) {
  .l-fliess { opacity: .5; height: 430px; bottom: -50px; }
  .l-fliess-ebene { transform: scale(.62) rotateX(62deg) rotateZ(-22deg); top: 60%; }
}

/* Funktionsabschnitt (ink-orbit.css bleibt Original): Variablen auf unsere Tokens legen.
   #ink-orbit.ib-root schlägt .ib-root[data-theme="dark"], gilt also in Hell und Dunkel. */
#ink-orbit.ib-root {
  --ib-page: var(--bg); --ib-hatch: transparent; --ib-paper: var(--bg);
  --ib-card: var(--flaeche); --ib-raise: var(--flaeche-2);
  --ib-ink: var(--text); --ib-soft: var(--text-2); --ib-muted: var(--text-3);
  --ib-faint: color-mix(in srgb, var(--text-3) 70%, var(--bg));
  --ib-line: var(--rand); --ib-line-strong: var(--rand-stark); --ib-bracket: var(--rand-stark);
  --ib-inv: var(--tinte); --ib-inv-ink: var(--tinte-text);
  --ib-shadow: 0 1px 2px rgba(15, 19, 26, .06), 0 10px 30px -14px rgba(15, 19, 26, .25);
  background: transparent; padding: 0 clamp(10px, 2.4vw, 28px);
}
[data-theme="dunkel"] #ink-orbit.ib-root { --ib-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7); }
#ink-orbit .ib-sec { background: transparent; border: 0; }
/* Formensprache des Hero: Schriften, Überschrift, Pille, runde Karten mit Wärme-Glühen */
#ink-orbit.ib-root { --ib-sans: var(--font-body); --ib-mono: var(--font-data); }
#ink-orbit .ib-head { gap: 0; }
#ink-orbit .ib-h2 {
  margin-top: 18px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); font-variation-settings: "wdth" 85; text-wrap: balance;
}
#ink-orbit .ib-h2 .ib-muted {
  background: linear-gradient(92deg, var(--frost) 0%, var(--kuehl) 35%, var(--lau) 70%, var(--glut) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em;
}
#ink-orbit .ib-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--text-2);
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0;
}
#ink-orbit .ib-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glut); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glut) 22%, transparent); }
#ink-orbit .ib-card {
  position: relative; isolation: isolate; border-radius: 18px; border-color: var(--rand);
  background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}
#ink-orbit .ib-card:hover { border-color: var(--rand-stark); }
/* leises Glühen hinter jeder Karte, nach der Wärmelogik: kalt links, heiß rechts */
#ink-orbit .ib-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; }
#ink-orbit .ib-bento > .ib-frame:nth-child(1) .ib-card::before { background: radial-gradient(40% 70% at 12% 30%, color-mix(in srgb, var(--frost) 12%, transparent), transparent 70%), radial-gradient(40% 70% at 88% 35%, color-mix(in srgb, var(--glut) 13%, transparent), transparent 70%); }
#ink-orbit .ib-bento > .ib-frame:nth-child(2) .ib-card::before { background: radial-gradient(60% 60% at 30% 25%, color-mix(in srgb, var(--frost) 11%, transparent), transparent 70%); }
#ink-orbit .ib-bento > .ib-frame:nth-child(3) .ib-card::before { background: radial-gradient(55% 60% at 85% 15%, color-mix(in srgb, var(--glut) 12%, transparent), transparent 70%); }
#ink-orbit .ib-bento > .ib-frame:nth-child(4) .ib-card::before { background: radial-gradient(55% 55% at 20% 15%, color-mix(in srgb, var(--glut) 9%, transparent), transparent 70%); }
#ink-orbit .ib-bento > .ib-frame:nth-child(5) .ib-card::before { background: radial-gradient(45% 55% at 15% 20%, color-mix(in srgb, var(--frost) 9%, transparent), transparent 70%), radial-gradient(40% 50% at 90% 10%, color-mix(in srgb, var(--glut) 9%, transparent), transparent 70%); }
#ink-orbit .ib-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
#ink-orbit .ib-card p { font-size: 13.5px; color: var(--text-2); max-width: 44ch; }
#ink-orbit .ib-tab { border-radius: 12px; }
#ink-orbit .ib-log { border-radius: 10px; }
#ink-orbit .ib-log-icon { border-radius: 7px; }
#ink-orbit .ib-ki-uhr { border-radius: 999px; padding: 4px 10px; }

/* ohne die Eckklammern um die Karten */
#ink-orbit .ib-c { display: none; }
/* erste Karte so breit wie die zwei kleinen zusammen (Original begrenzt auf 820 px) */
#ink-orbit .ib-wide { width: 100%; }
/* Breite Karte: drei Texte unter Postausgang, Butler und Abschluss */
@container (min-width:560px) {
  #ink-orbit .ib-wide-copy { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  #ink-orbit .ib-wide-copy > div:last-child { justify-self: stretch; }
}
/* Kalt zum Butler, glühend heraus */
#ink-orbit .ib-pkt.kalt { fill: var(--frost); }
#ink-orbit .ib-pkt.heiss { fill: var(--glut); filter: drop-shadow(0 0 4px var(--glut)); }
#ink-orbit .ib-balken-glut { fill: var(--glut); opacity: 1; }

/* Abschluss-Stapel: Blätter gleiten nach hinten, das neue kommt aus Richtung Butler */
#ink-orbit .ib-blatt { transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .75s ease; }
#ink-orbit .ib-blatt-inhalt { transition: opacity .45s ease; }
#ink-orbit .ib-blatt-hinten .ib-blatt-inhalt { opacity: 0; }
/* backwards, nicht both: sonst hielte die Animation das Blatt vorn fest und es könnte nicht nach hinten gleiten */
#ink-orbit .ib-neu { animation: ib-ankunft .7s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes ib-ankunft {
  from { transform: translate(392px, 76px) scale(.82) rotate(-4deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translate(450px, 40px) scale(1) rotate(0deg); opacity: 1; }
}
/* Zeilen schieben sich ein, Balken wachsen nacheinander, der Glut-Balken glüht auf, dann der Haken */
#ink-orbit .ib-neu .ib-zeile { transform-box: fill-box; transform-origin: left center; animation: ib-zeile .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
@keyframes ib-zeile { from { transform: scaleX(0); } }
#ink-orbit .ib-neu .ib-balken { transform-box: fill-box; transform-origin: center bottom; animation: ib-balken .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(.5s + var(--i, 0) * 65ms); }
@keyframes ib-balken { from { transform: scaleY(0); } }
#ink-orbit .ib-neu .ib-balken-glut { animation: ib-balken .5s cubic-bezier(.3,1.4,.5,1) both, ib-gluehen 1.1s ease-out 1.05s; animation-delay: .83s, 1.05s; }
@keyframes ib-gluehen { 0% { filter: drop-shadow(0 0 0 transparent); } 30% { filter: drop-shadow(0 0 6px var(--glut)); } 100% { filter: drop-shadow(0 0 0 transparent); } }
#ink-orbit .ib-haken { transform-box: fill-box; transform-origin: center; }
#ink-orbit .ib-neu .ib-haken { animation: ib-haken .45s cubic-bezier(.3,1.7,.5,1) both 1.1s; }
@keyframes ib-haken { from { transform: translate(124px, 14px) scale(0); opacity: 0; } to { transform: translate(124px, 14px) scale(1); opacity: 1; } }
/* Karte 4: Kampagnentabelle, Zeilen gleiten beim Umsortieren */
#ink-orbit .ib-tab { border: 1px solid var(--ib-line); border-radius: 8px; background: var(--ib-raise); overflow: hidden; font-size: 12.5px; }
#ink-orbit .ib-tab-kopf, #ink-orbit .ib-tab-zeile { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0 14px; }
#ink-orbit .ib-tab-kopf { height: 32px; border-bottom: 1px solid var(--ib-line); background: var(--ib-card); font-family: var(--ib-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ib-muted); }
#ink-orbit .ib-tab-kopf span:last-child, #ink-orbit .ib-kosten { text-align: right; }
#ink-orbit .ib-tab-koerper { position: relative; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
#ink-orbit .ib-tab-zeile {
  position: absolute; left: 0; right: 0; top: 0; height: 36px; border-bottom: 1px solid var(--ib-line); background: var(--ib-raise);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), color .4s, background-color .4s;
}
#ink-orbit .ib-tab-zeile span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ink-orbit .ib-st { display: inline-flex; align-items: center; gap: 7px; color: var(--ib-muted); }
#ink-orbit .ib-st i { width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; opacity: .7; }
#ink-orbit .ib-kosten { font-family: var(--ib-mono); font-size: 11.5px; color: var(--ib-soft); }
#ink-orbit [data-st="skaliert"] .ib-st { color: var(--glut-text); }
#ink-orbit [data-st="skaliert"] .ib-st i { background: var(--glut); opacity: 1; box-shadow: 0 0 6px var(--glut); }
#ink-orbit [data-st="laeuft"] .ib-st i { background: var(--lau); opacity: 1; }
#ink-orbit [data-st="pausiert"] { color: var(--ib-faint); }
#ink-orbit [data-st="pausiert"] .ib-kosten { color: var(--ib-faint); }
#ink-orbit .ib-wechsel { animation: ib-wechsel 1s ease-out; }
@keyframes ib-wechsel { 0% { background: color-mix(in srgb, var(--glut) 14%, var(--ib-raise)); } 100% { background: var(--ib-raise); } }

/* Karte 5: Wochenleiste und Protokoll der täglichen Eingriffe */
#ink-orbit .ib-ki { display: flex; flex-direction: column; gap: 12px; }
#ink-orbit .ib-ki-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#ink-orbit .ib-ki-uhr { font-family: var(--ib-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ib-muted); padding: 4px 8px; border: 1px solid var(--ib-line); background: var(--ib-card); }
#ink-orbit .ib-tage { display: flex; gap: 4px; }
#ink-orbit .ib-tage span { display: grid; justify-items: center; gap: 4px; width: 26px; font-size: 10px; color: var(--ib-faint); }
#ink-orbit .ib-tage i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ib-line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
#ink-orbit .ib-tage .erledigt { color: var(--ib-muted); }
#ink-orbit .ib-tage .erledigt i { background: var(--ib-muted); border-color: var(--ib-muted); }
#ink-orbit .ib-tage .heute { color: var(--ib-ink); font-weight: 600; }
#ink-orbit .ib-tage .heute i { background: var(--glut); border-color: var(--glut); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glut) 22%, transparent); }
/* fest vier Zeilen (4 × 40 px + 3 × 6 px): gehende Einträge können die Karte nicht strecken */
#ink-orbit .ib-ki-log { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 40px; gap: 6px; height: 178px; overflow: hidden; }
#ink-orbit .ib-log {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 10px; border: 1px solid var(--ib-line); background: var(--ib-raise); font-size: 12px; color: var(--ib-muted);
  transition: opacity .4s, transform .4s;
}
#ink-orbit .ib-log b { color: var(--ib-ink); font-weight: 600; }
#ink-orbit .ib-log span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ink-orbit .ib-log time { font-family: var(--ib-mono); font-size: 10px; color: var(--ib-faint); }
#ink-orbit .ib-log-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ib-line-strong); background: var(--ib-card); color: var(--ib-soft); }
#ink-orbit .ib-log-icon svg { width: 13px; height: 13px; }
#ink-orbit .ib-log:first-child .ib-log-icon { color: var(--glut-text); border-color: color-mix(in srgb, var(--glut) 50%, transparent); }
#ink-orbit .ib-log-neu { animation: ib-log-rein .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ib-log-rein { from { opacity: 0; transform: translateY(-10px); } }
#ink-orbit .ib-log-weg { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { #ink-orbit .ib-tab-zeile, #ink-orbit .ib-log { transition: none; } #ink-orbit .ib-log-neu, #ink-orbit .ib-wechsel { animation: none; } }

/* Ankunft: die Wege vom Butler zum Stapel leuchten kurz in Glut */
#ink-orbit .ib-flow.ib-ankunft { stroke: var(--glut); transition: stroke .2s; }
@media (prefers-reduced-motion: reduce) {
  #ink-orbit .ib-neu, #ink-orbit .ib-neu * { animation: none !important; }
  #ink-orbit .ib-blatt { transition: none; }
}

/* Buchung als Popup */
.buchung-dialog {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: auto;
  border: 1px solid var(--rand); border-radius: 20px; background: var(--bg); color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .55); overscroll-behavior: contain;
}
.buchung-dialog::backdrop { background: rgba(8, 10, 14, .62); backdrop-filter: blur(4px); }
.buchung-dialog[open] { animation: popup-auf .3s var(--ease); }
@keyframes popup-auf { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.buchung-zu {
  position: sticky; top: 14px; float: right; z-index: 30; margin: 14px 14px -50px 0;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rand-stark); background: var(--flaeche); color: var(--text); cursor: pointer;
}
.buchung-zu:hover { background: var(--flaeche-3); }
.buchung-dialog .osb { padding: 40px 40px 56px; }
.buchung-dialog .osb-h { font-size: clamp(1.9rem, 1rem + 2.4vw, 3.1rem); }
.buchung-dialog .osb-stage { margin-top: 34px; max-width: none; }
/* ohne die orange Schräg-Fläche: das Fenster steht für sich, mit Rand statt Fläche */
.buchung-dialog .osb-slab { display: none; }
.buchung-dialog .osb-win { border: 1px solid var(--rand-stark); }
@media (prefers-reduced-motion: reduce) { .buchung-dialog[open] { animation: none; } }

@media (max-width: 860px) {
  .buchung-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .buchung-dialog .osb { padding: 28px 16px 40px; }
  .l-links { display: none; }
  .l-nav { gap: 12px; padding: 12px 16px; }
  .l-nav-rechts .knopf.still { display: none; }
  .l-modus { --k: 30px; }
  .l-hero { padding: 64px 18px 250px; }
  .bento { grid-template-columns: 1fr; }
  .b-texte.zwei { grid-template-columns: 1fr; gap: 18px; }
  .b-texte { padding: 6px 20px 22px; }
  .l-weg { grid-template-columns: 1fr; gap: 28px; }
  .l-weg::before, .l-weg::after { display: none; }
  .l-schritt-karte { height: auto; }
  .l-schluss { padding: 60px 14px 80px; }
  .l-schluss-feld { padding: 56px 18px 44px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-kurve { stroke-dashoffset: 0; animation: none !important; }
}

/* Schmale Handys: die Pille bleibt, der Nav-Knopf weicht (der Hero hat ihn groß) */
@media (max-width: 520px) { .l-nav-rechts .knopf.primaer { display: none; } }

/* Schmal: Links unter das Logo, umbrechen erlaubt */
@media (max-width: 640px) {
  .l-fuss { flex-direction: column; align-items: flex-start; gap: 14px; }
  .l-fuss nav { flex-wrap: wrap; gap: 10px 16px; }
}
