/* ==========================================================================
   BENI — Stylesheet
   Struktur dieser Datei:
   1. Custom Properties (Design-Tokens)
   2. Reset & Basis
   3. Utilities (Container, Eyebrow, Buttons, Reveal-Animation)
   4. Grain-Overlay
   5. Navigation
   6. Hero
   6a. Marquee
   6b. Statement (Scroll-Scrub-Text)
   7. Der Gründer
   8. Services
   9. Work / Referenzen
   10. Testimonials
   11. Blog
   12. Contact
   13. Footer
   14. Artikel-/Projekt-Detailseiten
   15. Rechtsseiten (Impressum / Datenschutz)
   ========================================================================== */

/* ---------- 1. Design-Tokens ---------- */
:root {
  /* Farben — monochrom, dunkler Hintergrund */
  --bg: #08090a;
  --bg-soft: #0d0e10;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text: #f4f4f2;
  --text-muted: #a3a3a8;
  --text-faint: #6b6b70;

  --white-glow: rgba(255, 255, 255, 0.55);

  /* Ember — die einzige Akzentfarbe der Seite. Bewusst warmer Kupferton
     statt des üblichen Neongrün/-blau auf Dunkel; sehr sparsam einsetzen
     (Cursor, CTA-Glow, 3D-Ambient-Licht, ein paar gezielte Details) —
     nicht als flächige Farbe verwenden, sonst verliert sie ihre Wirkung. */
  --accent: #e8793d;
  --accent-soft: rgba(232, 121, 61, 0.16);
  --accent-glow: rgba(232, 121, 61, 0.45);

  /* Typografie */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --fs-hero: clamp(3.75rem, 6.5vw + 2.75rem, 13rem);
  --fs-h2: clamp(2rem, 2.5vw + 1.2rem, 3.25rem);
  --fs-h3: clamp(1.15rem, 1vw + 0.9rem, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.8125rem;

  /* Abstände */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container-pad: clamp(1.25rem, 5vw, 4rem);
  --container-max: 1280px;

  /* Form */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Bewegung */
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
  --transition: 0.5s var(--ease); /* größere UI-Zustände: Nav, Menü, Formularfelder */
  --transition-fast: 0.22s var(--ease); /* Hover-Feedback: Buttons, Cards, Links */
}

/* ---------- 2. Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ---------- Lenis (Smooth-Scroll) ----------
   Empfohlenes Basis-CSS von Lenis (siehe js/smooth-scroll.js). Lenis regelt
   das Easing selbst per JS, daher hier natives scroll-behavior deaktivieren,
   sobald Lenis aktiv ist (kein doppeltes Easing). Ohne Lenis (z.B. bei
   "prefers-reduced-motion") bleibt der native "smooth"-Wert oben aktiv. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Sanfter Fallback für Nutzer:innen, die reduzierte Bewegung bevorzugen */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fokus-Sichtbarkeit für Tastatur-Navigation */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Browser-Defaults mit ins Design-System holen statt sie dem
   Betriebssystem zu überlassen — Markierung und Scrollbar tragen sonst
   Grau/Blau, das zu keinem der beiden Fälle passt. */
::selection {
  background: var(--accent-soft);
  color: var(--text);
}

html {
  scrollbar-color: var(--border-strong) var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section {
  padding-block: var(--section-pad);
  position: relative;
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: var(--border-strong);
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 46ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

/* Taktiles Press-Feedback statt nur Hover — bestätigt dem Klick, dass die
   Fläche "gehört" hat. Ersetzt den Hover-Lift beim Drücken bewusst durch
   ein Zusammenziehen (physisch stimmiger als beides gleichzeitig). */
.btn:active {
  transform: scale(0.97);
}

/* Scroll-Reveal (siehe js/main.js -> IntersectionObserver).
   Deutlich wahrnehmbar: Fade + Anheben + leichte Unschärfe-Auflösung +
   Mini-Scale — liest sich als bewusster "Fokussier"-Moment statt als
   reines Ein-/Ausblenden. */
[data-reveal] {
  opacity: 0;
  transform: translateY(46px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Wiederverwendbare Glass-Card-Basis */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-6px);
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: translateY(-6px) scale(0.98);
}

/* ---------- 4. Grain-Overlay ----------
   Feines Rauschen über der ganzen Seite fürs "premium/filmische" Finish.
   Reines CSS/SVG, keine Bilddatei nötig. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4b. Custom Cursor ----------
   Wird nur per JS erzeugt (siehe js/cursor.js), ausschließlich auf
   Geräten mit echtem Maus-Zeiger. html.has-custom-cursor blendet dafür
   den nativen Zeiger aus. */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--text);
}

/* Fixe Größe des äußeren Rings (Positions-Anker + Label-Zentrierung per
   Flexbox) — das sichtbare Wachsen beim Hover läuft komplett über
   transform:scale auf dem ::before (nur Transform/Opacity animiert,
   kein width/height-Layout-Trethen bei jeder Zustandsänderung). */
.cursor-ring {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-ring::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transform: scale(1);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.cursor-ring.is-hover::before {
  transform: scale(1.684);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 30px var(--accent-glow);
}

.cursor-ring.is-label::before {
  transform: scale(2.263);
  background: var(--bg);
}

.cursor-label {
  opacity: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.cursor-ring.is-label .cursor-label {
  opacity: 1;
}

/* ---------- 5. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.15rem 0;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(8, 9, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.4rem;
}

.nav-links a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions .btn-primary {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  z-index: 101;
}

.nav-toggle span {
  width: 26px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem clamp(1.25rem, 8vw, 4rem);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}

.nav-mobile.is-open {
  transform: translateY(0);
}

.nav-mobile a {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Höhere Spezifität nötig, sonst gewinnt ".nav-mobile a" oben gegen ".btn"
   und der Button erbt die riesige Menü-Link-Schriftgröße. */
.nav-mobile a.btn {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
}

.nav-mobile-meta {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-faint);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-actions .btn-primary {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none;
  }
}

/* ---------- 6. Hero ----------
   Kein 3D-Objekt mehr — die Typografie ist der ganze visuelle Moment.
   Deutlich größere Skala als vorher (siehe --fs-hero) und mehr Breite
   (kein Platz mehr für eine Szene freizuhalten). */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 1120px;
}

/* Load-in-Choreographie: Eyebrow -> Headline -> Lead -> CTAs, gestaffelt.
   Startzustand ist unsichtbar/versetzt; js/main.js setzt .is-ready auf
   .hero-content, sobald der erste Frame gemalt ist (siehe initHeroEntrance).
   Die H1 selbst ist hier bewusst ausgenommen: sie bekommt ihre eigene,
   feinere Buchstaben-Stagger-Choreographie weiter unten statt eines
   einzelnen Fade/Slide für den ganzen Satz.
   prefers-reduced-motion macht daraus über die globale Regel oben ein
   nahezu sofortiges Erscheinen. */
.hero-content .eyebrow,
.hero-content .hero-lead,
.hero-content .hero-actions {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.hero-content.is-ready .eyebrow {
  transition-delay: 0.05s;
}

.hero-content.is-ready .hero-lead {
  transition-delay: 0.36s;
}

.hero-content.is-ready .hero-actions {
  transition-delay: 0.5s;
}

.hero-content.is-ready .eyebrow,
.hero-content.is-ready .hero-lead,
.hero-content.is-ready .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Buchstaben-Stagger-Reveal der H1 (siehe js/hero-interactions.js ->
   initHeroTitleReveal). Jeder Buchstabe startet leicht abgesenkt/blass und
   bekommt seine eigene transition-delay (0.16s + Index * 45ms) per Inline-
   Style — dieselbe Startverzögerung wie die H1 vorher als Ganzes hatte. */
.hero-title-word {
  display: inline-block;
}

.hero-title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.15em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero-content.is-ready .hero-title-char {
  opacity: 1;
  transform: translateY(0);
}

/* "Not by" bleibt massiv/solide. "default." (immer das letzte Wort, siehe
   initHeroTitleReveal) ist als einziges Wort auf der ganzen Seite nur
   umrandet/hohl — der Bruch mit dem Standard passiert in der Typografie
   selbst statt über ein Objekt daneben. Ember-Glow dahinter statt eines
   3D-Lichts, kippt leicht mit der Maus (siehe initHeroTitleTilt). */
.hero-title-word--outline {
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.hero-title-word--outline::before {
  content: "";
  position: absolute;
  inset: -45% -15%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 65%);
  filter: blur(36px);
  opacity: 0.85;
  pointer-events: none;
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero-scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-scroll-cue span.line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--text-faint), transparent);
  animation: scroll-cue 2.2s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ---------- 6a. Marquee ----------
   Endlos-Band mit bereits vorhandenen Begriffen (Services, Ort, Slogan) —
   keine neuen Texte, nur eine andere Darstellung. Zwei identische
   Wiederholungen im Markup + Animation über exakt -50% ergeben eine
   nahtlose Schleife (reines CSS). Die Geschwindigkeit selbst bleibt CSS-
   getrieben; js/marquee-speed.js drosselt beim Hover nur die playbackRate
   der laufenden Animation (Web Animations API) — läuft dadurch beim Hover
   sanft langsamer weiter statt hart zu stoppen, ohne Sprung in der
   Position. Ohne JS (oder ohne Browser-Unterstützung) läuft die Animation
   einfach unverändert mit konstantem Tempo weiter. */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding-block: 1.1rem;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track span:not(.dot) {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.marquee-track .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- 6b. Statement (Scroll-Scrub-Text) ----------
   Der Satz wird in js/statement-scroll.js in einzelne Wort-Spans zerlegt.
   Beim Durchscrollen wandert ein "Lesefortschritt" durch den Satz: Wörter
   davor sind voll da, das Wort direkt am Punkt bekommt einen kurzen
   Glow/Scale-Aufblitzer, Wörter danach sind noch blass/unscharf/leicht
   abgesenkt. Farbe/Blur/Transform/Glow werden pro Frame direkt als
   Inline-Style gesetzt (siehe JS) — hier nur Basis-Layout & Fallback.
   Die Section ist absichtlich viel höher als der Viewport (min-height),
   damit der Effekt genug "Scroll-Strecke" zum Abspielen hat; der Text
   selbst bleibt dabei per position:sticky mittig stehen. */
.statement {
  position: relative;
  min-height: 200vh;
}

.statement-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--container-pad);
  overflow: hidden;
}

/* Dezenter Lichtschein hinter dem Text, wächst mit dem Scroll-Fortschritt
   (Opacity wird per JS gesetzt) — verhindert, dass der Satz in einem
   komplett leeren, flachen Hintergrund "rumsteht". */
.statement-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0.15;
  pointer-events: none;
  filter: blur(20px);
}

.statement-text {
  position: relative;
  max-width: 900px;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--text-faint);
}

.statement-text .word {
  display: inline-block;
  will-change: transform, filter, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .statement {
    min-height: auto;
  }

  .statement-sticky {
    position: relative;
    min-height: auto;
    padding-block: clamp(3rem, 8vw, 6rem);
  }

  .statement-glow {
    display: none;
  }

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

/* ---------- 7. Der Gründer ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

.founder-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin-inline: auto;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.founder-frame:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 255, 255, 0.08);
}

.founder-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 14px);
  filter: grayscale(1) contrast(1.08) brightness(0.94);
  transition: transform 0.8s var(--ease);
}

.founder-frame:hover img {
  transform: scale(1.035);
}

.founder-tag {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(8, 9, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
}

.founder-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.founder-corners span:nth-child(1) {
  top: 14px;
  left: 14px;
  border-right: none;
  border-bottom: none;
}

.founder-corners span:nth-child(2) {
  top: 14px;
  right: 14px;
  border-left: none;
  border-bottom: none;
}

.founder-corners span:nth-child(3) {
  bottom: 14px;
  left: 14px;
  border-right: none;
  border-top: none;
}

.founder-corners span:nth-child(4) {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
}

.founder-text h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.4rem;
}

.founder-text p {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 50ch;
  line-height: 1.75;
}

@media (min-width: 900px) {
  .founder-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
  }

  .founder-frame {
    margin-inline: 0;
  }
}

/* ---------- 8. Services ----------
   Bewusst keine drei gleich großen Boxen nebeneinander (das generischste
   aller SaaS-Template-Muster) — stattdessen volle Zeilen mit Trennlinie,
   die sich beim Überfahren in Richtung Ember verfärben. Der Titel trägt
   die Hierarchie, keine Index-Nummer nötig. */
.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  transition: border-color var(--transition-fast);
}

.service-row:hover {
  border-color: var(--border-strong);
}

/* Dezenter Ember-Schein am linken Rand statt scale+shadow — bleibt im
   Glow-statt-Schatten-System der Seite und passt zur vollen Zeilenbreite
   (ein scale(1.02) würde hier über den Container hinausragen). Nur
   Opacity animiert, Größe bleibt fix. */
.service-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(240px, 40%);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.service-row:hover::before {
  opacity: 1;
}

.service-row h3 {
  position: relative;
  font-size: var(--fs-h3);
  transition: color var(--transition-fast);
}

.service-row:hover h3 {
  color: var(--accent);
}

.service-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail li {
  display: flex;
  gap: 0.65em;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

.service-detail li strong {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 1fr 1.3fr;
    align-items: baseline;
    gap: 2.5rem;
  }

  .service-detail {
    flex-direction: row;
    gap: 2rem;
  }

  .service-detail li {
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
  }
}

/* ---------- 9. Work / Referenzen ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  display: block;
  text-decoration: none;
}

.project-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, var(--bg-soft), #0a0b0d 60%);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.project-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
  pointer-events: none;
}

.project-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-cover img {
  transform: scale(1.06);
}

.project-cover .project-index {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: rgba(255, 255, 255, 0.08);
  font-weight: 500;
  line-height: 1;
}

.project-cover .project-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.project-card:hover .project-cover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.project-card:hover .project-arrow {
  transform: rotate(45deg);
  background: var(--text);
  color: var(--bg);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}

.project-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 50ch;
}

.work-grid > .project-card:first-child .project-cover {
  aspect-ratio: 16 / 10;
}

@media (min-width: 860px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .work-grid > .project-card:first-child {
    grid-column: 1 / -1;
  }
}

/* Editorial-Layout für das erste ("Featured") Projekt: Bild und Text
   nebeneinander statt gestapelt, großer Ghost-Index als Gestaltungselement
   statt reiner Deko-Zahl. Weitere Projekte bleiben normale Karten. */
.project-card--featured {
  padding: 0;
}

.project-card--featured .project-cover {
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  aspect-ratio: 16 / 11;
}

.project-card-body {
  position: relative;
  padding: clamp(1.75rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-ghost-index {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(1.25rem, 3vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 500;
  color: var(--surface-strong);
  line-height: 1;
  pointer-events: none;
}

.project-card--featured .project-meta {
  position: relative;
}

.project-card--featured h3 {
  position: relative;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  max-width: 16ch;
}

.project-card--featured p {
  position: relative;
  font-size: var(--fs-lead);
  max-width: 42ch;
}

@media (min-width: 860px) {
  .project-card--featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
    transition: transform 0.25s ease, border-color var(--transition-fast), background var(--transition-fast);
  }

  .project-card--featured .project-cover {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* ---------- 10. Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  padding: clamp(2rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--text-faint);
}

.testimonial-card p.quote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: var(--fs-small);
}

.testimonial-author span.name {
  font-weight: 500;
  color: var(--text);
}

.testimonial-author span.company {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 11. Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
  display: block;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: 1.5rem;
}

.blog-read {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.blog-read .arrow {
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-read .arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 12. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info p {
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 2rem;
}

.contact-detail {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-detail a {
  color: var(--text);
  transition: opacity 0.3s var(--ease);
}

.contact-detail a:hover {
  opacity: 0.7;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.form-status.is-visible {
  opacity: 1;
}

/* Submit-Button verwandelt sich kurz in einen Bestätigungszustand statt
   nur den Status-Text darunter zu ändern (siehe js/main.js ->
   initContactForm). Label crossfaded statt hart zu springen; der kurze
   Scale-Pulse markiert den Moment, in dem sich der Text ändert. */
.btn-label {
  display: inline-block;
  transition: opacity 0.18s var(--ease);
}

@keyframes btn-sent-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary.is-sent .btn-label {
  animation: btn-sent-pulse 0.4s var(--ease);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
}

/* ---------- 13. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 34ch;
  font-size: var(--fs-small);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom .legal-links a:hover {
  color: var(--text);
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- 14. Artikel-/Projekt-Detailseiten ---------- */
.article-page {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 3rem;
  transition: color 0.3s var(--ease);
}

.article-back:hover {
  color: var(--text);
}

.article-header {
  max-width: 760px;
  margin-bottom: 2.75rem;
}

.article-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.article-intro {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
  max-width: 62ch;
}

/* Ganzseitige Bilder zwischen den Textabschnitten. Ohne echtes Bild
   (image = null in den Datendateien) erscheint ein gestrichelter
   Platzhalter statt eines kaputten Bild-Icons. */
.article-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  margin-block: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image:has(img) {
  border-style: solid;
  border-color: var(--border);
}

.article-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-image-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.article-body {
  max-width: 700px;
}

.article-body p {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.article-body li {
  list-style: disc;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* ---------- 15. Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal-page {
  padding-top: clamp(8rem, 14vw, 11rem);
  min-height: 60vh;
}

.legal-page h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
}

.legal-notice {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 3rem;
}

.legal-notice strong {
  color: var(--text);
}

.legal-content {
  max-width: 70ch;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  list-style: disc;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
