/* Effekt-Paket (Testfassung, nur entwurf-effekte/). Baut auf studio.css und dunkel.css auf. */

/* ---------- Leitmotiv: der Funke ---------- */
.funke-punkt, .fortschritt-funke, .reise__funke, .zeitleiste__funke, .kapitel .ist-aktiv .kapitel__punkt {
  --funke: #ff7900;
}
.fortschritt-funke {
  position: fixed; z-index: 61; top: -3px; left: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #ffb066; box-shadow: 0 0 6px 2px rgba(255, 121, 0, .9), 0 0 18px 6px rgba(255, 121, 0, .35);
  pointer-events: none; opacity: 0; transition: transform .12s linear, opacity .3s;
}
@media (prefers-reduced-motion: reduce) { .fortschritt-funke { transition: none; } }

/* ---------- Kopfzeile ---------- */
.kopf { transition: transform .35s cubic-bezier(.2, .7, .1, 1), background-color .35s, border-color .35s; }
.kopf__innen { transition: max-width .45s cubic-bezier(.2, .7, .1, 1), background-color .35s, border-color .35s, border-radius .35s, height .35s, margin .35s; border: 1px solid transparent; }
.kopf.kopf--kompakt {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.kopf.kopf--kompakt .kopf__innen {
  max-width: 900px; height: calc(var(--kopf) - 10px); margin: 5px auto 0; border-radius: 99px;
  background: rgba(27, 28, 31, .82); border-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.kopf.kopf--weg { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .kopf, .kopf__innen { transition: none; } }

/* ---------- E-Mail kopiert ---------- */
.kopiert {
  position: fixed; z-index: 90; left: 0; top: 0; transform: translate(-50%, -100%);
  padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: #ff7900; color: #241100; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
}
.kopiert.an { animation: kopiert 1.8s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes kopiert {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(.9); }
  12%, 80% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -130%); }
}
@media (prefers-reduced-motion: reduce) { .kopiert.an { animation: none; opacity: 1; transform: translate(-50%, -100%); } }

/* ---------- Weiche Übergänge zwischen den Flächen ---------- */
.abschnitt--flaeche { background: linear-gradient(var(--weiss), var(--flaeche) 140px, var(--flaeche) calc(100% - 140px), var(--weiss)); }
.abschnitt--nacht { background: linear-gradient(var(--weiss), var(--nacht) 200px); }

/* ---------- Kapitel-Leiste links ---------- */
.kapitel { display: none; }
@media (min-width: 1180px) and (hover: hover) {
  .kapitel {
    display: block; position: fixed; z-index: 40; left: 18px; top: 50%; transform: translate(-8px, -50%);
    opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
  }
  .kapitel.ist-sichtbar { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
  .kapitel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
  .kapitel ol::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1px; background: rgba(255, 255, 255, .12); }
  .kapitel button {
    display: flex; align-items: center; gap: 12px; padding: 5px 4px; border: 0; background: none; cursor: pointer;
    color: var(--grau); font: inherit; font-size: 13px; text-align: left;
  }
  .kapitel__punkt { position: relative; width: 11px; height: 11px; margin-left: 0; border-radius: 50%; background: #3c3f46; border: 2px solid var(--weiss); transition: background-color .3s, box-shadow .3s; flex: none; }
  .kapitel .ist-vorbei .kapitel__punkt { background: #8a5a33; }
  .kapitel .ist-aktiv .kapitel__punkt { background: #ff7900; box-shadow: 0 0 10px 2px rgba(255, 121, 0, .6); }
  .kapitel__name {
    opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
    background: rgba(27, 28, 31, .92); padding: 4px 10px; border-radius: 8px; white-space: nowrap; color: var(--text);
  }
  .kapitel button:hover .kapitel__name, .kapitel button:focus-visible .kapitel__name { opacity: 1; transform: none; }
  .kapitel button:focus-visible { outline: 2px solid #ff7900; outline-offset: 2px; border-radius: 8px; }
}

/* ---------- Haltung: drei Sätze auf einer Bühne ---------- */
.haltung { position: relative; }
.haltung__buehne { display: grid; gap: 28px; justify-items: center; text-align: center; padding: clamp(84px, 12vw, 160px) 22px; }
.haltung__satz {
  margin: 0; max-width: 20ch; font-size: clamp(34px, 5.4vw, 76px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance;
}
.wort--fuehrend { color: #ff7900; }
.haltung__punkte { display: none; }
.fx .haltung { height: calc(var(--n) * 90vh + 100vh); }
.fx .haltung__buehne {
  position: sticky; top: 0; height: 100svh; padding: 0 22px; align-content: center;
  background: radial-gradient(46% 40% at 50% 50%, rgba(255, 121, 0, .12), transparent);
}
.fx .haltung__satz {
  --roh: calc(var(--p) * var(--n) - var(--i));
  --rein: clamp(0, calc((var(--roh) - .04) * 12), 1);
  --raus: clamp(0, calc((var(--roh) - .82) * 8), 1);
  grid-area: 1 / 1;
  opacity: calc(var(--rein) * (1 - var(--raus)));
  transform: translateY(calc(var(--raus) * -3rem + (1 - var(--rein)) * 1.5rem));
}
.fx .haltung__satz--letzter { --raus: 0; }
.fx .haltung__satz .wort { opacity: calc(.14 + clamp(0, calc((var(--roh) * 1.35 - var(--at)) * 7), 1) * .86); }
.fx .haltung__punkte { grid-area: 2 / 1; display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fx .haltung__punkte li {
  --an: clamp(0, calc((var(--p) * var(--n) - var(--i)) * 12), 1);
  width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, #ff7900 calc(var(--an) * 100%), rgba(241, 243, 245, .2));
}

/* ---------- Ablauf als Strecke mit Funke ---------- */
.reise { position: relative; }
.reise__buehne { padding: clamp(84px, 12vw, 160px) 22px; }
.reise__strecke { position: relative; max-width: 1100px; margin: 0 auto; }
.reise__schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.reise__schritt b { display: block; font-size: 22px; letter-spacing: -.02em; }
.reise__schritt b small { display: inline-block; min-width: 1.6em; color: #ff7900; font-size: 15px; font-weight: 600; }
.reise__schritt p { margin: 6px 0 0; color: var(--grau); max-width: 40ch; }
.reise__linie, .reise__funke { display: none; }

.fx .reise { height: 360vh; }
.fx .reise__buehne { position: sticky; top: 0; height: 100svh; padding: 0 22px; display: grid; align-content: center; gap: clamp(40px, 7svh, 80px); overflow: hidden; }
.fx .reise__buehne::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at calc(8% + var(--x, 0) * 84%) 56%, rgba(255, 121, 0, .13), transparent 70%);
}
.fx .reise__buehne .kopfzeile { margin-bottom: 0; }
.fx .reise__strecke { width: 100%; padding-top: 0; }
.fx .reise__linie {
  display: block; position: absolute; left: 8%; right: 8%; top: 9px; height: 2px; border-radius: 2px; background: #3c3f46;
}
.fx .reise__linie::after {
  content: ""; position: absolute; inset: 0; border-radius: 2px; transform-origin: 0 50%;
  transform: scaleX(var(--x, 0)); background: linear-gradient(90deg, rgba(255, 121, 0, .2), #ff7900);
}
.fx .reise__funke {
  display: block; position: absolute; top: 10px; left: calc(8% + var(--x, 0) * 84%); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #ffb066; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .9), 0 0 34px 10px rgba(255, 121, 0, .3);
}
.fx .reise__schritte { grid-template-columns: repeat(var(--n), 1fr); gap: 0; position: relative; min-height: 210px; }
.fx .reise__schritt { position: static; text-align: center; padding-top: 0; }
.fx .reise__schritt::before {
  content: ""; display: block; width: 12px; height: 12px; margin: 4px auto 18px; border-radius: 50%;
  background: var(--weiss); border: 2px solid #4a4d55; transition: border-color .3s, background-color .3s;
}
.fx .reise__schritt.ist-erreicht::before { border-color: #ff7900; background: #ff7900; }
.fx .reise__schritt b { font-size: 17px; color: var(--grau); transition: color .3s; }
.fx .reise__schritt.ist-aktiv b { color: var(--text); }
.fx .reise__schritt b small { display: none; }
.fx .reise__schritt p {
  position: absolute; left: 50%; top: 92px; width: min(560px, 100%); transform: translate(-50%, 10px);
  margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--text); text-align: center; max-width: none;
  opacity: 0; transition: opacity .35s, transform .35s;
}
.fx .reise__schritt.ist-aktiv p { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 734px) {
  .fx .reise__schritt b { font-size: 0; }
  .fx .reise__schritt.ist-aktiv b { font-size: 0; }
  .fx .reise__schritt p { top: 56px; }
  .fx .reise__schritt p::before { content: attr(data-titel); display: block; font-weight: 700; font-size: 24px; margin-bottom: 6px; color: #ff7900; }
}
@media (prefers-reduced-motion: reduce) {
  .fx .reise__schritt p, .fx .reise__schritt::before { transition: none; }
}

/* ---------- Kugel: Von hier aus ---------- */
.kugel-szene { position: relative; background: var(--nacht); }
.kugel-szene__buehne { position: relative; padding: clamp(84px, 12vw, 160px) 22px; }
.kugel-szene canvas { display: none; }
.kugel-szene__text { position: relative; max-width: var(--weit); margin: 0 auto; }
.kugel-szene__text .vorspann { margin-top: 18px; max-width: 26ch; }
.kugel-szene__hinweis { display: none; }
.fx .kugel-szene { height: 240vh; }
.fx .kugel-szene__buehne {
  position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 100%, #2b2620 0%, var(--nacht) 60%);
}
.fx .kugel-szene canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.fx .kugel-szene canvas:active { cursor: grabbing; }
.fx .kugel-szene__text {
  --rein: clamp(0, calc((var(--p) - .55) / .25), 1);
  position: absolute; left: var(--rand); top: 50%; max-width: 520px; pointer-events: none;
  opacity: var(--rein); transform: translateY(calc(-50% + (1 - var(--rein)) * 4svh));
}
.fx .kugel-szene__hinweis {
  display: block; position: absolute; right: var(--rand); bottom: 5svh; color: var(--grau); font-size: 13px; pointer-events: none;
  opacity: calc(1 - clamp(0, calc(var(--p) / .2), 1));
}
@media (max-width: 699px) {
  .fx .kugel-szene__text { top: 14svh; transform: translateY(calc((1 - var(--rein)) * 4svh)); }
}

/* ---------- Zeitleiste auf den Projektseiten ---------- */
.zeitleiste { list-style: none; margin: 0 auto; padding: 0; max-width: var(--weit); display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.zeitleiste > li { position: relative; padding-top: 34px; }
.zeitleiste > li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--weiss); border: 2px solid #4a4d55; transition: border-color .4s, background-color .4s, box-shadow .4s; z-index: 1;
}
.zeitleiste > li.ist-erreicht::before { border-color: #ff7900; background: #ff7900; box-shadow: 0 0 10px 2px rgba(255, 121, 0, .45); }
.zeitleiste__nr { display: block; color: var(--grau); font-size: 14px; font-weight: 600; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.zeitleiste h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; }
.zeitleiste p { margin: 0; color: var(--grau); font-size: 16px; line-height: 1.5; transition: color .4s; }
.zeitleiste > li.ist-erreicht p { color: var(--text); }
.zeitleiste__spur { position: absolute; left: 6px; right: 0; top: 9px; height: 2px; background: #3c3f46; border-radius: 2px; }
.zeitleiste__spur::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); background: linear-gradient(90deg, rgba(255, 121, 0, .25), #ff7900); border-radius: 2px; }
.zeitleiste__funke {
  position: absolute; top: 9px; left: calc(6px + var(--p, 1) * (100% - 6px)); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #ffb066; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .9), 0 0 28px 8px rgba(255, 121, 0, .3); z-index: 2;
}
@media (max-width: 900px) {
  .zeitleiste { grid-template-columns: 1fr; gap: 30px; padding-left: 34px; }
  .zeitleiste > li { padding-top: 0; }
  .zeitleiste > li::before { left: -34px; top: 4px; }
  .zeitleiste__spur { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .zeitleiste__spur::after { transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
  .zeitleiste__funke { left: 6px; top: calc(6px + var(--p, 1) * (100% - 12px)); }
}

/* Vorher, nachher als Tabelle */
.wandel-tabelle { width: 100%; max-width: 980px; margin: 0 auto; border-collapse: collapse; font-size: 17px; }
.wandel-tabelle th, .wandel-tabelle td { text-align: left; vertical-align: top; padding: 20px 16px; border-top: 1px solid var(--linie); }
.wandel-tabelle thead th { border-top: 0; color: var(--grau); font-size: 14px; font-weight: 600; padding-bottom: 10px; }
.wandel-tabelle tbody th { color: var(--grau); font-weight: 600; font-size: 14px; width: 18%; }
.wandel-tabelle td:first-of-type { color: var(--grau); }
.wandel-tabelle td:last-child { color: var(--text); font-weight: 500; }
.wandel-tabelle td:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #ff7900; box-shadow: 0 0 8px rgba(255, 121, 0, .6); vertical-align: .1em; }
@media (max-width: 734px) {
  .wandel-tabelle thead { display: none; }
  .wandel-tabelle tr { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--linie); padding: 14px 0; }
  .wandel-tabelle th, .wandel-tabelle td { border: 0; padding: 4px 0; width: auto; }
  .wandel-tabelle td:first-of-type::before { content: "Vorher: "; font-weight: 600; }
}

/* ---------- Gestaltung erklärt (Über mich) ---------- */
.dna { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--weit); margin: 0 auto; }
.dna__feld { background: var(--karte); border-radius: 24px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.dna__bild { height: 170px; border-radius: 16px; background: var(--nacht); display: grid; place-items: center; overflow: hidden; position: relative; }
.dna__feld h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 0; }
.dna__feld p { margin: 0; color: var(--grau); }
.dna__schrift { font-size: 92px; font-weight: 300; letter-spacing: -.05em; line-height: 1; transition: font-weight .9s cubic-bezier(.2, .7, .1, 1); }
.dna__feld:hover .dna__schrift, .dna__feld:focus-within .dna__schrift, .dna.sichtbar .dna__schrift { font-weight: 900; }
.dna__farben { display: flex; gap: 10px; align-items: center; }
.dna__farben i { width: 34px; height: 34px; border-radius: 50%; background: var(--f); }
.dna__farben i:last-child { width: 46px; height: 46px; box-shadow: 0 0 24px 4px rgba(255, 121, 0, .45); }
.dna__bahn { position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: #3c3f46; }
.dna__bahn::after {
  content: ""; position: absolute; top: -6px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: #ffb066; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .9);
  animation: bahn 3.2s cubic-bezier(.6, 0, .2, 1) infinite alternate;
}
@keyframes bahn { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .dna__bahn::after { animation: none; left: 50%; } .dna__schrift { transition: none; } }
@media (max-width: 900px) { .dna { grid-template-columns: 1fr; } }

/* ---------- Website-Check ---------- */
.check { max-width: 760px; margin: 0 auto; }
.check__balken { height: 4px; border-radius: 4px; background: #3c3f46; margin-bottom: 36px; overflow: visible; position: relative; }
.check__balken i { position: absolute; inset: 0 auto 0 0; width: calc(var(--anteil, 0) * 100%); border-radius: 4px; background: #ff7900; transition: width .4s cubic-bezier(.2, .7, .1, 1); }
.check__balken i::after { content: ""; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ffb066; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .8); }
.check fieldset { border: 0; margin: 0; padding: 0; }
.check legend { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.check__hilfe { color: var(--grau); margin: 0 0 22px; }
.check__wahl { display: grid; gap: 10px; }
.check__wahl label { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--karte); border: 1px solid var(--linie); cursor: pointer; font-size: 18px; transition: border-color .2s, background-color .2s; }
.check__wahl label:hover { border-color: #6a5a4c; }
.check__wahl input { accent-color: #ff7900; width: 20px; height: 20px; flex: none; }
.check__wahl label:has(input:checked) { border-color: #ff7900; background: #33302d; }
.check__wahl label:has(input:focus-visible) { outline: 2px solid #ff7900; outline-offset: 2px; }
.check__knoepfe { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.check__zurueck { background: none; border: 0; color: var(--grau); font: inherit; font-size: 17px; cursor: pointer; padding: 10px 0; }
.check__zurueck[hidden] { display: inline-block; visibility: hidden; }
.check__frage[hidden] { display: none; }
.check__fehler { color: #ffb066; font-size: 15px; margin: 12px 0 0; min-height: 1.4em; }
.check__ergebnis h2 { margin-bottom: 14px; }
.check__ergebnis ul { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.check__ergebnis li { background: var(--karte); border-radius: 16px; padding: 18px 20px 18px 50px; position: relative; font-size: 17px; line-height: 1.5; }
.check__ergebnis li::before { content: ""; position: absolute; left: 22px; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: #ff7900; box-shadow: 0 0 10px rgba(255, 121, 0, .7); }
.check__paket { border: 1px solid var(--linie); border-radius: 18px; padding: 20px 22px; margin-bottom: 28px; }
.check__paket b { color: #ff7900; }

.check-hinweis { text-align: center; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; color: var(--grau); }

/* Zeitleiste: Rahmen trägt Spur und Funke (im ol nur li erlaubt) */
.zeitleiste-rahmen { position: relative; max-width: var(--weit); margin: 0 auto; }
@media (max-width: 900px) { .zeitleiste-rahmen .zeitleiste__funke { left: 6px; top: calc(6px + var(--p, 1) * (100% - 12px)); } }
.check__ergebnis, .check { scroll-margin-top: 100px; }

/* ---------- Wendekacheln: Problem dreht sich zur Lösung ---------- */
.wende__buehne { padding: clamp(84px, 10vw, 140px) 22px; max-width: var(--weit); margin: 0 auto; display: grid; gap: clamp(28px, 5svh, 56px); }
.wende .titel { text-align: center; margin: 0; }
.wende__karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); perspective: 1400px; }
.wende__karte { min-height: clamp(190px, 30svh, 300px); }
.wende__innen { position: relative; height: 100%; display: grid; gap: 10px; }
.wende__seite {
  margin: 0; border-radius: 22px; padding: 26px; display: flex; align-items: flex-end;
  font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12;
}
.wende__seite--vorne { background: var(--karte); color: var(--grau); text-decoration: line-through; text-decoration-color: rgba(255, 121, 0, .6); text-decoration-thickness: 2px; }
.wende__seite--hinten {
  background: radial-gradient(120% 90% at 0% 100%, rgba(255, 121, 0, .32), transparent 60%), #2f2a26;
  color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 121, 0, .35);
}
.wende__seite--hinten::before {
  content: ""; position: absolute; top: 24px; left: 26px; width: 10px; height: 10px; border-radius: 50%;
  background: #ffb066; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .8);
}
/* mit Skript: Abschnitt steht, Karten drehen sich nacheinander */
.fx .wende { height: 300vh; }
.fx .wende__buehne { position: sticky; top: 0; height: 100svh; align-content: center; padding-top: 0; padding-bottom: 0; }
.fx .wende__innen { display: block; transform-style: preserve-3d; transition: transform .12s linear; }
.fx .wende__seite { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fx .wende__seite--vorne { text-decoration: none; }
.fx .wende__seite--hinten { transform: rotateY(180deg); }
@media (max-width: 900px) {
  .wende__karten { grid-template-columns: 1fr 1fr; }
  .wende__karte { min-height: 26svh; }
  .wende__seite { padding: 18px; font-size: 19px; border-radius: 18px; }
  .wende__seite--hinten::before { top: 18px; left: 18px; }
}

/* ---------- Funke als Mausbegleiter (nur PC) ---------- */
.zeiger {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  opacity: 0; transition: opacity .25s;
}
.zeiger::before, .zeiger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; transition: transform .28s cubic-bezier(.2, .7, .1, 1), opacity .28s; }
.zeiger::before { background: #ffb066; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .8); transform: scale(.24); }
.zeiger::after { border: 1.5px solid #ff7900; box-shadow: 0 0 14px rgba(255, 121, 0, .4); transform: scale(.4); opacity: 0; }
.zeiger.ist-da { opacity: 1; }
.zeiger.ist-ring::before { transform: scale(.14); }
.zeiger.ist-ring::after { transform: scale(1.25); opacity: 1; }
.zeiger.ist-gedrueckt::after { transform: scale(.9); }

/* ---------- Kreis-Übergang zwischen Seiten ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: none; }
.kreis-rand {
  position: fixed; z-index: 10000; pointer-events: none; border-radius: 50%;
  box-shadow: inset 0 0 0 3px #ff7900, inset 0 0 40px 6px rgba(255, 121, 0, .45);
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Ablauf mit MacBook: die Funken-Leiste steuert den Bildschirm ---------- */
.reise__geraet { display: none; }
.fx .reise__geraet { display: block; container-type: inline-size; position: relative; z-index: 1; }
.fx .reise__geraet .geraet { --sw: min(84cqi, 720px, calc((100svh - 450px) * 1.35)); }
.fx .reise__buehne { gap: clamp(18px, 3.2svh, 36px); padding-top: calc(var(--kopf) + 8px); }
.fx .reise__buehne .kopfzeile .titel { font-size: clamp(30px, 4vw, 54px); }
.fx .reise__buehne .kopfzeile .vorspann { margin-top: 8px; }
.fx .reise__schritte { min-height: 130px; }
.fx .reise__schritt p { top: 60px; font-size: clamp(16px, 1.5vw, 19px); }
.reise__geraet .ebene { opacity: 0; will-change: clip-path; }
.reise__geraet .ebene--gespraech { opacity: 1; }
/* Notizzettel für das Erstgespräch */
.ebene--gespraech {
  background: #fbfaf6 repeating-linear-gradient(#fbfaf6 0 calc(8.4% - 1px), #e3e7ef calc(8.4% - 1px) 8.4%);
  padding: 7% 9%; box-shadow: inset 4.6em 0 0 -4.4em #f0b8a8;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #3a3a3c;
}
.notiz__titel { margin: 0 0 1.4em; font-size: 4.2em; line-height: 1; font-weight: 700; color: #1d1d1f; }
.notiz__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6em; }
.notiz__liste li { display: flex; align-items: center; gap: 1.2em; font-size: 3em; line-height: 1.15; opacity: .45; transition: opacity .3s; }
.notiz__liste i { position: relative; flex: none; width: 1em; height: 1em; border: .09em solid #3a3a3c; border-radius: .18em; }
.notiz__liste i::after {
  content: ""; position: absolute; left: .26em; top: -.12em; width: .32em; height: .7em;
  border: solid #ff7900; border-width: 0 .14em .14em 0; transform: rotate(40deg) scale(0); transform-origin: 50% 80%;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.notiz__liste li.ist-erledigt { opacity: 1; }
.notiz__liste li.ist-erledigt i::after { transform: rotate(40deg) scale(1); }
/* Skizze: Striche zeichnen sich selbst */
.reise__geraet .strich { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* Lichtkante, die die nächste Ebene aufmalt */
.reise__kante {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; z-index: 5; opacity: 0; pointer-events: none;
  background: #ffd2a6; box-shadow: 0 0 12px 3px rgba(255, 121, 0, .95), 0 0 50px 14px rgba(255, 121, 0, .4);
}
.reise__geraet .ebene--online .browser, .reise__geraet .ebene--online .status { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.reise__geraet .ebene--online.ist-fertig .browser, .reise__geraet .ebene--online.ist-fertig .status { opacity: 1; transform: none; }
@media (max-width: 734px) {
  .fx .reise__geraet .geraet { --sw: min(88cqi, calc((100svh - 400px) * 1.45)); }
  .fx .reise__buehne .kopfzeile .vorspann { display: none; }
  .fx .reise__schritte { min-height: 150px; }
  .fx .reise__schritt p { top: 40px; }
}
.fx .reise { height: 460vh; }
.fx .reise__schritt p { top: 72px; } .fx .reise__schritte { min-height: 150px; } @media (max-width: 734px) { .fx .reise__schritt p { top: 44px; } }
/* Messung der atmenden Zeile in der fettesten Stärke, damit jede Zeile immer passt, ohne Wellen-Animation */
[data-atmen] .atem-messen .b { animation: none !important; font-variation-settings: "wght" 900 !important; }

/* =========================================================
   Zweite Runde
   ========================================================= */

/* Kugel: Projekte als Ziele */
.fx .kugel-szene { height: 320vh; }
.kugel-ziele { list-style: none; margin: 18px auto 0; padding: 0; max-width: var(--weit); display: grid; gap: 8px; position: relative; }
.kugel-ziel { display: inline-grid; gap: 2px; color: var(--text); text-decoration: none; }
.kugel-ziel b { font-size: 15px; font-weight: 650; }
.kugel-ziel small { font-size: 13px; color: var(--grau); }
.fx .kugel-ziele { position: absolute; inset: 0; margin: 0; max-width: none; display: block; pointer-events: none; z-index: 3; }
.fx .kugel-ziele li { position: absolute; left: 0; top: 0; }
.fx .kugel-ziel {
  position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; opacity: 0;
  padding: 7px 12px 7px 14px; border-radius: 12px;
  background: rgba(27, 28, 31, .78); box-shadow: inset 0 0 0 1px rgba(255, 121, 0, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .35s, box-shadow .2s;
}
.fx .kugel-ziel.ist-da { opacity: 1; pointer-events: auto; }
.fx .kugel-ziel:hover, .fx .kugel-ziel:focus-visible { box-shadow: inset 0 0 0 1.5px #ff7900, 0 0 22px rgba(255, 121, 0, .35); }
@media (max-width: 734px) {
  .fx .kugel-ziel { padding: 5px 9px; }
  .fx .kugel-ziel b { font-size: 13px; }
  .fx .kugel-ziel small { font-size: 12px; }
}

/* Funkenflug */
.funkenflug {
  position: fixed; z-index: 10002; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  background: #ffd2a6; box-shadow: 0 0 8px 2px rgba(255, 121, 0, .9);
}

/* Logo-Intro */
html.intro-wartet::after { content: ""; position: fixed; inset: 0; z-index: 10003; background: #232529; }
.intro {
  position: fixed; inset: 0; z-index: 10003; display: grid; place-items: center; background: #232529;
  transition: opacity .4s ease, visibility .4s;
}
.intro svg { width: clamp(220px, 34vw, 400px); height: auto; overflow: visible; }
.intro svg path {
  fill: transparent; stroke: #ff7900; stroke-width: 1.1; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: fill .35s ease, stroke-opacity .35s ease;
}
.intro svg .l-hirt { stroke: #f1f3f5; }
.intro--voll svg path { stroke-opacity: 0; }
.intro--voll svg .l-max { fill: #ff7900; }
.intro--voll svg .l-hirt { fill: #f1f3f5; }
.intro__funke {
  position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #ffd2a6; box-shadow: 0 0 12px 4px rgba(255, 121, 0, .95), 0 0 34px 10px rgba(255, 121, 0, .35);
  transition: opacity .3s;
}
.intro--voll .intro__funke { opacity: 0; }
.intro--weg { opacity: 0; visibility: hidden; }

/* Kontaktformular: Funke an der Spitze des Fortschritts */
.gespraech__balken.mit-funke { overflow: visible; position: relative; }
.gespraech__balken.mit-funke i { background: linear-gradient(90deg, rgba(255, 121, 0, .35), #ff7900); position: relative; }
.gespraech__balken.mit-funke i::after {
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #ffd2a6; box-shadow: 0 0 10px 3px rgba(255, 121, 0, .85);
}
.ist-gesendet .gespraech__balken.mit-funke i::after { animation: funke-weg .6s ease-out forwards; }
@keyframes funke-weg { to { transform: translate(40px, -30px) scale(0); opacity: 0; } }

/* Lichtkante auf Projektkarten */
.mit-licht::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle 360px at var(--lx, 50%) var(--ly, 50%), rgba(255, 170, 90, .16), transparent 65%);
  transition: opacity .3s;
}
.mit-licht.ist-beleuchtet::after { opacity: 1; }
.fall__bild.mit-licht { transition: transform .35s cubic-bezier(.2, .7, .1, 1), box-shadow .5s; }

/* 404: Funken fangen */
.fang { position: relative; width: 100%; align-self: center; height: clamp(220px, 36svh, 340px); max-width: 760px; margin: 28px auto 8px; border-radius: 22px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); overflow: hidden; touch-action: manipulation; }
.fang__info { position: absolute; left: 0; right: 0; top: 16px; margin: 0; text-align: center; color: var(--grau); font-size: 16px; }
.fang__funke {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, #ffd2a6 0 5px, rgba(255, 121, 0, .55) 6px, transparent 18px);
  transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1);
  animation: fang-glimmen 1.4s ease-in-out infinite;
}
.fang__funke:focus-visible { outline: 2px solid #ff7900; outline-offset: 4px; }
@keyframes fang-glimmen { 50% { filter: brightness(1.35); transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .fang__funke { animation: none; transition: none; } }

/* ---------- Schlanker Fuß ---------- */
.fuss--schlank { padding: clamp(40px, 6vw, 64px) var(--rand) 28px; font-size: 14px; line-height: 1.5; }
.fuss--schlank .fuss__innen { max-width: var(--weit); }
.fuss__oben { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: start; padding-bottom: 28px; }
.fuss__marke { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 650; font-size: 17px; text-decoration: none; }
.fuss__marke svg { width: 30px; height: 30px; fill: currentColor; }
.fuss__satz { margin: 10px 0 0; color: var(--grau); max-width: 34ch; }
.fuss.fuss--schlank .fuss__navi { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.fuss__navi a, .fuss__kontakt a { color: var(--text) !important; text-decoration: none; }
.fuss__navi a:hover, .fuss__kontakt a:hover { color: #ff9a3d !important; }
.fuss__kontakt { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; margin-top: 14px; }
.fuss--schlank .fuss__unten { font-size: 13px; color: var(--grau); align-items: center; }
.fuss--schlank .fuss__unten p { margin: 0; }
.fuss--schlank .fuss__unten nav a { color: var(--grau) !important; }
.fuss--schlank .fuss__unten nav a:hover { color: var(--text) !important; }
@media (max-width: 734px) {
  .fuss__oben { grid-template-columns: 1fr; }
  .fuss.fuss--schlank .fuss__navi, .fuss__kontakt { justify-content: flex-start; }
  .fuss.fuss--schlank .fuss__navi { gap: 12px 22px; }
  .fuss--schlank .fuss__unten { flex-direction: column; align-items: flex-start; }
}

/* Viele Betriebe in der Lupe: nur der Ort als kleines Schild, der Name bleibt für Vorleser */
.fx .kugel-ziel--klein { padding: 3px 8px; border-radius: 999px; }
.fx .kugel-ziel--klein b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fx .kugel-ziel--klein small { font-size: 12px; color: var(--text); }

/* Neues Logo „maxhirt“ (08.11.2026): Wortmarke statt Monogramm */
.marke svg.logo { width: auto; height: 23px; display: block; }
.fuss__marke svg.logo { width: auto; height: 28px; display: block; }

/* Startseite neu geordnet (08.11.2026): „Zeile für Zeile“ ist der zweite Teil von „Technik“ */
.abschnitt--vor-anschluss { padding-bottom: clamp(40px, 6vw, 72px); }
.abschnitt--anschluss { padding-top: 0; }
.titel.titel--unter { font-size: clamp(26px, 3.6vw, 40px); }

/* Leistungen am Handy: eine Karte je Paket statt der Vergleichstabelle (08.11.2026) */
.paketsprung, .paketkarten { display: none; }
@media (max-width: 834px) {
  .tabelle { display: none !important; }
  .paketsprung { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 -20px 20px; position: sticky; top: 64px; z-index: 5; padding: 10px 20px; background: rgba(35,37,41,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .paketsprung a.ist-aktiv { background: #ff7900; color: #1b1c1f; box-shadow: none; }
  .paketsprung a { padding: 8px 14px; border-radius: 999px; background: var(--flaeche, #2a2c31); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
  .paketsprung a:hover, .paketsprung a:focus-visible { box-shadow: inset 0 0 0 1.5px #ff7900; color: #ff9a3d; }
  .paketkarten { display: grid; gap: 18px; }
  .paketkarte { scroll-margin-top: 130px; background: var(--flaeche, #2a2c31); border-radius: 20px; padding: 24px 20px 22px; display: grid; gap: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
  .paketkarte h3 { margin: 0; font-size: 26px; letter-spacing: -.025em; font-weight: 800; }
  .paketkarte__satz { margin: -4px 0 4px; color: var(--grau); font-size: 15px; }
  .paketkarte__preis { margin: 0; }
  .paketkarte__preis .preis { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #ff7900; line-height: 1.1; }
  .paketkarte__preis small, .paketkarte__starter small { display: block; color: var(--grau); font-size: 13px; margin-top: 2px; }
  .paketkarte__starter { margin: 2px 0 6px; padding: 10px 14px; border-radius: 12px; background: rgba(255,121,0,.1); box-shadow: inset 0 0 0 1px rgba(255,121,0,.28); font-size: 16px; font-weight: 600; }
  .paketkarte__starter b { display: block; font-size: 12.5px; font-weight: 600; color: #ff9a3d; margin-bottom: 1px; }
  .paketkarte__liste { margin: 0; display: grid; }
  .paketkarte__liste > div { display: grid; grid-template-columns: 8.2em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
  .paketkarte__liste dt { color: var(--grau); font-size: 14px; }
  .paketkarte__liste dd { margin: 0; font-size: 15px; line-height: 1.45; }
  .paketkarte__liste dd small { display: block; color: var(--grau); font-size: 13px; margin-top: 2px; }
  .paketkarte .knopf { justify-self: stretch; text-align: center; margin-top: 8px; }
}
