/* Siteartist k5: schwarze Buehne, feine Geometrie, Licht aus Punkten.
   Ecken: Knoepfe immer Pille, Flaechen 20px, Geraeterahmen 14px. Akzent: Glut (#FF8A3D). */

:root {
  --schwarz: #000000;
  --flaeche: #0A0A0B;
  --flaeche-2: #141416;
  --linie: rgba(255, 255, 255, 0.09);
  --linie-stark: rgba(255, 255, 255, 0.18);
  --kreide: #F7EFE7;
  --grau: #AAAAA6;
  --grau-hell: #C4C4C0;
  --glut: #FF8A3D;
  --glut-licht: #FFC59A;

  --schrift: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
  --aus-weich: cubic-bezier(0.22, 1, 0.36, 1);

  --rand: clamp(20px, 4vw, 56px);
  --breite: 1360px;
  --abstand: clamp(80px, 6.6vw, 116px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-color: #2C2C30 #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--schwarz);
  -webkit-tap-highlight-color: transparent;
}
html.still { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--schwarz);
  color: var(--kreide);
  font-family: var(--schrift);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; }
.navi a:active { background-color: rgba(255, 255, 255, 0.06); }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 400; }

::selection { background: var(--glut); color: #000; }
body { caret-color: var(--glut); }

:focus-visible {
  outline: 1.5px solid var(--glut);
  outline-offset: 4px;
  border-radius: 6px;
}

.nur-leser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.sprung {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--kreide); color: #000; padding: 10px 16px; border-radius: 999px;
  font-weight: 500;
}
.sprung:focus { top: 12px; }

.huelle {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: max(var(--rand), env(safe-area-inset-left, 0px)) max(var(--rand), env(safe-area-inset-right, 0px));
}

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--aus), background-color 0.25s ease, box-shadow 0.35s var(--aus), color 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.knopf:active { transform: scale(0.97); }
.knopf-hell { background: var(--kreide); color: #000; }
.knopf-dunkel {
  background: #1A1A1C;
  color: var(--kreide);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.knopf-klein { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

@media (hover: hover) and (pointer: fine) {
  .knopf-hell:hover { background: #fff; box-shadow: 0 10px 36px -12px rgba(255, 138, 61, 0.55); }
  .knopf-dunkel:hover { background: #242427; }
}

/* ---------- Kopf: oben flach wie k5, beim Scrollen die schwebende Leiste aus k4 ---------- */
.kopf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}
/* die flache Flaeche des Auftakts, blendet beim Scrollen aus */
.kopf::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(72px + env(safe-area-inset-top, 0px));
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  transition: opacity 0.35s ease;
}
.kopf.gerollt::before { opacity: 0; visibility: hidden; -webkit-backdrop-filter: none; backdrop-filter: none; }

.leiste {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: min(calc(var(--breite) + 2 * var(--rand)), 100%);
  margin: 0 auto;
  padding: 0 var(--rand);
  border: 1px solid transparent;
  border-radius: 0;
  background-color: rgba(12, 12, 14, 0);
  transition:
    max-width 0.5s var(--aus), height 0.5s var(--aus), padding 0.5s var(--aus),
    border-radius 0.5s var(--aus), transform 0.5s var(--aus),
    background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.kopf.gerollt .leiste {
  max-width: min(1040px, calc(100% - 2 * var(--rand)));
  height: 60px;
  padding: 0 12px 0 22px;
  border-radius: 16px;
  transform: translateY(14px);
  background-color: rgba(12, 12, 14, 0.88);
  border-color: var(--linie);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.marke { display: block; flex: none; padding: 6px 0; }
.marke .wortmarke { display: block; height: 23px; width: auto; transition: height 0.5s var(--aus); }
.kopf.gerollt .marke .wortmarke { height: 20px; }

.navi { display: flex; gap: 10px; margin: 0 auto; transition: gap 0.5s var(--aus); }
.kopf.gerollt .navi { gap: 2px; }
.navi a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grau-hell);
  transition: color 0.16s ease, background-color 0.16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .navi a:hover { color: var(--kreide); background-color: rgba(255, 255, 255, 0.05); }
}

.menue {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.menue span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--kreide);
  transition: transform 0.26s var(--aus);
}
.menue span:first-child { top: 18px; }
.menue span:last-child { top: 25px; }
.menue[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menue[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menue:active { background: rgba(255, 255, 255, 0.06); }

.klappe {
  pointer-events: auto;
  position: relative;
  width: min(1040px, calc(100% - 2 * var(--rand)));
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(12, 12, 14, 0.94);
  border: 1px solid var(--linie);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: klappeAuf 0.22s var(--aus);
}
.kopf.gerollt .klappe { transform: translateY(14px); }
.klappe[hidden] { display: none; }
.klappe a:not(.knopf) {
  display: block;
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 17px;
  color: var(--kreide);
}
.klappe a:not(.knopf):active { background: rgba(255, 255, 255, 0.06); }
.klappe .knopf { width: 100%; margin-top: 8px; }
@keyframes klappeAuf { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.kopf.gerollt .klappe { animation-name: klappeAufGerollt; }
@keyframes klappeAufGerollt { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

main { padding-top: 72px; }

/* ---------- Auftakt ---------- */
.auftakt { position: relative; padding-top: clamp(8px, 2vw, 32px); padding-bottom: clamp(40px, 4vw, 64px); }

.auftakt-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: clamp(480px, 44vw, 700px);
}

.auftakt-titel {
  font-weight: 300;
  font-size: clamp(2.6rem, 1rem + 4.75vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.016em;
}
.zeile { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.zeile > span { display: block; }

.auftakt-unterzeile {
  margin-top: clamp(24px, 2.2vw, 36px);
  max-width: 46ch;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--grau-hell);
}

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 2.6vw, 40px); }

.auftakt-bild {
  position: relative;
  aspect-ratio: 1 / 0.92;
  width: calc(100% + var(--rand));
  max-width: 820px;
  justify-self: end;
  margin-right: calc(-1 * var(--rand));
}
.wolke { width: 100%; height: 100%; }

.kennzahlen {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(24px, 3vw, 52px);
  row-gap: 12px;
  margin-top: clamp(16px, 2vw, 32px);
  padding-top: clamp(22px, 2vw, 30px);
  border-top: 1px solid var(--linie);
  font-size: clamp(1.05rem, 0.7rem + 0.85vw, 1.6rem);
  font-weight: 300;
  color: var(--grau);
  letter-spacing: -0.005em;
}
.kennzahlen b { color: var(--kreide); font-weight: 400; margin-right: 0.18em; }

/* ---------- Abschnitte allgemein ---------- */
.abschnitt { position: relative; padding-top: var(--abstand); }

.titel {
  font-weight: 300;
  font-size: clamp(2.05rem, 1.2rem + 2.7vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.leise { color: var(--grau); font-weight: 400; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); }
.ab-mittel { display: none; }
@media (min-width: 900px) { .ab-mittel { display: inline; } }

/* ---------- Leistungen: Aufbau und Bewegung aus k3, Schrift und Farben aus k5 ---------- */
.leistungen .huelle { display: flex; flex-direction: column; align-items: center; }
.leistungen-titel { text-align: center; max-width: 22ch; }

.bento {
  width: 100%;
  margin-top: clamp(40px, 4.4vw, 64px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.zelle {
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 300px;
  padding: clamp(24px, 2.2vw, 32px);
  border: 1px solid var(--linie);
  border-radius: 20px;
  background:
    radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--flaeche);
  overflow: hidden;
}
/* Lichtkante folgt dem Zeiger */
.zelle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 138, 61, 0.45), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.zelle--design { grid-column: span 7; }
.zelle--code { grid-column: span 5; }
.zelle--texte { grid-column: span 5; }
.zelle--betrieb { grid-column: span 7; }
.zelle-text h3 { font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.45rem); font-weight: 400; letter-spacing: -0.005em; line-height: 1.25; }
.zelle-text p { margin-top: 6px; color: var(--grau); font-size: 15.5px; line-height: 1.55; max-width: 34ch; }

/* Webdesign: Muster aus Schrift, Farbe, Raster */
.zelle--design .muster { flex: 1; }
.muster {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 18px 32px;
  padding-top: 6px;
  align-items: center;
}
.muster-schrift { grid-row: span 2; display: flex; flex-direction: column; gap: 6px; padding-right: 28px; border-right: 1px solid var(--linie); }
.muster-aa {
  font-weight: 200;
  font-size: 112px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF, #8E8E8A);
  -webkit-background-clip: text;
  background-clip: text;
}
.muster-name { font-size: 13px; color: #8E8E8A; }
.muster-farben { display: flex; gap: 10px; }
.muster-farben span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.muster-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; min-height: 46px; height: 100%; }
.muster-raster i {
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.muster-raster i:nth-child(2), .muster-raster i:nth-child(3) { background: linear-gradient(180deg, rgba(255, 138, 61, 0.24), rgba(255, 138, 61, 0.04)); }

/* Entwicklung: der Editor laeuft in die Ecke der Karte hinaus */
.zelle--code { padding-bottom: 0; padding-right: 0; }
.zelle--code .zelle-text { padding-right: clamp(24px, 2.2vw, 32px); }
.code {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
  background: linear-gradient(180deg, #0F0F12, #080809);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.code-reiter { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; border-bottom: 1px solid var(--linie); font: 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #8E8E8A; background: rgba(255, 255, 255, 0.02); }
.code-reiter span { padding: 7px 10px; border-radius: 8px; }
.code-reiter .an { color: var(--kreide); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.code-text { margin: 0; padding: 16px 14px 18px; font: 12.5px/1.75 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #D8D7D3; white-space: pre; overflow: hidden; }
.code-text .n { display: inline-block; width: 2.2ch; margin-right: 1.4ch; color: #4B4B4F; text-align: right; user-select: none; }
.code-text .k { color: #ECEBE7; }
.code-text .a { color: var(--glut-licht); }
.code-text .s { color: var(--glut); }

/* Texte und Bilder: ueberlagerte Komposition */
.collage { position: relative; margin-top: auto; height: 236px; }
.collage-bild {
  position: absolute;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #8E8E8A;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 8px, transparent 8px 16px), #0D0D0F;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.collage-bild svg { width: 22px; height: 22px; fill: none; stroke: #8E8E8A; stroke-width: 1.5; stroke-linejoin: round; }
.collage-bild--a { left: 0; top: 0; width: 52%; transform: rotate(-4deg); }
.collage-bild--b { right: 2%; top: 14px; width: 44%; transform: rotate(3.5deg); }
.collage-text {
  position: absolute;
  left: 14%;
  right: 4%;
  bottom: 0;
  padding: 16px 18px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #17171A, #101012);
  border: 1px solid var(--linie-stark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 44px -18px rgba(0, 0, 0, 1);
}
.entwurf-zeile { font-size: 24px; font-weight: 300; letter-spacing: -0.005em; display: flex; align-items: center; }
.schreibmarke { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 3px; background: var(--glut); }
.entwurf-absatz { margin-top: 4px; font-size: 14px; color: var(--grau); }

/* Betrieb: senkrechte Statusspur neben dem Text */
.zelle--betrieb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.spur { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0 4px 34px; }
.spur::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.7), rgba(255, 138, 61, 0.15));
}
.spur li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.spur li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 9px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #0D0D0F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23FF8A3D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.45), 0 0 0 5px var(--flaeche);
}
.spur b { font-weight: 500; font-size: 15px; color: var(--kreide); }
.spur span { font-size: 13px; color: #8E8E8A; }

.js:not(.still) .schreibmarke { animation: blinken 1.1s steps(1) infinite; }
@keyframes blinken { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }

@media (max-width: 1100px) {
  .zelle--design, .zelle--code, .zelle--texte, .zelle--betrieb { grid-column: span 6; }
  .zelle--betrieb { grid-template-columns: 1fr; }
  .muster { grid-template-columns: 1fr; }
  .muster-schrift { grid-row: auto; flex-direction: row; align-items: baseline; gap: 14px; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--linie); }
  .muster-aa { font-size: 64px; }
  .code-text { font-size: 11.5px; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .zelle--design, .zelle--code, .zelle--texte, .zelle--betrieb { grid-column: auto; }
  .zelle { min-height: 0; padding: 22px; gap: 22px; }
  .zelle--code { padding-right: 0; padding-bottom: 0; }
  .zelle--code .zelle-text { padding-right: 22px; }
  .zelle--betrieb { grid-template-columns: 1fr; }
  .muster-aa { font-size: 84px; }
}
@media (max-width: 520px) {
  .muster-farben { gap: 8px; }
  .muster-farben span { width: 26px; height: 26px; }
  .code-text { font-size: 11px; padding: 14px 10px 16px; }
  .code-text .n { margin-right: 1ch; }
  .collage { height: 210px; }
}

/* ---------- Arbeiten: Aufbau und Bewegung aus k4, Schrift und Farben aus k5 ---------- */
.arbeiten-kopf { display: flex; flex-direction: column; gap: 14px; }

.entwuerfe {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: clamp(40px, 4.5vw, 72px) auto 0;
  padding: 0 var(--rand);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 3.4vw, 52px) clamp(20px, 2.4vw, 32px);
}
.entwurf--breit { grid-column: 1 / -1; }
/* jede Karte mit Link: der Name traegt ihn, die ganze Flaeche nimmt ihn auf.
   .entwurf--ohne-link: Beispielentwurf ohne eigene Seite (noch), kein Zeiger, kein Anheben. */
.entwurf { position: relative; cursor: pointer; }
.entwurf--ohne-link { cursor: default; }
.entwurf-link { color: inherit; transition: color 0.2s ease; }
.entwurf-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 16px; }
.entwurf-link:focus-visible { outline: none; }
.entwurf-link:focus-visible::after { outline: 1.5px solid var(--glut); outline-offset: 6px; }
.entwurf:not(.entwurf--ohne-link):active .browser { transform: scale(0.995); }

.browser {
  position: relative;
  border-radius: 16px;
  padding: 0 6px 6px;
  background: linear-gradient(180deg, #18181A, #0E0E10);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 60px -36px rgba(0, 0, 0, 0.9),
    0 50px 80px -50px rgba(255, 138, 61, 0.22);
  transition: transform 0.5s var(--aus), box-shadow 0.5s var(--aus);
}
@media (hover: hover) and (pointer: fine) {
  .entwurf:hover .entwurf-link { color: var(--glut); }
  .entwurf--breit:hover .browser {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 40px 100px -40px rgba(0, 0, 0, 0.9),
      0 60px 120px -50px rgba(255, 138, 61, 0.32);
  }
  .entwurf:not(.entwurf--breit):not(.entwurf--ohne-link):hover .browser {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 40px 100px -40px rgba(0, 0, 0, 0.9),
      0 60px 120px -50px rgba(255, 138, 61, 0.3);
  }
}

/* Nordwerk als raeumliche Szene: leichte Perspektive, folgt dem Zeiger, Licht wandert mit */
.entwurf--breit { perspective: 2200px; }
.entwurf--breit .browser {
  --rx: 4deg; --ry: -3deg; --tx: 0px; --ty: 0px; --lx: 28%; --ly: 18%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translate3d(var(--tx), var(--ty), 0);
  transform-origin: 50% 70%;
  transition: none;
}
/* nur waehrend der Zeiger die Karte bewegt, bekommt sie eine eigene Ebene; danach rechnet der Browser sie wieder scharf */
.entwurf--breit .browser.in-bewegung { will-change: transform; }
.entwurf--breit .ansicht::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 75% at var(--lx) var(--ly), rgba(255, 252, 245, 0.10), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(20, 22, 24, 0.10) 100%);
}

.browser-leiste { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 8px; }
.punkte { display: flex; gap: 6px; flex: none; }
.punkte i { width: 9px; height: 9px; border-radius: 50%; background: #2E2E31; }
.adresse {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  margin: 0 auto;
  height: 22px;
  padding: 0 14px;
  border-radius: 999px;
  background: #1C1C1F;
  font-size: 11.5px;
  line-height: 22px;
  letter-spacing: 0.02em;
  color: #8A8A8D;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.punkte + .adresse { margin-right: calc(39px + 12px); }

.ansicht {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--schrift);
}
.entwurf--breit .ansicht { aspect-ratio: 16 / 8; }
.entwurf:not(.entwurf--breit) .ansicht { aspect-ratio: 16 / 10; }
/* die grosse Karte rechnet nach ihrer eigenen Breite: schmal (Handy) im Format 4:3 mit der kompakten Glut-Ansicht */
.entwurf--breit .browser { container: rahmen / inline-size; }
@container rahmen (max-width: 719px) {
  .entwurf--breit .ansicht { aspect-ratio: 4 / 3; }
}

.entwurf figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 18px 4px 0;
}
.entwurf figcaption strong { font-size: 1.0625rem; font-weight: 500; color: var(--kreide); }
.entwurf figcaption .unter { flex-basis: 100%; color: var(--grau); font-size: 15px; line-height: 1.5; }
.marke-beispiel {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--glut);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.35);
  letter-spacing: 0.02em;
  transform: translateY(-1px);
}

/* Echtes Projekt: sinneswert.com am Rechner. Das Bild ist genau 16:10, deshalb sitzt das
   Vorschaufenster in Prozent des Bildes bei jeder Breite exakt (im 1440 x 900-Bild: links 240, oben 600, 960 breit). */
.echt-buehne { position: relative; }
.entwurf--echt .ansicht { aspect-ratio: 1440 / 900; background: #FBE3C5; }
.echt-ansicht picture, .echt-ansicht > picture img { display: block; width: 100%; height: 100%; }
.echt-ansicht > picture img { object-fit: cover; object-position: 50% 0; }
.echt-fenster {
  position: absolute;
  left: 16.6667%;
  top: 66.6667%;
  width: 66.6667%;
  bottom: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(226, 214, 196, 0.95);
  border-bottom: 0;
  border-radius: 0.72cqw 0.72cqw 0 0;
}
.echt-reihe {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translate3d(calc(var(--folie, 0) * -100%), 0, 0);
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.echt-reihe.sprung { transition: none; }
.echt-reihe li { flex: 0 0 100%; min-width: 0; }
.echt-reihe img { display: block; width: 100%; height: auto; }
.echt-ansicht::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(10, 8, 6, 0.18);
}
.marke-echt { color: var(--kreide); background: rgba(255, 138, 61, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.45); }

/* Glut Kaffeeroesterei: zweite Ebene ist die Karte zum Roestgrad */
.glut { background: #120A06; color: #F4E6D8; text-align: center; }
.gl-kopf { position: absolute; left: 5cqw; right: 5cqw; top: 4.5cqw; z-index: 2; display: flex; gap: 3.4cqw; align-items: baseline; font-size: max(12px, 2.1cqw); color: #CDB8A6; }
.gl-kopf b { margin-right: auto; font-size: max(13px, 2.8cqw); letter-spacing: 0.3em; color: #FFB27F; font-weight: 600; }
.gl-glut { position: absolute; left: 50%; top: 38%; width: 90cqw; height: 70cqw; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 110, 40, 0.5), rgba(180, 50, 20, 0.18) 55%, transparent); }
.gl-bohnen { position: absolute; left: 50%; top: 12.5cqw; width: 36cqw; transform: translateX(-50%); }
.gl-bohnen ellipse { fill: #3A2116; stroke: #7A4128; stroke-width: 1.2; }
.gl-bohnen path { fill: none; stroke: #FF9A5A; stroke-width: 2.2; stroke-linecap: round; }
.gl-titel { position: absolute; left: 0; right: 0; top: 35cqw; font-size: 7.4cqw; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.gl-unter { position: absolute; left: 0; right: 0; top: 44cqw; font-size: max(12px, 2.2cqw); color: #D9C2B2; }
.gl-karte {
  position: absolute;
  left: 50%;
  bottom: 3.5cqw;
  transform: translateX(-50%);
  width: 64cqw;
  display: grid;
  gap: 2cqw;
  padding: 3cqw 3.4cqw;
  border-radius: 2.4cqw;
  background: rgba(36, 22, 16, 0.82);
  border: 1px solid rgba(255, 160, 110, 0.25);
  box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, 0.5);
  text-align: left;
}
.gl-karte-kopf { display: flex; justify-content: space-between; align-items: baseline; font-size: max(12px, 2.1cqw); color: #F4E6D8; font-weight: 500; }
.gl-karte-kopf span { font-weight: 400; color: #CDB8A6; }
.gl-regler { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0.6cqw; border-radius: 10cqw; background: #1D110B; font-size: max(12px, 1.9cqw); color: #CDB8A6; text-align: center; }
.gl-regler i { font-style: normal; padding: 1cqw 0; border-radius: 10cqw; }
.gl-regler i.an { background: #FF7A2F; color: #1D0F08; font-weight: 500; box-shadow: 0 0 3cqw rgba(255, 122, 47, 0.5); }
.gl-sorten { display: none; }

/* Glut als grosser Entwurf: Text links, Licht und Bohnen rechts, Sorten darunter (Format 2:1) */
@container rahmen (min-width: 720px) {
  .glut { text-align: left; }
  .gl-kopf { left: 4cqw; right: 4cqw; top: 3cqw; gap: 2.8cqw; font-size: max(12px, 1.25cqw); }
  .gl-kopf b { font-size: max(13px, 1.6cqw); }
  .gl-kopf::after { content: "Warenkorb"; order: 9; padding: 0.6cqw 1.4cqw; border-radius: 10cqw; background: #2A1810; color: #F4E6D8; }
  .gl-glut { left: 71%; top: 46%; width: 62cqw; height: 50cqw; }
  .gl-bohnen { left: 71%; top: 10cqw; width: 32cqw; }
  .gl-titel { left: 4cqw; right: auto; top: 12cqw; width: 40cqw; font-size: 6.2cqw; line-height: 1.02; }
  .gl-unter { left: 4cqw; right: auto; top: 26.6cqw; font-size: max(12px, 1.5cqw); }
  .gl-karte { left: 4cqw; bottom: 4cqw; transform: none; width: 34cqw; gap: 1.3cqw; padding: 1.8cqw 2cqw; border-radius: 1.4cqw; box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.5); }
  .gl-karte-kopf { font-size: max(12px, 1.3cqw); }
  .gl-regler { font-size: max(12px, 1.2cqw); padding: 0.4cqw; }
  .gl-regler i { padding: 0.7cqw 0; }
  .gl-regler i.an { box-shadow: 0 0 2cqw rgba(255, 122, 47, 0.5); }
  .gl-sorten { position: absolute; right: 4cqw; bottom: 4cqw; width: 50cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
  .gl-sorten span { display: grid; gap: 0.3cqw; padding: 1.4cqw 1.5cqw; border-radius: 1.2cqw; background: rgba(29, 17, 11, 0.86); border: 1px solid rgba(255, 160, 110, 0.14); font-size: max(11px, 1.1cqw); color: #A88E7A; }
  .gl-sorten i { width: 1.6cqw; height: 2.1cqw; margin-bottom: 0.8cqw; border-radius: 50%; background: #3A1F11; box-shadow: inset -0.3cqw 0 0 #5A3019; transform: rotate(-20deg); }
  .gl-sorten b { font-size: max(12px, 1.3cqw); font-weight: 500; color: #F4E6D8; }
}

/* Praxis Balance: zweite Ebene ist die Terminkarte */
.balance { background: #E3EAE4; color: #1F3D34; }
.pb-kopf { position: absolute; left: 5cqw; right: 5cqw; top: 4.5cqw; display: flex; gap: 3cqw; align-items: center; font-size: max(12px, 2.1cqw); color: #4D6A60; }
.pb-kopf b { margin-right: auto; display: flex; gap: 1.2cqw; align-items: center; font-size: max(13px, 2.6cqw); color: #1F3D34; font-weight: 500; }
.pb-kopf b i { width: 3cqw; height: 3cqw; border-radius: 50%; border: 0.6cqw solid #6F9A87; }
.pb-kopf em { font-style: normal; padding: 1cqw 2cqw; border-radius: 10cqw; background: #1F3D34; color: #E3EAE4; }
.pb-text { position: absolute; left: 5cqw; top: 11cqw; width: 52cqw; }
.pb-titel { font-size: 6.6cqw; line-height: 1.02; letter-spacing: -0.03em; font-weight: 400; }
.pb-unter { margin-top: 2.4cqw; font-size: max(12px, 2.2cqw); color: #4D6A60; }
.pb-bogen { position: absolute; right: 6cqw; bottom: 0; width: 30cqw; height: 50cqw; border-radius: 15cqw 15cqw 0 0; background: linear-gradient(180deg, #F4EFE8, #D7E2D9); overflow: hidden; }
.pb-bogen svg { position: absolute; inset: auto 0 0; width: 100%; height: auto; }
.pb-bogen ellipse { fill: #8FAE9F; }
.pb-bogen ellipse:nth-of-type(2) { fill: #6F9A87; }
.pb-bogen ellipse:nth-of-type(3) { fill: #A9C2B5; }
.pb-bogen ellipse:nth-of-type(4) { fill: #4F7D6B; }
.pb-sonne { fill: #E8C7AD; }
.pb-termin {
  position: absolute;
  left: 5cqw;
  bottom: 3.5cqw;
  width: 56cqw;
  display: grid;
  gap: 1.6cqw;
  padding: 2.6cqw;
  border-radius: 2.6cqw;
  background: #FFFFFF;
  box-shadow: 0 2.4cqw 6cqw rgba(31, 61, 52, 0.18);
}
.pb-termin-kopf { font-size: max(12px, 2.1cqw); font-weight: 500; }
.pb-tage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2cqw; }
.pb-tage i { font-style: normal; text-align: center; padding: 1.2cqw 0; border-radius: 1.6cqw; background: #EDF2EE; font-size: max(12px, 1.9cqw); color: #4D6A60; }
.pb-tage i.an { background: #1F3D34; color: #FFFFFF; }
.pb-weiter { justify-self: start; padding: 1.2cqw 2.6cqw; border-radius: 10cqw; background: #6F9A87; color: #FFFFFF; font-size: max(12px, 1.9cqw); }
@container (max-width: 480px) {
  .gl-unter { display: none; }
}
@container (max-width: 420px) {
  .pb-kopf span, .gl-kopf span { display: none; }
  .pb-text { top: 18cqw; }
  .pb-unter { display: none; }
  .gl-karte { width: 78cqw; }
  .pb-termin { width: 66cqw; }
}

/* ---------- Ablauf ---------- */
.schritte {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(48px, 5vw, 80px);
  counter-reset: schritt;
}
.schritte::before, .schritte::after {
  content: "";
  position: absolute;
  left: 23px;
  right: 0;
  top: 23px;
  height: 1px;
  background: var(--linie-stark);
}
.schritte::after {
  background: linear-gradient(90deg, var(--glut), rgba(255, 138, 61, 0.15) 85%, transparent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 2.2s var(--aus-weich) 0.2s;
}
.schritte.sichtbar::after, .still .schritte::after { transform: scaleX(1); }

.schritt { position: relative; padding-right: 8px; }
.schritt:first-child { position: static; }
.wanderer {
  position: absolute;
  left: 23px;
  right: 0;
  top: 22px;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 61, 0.95) 50%, transparent) no-repeat;
  background-size: 180px 100%;
  background-position: 22% 0;
  filter: drop-shadow(0 0 6px rgba(255, 138, 61, 0.7));
}
.js:not(.still) .wanderer { animation: wandern 6.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes wandern { from { background-position: -180px 0; } to { background-position: calc(100% + 180px) 0; } }
.schritt-punkt {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--schwarz);
  box-shadow: inset 0 0 0 1px var(--linie-stark);
  font-size: 16px;
  font-weight: 400;
  color: var(--kreide);
}
.schritt:first-child .schritt-punkt { box-shadow: inset 0 0 0 1px var(--glut), 0 0 0 6px rgba(255, 138, 61, 0.1); color: var(--glut); }
.schritt h3 {
  margin-top: 28px;
  font-weight: 300;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.25;
  max-width: 16ch;
}
.schritt p { margin-top: 10px; color: var(--grau); font-weight: 400; font-size: 1.0625rem; line-height: 1.55; max-width: 30ch; }

/* ---------- Preis ---------- */
.preis-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
}
.preis-buehne { position: relative; width: 100%; max-width: 600px; }
.preis-buehne::before {
  content: "";
  position: absolute;
  inset: 10% 0 0 18%;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.14), transparent 75%);
  pointer-events: none;
}
.seitenmodule { position: relative; width: 100%; height: auto; overflow: visible; }
.sm-name { font: 500 12px var(--schrift); dominant-baseline: middle; fill: var(--kreide); letter-spacing: 0.01em; }
.sm-5 rect:first-child { filter: drop-shadow(0 18px 40px rgba(255, 138, 61, 0.18)); }
.js:not(.still) .sm { transform: translate(var(--x), var(--y)); opacity: 0; transition: transform 1.2s var(--aus), opacity 0.6s ease; }
.js:not(.still) .sm-5 { opacity: 1; }
.js:not(.still) .preis-buehne.sichtbar .sm { transform: none; opacity: 1; }
.js:not(.still) .preis-buehne.sichtbar .sm-4 { transition-delay: 0.08s; }
.js:not(.still) .preis-buehne.sichtbar .sm-3 { transition-delay: 0.16s; }
.js:not(.still) .preis-buehne.sichtbar .sm-2 { transition-delay: 0.24s; }
.js:not(.still) .preis-buehne.sichtbar .sm-1 { transition-delay: 0.32s; }

.preis-zahl {
  font-weight: 200;
  font-size: clamp(4.4rem, 2.4rem + 6vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}
.preis-art { margin: 8px 0 36px; color: var(--grau-hell); font-weight: 400; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem); }

.preis-ueber { font-weight: 500; font-size: 0.9375rem; color: var(--grau); }
.preis-liste { margin-top: 18px; border-top: 1px solid var(--linie); }
.preis-liste li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie);
  font-weight: 300;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem);
}
.preis-liste li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--glut);
  border-bottom: 1.5px solid var(--glut);
  transform: rotate(-45deg) translateY(-3px);
}
.preis-danach { margin: 24px 0 28px; color: var(--grau-hell); font-weight: 400; font-size: 1.0625rem; line-height: 1.55; max-width: 40ch; }
.fussnote { margin-top: 20px; font-size: 13.5px; color: var(--grau); }

/* ---------- Ueber mich ---------- */
.ueber-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: center;
}
/* Foto: dunkel und warm, laeuft unten in den Grund aus, feiner Glutrand oben links */
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--flaeche);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 50px 120px -60px rgba(255, 138, 61, 0.28);
}
.portrait picture, .portrait img { display: block; width: 100%; height: 100%; }
.portrait img { object-fit: cover; object-position: 50% 30%; filter: saturate(0.92) contrast(1.04); }
.portrait::before {
  /* Verlauf in den Grund und warmes Licht von der Seite */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.55) 80%, #000 100%),
    radial-gradient(90% 70% at 100% 20%, rgba(255, 138, 61, 0.16), transparent 60%);
  mix-blend-mode: normal;
}
.portrait::after {
  /* Lichtrand: oben links in Glut, nach unten verloeschend */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 197, 154, 0.75), rgba(255, 138, 61, 0.35) 28%, rgba(255, 255, 255, 0.06) 60%, transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ueber-text p:not(.unterschrift) {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--grau-hell);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  line-height: 1.55;
}
.ueber-text .titel + p { margin-top: 32px; }
.unterschrift {
  margin-top: 34px;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem);
  line-height: 1.1;
  color: var(--kreide);
  letter-spacing: -0.01em;
}
.unterschrift::after {
  content: "";
  display: block;
  width: 64px;
  height: 1.5px;
  margin-top: 14px;
  background: var(--glut);
}

/* ---------- Fuer wen ---------- */
.fuerwen-satz {
  font-weight: 300;
  font-size: clamp(1.6rem, 0.9rem + 2.5vw, 3.35rem);
  line-height: 1.17;
  letter-spacing: -0.012em;
  color: var(--grau);
  max-width: 28ch;
  text-wrap: pretty;
}
.fuerwen-satz b { color: var(--kreide); }

/* ---------- Fragen ---------- */
.fragen-raster {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.fragen-liste { border-top: 1px solid var(--linie); }
.fragen-liste details { border-bottom: 1px solid var(--linie); }
.fragen-liste summary {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  position: relative;
  display: block;
  padding: 26px 56px 26px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.02rem + 0.45vw, 1.45rem);
  line-height: 1.3;
  transition: color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::before, .fragen-liste summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--kreide);
  transition: transform 0.35s var(--aus), background-color 0.2s ease;
}
.fragen-liste summary::after { transform: rotate(90deg); }
.fragen-liste details[open] summary::after { transform: rotate(0deg); }
.fragen-liste details[open] summary::before, .fragen-liste details[open] summary::after { background: var(--glut); }
@media (hover: hover) and (pointer: fine) {
  .fragen-liste summary:hover { color: #fff; }
}
.antwort {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 0 0 30px;
}
.vorschau {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--grau-hell);
  box-shadow: inset 0 0 0 1px var(--linie-stark);
  white-space: nowrap;
}
.js:not(.still) .fragen-liste details[open] .vorschau { animation: vorschauAuf 0.4s ease both 0.12s; }
@keyframes vorschauAuf { from { opacity: 0; } }
.fragen-liste details p {
  padding: 0;
  color: var(--grau-hell);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 56ch;
}
.js:not(.still) .fragen-liste details[open] p { animation: aufklappen 0.45s var(--aus) both; }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Abschluss ---------- */
.abschluss {
  position: relative;
  margin-top: var(--abstand);
  padding-bottom: clamp(48px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.abschluss-innen {
  position: relative;
  padding-top: clamp(64px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
/* nur der Wuerfel: eigene Buehne in der Mitte, mit Luft nach oben und unten */
.abschluss-buehne {
  width: min(100%, 720px);
  height: clamp(340px, 34vw, 480px);
  margin-top: clamp(24px, 3vw, 48px);
}
.abschluss-buehne .wolke { width: 100%; height: 100%; }
.knopf-gross {
  min-width: 190px;
  height: 52px;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.18), 0 0 48px rgba(255, 138, 61, 0.18);
}
.abschluss-titel {
  font-weight: 300;
  font-size: clamp(2.2rem, 1.1rem + 3.6vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
}

/* ---------- Fuss ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.fuss-raster { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.fuss-marke { color: var(--kreide); padding: 8px 0; }
.fuss-marke .wortmarke { display: block; height: 18px; width: auto; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14.5px; font-weight: 500; color: var(--grau-hell); }
.fuss-nav a { padding: 6px 0; transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .fuss-nav a:hover { color: var(--kreide); } }
.fuss-herkunft { margin-left: auto; font-size: 14px; color: var(--grau); }

/* ---------- Bewegung: Auftakt ---------- */
.js:not(.still) .zeile > span { animation: zeileHoch 1.15s var(--aus) both; }
.js:not(.still) .zeile:nth-child(1) > span { animation-delay: 0.15s; }
.js:not(.still) .zeile:nth-child(2) > span { animation-delay: 0.27s; }
@keyframes zeileHoch { from { transform: translateY(108%); } }

.js:not(.still) [data-auftakt] { animation: auftauchen 1.1s var(--aus) both; }
.js:not(.still) [data-auftakt="1"] { animation-name: wolkeAuf; animation-duration: 1.8s; animation-delay: 0.05s; }
.js:not(.still) [data-auftakt="2"] { animation-delay: 0.45s; }
.js:not(.still) [data-auftakt="3"] { animation-delay: 0.58s; }
.js:not(.still) [data-auftakt="4"] { animation-delay: 0.85s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(14px); } }
@keyframes wolkeAuf { from { opacity: 0; } }

/* ---------- Bewegung: beim Scrollen, nur an drei Stellen ---------- */
/* Leistungen und Ablauf: kurze Staffel. Arbeiten: Geraete heben sich ins Licht. Preis: der Glutbogen zeichnet sich. */
.js:not(.still) [data-zeige] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--aus), transform 0.9s var(--aus);
}
.js:not(.still) [data-zeige].sichtbar { opacity: 1; transform: none; }
.js:not(.still) .zelle[data-zeige]:nth-child(2) { transition-delay: 0.06s; }
.js:not(.still) .zelle[data-zeige]:nth-child(3) { transition-delay: 0.12s; }
.js:not(.still) .zelle[data-zeige]:nth-child(4) { transition-delay: 0.18s; }
.js:not(.still) .leistungen-titel[data-zeige] { filter: blur(8px); transition: opacity 0.9s var(--aus), transform 0.9s var(--aus), filter 0.9s var(--aus); }
.js:not(.still) .leistungen-titel[data-zeige].sichtbar { filter: none; }
.js:not(.still) .entwurf[data-zeige] { transform: translateY(22px); transition-delay: calc(var(--v, 0) * 110ms); }
.js:not(.still) .entwurf[data-zeige].sichtbar { transform: none; }
.js:not(.still) .preis-buehne[data-zeige] { opacity: 1; transform: none; }
.js:not(.still) .schritt[data-zeige]:nth-child(2) { transition-delay: 0.12s; }
.js:not(.still) .schritt[data-zeige]:nth-child(3) { transition-delay: 0.24s; }
.js:not(.still) .schritt[data-zeige]:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Breiten ---------- */
@media (max-width: 960px) {
  .navi, .nur-breit { display: none; }
  .menue { display: block; }
  .leiste { height: 64px; padding: 0 6px 0 var(--rand); }
  .kopf::before { height: calc(64px + env(safe-area-inset-top, 0px)); }
  .kopf.gerollt .leiste { height: 56px; padding: 0 6px 0 18px; }
  main { padding-top: 64px; }

  .auftakt-raster { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .auftakt-bild { order: -1; justify-self: center; max-width: 560px; margin-inline: auto; }
  .auftakt-titel { max-width: 16ch; }



  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .schritte::before, .schritte::after { display: none; }

  .preis-raster { grid-template-columns: 1fr; }
  .preis-buehne { max-width: 520px; }

  .ueber-raster { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .fragen-raster { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .auftakt { padding-top: 4px; }
  .auftakt-bild { width: calc(100% + 2 * var(--rand)); max-width: none; margin-inline: calc(-1 * var(--rand)); aspect-ratio: 1 / 0.86; }
  .auftakt-titel { font-size: clamp(2.35rem, 1.2rem + 6.2vw, 3rem); line-height: 1.06; }
  .auftakt-unterzeile { margin-top: 18px; }
  .knoepfe { margin-top: 24px; }
  .knoepfe .knopf { flex: 1 1 auto; }

  .kennzahlen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    font-size: 15px;
    line-height: 1.35;
    margin-top: 40px;
  }
  .kennzahlen li { display: flex; flex-direction: column; gap: 4px; }
  .kennzahlen b { font-size: 1.55rem; font-weight: 300; letter-spacing: -0.01em; margin: 0; }

  .wanderer { left: 21px; right: auto; top: 23px; bottom: 23px; width: 3px; height: auto; background: linear-gradient(180deg, transparent, rgba(255, 138, 61, 0.95) 50%, transparent) no-repeat; background-size: 100% 160px; background-position: 0 18%; }
  .js:not(.still) .wanderer { animation-name: wandernSenkrecht; }
  .antwort { gap: 16px; }


  .schritte { grid-template-columns: 1fr; row-gap: 0; }
  .schritte::before, .schritte::after { display: block; left: 22px; right: auto; top: 23px; bottom: 23px; width: 1px; height: auto; }
  .schritte::after { background: linear-gradient(180deg, var(--glut), rgba(255, 138, 61, 0.15) 85%, transparent); transform: scaleY(0); transform-origin: center top; }
  .schritte.sichtbar::after, .still .schritte::after { transform: scaleY(1); }
  .schritt { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 36px; }
  .schritt:last-child { padding-bottom: 0; }
  .schritt-punkt { grid-row: span 2; }
  .schritt h3 { margin-top: 10px; max-width: none; }
  .schritt p { margin-top: 6px; }

  .preis-liste li { padding: 14px 0; }
  .preis-text .knopf { width: 100%; }

  .fragen-liste summary { padding: 22px 44px 22px 0; }
  .fragen-liste details p { padding-right: 0; }

  .abschluss-buehne { height: 340px; }
  .abschluss-innen .knopf { width: 100%; max-width: 340px; }

  .fuss-raster { flex-direction: column; align-items: flex-start; }
  .fuss-herkunft { margin-left: 0; }
}


/* ---------- Arbeiten am Handy und Tablet hochkant ---------- */
@media (max-width: 767px) {
  .entwuerfe { grid-template-columns: 1fr; gap: 36px; }
  .entwurf .ansicht.balance { aspect-ratio: 4 / 3; }
  .balance .pb-text { top: 14cqw; }
  .punkte + .adresse { margin-right: 0; }
  .browser-leiste { height: 32px; gap: 8px; }
  .punkte i { width: 7px; height: 7px; }
  .adresse { height: 20px; line-height: 20px; font-size: 11px; padding: 0 10px; }
}

@keyframes wandernSenkrecht { from { background-position: 0 -160px; } to { background-position: 0 calc(100% + 160px); } }

@media (max-width: 430px) {
  .auftakt-raster { gap: 8px; }
  .auftakt-bild { aspect-ratio: auto; height: 250px; }
  .auftakt-unterzeile { margin-top: 14px; }
  .knoepfe { margin-top: 20px; }
}

@media (min-width: 1800px) {
  :root { --breite: 1520px; }
  body { font-size: 18px; }
}
