/* ============================================================
   KEYNAAN RAGHE — Portfolio
   ------------------------------------------------------------
   Gestaltung nach gemessenen Werten von linear.app und
   stripe.com (04.09.2026), nicht nach Gefuehl:

   · Abstaende: reines 8er-Raster, feine Werte auf 4
   · Ueberschriften: enge Zeilenhoehe (1.05-1.2), negative
     Laufweite. Grosse Schrift braucht weniger Luft, nicht mehr
   · Fliesstext: Zeilenhoehe 1.65, nie breiter als 65 Zeichen
   · Genau EINE Akzentfarbe, alles andere Grauabstufungen
   · Der Grund ist nicht schwarz, die Schrift nicht weiss -
     reines #000 und #fff wirken hart und billig

   Keine Abhaengigkeiten, keine Fremdschriften, kein Tracking.
   ============================================================ */

:root {
  /* ---- Farben: dunkel ---- */
  --bg:        #08090a;
  --bg-soft:   #101114;
  --bg-card:   #0d0e11;
  --line:      rgba(255, 255, 255, .09);
  --line-hell: rgba(255, 255, 255, .18);
  --text:      #f7f8f8;
  --text-dim:  #8a8f98;
  --accent:    #6c8cff;
  --accent-ink:#08090a;

  /* ---- Abstaende: 8er-Raster ---- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  16px;
  --s-4:  24px;
  --s-5:  32px;
  --s-6:  48px;
  --s-7:  64px;
  --s-8:  96px;
  --s-9:  128px;

  /* ---- Breiten ---- */
  --maxw:      1120px;
  --maxw-text: 65ch;
  --pad:       clamp(20px, 5vw, 48px);

  /* ---- Schrift ---- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo,
          Consolas, monospace;

  --rund: 12px;
}

/* ---- Helles Erscheinungsbild ----
   Drei Zustaende: Systemvorgabe, von Hand hell, von Hand dunkel.
   Die Systemvorgabe gilt nur, solange nichts von Hand gewaehlt wurde -
   deshalb das :not([data-theme="dark"]). */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #ffffff;
    --bg-soft:   #f6f7f9;
    --bg-card:   #ffffff;
    --line:      rgba(9, 12, 20, .10);
    --line-hell: rgba(9, 12, 20, .22);
    --text:      #0d1017;
    --text-dim:  #5b6472;
    --accent:    #3a5cff;
    --accent-ink:#ffffff;
  }
}

/* Von Hand auf hell gestellt - schlaegt die Systemvorgabe */
:root[data-theme="light"] {
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --bg-card:   #ffffff;
  --line:      rgba(9, 12, 20, .10);
  --line-hell: rgba(9, 12, 20, .22);
  --text:      #0d1017;
  --text-dim:  #5b6472;
  --accent:    #3a5cff;
  --accent-ink:#ffffff;
}


* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   SCHRIFT
   Grosse Groessen bekommen enge Zeilen und negative Laufweite -
   genau das trennt gesetzte Typografie von Standardwerten.
   ============================================================ */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.032em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.024em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -.012em;
}

p { margin: 0; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.skip-link:focus {
  left: var(--s-3);
  top: var(--s-3);
  background: var(--text);
  color: var(--bg);
  padding: var(--s-2) var(--s-3);
  border-radius: 8px;
}

/* ============================================================
   KOPFLEISTE
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav__brand {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-right: auto;
  border: 1px solid var(--line-hell);
  border-radius: 9px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}

.nav__brand:hover { border-color: var(--accent); color: var(--accent); }

.nav__menu {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9375rem;
  letter-spacing: -.006em;
  transition: color .16s ease;
}

.nav__menu a:hover { color: var(--text); }

/* ============================================================
   UMSCHALTER HELL / DUNKEL
   Zeigt immer das Symbol dessen, WOHIN gewechselt wird -
   das ist die Erwartung, die Leute mitbringen.
   ============================================================ */

.thema {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-hell);
  border-radius: 9px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}

.thema:hover { border-color: var(--text); color: var(--text); }

.thema svg {
  width: 17px; height: 17px;
  grid-area: 1 / 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thema__mond { fill: currentColor; stroke: none; }

/* Dunkel: Sonne zeigen (Klick fuehrt ins Helle) */
.thema__mond { display: none; }
.thema__sonne { display: block; }

/* Hell: Mond zeigen */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .thema__sonne { display: none; }
  :root:not([data-theme="dark"]) .thema__mond { display: block; }
}

:root[data-theme="light"] .thema__sonne { display: none; }
:root[data-theme="light"] .thema__mond { display: block; }

:root[data-theme="dark"] .thema__sonne { display: block; }
:root[data-theme="dark"] .thema__mond { display: none; }

.nav__toggle {
  display: none;
  width: 34px; height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-hell);
  border-radius: 9px;
  cursor: pointer;
  position: relative;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 15px; height: 1.5px;
  margin-left: -7.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav__toggle-bar { top: 50%; margin-top: -.75px; }
.nav__toggle-bar::before { content: ""; top: -5px; margin-left: 0; left: 0; }
.nav__toggle-bar::after  { content: ""; top:  5px; margin-left: 0; left: 0; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   KNOEPFE
   Zurueckhaltend. Der Hauptknopf traegt die Akzentfarbe,
   alle anderen nur einen Rahmen.
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-hell);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.008em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease,
              color .18s ease, transform .12s ease;
}

.btn:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn--primary:hover {
  border-color: var(--accent);
  filter: brightness(1.08);
}

/* ============================================================
   AUFMACHER
   ============================================================ */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(var(--s-7), 12vh, var(--s-9)) var(--pad) var(--s-8);
}

.hero__eyebrow {
  margin-bottom: var(--s-4);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__title { max-width: 14ch; }

.hero__lead {
  max-width: 48ch;
  margin: var(--s-5) 0 var(--s-6);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -.011em;
  color: var(--text-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* ---- Partikel-Schriftzug ---- */

.hero__partikel {
  position: relative;
  width: 100%;
  margin-bottom: var(--s-2);
}

.hero__canvas {
  display: block;
  width: 100%;
  touch-action: pan-y;
  cursor: crosshair;
}

@media (hover: hover) and (pointer: fine) {
  .hero__partikel::after {
    content: "mit der Maus hindurchfahren";
    position: absolute;
    left: 0;
    bottom: -1.5em;
    font-size: .6875rem;
    letter-spacing: .06em;
    color: var(--text-dim);
    opacity: .7;
    pointer-events: none;
  }
}

/* ============================================================
   ABSCHNITTE
   Der Rhythmus zwischen den Abschnitten macht mehr fuer die
   Wirkung als jede Farbe.
   ============================================================ */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--pad);
  border-top: 1px solid var(--line);
}

.section__title {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.section__num {
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .04em;
  /* Keine zusaetzliche Deckkraft: die gedaempfte Farbe reicht.
     Deckkraft daraufgelegt faellt unter die Lesbarkeitsgrenze. */
  color: var(--text-dim);
}

.section__hint {
  max-width: var(--maxw-text);
  margin-bottom: var(--s-6);
  font-size: 1.0625rem;
  color: var(--text-dim);
}

.prose {
  max-width: var(--maxw-text);
  display: grid;
  gap: var(--s-4);
  color: var(--text-dim);
  font-size: 1.0625rem;
}

.prose p:first-child { color: var(--text); }

/* :not(.btn) ist wichtig. Ohne das ueberschreibt diese Regel die
   Textfarbe des Hauptknopfes - blaue Schrift auf blauem Grund,
   vollstaendig unlesbar. Klassen-plus-Element schlaegt Klasse allein. */
.prose a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  transition: border-color .16s ease;
}
.prose a:not(.btn):hover { border-bottom-color: var(--accent); }

.prose .btn { align-self: start; }

/* Fliesstext direkt hinter dem Kartenraster braucht Luft, sonst klebt er
   an der untersten Karte. */
.projects + .prose,
.preise + .prose,
.schritte + .prose { margin-top: var(--s-6); }

/* ============================================================
   PROJEKTKARTEN
   Ein Raster statt einer Liste: schneller zu ueberfliegen,
   und jede Karte bekommt gleich viel Gewicht.
   ============================================================ */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rund);
  /* Auf dunklem Grund wirken Schatten schmutzig.
     Tiefe kommt hier ueber die Rahmenhelligkeit. */
  transition: border-color .2s ease, background .2s ease,
              transform .2s ease;
}

.project:hover {
  border-color: var(--line-hell);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.project__index {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.project__title { color: var(--text); }

.project__desc {
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.project__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--text-dim);
}

.project__meta li { display: flex; align-items: center; gap: var(--s-2); }

.project__meta li:empty { display: none; }

.project--empty { display: none; }

/* ============================================================
   SCHLAGWORTE
   ============================================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--text-dim);
  transition: border-color .16s ease, color .16s ease;
}

.tags li:hover { border-color: var(--line-hell); color: var(--text); }

/* ============================================================
   FUSS
   ============================================================ */

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-6) var(--pad) var(--s-7);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  color: var(--text-dim);
}

.site-footer__top {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s ease;
}
.site-footer__top:hover { color: var(--text); }

/* ============================================================
   EINBLENDEN BEIM SCROLLEN
   Sehr zurueckhaltend: 12 Pixel und etwas Deckkraft. Alles
   darueber wirkt wie eine Praesentationsvorlage.
   ============================================================ */

/* Nur verstecken, wenn JavaScript laeuft und es wieder einblenden
   kann. Sonst bleibt der Inhalt sichtbar - Inhalt geht vor Effekt. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SCHMALE BILDSCHIRME
   ============================================================ */

@media (max-width: 760px) {
  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .26s ease;
  }

  .nav__menu.is-open { max-height: 320px; }

  .nav__menu li { border-top: 1px solid var(--line); }
  .nav__menu li:first-child { border-top: none; }

  .nav__menu a {
    display: block;
    padding: var(--s-3) var(--pad);
    font-size: 1rem;
  }

  .section { padding: var(--s-7) var(--pad); }
  .hero { padding: var(--s-6) var(--pad) var(--s-7); }
  .hero__title { max-width: none; }

  .hero__actions .btn { flex: 1 1 100%; }

  .projects { grid-template-columns: 1fr; }
  .project { padding: var(--s-4); }
}

/* ============================================================
   WENIGER BEWEGUNG
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}

/* Impressum und Datenschutz gehoeren in die Fusszeile. Pflichtangaben
   muessen von jeder Seite aus mit zwei Klicks erreichbar sein. */
.site-footer__rechts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.site-footer__rechts a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s ease;
}

.site-footer__rechts a:hover { color: var(--text); }

/* ============================================================
   ABLAUF
   Nummerierte Schritte. Die Zahlen kommen aus CSS, nicht aus
   dem HTML - so bleibt die Reihenfolge auch nach dem Umbauen
   richtig, ohne dass jemand nachzaehlen muss.
   ============================================================ */

.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: schritt;
}

.schritt {
  padding: var(--s-5) var(--s-4) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rund);
}

.schritt::before {
  counter-increment: schritt;
  content: counter(schritt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
}

.schritt h3 {
  margin: 0 0 var(--s-2);
  font-size: 1rem;
  color: var(--text);
}

.schritt p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ============================================================
   PREISE
   Zahlen hinschreiben ist das staerkste Vertrauenssignal, das
   eine Dienstleistungsseite hat. Fast niemand traut sich.
   ============================================================ */

.preise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.preis {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rund);
}

/* Das mittlere Angebot bekommt den Rahmen in der Akzentfarbe.
   Kein Schatten, keine Vergroesserung - das kippt sonst schnell
   ins Marktschreierische. */
.preis--betont {
  border-color: var(--accent);
  background: var(--bg-soft);
}

.preis__marke {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.preis__zahl {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
  color: var(--text);
}

.preis__zahl small {
  display: block;
  margin-top: var(--s-1);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
}

.preis ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: auto 0 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.preis li {
  position: relative;
  padding-left: 1.1em;
}

.preis li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================================
   HAEUFIGE FRAGEN
   <details> statt eigenem JavaScript: der Browser kann das von
   sich aus, es funktioniert mit Tastatur und Vorlesesoftware,
   und es geht auch auf, wenn im Seiteninhalt gesucht wird.
   ============================================================ */

.fragen {
  display: grid;
  gap: var(--s-2);
  max-width: 46rem;
}

.frage {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rund);
}

.frage summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}

/* Das voreingestellte Dreieck weg - in jedem Browser anders benannt */
.frage summary::-webkit-details-marker { display: none; }
.frage summary::marker { content: ""; }

.frage summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--text-dim);
}

.frage[open] summary::after { content: "–"; }
.frage[open] { border-color: var(--line-hell); }

.frage summary:hover { color: var(--accent); }

.frage p {
  margin: 0;
  padding: 0 var(--s-4) var(--s-4);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ============================================================
   KONTAKTBAND
   Ein Abschluss, der nur eine Sache will. Alles andere waere
   an dieser Stelle Ablenkung.
   ============================================================ */

.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-8) var(--pad) var(--s-9);
}

.cta__box {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line-hell);
  border-radius: 20px;
}

.cta__titel {
  max-width: 20ch;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -.024em;
  line-height: 1.14;
  color: var(--text);
}

.cta__text {
  max-width: 48ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.cta__klein {
  font-size: .8125rem;
  color: var(--text-dim);
}

.btn--gross {
  padding: 14px 28px;
  font-size: 1.0625rem;
}
