/* =========================================================
   AO7 DESIGN – Stil
   Dunkel ist Standard, hell per Umschalter (data-theme).
   Schriften: Syncopate (Marke/Titel), Plus Jakarta Sans (Text)
   ========================================================= */

:root, [data-theme="dunkel"] {
  --grund: #0D0E11;
  --grund-2: #14161B;
  --flaeche: #181A20;
  --flaeche-2: #1F2229;
  --tinte: #F3F3F0;
  --leise: #9A9EA6;
  --linie: rgba(243, 243, 240, .09);
  --linie-2: rgba(243, 243, 240, .16);
  --akzent: #9C90F2;
  --akzent-tief: #6B5BD6;
  --verlauf: linear-gradient(135deg, #8B7CF6 0%, #5A48D0 100%);
  --leucht: rgba(124, 108, 240, .35);
  --schatten: 0 40px 80px -40px rgba(0, 0, 0, .7);
  --glas: rgba(24, 26, 32, .62);
  color-scheme: dark;
}
[data-theme="hell"] {
  --grund: #F6F6F4;
  --grund-2: #EEEEEB;
  --flaeche: #FFFFFF;
  --flaeche-2: #F1F1EE;
  --tinte: #14171A;
  --leise: #5F646B;
  --linie: rgba(20, 23, 26, .08);
  --linie-2: rgba(20, 23, 26, .16);
  --akzent: #6B5BD6;
  --akzent-tief: #5443C4;
  --leucht: rgba(107, 91, 214, .22);
  --schatten: 0 40px 80px -44px rgba(30, 24, 80, .35);
  --glas: rgba(255, 255, 255, .7);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--grund); color: var(--tinte);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--akzent-tief); color: #fff; padding: 10px 14px; border-radius: 10px; }
.sprung:focus { left: 8px; }

:root { --rand: clamp(16px, 5vw, 72px); --breit: 1320px; }

/* ---------- Lichtpunkt, der der Maus folgt ---------- */
.lichtpunkt {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: 0;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--leucht) 0%, transparent 62%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0); transition: opacity .6s;
}
body.maus .lichtpunkt { opacity: .55; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 18px var(--rand); transition: padding .4s, background-color .4s, box-shadow .4s, transform .5s cubic-bezier(.2,.7,.2,1);
}
.kopf.fest { padding-block: 10px; background: var(--glas); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--linie); }
.kopf.weg { transform: translateY(-110%); }
.marke { display: block; line-height: 0; margin-right: auto; }
.marke-bild {
  display: block; height: 26px; aspect-ratio: 6733 / 806; background: var(--tinte);
  -webkit-mask: url(../media/ao7_marke_zeile.png) center / contain no-repeat; mask: url(../media/ao7_marke_zeile.png) center / contain no-repeat;
}
.marke-schrift { display: block; height: 15px; aspect-ratio: 5724.1 / 424; background: var(--tinte);
  -webkit-mask: url(../media/ao7_design_zeile.svg) center / contain no-repeat; mask: url(../media/ao7_design_zeile.svg) center / contain no-repeat; }
.kopf nav { display: flex; gap: 6px; font-weight: 500; font-size: 15px; }
.kopf nav a { text-decoration: none; padding: 10px 14px; border-radius: 99px; color: var(--leise); transition: color .25s, background-color .25s; }
.kopf nav a:hover { color: var(--tinte); background: var(--linie); }
.kopf nav .nav-kontakt { color: var(--tinte); box-shadow: inset 0 0 0 1px var(--linie-2); }
.thema {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--linie); cursor: pointer;
  display: grid; place-items: center; transition: background-color .25s, transform .4s;
}
.thema:hover { background: var(--linie-2); transform: rotate(20deg); }
.sonne { width: 18px; height: 18px; border-radius: 50%; position: relative; background: transparent; box-shadow: inset -6px -4px 0 0 var(--tinte); transition: box-shadow .5s, background-color .5s; }
[data-theme="hell"] .sonne { box-shadow: inset 0 0 0 9px var(--tinte); }

/* ---------- Gemeinsame Bausteine ---------- */
.zeile {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px/1 "Syncopate", sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--akzent);
}
.zeile::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.titel {
  margin: 18px 0 0; font: 700 clamp(34px, 5.2vw, 76px)/1.02 "Syncopate", sans-serif; letter-spacing: -.01em; text-transform: uppercase;
}
.titel em, h1 .h-fein { font-style: normal; font-weight: 400; }
.titel em { color: var(--leise); }
.einleitung { margin: 22px 0 0; max-width: 52ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--leise); }
.einleitung a { color: var(--akzent); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 26px; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 15px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .01em;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background-color .3s, color .3s, opacity .3s;
  will-change: transform;
}
.knopf.voll { background: var(--verlauf); color: #fff; box-shadow: 0 14px 34px -12px rgba(107, 91, 214, .65); }
.knopf.voll:hover { box-shadow: 0 18px 44px -10px rgba(124, 108, 240, .8); }
.knopf.rand { box-shadow: inset 0 0 0 1.5px var(--linie-2); background: transparent; }
.knopf.rand:hover { background: var(--linie); }
.knopf:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

.abschnitt { position: relative; z-index: 1; max-width: var(--breit); margin: 0 auto; padding: clamp(90px, 13vw, 180px) var(--rand) 0; }
.abschnitt-kopf { margin-bottom: clamp(40px, 6vw, 72px); }
.abschnitt-kopf.mit-pfeilen { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Einblenden beim Scrollen */
.zeigen { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--v, 0s); }
.zeigen.da { opacity: 1; transform: none; }
/* Start: sofort per CSS einblenden, ohne auf Skripte zu warten (Startbild steht schnell) */
.start .zeigen { opacity: 1; transform: none; transition: none; animation: start-ein 1s cubic-bezier(.2,.7,.2,1) both; }
.start-text > .zeigen:nth-child(2) { animation-delay: .1s; }
.start-text > .zeigen:nth-child(3) { animation-delay: .2s; }
@keyframes start-ein { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Start (Teilchen) ---------- */
.start {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: 120px var(--rand) 90px; max-width: none;
}
#teilchen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.start::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--grund)); z-index: 1; pointer-events: none; }
.start-text { position: relative; z-index: 2; max-width: 640px; width: 100%; margin-left: max(0px, calc((100vw - var(--breit)) / 2)); }
h1 { margin: 22px 0 0; font: 700 clamp(40px, 6.4vw, 96px)/1.0 "Syncopate", sans-serif; letter-spacing: -.015em; text-transform: uppercase; }
h1 span { display: block; }
h1 .h-fein { color: var(--leise); }
.start-unter { margin: 26px 0 34px; max-width: 40ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--leise); }
.form-anzeige {
  position: absolute; z-index: 2; right: var(--rand); bottom: 92px; display: flex; align-items: center; gap: 12px;
  font: 700 12px/1 "Syncopate", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--leise);
}
.form-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 0 var(--leucht); animation: puls 1.8s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 12px transparent; } }
#form-name { transition: opacity .35s, transform .35s; display: inline-block; }
#form-name.wechsel { opacity: 0; transform: translateY(6px); }
.weiter { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.weiter span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--tinte); animation: rad 1.8s infinite; }
@keyframes rad { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Laufband ---------- */
.laufband { position: relative; z-index: 1; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--linie); }
.laufband-spur { display: flex; align-items: center; gap: 46px; width: max-content; transform: translateX(var(--lauf, 0px)); will-change: transform; }
.laufband span { font: 700 clamp(28px, 4vw, 54px)/1 "Syncopate", sans-serif; text-transform: uppercase; color: var(--tinte); opacity: .88; transition: color .4s, opacity .4s; }
.laufband span:nth-of-type(even) { color: var(--leise); }
.laufband span:hover { color: var(--akzent); opacity: 1; }
.laufband i { width: 12px; height: 12px; border-radius: 4px; background: var(--verlauf); transform: rotate(45deg); flex: none; }

/* ---------- Symbole (Squircle mit Verlauf) ---------- */
.symbol {
  display: block; width: 52px; height: 52px; border-radius: 16px; background: var(--verlauf); position: relative;
  box-shadow: 0 12px 26px -10px rgba(107, 91, 214, .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.symbol::after, .g-symbol::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; background: #fff;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.s-web { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18M7 6.5h.01M10 6.5h.01'/%3E%3C/svg%3E"); }
.s-film { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M10 9.5v5l4.5-2.5z' fill='%23000'/%3E%3C/svg%3E"); }
.s-content { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='11' height='18' rx='2.5'/%3E%3Cpath d='M18 7v10M21 9v6'/%3E%3C/svg%3E"); }
.s-marke { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.4 6.7 19.4l1.2-6L3.4 9.3l6-.7z'/%3E%3C/svg%3E"); }
.s-software { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14'/%3E%3C/svg%3E"); }
.s-auto { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.i-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.i-doc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Leistungen: Bento-Raster ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 16px; }
.kachel {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px;
  background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie), var(--schatten);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
  isolation: isolate;
}
.kachel::before { /* Lichtkegel, folgt der Maus */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--kx, 50%) var(--ky, 50%), rgba(255,255,255,.09), transparent 45%);
}
.kachel:hover::before { opacity: 1; }
.kachel.gross { grid-column: span 2; grid-row: span 2; }
.kachel.hoch { grid-row: span 2; }
.kachel.breit { grid-column: span 3; }
.kachel-medien { position: relative; flex: 1 1 auto; min-height: 150px; overflow: hidden; background: var(--flaeche-2); }
.kachel-medien video, .kachel-medien > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.kachel:hover .kachel-medien video { transform: scale(1.04); }
.kachel-medien::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--flaeche)); pointer-events: none; }
.kachel-text { position: relative; z-index: 2; padding: 0 26px 26px; margin-top: -26px; }
.kachel-text h3 { margin: 18px 0 8px; font: 700 clamp(15px, 1.25vw, 19px)/1.25 "Syncopate", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.kachel-text p { margin: 0; color: var(--leise); font-size: 15.5px; line-height: 1.55; }
.kachel.gross .kachel-text h3 { font-size: clamp(18px, 1.8vw, 26px); }

/* Demo: Logo JPG -> Vektor */
.marke-demo { display: grid; place-items: center; background: #fff; min-height: 200px; }
.marke-demo img { position: absolute; width: auto; height: 66%; top: -12%; max-width: 70%; object-fit: contain; inset: 0; margin: auto; }
.marke-demo .vorher { clip-path: inset(0 50% 0 0); }
.marke-demo .nachher { clip-path: inset(0 0 0 50%); }
.marke-demo::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 2px; background: var(--akzent-tief); z-index: 2; animation: wisch 5s ease-in-out infinite; }
.marke-demo .vorher { animation: clip-links 5s ease-in-out infinite; }
.marke-demo .nachher { animation: clip-rechts 5s ease-in-out infinite; }
@keyframes wisch { 0%,100% { left: 22%; } 50% { left: 78%; } }
@keyframes clip-links { 0%,100% { clip-path: inset(0 78% 0 0); } 50% { clip-path: inset(0 22% 0 0); } }
@keyframes clip-rechts { 0%,100% { clip-path: inset(0 0 0 22%); } 50% { clip-path: inset(0 0 0 78%); } }
.demo-etikett { position: absolute; z-index: 3; bottom: 34px; font: 700 10px/1 "Syncopate"; letter-spacing: .2em; color: #14171A; background: rgba(255,255,255,.85); padding: 6px 8px; border-radius: 6px; }
.demo-etikett.e1 { left: 14px; } .demo-etikett.e2 { right: 14px; }
.marke-demo::after { display: none; }

/* Demo: Software-Fenster */
.software-demo { display: grid; place-items: center; padding: 22px; }
.fenster { width: min(100%, 300px); border-radius: 16px; background: var(--grund-2); box-shadow: inset 0 0 0 1px var(--linie-2), 0 24px 40px -24px rgba(0,0,0,.6); padding: 12px 14px 16px; }
.fenster-leiste { display: flex; gap: 6px; margin-bottom: 12px; }
.fenster-leiste i { width: 9px; height: 9px; border-radius: 50%; background: var(--linie-2); }
.zeile-demo { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; margin-top: 6px; background: var(--linie); opacity: .25; transform: translateX(-6px); animation: zeile-an 6s infinite; }
.zeile-demo b { width: 10px; height: 10px; border-radius: 3px; background: var(--verlauf); }
.zeile-demo em { font-style: normal; color: #4BD18B; font-weight: 700; }
.z2 { animation-delay: .9s; } .z3 { animation-delay: 1.8s; }
@keyframes zeile-an { 0% { opacity: .25; transform: translateX(-6px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: .25; } }
.balken { height: 6px; border-radius: 99px; background: var(--linie); margin-top: 14px; overflow: hidden; }
.balken span { display: block; height: 100%; width: 0; background: var(--verlauf); animation: laden 6s infinite; }
@keyframes laden { 0% { width: 0; } 55%, 85% { width: 100%; } 100% { width: 100%; opacity: 0; } }
.software-demo::after { display: none; }

/* Demo: Ablaufkette */
.ablauf-demo { display: grid; place-items: center; padding: 20px; }
.ablauf-demo::after { display: none; }
/* gleichmaessiges Raster: Symbol | Linie | Symbol | Linie | … – Linien laufen genau von Symbol zu Symbol, Beschriftung mittig darunter */
.kette { --g: 50px; --p: 34px; display: grid; grid-template-columns: var(--g) var(--p) var(--g) var(--p) var(--g) var(--p) var(--g); column-gap: 10px; align-items: start; justify-content: center; }
.glied { display: grid; justify-items: center; gap: 10px; width: var(--g); font-size: 12.5px; color: var(--leise); transition: color .45s ease; }
.glied { grid-template-columns: 100%; }
.glied > span:last-child { white-space: nowrap; width: 200%; margin: 0 -50%; text-align: center; }   /* Beschriftung mittig unter dem Symbol, darf breiter sein */
.g-symbol { position: relative; width: var(--g); height: var(--g); border-radius: calc(var(--g) * .3); background: var(--flaeche-2); box-shadow: inset 0 0 0 1px var(--linie-2);
  transition: background .5s ease, box-shadow .5s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.g-symbol::after { width: 46%; height: 46%; background: var(--tinte); transition: background .4s ease; }
.g-symbol::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.glied.an { color: var(--tinte); }
.glied.an .g-symbol { background: var(--verlauf); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(107, 91, 214, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.glied.an .g-symbol::after { background: #fff; }
.glied.g4.an .g-symbol { background: linear-gradient(135deg, #3DDC97 0%, #12A877 100%); box-shadow: 0 14px 30px -12px rgba(18, 168, 119, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.glied.puls .g-symbol::before { animation: g-puls .9s ease-out; }
.glied.g4.puls .g-symbol::before { animation-name: g-puls-gruen; }
@keyframes g-puls { from { opacity: 1; box-shadow: 0 0 0 0 rgba(156, 144, 242, .6); } to { opacity: 0; box-shadow: 0 0 0 16px rgba(156, 144, 242, 0); } }
@keyframes g-puls-gruen { from { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } to { opacity: 0; box-shadow: 0 0 0 16px rgba(61, 220, 151, 0); } }
.pfeil { width: 100%; height: 2px; margin-top: calc(var(--g) / 2 - 1px); background: var(--linie-2); position: relative; border-radius: 2px; }
.pfeil span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(156, 144, 242, .15), var(--akzent));
  transition: width .6s cubic-bezier(.45, 0, .2, 1); }
.pfeil span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px rgba(156, 144, 242, .95), 0 0 18px 6px rgba(156, 144, 242, .35); opacity: 0; transition: opacity .25s ease; }
.pfeil.laeuft span { width: 100%; }
.pfeil.laeuft span::after { opacity: 1; }
.pfeil.voll span::after { opacity: 0; }
.kette.aus .pfeil span { opacity: 0; transition: opacity .45s ease; }

/* ---------- So entsteht es: Projekt-Spieler (antippen/wischen, laeuft von selbst weiter – keine klebende Buehne mehr) ---------- */
@property --teil { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.geschichte { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.spieler-buehne { display: grid; gap: 12px; min-width: 0; }
.buehne-rahmen { position: relative; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie), var(--schatten); touch-action: pan-y; }
.spieler-hinweis { margin: 0; font-size: 13px; color: var(--leise); text-align: center; }
@media (hover: hover) { .spieler-hinweis { display: none; } }
.szene { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transform: scale(.97); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.szene.aktiv { opacity: 1; transform: none; pointer-events: auto; }
.szene figcaption { padding: 14px 22px 18px; font-size: 14px; color: var(--leise); border-top: 1px solid var(--linie); background: var(--flaeche); }
.szene > video { width: 100%; height: 100%; object-fit: contain; background: #E8D6C9; min-height: 0; }
.logo-wechsel { position: relative; background: #fff; min-height: 0; }
.logo-wechsel img { position: absolute; inset: 0; margin: auto; width: 62%; height: auto; max-height: 80%; object-fit: contain; }
.logo-wechsel .lw-nachher { animation: einblend 4s ease-in-out infinite alternate; }
@keyframes einblend { 0%, 30% { opacity: 0; } 70%, 100% { opacity: 1; } }
.vergleich { position: relative; overflow: hidden; background: #E8E2DB; min-height: 0; user-select: none; touch-action: pan-y; }
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vergleich .v-oben { clip-path: inset(0 0 0 var(--teil)); }
.vergleich input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.v-griff { position: absolute; top: 0; bottom: 0; left: var(--teil); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.v-griff::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #14171A; display: grid; place-items: center; font: 700 16px/1 "Plus Jakarta Sans"; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.v-etikett { position: absolute; top: 14px; z-index: 2; font: 700 10px/1 "Syncopate"; letter-spacing: .18em; text-transform: uppercase; color: #14171A; background: rgba(255,255,255,.88); padding: 7px 9px; border-radius: 7px; }
.v-etikett.links { left: 14px; } .v-etikett.rechts { right: 14px; }
.handy { position: relative; align-self: center; justify-self: center; height: 90%; aspect-ratio: 1170 / 2532; min-height: 0;
  border-radius: 15% / 6.93%; background: linear-gradient(150deg, #34343B 0%, #0B0B0D 26%, #0B0B0D 74%, #26262C 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 1.5px rgba(255,255,255,.07), 0 30px 60px -20px rgba(0,0,0,.65); }
.handy::before { content: ""; position: absolute; z-index: 2; top: 3.1%; left: 50%; width: 29%; height: 3.3%; transform: translateX(-50%); border-radius: 99px; background: #050506; }
.handy::after { content: ""; position: absolute; right: -2px; top: 22%; width: 2px; height: 10%; border-radius: 0 2px 2px 0; background: #2C2C33; }
.szene[data-szene="4"] { background: radial-gradient(circle at 50% 40%, var(--leucht), transparent 60%); }
.handy video { position: absolute; left: 3.6%; top: 1.66%; width: 92.8%; height: 96.68%; object-fit: cover; border-radius: 11.6% / 5.36%; background: #F3EDE6; }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.schritt { position: relative; border-radius: 20px; transition: background-color .45s ease, box-shadow .45s ease; }
.schritt.aktiv { background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie), 0 24px 50px -30px rgba(0, 0, 0, .55); }
.schritt h3 { margin: 0; }
.schritt-kopf { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 20px 22px; border: 0; background: none; cursor: pointer; text-align: left;
  font: 700 clamp(17px, 1.6vw, 24px)/1.15 "Syncopate", sans-serif; text-transform: uppercase; color: var(--leise); transition: color .35s ease; border-radius: 20px; }
.schritt-kopf .nr { flex: none; font-size: 11px; }
.schritt:not(.aktiv) .schritt-kopf:hover { color: var(--tinte); }
.schritt.aktiv .schritt-kopf { color: var(--tinte); }
.schritt-kopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.schritt-text { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2,.7,.2,1); }
.schritt.aktiv .schritt-text { grid-template-rows: 1fr; }
.schritt-text > div { overflow: hidden; min-height: 0; }
.schritt-text p { margin: 0; padding: 0 22px 30px; color: var(--leise); font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.6; max-width: 46ch; opacity: 0; transition: opacity .4s ease; }
.schritt.aktiv .schritt-text p { opacity: 1; transition-delay: .12s; }
.schritt-balken { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 2px; border-radius: 2px; background: var(--linie); overflow: hidden; opacity: 0; transition: opacity .3s; }
.schritt.aktiv .schritt-balken { opacity: 1; }
.schritt-balken i { display: block; height: 100%; background: var(--verlauf); transform-origin: 0 50%; transform: scaleX(0); }
.spieler:not(.hand) .schritt.aktiv .schritt-balken i { animation: balken-lauf var(--dauer, 7s) linear forwards; }
.spieler.pause .schritt-balken i { animation-play-state: paused; }
.spieler.hand .schritt.aktiv .schritt-balken i { transform: scaleX(1); }
@keyframes balken-lauf { to { transform: scaleX(1); } }
.vergleich.demo { animation: teil-wink 5.6s cubic-bezier(.45, 0, .25, 1) .7s both; }
.spieler.pause .vergleich.demo { animation-play-state: paused; }
@keyframes teil-wink { 0% { --teil: 50%; } 30% { --teil: 16%; } 66% { --teil: 84%; } 100% { --teil: 50%; } }
.nr { font: 700 13px/1 "Syncopate", sans-serif; letter-spacing: .2em; color: var(--akzent); }

/* ---------- Beispiele: Galerie ---------- */
.pfeile { display: flex; gap: 10px; }
.pfeil-knopf { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--linie); cursor: pointer; font-size: 20px; transition: background-color .25s, transform .25s; }
.pfeil-knopf:hover { background: var(--linie-2); transform: scale(1.06); }
.galerie {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand);
  margin-inline: calc(var(--rand) * -1); padding: 6px var(--rand) 30px; scrollbar-width: none; cursor: grab; align-items: flex-start;
}
.galerie::-webkit-scrollbar { display: none; }
.galerie.ziehen { cursor: grabbing; scroll-snap-type: none; }
.galerie.ziehen * { pointer-events: none; }
.beispiel { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie), var(--schatten); }
.beispiel.hoch { width: clamp(250px, 24vw, 330px); }
.beispiel.quer, .beispiel.bald { width: clamp(300px, 44vw, 600px); }
.b-medien { position: relative; overflow: hidden; background: var(--flaeche-2); }
.beispiel.hoch .b-medien { aspect-ratio: 9 / 16; }
.beispiel.quer .b-medien, .beispiel.bald .b-medien { aspect-ratio: 16 / 9; }
.b-medien video { width: 100%; height: 100%; object-fit: cover; }
.b-text { padding: 20px 22px 24px; }
.b-art { font: 700 10px/1 "Syncopate", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--akzent); }
.b-text h3 { margin: 10px 0 6px; font: 700 18px/1.2 "Syncopate", sans-serif; text-transform: uppercase; }
.b-text p { margin: 0; color: var(--leise); font-size: 15px; }
.bald-flaeche { display: flex; align-items: center; justify-content: center; gap: 14px; background: repeating-linear-gradient(135deg, var(--flaeche-2) 0 14px, var(--flaeche) 14px 28px); }
.bald-flaeche span { font: 700 13px/1 "Syncopate"; letter-spacing: .2em; text-transform: uppercase; padding: 12px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--linie-2); color: var(--leise); }

/* ---------- Ablauf ---------- */
.ablauf-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: a; }
.ablauf-liste li { position: relative; padding: 30px 26px 32px; border-radius: 26px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }
.ablauf-liste li::after { content: ""; position: absolute; top: 44px; right: -12px; width: 8px; height: 8px; border-radius: 2px; background: var(--akzent); transform: rotate(45deg); z-index: 2; }
.ablauf-liste li:last-child::after { display: none; }
.ablauf-liste h3 { margin: 18px 0 8px; font: 700 18px/1.2 "Syncopate", sans-serif; text-transform: uppercase; }
.ablauf-liste p { margin: 0; color: var(--leise); font-size: 15.5px; }

/* ---------- Kontakt ---------- */
.kontakt { padding-bottom: clamp(90px, 12vw, 160px); }
.kontakt-kasten {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); overflow: hidden; overflow: clip; /* clip: Fokus darf den Kasten nicht seitlich verschieben */
  padding: clamp(28px, 5vw, 72px); border-radius: 36px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie), var(--schatten);
}
.kontakt-kasten::before { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--leucht), transparent 65%); pointer-events: none; }
.gespraech { position: relative; min-height: 360px; }
.frage { border: 0; margin: 0; padding: 0; display: none; }
.frage.aktiv { display: grid; gap: 18px; align-content: start; animation: frage-an .6s cubic-bezier(.2,.7,.2,1); }
@keyframes frage-an { from { opacity: 0; transform: translateY(14px); } }
.frage legend { padding: 0; margin-bottom: 4px; font: 700 clamp(20px, 2vw, 28px)/1.2 "Syncopate", sans-serif; text-transform: uppercase; }
.frage-nr { display: block; font: 700 11px/1 "Syncopate"; letter-spacing: .24em; color: var(--akzent); margin-bottom: 12px; }
.auswahl { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 13px 18px; border-radius: 99px; border: 0; cursor: pointer; background: var(--flaeche-2); box-shadow: inset 0 0 0 1px var(--linie-2); font-weight: 500; transition: background-color .25s, color .25s, transform .25s, box-shadow .25s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--verlauf); color: #fff; box-shadow: 0 10px 24px -10px rgba(107, 91, 214, .8); }
.rahmen-frage .auswahl { gap: 8px; }
.rahmen-frage .chip { padding: 10px 14px; font-size: 14px; color: var(--tinte); }
.rahmen-frage .chip[aria-pressed="true"] { color: #fff; }
.rahmen-frage small { font-size: 12px; opacity: .75; }
.feld { display: grid; gap: 8px; font-size: 14px; color: var(--leise); }
.feld input, .feld textarea { font: 400 16px/1.5 "Plus Jakarta Sans", sans-serif; color: var(--tinte); background: var(--flaeche-2); border: 0; border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--linie-2); resize: vertical; transition: box-shadow .25s; }
.feld input:focus, .feld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--akzent); }
.frage-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.kontakt .titel { font-size: clamp(30px, 3.4vw, 50px); }
.weiter-knopf { justify-self: start; }
.hinweis-klein { margin: 0; font-size: 13px; color: var(--leise); }
.danke h3 { margin: 0 0 10px; font: 700 28px/1.2 "Syncopate", sans-serif; text-transform: uppercase; }
.danke a { color: var(--akzent); }

/* ---------- Fuss ---------- */
.fuss { position: relative; z-index: 1; max-width: var(--breit); margin: 0 auto; padding: 56px var(--rand) 40px; border-top: 1px solid var(--linie); display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.marke-bild.gross { height: 30px; }
.fuss-marke p { margin: 16px 0 0; color: var(--leise); font-size: 15px; }
.fuss-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.fuss-spalten div { display: grid; gap: 6px; align-content: start; }
.fuss-spalten b { font: 700 11px/1 "Syncopate"; letter-spacing: .2em; text-transform: uppercase; color: var(--akzent); margin-bottom: 8px; }
.fuss-spalten a, .fuss-spalten span { color: var(--leise); text-decoration: none; overflow-wrap: anywhere; }   /* lange E-Mail darf umbrechen */
.fuss-spalten a:hover { color: var(--tinte); }
.fuss-zeile { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; color: var(--leise); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kachel.hoch { grid-row: span 2; }
  .kachel.breit { grid-column: span 2; }
  .ablauf-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ablauf-liste li::after { display: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .kopf { gap: 10px; padding: 14px 16px; }
  .kopf.fest { padding-block: 8px; }
  .kopf nav a:not(.nav-kontakt) { display: none; }
  .kopf nav .nav-kontakt { padding: 9px 14px; font-size: 14px; }
  .marke-bild { height: 18px; }
  .marke-schrift { height: 12px; }
  .thema { width: 40px; height: 40px; }
  .start { align-items: end; padding: calc(110px + 22svh) 16px 52px; }
  .start-text { margin: 0; }
  .start::after { height: 62%; background: linear-gradient(to bottom, transparent, var(--grund) 70%); }
  h1 { font-size: clamp(32px, 10vw, 44px); }
  .form-anzeige { left: 16px; right: auto; bottom: 62px; }
  .weiter { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, auto); }
  .kachel.gross, .kachel.breit { grid-column: auto; }
  .kachel.gross { grid-row: span 1; min-height: 420px; }
  .kachel.hoch { grid-row: span 1; min-height: 460px; }
  .kette { column-gap: 6px; --g: 42px; --p: 16px; } .glied { font-size: 11px; }
  .geschichte { grid-template-columns: 1fr; gap: 16px; }
  .buehne-rahmen { aspect-ratio: 1 / .94; border-radius: 24px; }
  .schritte { gap: 4px; }
  .schritt, .schritt-kopf { border-radius: 16px; }
  .schritt-kopf { padding: 13px 16px; gap: 12px; font-size: 15.5px; }
  .spieler-buehne { gap: 8px; }
  .spieler .szene figcaption { padding: 10px 16px 12px; font-size: 13px; }
  .schritt-text p { padding: 0 16px 26px; font-size: 15px; }
  .schritt-balken { left: 16px; right: 16px; bottom: 12px; }
  .abschnitt-kopf.mit-pfeilen { flex-direction: column; align-items: flex-start; }
  .pfeile { display: none; }
  .galerie { scroll-padding-inline: 16px; }
  .beispiel.hoch { width: 72vw; } .beispiel.quer, .beispiel.bald { width: 86vw; }
  .ablauf-liste { grid-template-columns: 1fr; }
  .kontakt-kasten { grid-template-columns: 1fr; border-radius: 28px; }
  .fuss { grid-template-columns: minmax(0, 1fr); }
  .fuss-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Wer weniger Bewegung moechte */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zeigen { opacity: 1; transform: none; transition: none; }
  .start .zeigen { animation: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .laufband-spur { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) { .schritt-balken i, .vergleich.demo { animation: none !important; } }

/* ganz kleine Handys (unter 360 px): Kopfzeile passt sonst nicht */
@media (max-width: 359px) {
  .kopf { gap: 6px; padding-inline: 12px; }
  .marke-schrift { height: 10px; }
  .kopf nav .nav-kontakt { padding: 8px 11px; font-size: 13px; }
}
