/* rafaelluge.de – gemeinsames Stylesheet
   Farben aus dem Hero-Bild abgenommen (Bild 4, Marionettenmeister im grünen Sturm).
   Abstände bewusst ohne 16/24/48-Raster: 6 · 10 · 14 · 20 · 28 · 40 · 56 · 80 · 120 · 168 */

:root {
  --nacht: #010a07;
  --tief: #01110a;
  --tief-2: #03180f;
  --moos: #072315;
  --moos-2: #0c301e;
  --faden: #b4ff92;
  --glut: #4dff74;
  --glut-2: #23d95d;
  --glut-weich: rgba(77, 255, 116, .28);
  --text: #eaf5ed;
  --text-2: #c3d7ca;
  --leise: #8ba897;
  --linie: rgba(180, 255, 146, .13);
  --linie-2: rgba(180, 255, 146, .32);
  --display: "Anybody", "Archivo", system-ui, sans-serif;
  --grund: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rand: clamp(20px, 4.4vw, 64px);
  --breite: 1320px;
  --kopf: 74px;
  --r: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 14px); }
body {
  margin: 0;
  background: var(--tief);
  color: var(--text);
  font-family: var(--grund);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 96;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
::selection { background: var(--glut); color: var(--nacht); }
:focus-visible { outline: 2px solid var(--faden); outline-offset: 3px; border-radius: 4px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.huelle { width: min(var(--breite), calc(100% - 2 * var(--rand))); margin-inline: auto; }

/* ---------- Typo-Bausteine ---------- */
.marke {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faden);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.marke::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px var(--glut);
}
.titel {
  font-family: var(--display);
  font-weight: 760;
  font-variation-settings: "wdth" 84;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: .96;
  letter-spacing: -.018em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.titel em { font-style: normal; color: var(--glut); text-shadow: 0 0 28px rgba(77,255,116,.35); }
.einleitung { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-2); max-width: 60ch; margin: 20px 0 0; text-wrap: pretty; }

.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font: 600 15.5px/1 var(--grund);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid var(--linie-2);
  color: var(--text);
  background: rgba(1, 17, 10, .35);
  backdrop-filter: blur(6px);
  transition: border-color .25s, background .25s, color .25s, box-shadow .25s, transform .25s;
}
.knopf:hover { border-color: var(--faden); box-shadow: 0 0 0 1px var(--faden) inset, 0 0 26px rgba(77,255,116,.25); }
.knopf.voll { background: var(--glut); color: #02160b; border-color: var(--glut); }
.knopf.voll:hover { background: var(--faden); box-shadow: 0 0 34px rgba(77,255,116,.5); }
.knopf .pfeil { transition: transform .25s; }
.knopf:hover .pfeil { transform: translateX(3px); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 10px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--linie);
  background: rgba(1, 10, 7, .55);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leise); }
.status.live::before { background: var(--glut); box-shadow: 0 0 10px var(--glut); }
.status.intern::before { background: #ffd166; }
.status.proto::before { background: #7cc7ff; }
.status.muster::before { background: #c9a7ff; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--kopf);
  display: flex; align-items: center;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
/* Unschärfe auf einer eigenen Ebene (::before), nicht auf .kopf selbst: backdrop-filter macht das Element zum
   Bezugsrahmen für position: fixed – das Handy-Menü (.navi, fixed) schrumpfte dann auf Kopfhöhe, sobald man gescrollt hatte. */
.kopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(1, 10, 7, .78); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); opacity: 0; transition: opacity .35s; pointer-events: none; }
.kopf.fest::before, .kopf.offen::before { opacity: 1; }
.kopf.fest { border-color: var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-zeichen { width: 30px; height: 30px; }
.logo-name { font-family: var(--display); font-weight: 780; font-variation-settings: "wdth" 92; font-size: 19px; letter-spacing: -.005em; }
.logo-name small { display: block; font: 500 10px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faden); margin-top: 2px; }
.navi { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.navi a:not(.knopf) { font-size: 15px; text-decoration: none; color: var(--text-2); position: relative; padding: 6px 0; }
.navi a:not(.knopf)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--faden); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.navi a:not(.knopf):hover { color: var(--text); }
.navi a:not(.knopf):hover::after { transform: scaleX(1); }
.navi .knopf { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.menue-knopf { display: none; }

@media (max-width: 980px) {
  .navi { position: fixed; inset: var(--kopf) 0 0 0; overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(1, 10, 7, .985); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linie);
    padding: 10px var(--rand) 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .kopf.offen .navi { opacity: 1; transform: none; pointer-events: auto; }
  .kopf.offen { background: rgba(1, 10, 7, .96); }
  .navi a:not(.knopf) { font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
  .navi .knopf { margin-top: 18px; justify-content: center; min-height: 50px; }
  .menue-knopf { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--linie-2); background: rgba(1,10,7,.5); color: var(--text); cursor: pointer; }
  .menue-knopf span, .menue-knopf span::before, .menue-knopf span::after { display: block; width: 18px; height: 1.6px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
  .menue-knopf span::before, .menue-knopf span::after { content: ""; position: absolute; left: 0; }
  .menue-knopf span::before { top: -6px; } .menue-knopf span::after { top: 6px; }
  .kopf.offen .menue-knopf span { background: transparent; }
  .kopf.offen .menue-knopf span::before { transform: translateY(6px) rotate(45deg); }
  .kopf.offen .menue-knopf span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Abschnitte allgemein ---------- */
.abschnitt { position: relative; padding: clamp(80px, 11vw, 168px) 0; }
.abschnitt-kopf { max-width: 860px; }
.abschnitt-kopf.mitte { margin-inline: auto; text-align: center; }
.abschnitt-kopf.mitte .einleitung { margin-inline: auto; }
.abschnitt-kopf.mitte .marke { justify-content: center; }

.auftauchen { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--verz, 0s); }
.auftauchen.da { opacity: 1; transform: none; }
.ohne-js .auftauchen { opacity: 1; transform: none; }

/* ---------- Rahmen für Screenshots ---------- */
.fenster { border-radius: 12px; overflow: hidden; background: #0b1410; border: 1px solid rgba(180,255,146,.14); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4); }
.fenster-leiste { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 11px; background: #0f1b15; border-bottom: 1px solid rgba(180,255,146,.08); }
.fenster-leiste i { width: 8px; height: 8px; border-radius: 50%; background: #23382c; }
.fenster img, .fenster video { width: 100%; height: auto; }

.handy { position: relative; aspect-ratio: 390 / 820; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #1d2a23, #070c09 60%); border: 1px solid rgba(180,255,146,.18);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), inset 0 0 0 1.5px rgba(255,255,255,.04); }
.handy-schirm { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000; border-top: 26px solid #000; }
.handy-frei { aspect-ratio: 720 / 1562; border-radius: 14% / 6.5%; box-shadow: 0 34px 50px -8px rgba(0,0,0,.85); } /* box-shadow statt drop-shadow: Safari-Kästchen, siehe .nest-icon */
.handy-frei img { width: 100%; height: 100%; object-fit: contain; }
.handy-schirm img, .handy-schirm video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.handy::after { content: ""; position: absolute; top: 16px; left: 50%; width: 26%; height: 14px; border-radius: 10px; background: #111a15; transform: translateX(-50%); }

/* ---------- Fußleiste ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 40px 0 56px; color: var(--leise); font-size: 14.5px; }
.fuss .huelle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.fuss a { color: var(--text-2); text-decoration: none; }
.fuss a:hover { color: var(--faden); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .auftauchen { opacity: 1; transform: none; }
}

/* =========================================================
   MARKENSCHILD: jedes Projekt in seinen eigenen Farben
   Bewusst nicht im Grün der Seite – die Projekte haben ihr eigenes Gesicht.
   Schriftgröße der Wortmarke: --fit in Prozent der Schildbreite (bauen.py rechnet sie aus der Namenslänge)
   ========================================================= */
.schild { --s-grund: #18221d; --s-farbe: #eef3f0; container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5%;
  width: 100%; aspect-ratio: 5 / 4; padding: 9%; border-radius: 12px; background: var(--s-grund); color: var(--s-farbe); text-align: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.18), 0 18px 34px -14px rgba(0,0,0,.8); }
.schild-wort { display: block; width: 100%; font-size: calc(var(--fit) * 1cqi); line-height: .98; color: var(--s-farbe); font-variation-settings: normal; white-space: nowrap; }
.schild-kuerzel { display: none; font-size: 50cqi; line-height: 1; color: var(--s-farbe); }
.schild-logo { display: block; flex: none; width: 40cqi; height: 40cqi; object-fit: contain; }
.schild-zusatz { font: 500 max(8px, 6.4cqi)/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--s-farbe); opacity: .62; }
.schild-wort.geschnitten { display: grid; }
.schild-wort.geschnitten > span { grid-area: 1 / 1; }
.schnitt-a { clip-path: polygon(0 0, 100% 0, 100% 36%, 0 64%); }
.schnitt-b { clip-path: polygon(0 64%, 100% 36%, 100% 100%, 0 100%); transform: translate(.07em, .05em); color: var(--s-akzent, var(--s-farbe)); }
.schild.flaeche { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; gap: 3%; padding: 5%; }
.schild.flaeche .schild-wort { font-size: calc(var(--fit) * .58cqi); }
.schild.flaeche .schild-logo { width: 22cqi; height: 22cqi; }
.schild.flaeche .schild-zusatz { font-size: max(10px, 2.6cqi); }

/* =========================================================
   WOLKENNEST: das App-Icon des Projekts (eigene Farben, eigenes Zeichen)
   sitzt in einem grünen Wolkenkissen, ein Schleier zieht davor vorbei.
   Maße relativ zur Nestbreite: Icon 72 %, Kissen 116 %, Schleier 100 %.
   ========================================================= */
.nest { position: relative; display: block; width: 100%; aspect-ratio: 1 / .88; }
.nest > img { position: absolute; display: block; max-width: none; height: auto; pointer-events: none; }
/* box-shadow statt filter: drop-shadow – der Filter malte in Safari ein schwarzes Kästchen oben links ins Bild (09.11.2026) */
.nest > .nest-icon { z-index: 1; left: 14%; top: 0; width: 72%; aspect-ratio: 1; border-radius: 22.4%;
  box-shadow: 0 14px 22px -4px rgba(0,0,0,.55), 0 0 16px rgba(110,255,120,.22);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.nest > .nest-hinten { z-index: 0; left: -8%; width: 116%; bottom: -19%; filter: brightness(.78) saturate(.9); }
.nest > .nest-vorn { z-index: 2; left: 0; width: 100%; bottom: -4%; filter: brightness(.85) saturate(.9); }
.nest > .gespiegelt { transform: scaleX(-1); }
.nest > .nest-abzeichen { z-index: 3; right: 9%; top: -4%; width: 24%; min-width: 18px; max-width: 34px; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.nest-flaeche { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(42% 52% at 50% 38%, color-mix(in srgb, var(--s-grund) 55%, transparent), transparent 75%),
    radial-gradient(90% 60% at 50% 100%, rgba(77,255,116,.16), transparent 70%), #03120a; }
.nest-flaeche .nest { width: auto; height: 62%; margin-bottom: 4%; }

/* Rechtliches (Datenschutz): ruhiger Lesetext */
.recht { padding-top: calc(var(--kopf) + clamp(40px, 6vw, 90px)); }
.recht .huelle { max-width: 760px; }
.recht h1 { margin: 14px 0 26px; }
.recht h2 { margin: 38px 0 0; font-family: var(--display); font-weight: 760; font-variation-settings: "wdth" 90; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.recht p { margin: 12px 0 0; color: var(--text-2); max-width: 66ch; }
.recht a { color: var(--faden); }
.recht-stand { margin-top: 40px !important; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--leise) !important; }

/* Handy: kein backdrop-filter. Der Weichzeichner wurde über bewegtem Inhalt bei jedem Bild neu gerechnet
   (Kopfleiste, Menü, Knöpfe im Hero) – Hauptgrund für Ruckeln und Flackern. Fast deckende Fläche sieht gleich aus. */
@media (max-width: 980px), (pointer: coarse) {
  .kopf::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(1, 10, 7, .94); }
  .navi { backdrop-filter: none; }
  .knopf { backdrop-filter: none; background: rgba(1, 17, 10, .72); }
}
