/* Staabwerk – Projekte. Ruhig, dunkel, mit Licht. */

:root {
  --grund: #07080c;
  --grund-2: #0c0e15;
  --flaeche: rgba(255, 255, 255, .035);
  --linie: rgba(255, 255, 255, .08);
  --linie-stark: rgba(255, 255, 255, .14);
  --schrift: #f4f5f8;
  --gedimmt: #9aa0ae;
  --leise: #646a78;
  --akzent: #7da2ff;
  --akzent-2: #b88cff;
  --akzent-3: #5be0c4;
  --rund: 18px;
  --kurve: cubic-bezier(.2, .8, .2, 1);
  --schrift-familie: "Segoe UI Variable Display", "Segoe UI Variable Text", "SF Pro Display", -apple-system, system-ui, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* Sanfter Übergang zwischen Startseite und Projektseite */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: seite-weg .35s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: seite-her .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes seite-weg { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes seite-her { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: var(--schrift-familie);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(125, 162, 255, .35); }

/* ---------- Hintergrund: Geflecht, Licht, Körnung ---------- */

#geflecht {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}
.licht {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vmax 34vmax at var(--lx, 30%) var(--ly, 20%), rgba(125, 162, 255, .16), transparent 70%),
    radial-gradient(36vmax 30vmax at 80% 70%, rgba(184, 140, 255, .11), transparent 70%),
    radial-gradient(30vmax 26vmax at 15% 90%, rgba(91, 224, 196, .07), transparent 70%);
  transition: background-position .6s var(--kurve);
  animation: atmen 18s ease-in-out infinite alternate;
}
@keyframes atmen {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2vmax, 1.5vmax, 0) scale(1.06); }
}
.koernung {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, footer { position: relative; z-index: 2; }

/* ---------- Kopf ---------- */

.kopf {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  z-index: 10;
  transition: background .4s var(--kurve), backdrop-filter .4s var(--kurve), padding .4s var(--kurve);
}
.kopf.verschoben {
  background: rgba(7, 8, 12, .62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linie);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
  font-size: 17px;
}
.marke-zeichen {
  position: relative;
  width: 22px;
  height: 22px;
}
.marke-zeichen i {
  position: absolute;
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: var(--schrift);
}
.marke-zeichen i:first-child { left: 0; top: 2px; box-shadow: -2px 0 0 var(--akzent) inset; }
.marke-zeichen i:last-child { right: 0; bottom: 2px; background: var(--akzent); }
.kopf nav a {
  text-decoration: none;
  color: var(--gedimmt);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .3s, border-color .3s, background .3s;
}
.kopf nav a:hover { color: var(--schrift); border-color: var(--linie-stark); background: var(--flaeche); }

/* ---------- Held ---------- */

.held {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(20px, 7vw, 120px) 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.vorzeile {
  margin: 0 0 22px;
  color: var(--akzent);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
}
.riesig {
  margin: 0;
  font-size: clamp(54px, 10.5vw, 168px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 700;
  max-width: 12ch;
  color: #f6f7fb;
  text-shadow: 0 0 60px rgba(125, 162, 255, .18);
}
.riesig .wort:last-child .zeichen { color: #c9d4ff; }
.riesig .wort { display: inline-block; white-space: nowrap; }
.riesig .zeichen {
  display: inline-block;
  opacity: 0;
  transform: translateY(.42em) rotate(4deg);
  filter: blur(10px);
  animation: buchstabe 1.1s var(--kurve) forwards;
  animation-delay: calc(.12s + var(--z) * .035s);
}
@keyframes buchstabe {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.unterzeile {
  margin: 34px 0 0;
  max-width: 34ch;
  font-size: clamp(18px, 2.1vw, 24px);
  color: var(--gedimmt);
  line-height: 1.45;
}
.runter {
  margin-top: 56px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--gedimmt);
  font-size: 15px;
}
.runter svg {
  width: 44px; height: 44px;
  padding: 11px;
  border-radius: 50%;
  border: 1px solid var(--linie-stark);
  fill: none;
  stroke: var(--schrift);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: wippen 2.4s ease-in-out infinite;
  transition: background .3s, border-color .3s;
}
.runter:hover svg { background: rgba(125, 162, 255, .12); border-color: var(--akzent); }
@keyframes wippen { 50% { transform: translateY(6px); } }

/* ---------- Einblenden beim Scrollen ---------- */

.zeigen {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition: opacity 1.1s var(--kurve), transform 1.1s var(--kurve), filter 1.1s var(--kurve);
  transition-delay: var(--v, 0s);
}
.zeigen.da { opacity: 1; transform: none; filter: none; }
.held .zeigen { animation: auftauchen 1.2s var(--kurve) forwards; animation-delay: var(--v, .2s); transition: none; }
@keyframes auftauchen { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Projekte ---------- */

.projekte, .detail {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px clamp(20px, 6vw, 80px) 140px;
}
.abschnittskopf {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 64px;
}
.abschnittskopf .nummer { color: var(--akzent); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.abschnittskopf h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; font-weight: 650; }
.abschnittskopf .linie { flex: 1; height: 1px; background: linear-gradient(90deg, var(--linie-stark), transparent); align-self: center; }

.projekt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(22, 25, 36, .92), rgba(10, 11, 17, .9) 60%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--linie);
  isolation: isolate;
}
/* leuchtender Rand, der langsam umläuft */
.projekt::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--winkel, 0deg), transparent 0 60%, rgba(125, 162, 255, .9) 72%, rgba(184, 140, 255, .9) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: umlauf 9s linear infinite;
  opacity: .8;
  z-index: -1;
}
@property --winkel { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes umlauf { to { --winkel: 360deg; } }

.etikett {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--linie-stark);
  background: var(--flaeche);
  color: var(--gedimmt);
  font-size: 13px;
}
.etikett .punkt {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--akzent-3);
  box-shadow: 0 0 0 0 rgba(91, 224, 196, .6);
  animation: puls 2.4s ease-out infinite;
}
@keyframes puls { 70%, 100% { box-shadow: 0 0 0 9px rgba(91, 224, 196, 0); } }
.projektname {
  margin: 0;
  font-size: clamp(42px, 5.1vw, 78px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 700;
  color: #f6f7fb;
}
.projektname .zeichen:nth-child(n+7) { color: #c3cfff; }
.projektname .zeichen {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  filter: blur(10px);
  animation: buchstabe 1s var(--kurve) forwards;
  animation-delay: calc(.15s + var(--z) * .03s);
}
.leitsatz { margin: 14px 0 0; font-size: clamp(20px, 2.2vw, 26px); color: var(--schrift); letter-spacing: -.01em; }
.beschreibung { margin: 22px 0 0; color: var(--gedimmt); max-width: 44ch; }
.merkmale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.merkmale li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(125, 162, 255, .08);
  border: 1px solid rgba(125, 162, 255, .18);
  color: #c9d6ff;
}
.knopf {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  background: var(--schrift);
  color: #0a0b10;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--kurve), box-shadow .4s var(--kurve);
  box-shadow: 0 10px 40px -12px rgba(125, 162, 255, .6);
}
.knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--kurve); }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(125, 162, 255, .8); }
.knopf:hover svg { transform: translateX(4px); }
.knopf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(125, 162, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--kurve);
}
.knopf:hover::after { transform: translateX(120%); }

/* Geräte-Ensemble */
.buehne {
  position: relative;
  aspect-ratio: 16 / 11;
}
.buehne > * { transition: transform .9s var(--kurve); }
.schein {
  position: absolute;
  inset: 8% 6%;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(125, 162, 255, .45), rgba(184, 140, 255, .18) 60%, transparent);
  filter: blur(40px);
}
.fenster {
  position: absolute;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--linie-stark);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  background: #111;
}
.fenster img { width: 100%; }
.fenster-hinten {
  width: 78%;
  right: 0;
  top: 0;
  opacity: .55;
  z-index: 1;
  transform: perspective(1600px) translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px)) rotateY(-12deg) rotateX(5deg) scale(.92);
  filter: saturate(.8);
}
.fenster-vorne {
  width: 86%;
  left: 0;
  top: 12%;
  z-index: 2;
  transform: perspective(1600px) translate(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 10px)) rotateY(calc(-7deg + var(--mx, 0) * 5deg)) rotateX(calc(3deg - var(--my, 0) * 4deg));
}
.telefon {
  margin: 0;
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(145deg, #2a2d36, #121318);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.telefon img { border-radius: 24px; }
.buehne .telefon {
  position: absolute;
  width: 26%;
  right: 4%;
  bottom: -6%;
  z-index: 3;
  transform: perspective(1200px) translate(calc(var(--mx, 0) * 24px), calc(var(--my, 0) * 18px)) rotateY(calc(-8deg + var(--mx, 0) * 7deg)) rotateZ(3deg);
  animation: schweben 7s ease-in-out infinite;
}
@keyframes schweben { 50% { margin-top: -10px; } }

/* ---------- Detail ---------- */

.detail { padding-top: 40px; }
.detail-kopf { margin-bottom: 72px; }
.gross {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
}
.erzaehlung {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.tafel-huelle {
  position: sticky;
  top: 110px;
  border-radius: 22px;
  border: 1px solid var(--linie);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, #11131b, #0b0c12);
  padding: clamp(10px, 2vw, 22px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
}
.tafel { width: 100%; height: auto; display: block; color: #aab3c8; font-family: var(--schrift-familie); }
.t-bereich { fill: rgba(184, 140, 255, .06); stroke: rgba(184, 140, 255, .45); stroke-width: 1.2; stroke-dasharray: 2200; stroke-dashoffset: 2200; }
.t-bereich-titel { fill: #cdb6ff; font-size: 15px; font-weight: 600; opacity: 0; }
.t-karte rect:first-child { fill: #1a1d27; stroke: rgba(255, 255, 255, .1); }
.t-karte text { fill: #f1f3f8; font-size: 16px; font-weight: 600; }
.t-zeile { fill: rgba(255, 255, 255, .14); }
.t-karte { opacity: 0; transform-box: fill-box; }
.t-haken { fill: #5bd68a; opacity: 0; }
.t-hakenzug { fill: none; stroke: #0c2416; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; }
.t-pfeil { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.t-schleife { stroke: #9a8cff; color: #9a8cff; stroke-dasharray: 6 7; }
.t-schild { opacity: 0; }
.t-schild rect { fill: #11131b; stroke: rgba(255, 255, 255, .25); }
.t-schild text { fill: #e8ebf2; font-size: 13px; font-weight: 600; }
.t-zeiger { fill: var(--akzent); opacity: 0; filter: drop-shadow(0 0 8px rgba(125, 162, 255, .9)); }

/* Ablauf der Skizze – startet, sobald sie im Bild ist */
.tafel-huelle.da .t-bereich { animation: zeichnen 1.6s var(--kurve) forwards .2s; }
.tafel-huelle.da .t-bereich-titel { animation: hell .6s ease forwards 1.2s; }
.tafel-huelle.da .t-karte { animation: karte .9s var(--kurve) forwards; animation-delay: calc(.6s + var(--i) * .45s); }
.tafel-huelle.da .t-pfeil { animation: zeichnen 1s var(--kurve) forwards; animation-delay: calc(2s + var(--i) * .55s); }
.tafel-huelle.da .t-schleife { animation: zeichnen-gestrichelt 1.2s var(--kurve) forwards 3.2s; }
.tafel-huelle.da .t-schild { animation: hell .5s ease forwards 2.7s; }
.tafel-huelle.da .t-haken { animation: hell .3s ease forwards 3.9s; }
.tafel-huelle.da .t-hakenzug { animation: zeichnen .4s ease forwards 4.1s; }
.tafel-huelle.da .t-zeiger { animation: zeiger 4.6s var(--kurve) forwards 1.6s; offset-path: path("M250 140 C 340 140, 380 140, 466 140 C 600 150, 600 300, 459 340 L 430 330"); }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes zeichnen-gestrichelt { from { opacity: 0; } to { opacity: 1; } }
@keyframes hell { to { opacity: 1; } }
@keyframes karte {
  0% { opacity: 0; transform: translateY(18px) scale(.94); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
@keyframes zeiger {
  0% { opacity: 0; offset-distance: 0%; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.schritt {
  padding: 26px 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--linie);
  background: rgba(16, 18, 26, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .4s, background .4s, transform .4s var(--kurve);
}
.schritt:hover { border-color: rgba(125, 162, 255, .35); background: rgba(22, 27, 44, .9); transform: translateX(4px); }
.schritt-nr { color: var(--akzent); font-size: 13px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.schritt h3 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -.01em; font-weight: 650; }
.schritt p { margin: 0; color: var(--gedimmt); font-size: 16px; }

/* Hell/dunkel-Vergleich */
.vergleich { margin-top: 140px; }
.vergleich-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.vergleich-kopf h3 { margin: 0; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; font-weight: 700; }
.vergleich-kopf p { margin: 0; color: var(--gedimmt); }
.vergleich-flaeche {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--linie-stark);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1);
  user-select: none;
}
.vergleich-flaeche img { width: 100%; }
.vergleich-oben {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.vergleich-griff {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 20px rgba(125, 162, 255, .8);
  pointer-events: none;
}
.vergleich-griff span {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(10, 11, 16, .75);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .9);
}
.vergleich-griff span::before, .vergleich-griff span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.vergleich-griff span::before { left: 11px; transform: rotate(-45deg); }
.vergleich-griff span::after { right: 11px; transform: rotate(135deg); }
.vergleich-regler {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* Telefone */
.telefone {
  margin-top: 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  gap: clamp(20px, 6vw, 90px);
  align-items: center;
}
.telefon-flach { max-width: 300px; justify-self: center; }
.telefone .telefon-flach:first-child { transform: rotate(-4deg) translateY(20px); }
.telefone .telefon-flach:last-child { transform: rotate(4deg) translateY(-20px); }
.telefone .telefon-flach.zeigen:not(.da) { transform: translateY(60px); }
.telefone-text { text-align: center; }
.telefone-text h3 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; font-weight: 700; }
.telefone-text p { margin: 0 auto; color: var(--gedimmt); max-width: 34ch; }

/* ---------- Fuß ---------- */

.fuss {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 36px clamp(20px, 6vw, 80px) 44px;
  border-top: 1px solid var(--linie);
  color: var(--gedimmt);
  font-size: 14px;
  max-width: 1320px;
  margin: 0 auto;
}
.fuss .leise { color: var(--leise); }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 900px) {
  .projekt { grid-template-columns: 1fr; }
  .buehne { margin-top: 10px; }
  .erzaehlung { grid-template-columns: 1fr; }
  .tafel-huelle { position: relative; top: 0; }
  .telefone-text { grid-column: 1 / -1; grid-row: 1; margin-bottom: 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .projekt { padding: 22px; border-radius: 22px; }
  .buehne .telefon { width: 30%; bottom: -10%; }
  .telefone .telefon-flach:first-child, .telefone .telefon-flach:last-child { transform: none; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .zeigen { opacity: 1; transform: none; filter: none; }
  #geflecht { display: none; }
  html { scroll-behavior: auto; }
}


/* ---------- Projektseite ---------- */

.projekt-held {
  min-height: 100svh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 130px clamp(20px, 6vw, 80px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.projekt-held .projektname { font-size: clamp(44px, 5.6vw, 96px); }
.projektname .wort { display: inline-block; white-space: nowrap; }
.seite-projekt .detail { padding-top: 40px; }
.seite-projekt .vergleich { margin-top: 40px; }
.zurueck {
  margin: 120px auto 0;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--gedimmt);
}
.zurueck svg {
  width: 44px; height: 44px; padding: 11px;
  border-radius: 50%;
  border: 1px solid var(--linie-stark);
  fill: none; stroke: var(--schrift); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--kurve), background .3s, border-color .3s;
}
.zurueck:hover { color: var(--schrift); }
.zurueck:hover svg { transform: translateX(-4px); background: rgba(125, 162, 255, .12); border-color: var(--akzent); }

/* ---------- Kachel auf der Startseite ---------- */

.kachel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(22, 25, 36, .92), rgba(10, 11, 17, .9) 60%);
  border: 1px solid var(--linie);
  text-decoration: none;
  isolation: isolate;
  transition: transform .6s var(--kurve), border-color .4s, opacity 1.1s var(--kurve), filter 1.1s var(--kurve);
}
.kachel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--winkel, 0deg), transparent 0 60%, rgba(125, 162, 255, .9) 72%, rgba(184, 140, 255, .9) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: umlauf 9s linear infinite;
  opacity: .7;
  z-index: -1;
  transition: opacity .4s;
}
.kachel:hover::before { opacity: 1; }
.kachel:hover { transform: translateY(-4px); }
.kachel-bild { position: relative; padding: 0 10% 8% 0; }
.kachel-bild > picture img {
  border-radius: 12px;
  border: 1px solid var(--linie-stark);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  transition: transform .8s var(--kurve);
}
.kachel:hover .kachel-bild > picture img { transform: scale(1.025); }
.kachel-telefon {
  position: absolute;
  width: 26%;
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
  transition: transform .8s var(--kurve);
}
.kachel:hover .kachel-telefon { transform: rotate(1deg) translateY(-10px); }
.kachel-name {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
  color: #f6f7fb;
}
.kachel .etikett { margin-bottom: 18px; }
.kachel .leitsatz { margin-top: 10px; }
.kachel .beschreibung { margin-top: 14px; }
.mehr {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--akzent);
  font-weight: 600;
}
.mehr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--kurve); }
.kachel:hover .mehr svg { transform: translateX(6px); }

@media (max-width: 900px) {
  .projekt-held { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .kachel { grid-template-columns: 1fr; }
}

/* ---------- Touch-Geräte (Telefon, Tablet): kein Leuchten, kein Mitwandern ---------- */

@media (hover: none) {
  .licht {
    animation: none;
    background:
      radial-gradient(40vmax 34vmax at 30% 10%, rgba(125, 162, 255, .08), transparent 70%),
      radial-gradient(36vmax 30vmax at 80% 80%, rgba(184, 140, 255, .05), transparent 70%);
  }
  .projekt::before, .kachel::before, .schein { display: none; }
  .knopf, .knopf:hover { box-shadow: none; }
  .riesig { text-shadow: none; }
  .vergleich-griff { box-shadow: none; }
}

/* ---------- Startseite: Logo in der Mitte, Projekte als Karten ---------- */

.logo-buehne {
  min-height: 86svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  position: relative;
}
.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  font-weight: 700;
}
.logo-zeichen {
  width: clamp(120px, 16vw, 196px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 50px rgba(125, 162, 255, .28));
  animation: zeichen-schweben 8s ease-in-out infinite 2.2s;
}
@keyframes zeichen-schweben { 50% { transform: translateY(-6px) rotate(-1deg); } }
.logo-zeichen .lz-gurt, .logo-zeichen .lz-w, .logo-zeichen .lz-s {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.lz-gurt { stroke: #f4f5f8; stroke-opacity: .4; stroke-width: 4; }
.lz-gurt-oben { animation: zeichnen .6s var(--kurve) forwards .15s; }
.lz-gurt-unten { animation: zeichnen .8s var(--kurve) forwards .25s; }
.lz-w { stroke-width: 5.5; animation: zeichnen 1.2s cubic-bezier(.65, 0, .35, 1) forwards .4s; }
.lz-knoten {
  fill: #aab4ff;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: lz-knoten .5s cubic-bezier(.3, 1.6, .5, 1) forwards;
  animation-delay: calc(.55s + var(--k) * .18s);
}
@keyframes lz-knoten { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.lz-s { animation: zeichnen .9s cubic-bezier(.65, 0, .35, 1) forwards 1.35s; }
.lz-s-strich { stroke: #f4f5f8; stroke-width: 9; }
@media (prefers-reduced-motion: reduce) {
  .logo-zeichen .lz-gurt, .logo-zeichen .lz-w, .logo-zeichen .lz-s { stroke-dashoffset: 0; animation: none; }
  .lz-knoten { opacity: 1; animation: none; }
}
.logo-wort {
  font-size: clamp(54px, 10.5vw, 148px);
  line-height: 1;
  letter-spacing: -.045em;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(14px);
  animation: auftauchen 1.2s var(--kurve) forwards .7s;
}
.logo-a { color: #f6f7fb; }
.logo-b {
  font-weight: 300;
  background: linear-gradient(100deg, #9fb7ff 0%, #c4a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-buehne .runter {
  position: absolute;
  bottom: 28px;
  margin: 0;
  align-self: center;
  opacity: 0;
  animation: auftauchen 1s var(--kurve) forwards 1.6s;
}
.seite-start .licht {
  background:
    radial-gradient(34vmax 30vmax at 50% 38%, rgba(125, 162, 255, .17), transparent 70%),
    radial-gradient(30vmax 26vmax at 80% 80%, rgba(184, 140, 255, .09), transparent 70%),
    radial-gradient(24vmax 22vmax at 15% 85%, rgba(91, 224, 196, .05), transparent 70%);
}

.karten-bereich {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 60px) 120px;
}
.karten-titel {
  margin: 0 0 28px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gedimmt);
}
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 560px));
  justify-content: center;
  gap: 24px;
}
.pkarte {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(24, 27, 39, .95), rgba(12, 13, 20, .95));
  border: 1px solid var(--linie);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
  transition: transform .6s var(--kurve), border-color .4s, box-shadow .6s var(--kurve), opacity 1.1s var(--kurve), filter 1.1s var(--kurve);
}
.pkarte:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 162, 255, .35);
  box-shadow: 0 40px 90px -40px rgba(125, 162, 255, .45);
}
.pkarte-bild { overflow: hidden; border-bottom: 1px solid var(--linie); background: #0b0c12; }
.pkarte-bild img { width: 100%; transition: transform .9s var(--kurve); }
.pkarte:hover .pkarte-bild img { transform: scale(1.04); }
.pkarte-text { padding: 22px 24px 24px; }
.pkarte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pkarte h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 650; }
.pkarte p { margin: 8px 0 0; color: var(--gedimmt); font-size: 16px; }
.pkarte-pfeil {
  width: 38px; height: 38px; padding: 9px;
  border-radius: 50%;
  border: 1px solid var(--linie-stark);
  fill: none; stroke: var(--schrift); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--kurve), background .3s, border-color .3s;
  flex: none;
}
.pkarte:hover .pkarte-pfeil { transform: rotate(45deg); background: rgba(125, 162, 255, .14); border-color: var(--akzent); }
.pkarte-marken { display: flex; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.pkarte-marken li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--linie);
  color: var(--gedimmt);
}
.seite-start .fuss { justify-content: center; text-align: center; }

@media (hover: none) {
  .logo-zeichen { filter: none; }
  .pkarte:hover { box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
}

.marke-svg { width: 26px; height: 26px; }
.marke-b { font-weight: 300; color: #b9c6ff; }

.logo-b { padding-right: .08em; margin-right: -.08em; }

/* Projektseite schlank: nur Name, ein Satz und Bilder */
.seite-projekt .vergleich { margin-top: 0; }
.pkarte-text { padding: 20px 24px; }
