/* ============================================
   Moumin Bairam — Freelance Web Designer
   v3 — Vivid gradient-mesh, motion-forward
   ============================================ */

/* Self-hosted fonts (was Google Fonts CDN — moved local so no visitor IP
   is sent to Google on page load; see /datenschutz.html). Files under
   fonts/ are the open-source Archivo, Public Sans and IBM Plex Mono
   families (SIL Open Font License), latin subset only. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --paper: #FFFFFF;
  --paper-tint: #FAF9FF;
  --ink: #0F0B1E;
  --ink-soft: #5B5470;
  --line: #E7E3F2;
  --line-soft: #F1EEF9;

  --violet: #6E3AFF;
  --pink: #FF2E8C;
  --cyan: #00C2FF;
  --amber: #FFC93C;

  --accent: var(--violet);
  --gradient-1: linear-gradient(120deg, var(--violet) 0%, var(--pink) 55%, var(--cyan) 100%);
  --gradient-2: linear-gradient(120deg, var(--pink), var(--violet));
  /* Darker 2-stop variants for text/button use — the bright --gradient-1 fails
     WCAG contrast for white text and for text-clipped headings on white. */
  --gradient-text: linear-gradient(120deg, #5B2EE0, #C21F6B);
  --gradient-btn: linear-gradient(120deg, #5A2EDB 0%, #C21F6B 100%);

  --font-display: "Archivo", sans-serif;
  --font-body: "Public Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --edge: 1px solid var(--line);
  --edge-soft: 1px solid var(--line-soft);
  --max-w: 1200px;
  --radius: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }

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

.mono { font-family: var(--font-mono); }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-1);
}

/* ============ Language toggle visibility ============ */
[lang-en], [lang-de] { display: none; }
html[data-lang="en"] [lang-en] { display: inline; }
html[data-lang="de"] [lang-de] { display: inline; }

/* ============================================
   Scroll progress bar
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 100;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ============================================
   Marquee ticker
   ============================================ */

.marquee {
  border-top: var(--edge);
  border-bottom: var(--edge);
  overflow: hidden;
  padding: 22px 0;
  background: var(--paper);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

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

.marquee-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
}

.marquee-sep {
  font-size: 14px;
  margin: 0 28px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-8.3333%); }
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: var(--edge);
}

.site-header .wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.logo .mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-1);
  border-radius: 6px;
  padding: 3px 7px;
}

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: var(--edge);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}

.lang-toggle button {
  background: transparent;
  border: none;
  padding: 8px 13px;
  cursor: pointer;
  color: var(--ink-soft);
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  will-change: transform;
  transition: box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--gradient-btn);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(110, 58, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -8px rgba(255, 46, 140, 0.6);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.nav-toggle {
  display: none;
  background: none;
  border: var(--edge);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 16px; height: 2px;
  border-radius: 1px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

/* ============================================
   Hero — gradient-mesh atmosphere
   ============================================ */

.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
}

.blob-field {
  position: absolute;
  inset: -10% -10% -10% -10%;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 { width: 480px; height: 480px; background: var(--violet); top: -120px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: var(--pink); top: 40px; right: -100px; }
.blob-3 { width: 380px; height: 380px; background: var(--cyan); bottom: -160px; left: 30%; }

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero-copy { max-width: 860px; flex-shrink: 0; }

.hero-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: rotate(-6deg);
}

/* The build-frame is a live, one-time "watch a page get built" sequence —
   the hero's single authored motion moment, timed as part of heroTl in
   script.js. Every element below starts in its own collapsed state
   (width/height/scale 0) and the timeline grows each one in turn. */
.build-frame {
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  border: var(--edge);
  box-shadow: 0 30px 60px -20px rgba(15, 11, 30, 0.35);
}

.build-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: var(--edge);
  background: var(--paper-tint);
}

.build-dots { display: flex; gap: 5px; flex-shrink: 0; }
.build-dots span { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }

.build-url {
  flex: 1;
  height: 22px;
  box-sizing: border-box;
  background: var(--paper);
  border: var(--edge);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
}

.build-caret {
  display: inline-block;
  color: var(--violet);
  font-weight: 700;
  animation: caret-blink 0.9s step-end infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.build-canvas {
  padding: 20px 18px 22px;
  height: 246px;
  box-sizing: border-box;
}

.build-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 14px;
  margin-bottom: 20px;
}

.build-nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gradient-1);
  flex-shrink: 0;
}

.build-nav-links { display: flex; gap: 8px; }
.build-nav-links span {
  display: block;
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  transform-origin: right center;
}

.build-hero-block {
  height: 108px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-tint);
  box-sizing: border-box;
}

.build-hero-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.build-line {
  height: 9px;
  border-radius: 3px;
  background: var(--line);
  width: 0;
}

.build-btn {
  margin-top: 6px;
  width: 64px;
  height: 22px;
  border-radius: 999px;
  background: var(--gradient-btn);
  transform-origin: left center;
}

.build-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.build-card {
  height: 34px;
  border-radius: 6px;
  background: var(--paper-tint);
  border: var(--edge-soft);
}

.hero-visual-tag {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transform: rotate(3deg);
}

@media (max-width: 1080px) {
  .hero-visual { display: none; }
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 80px);
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  font-weight: 900;
  color: var(--pink);
}

.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 165, 72, 0.22);
  flex-shrink: 0;
}

/* ============================================
   Section shell
   ============================================ */

section { padding: 116px 0; }
@media (max-width: 640px) { section { padding: 76px 0; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-top: 12px; }

.reveal-mask { overflow: hidden; }
.reveal-heading { font-size: clamp(30px, 3.8vw, 44px); margin-top: 12px; }

.section-head .lede {
  max-width: 320px;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: right;
}

@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .lede { text-align: left; }
}

/* ============================================
   Services
   ============================================ */

.services { background: var(--paper-tint); border-top: var(--edge); border-bottom: var(--edge); }

/* An editorial row list, not a grid of icon+heading+text cards: each
   service is a full-width row with a fixed 200px icon column (guaranteed
   safe zone for the hover extras — see below) and the description filling
   the rest. No card box, no border-radius, no shadow: separation comes
   from a hairline rule between rows. */
.service-list { border-top: var(--edge); }

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  column-gap: 24px;
  padding: 34px 6px;
  border-bottom: var(--edge);
  transition: background 0.3s var(--ease);
}

.service-row:hover { background: var(--paper); }

.service-row:nth-child(1) { --card-hue: linear-gradient(135deg, var(--violet), var(--pink)); }
.service-row:nth-child(2) { --card-hue: linear-gradient(135deg, var(--pink), var(--amber)); }
.service-row:nth-child(3) { --card-hue: linear-gradient(135deg, var(--cyan), var(--violet)); }
.service-row:nth-child(4) { --card-hue: linear-gradient(135deg, var(--amber), var(--cyan)); }

.service-row-icon { position: relative; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card-hue);
  color: #fff;
  flex-shrink: 0;
}

.card-icon svg { width: 24px; height: 24px; }

.service-row:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  transition: transform 0.3s var(--ease-pop);
}

.service-row-body h3 { font-size: 19px; margin-bottom: 8px; }
.service-row-body p { font-size: 15px; color: var(--ink-soft); max-width: 46ch; }

/* Extra icons that pop out on hover — small examples of the service.
   Positioned absolute to .service-row-icon, which owns a guaranteed
   200px-wide grid column before .service-row-body starts (see
   .service-row above) — so left values up to 156px (114 + 42px icon
   width) can never reach the body text, regardless of row width. */
.card-icon-extras { position: absolute; inset: 0; pointer-events: none; }

.extra-icon {
  position: absolute;
  top: 0; left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: var(--edge);
  box-shadow: 0 10px 20px -8px rgba(15, 11, 30, 0.3);
  color: var(--violet);
  opacity: 0;
  transform: scale(0.4) translateY(6px) rotate(0deg);
  transition: opacity 0.3s var(--ease-pop), transform 0.3s var(--ease-pop);
  pointer-events: none;
  z-index: 3;
}

.extra-icon svg { width: 21px; height: 21px; }

.service-row:hover .extra-icon {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(var(--tilt, 0deg));
}

.extra-icon.extra-1 { top: 14px; left: 50px; --tilt: -8deg; transition-delay: 0.04s; }
.extra-icon.extra-2 { top: 14px; left: 96px; --tilt: 6deg; transition-delay: 0.11s; }
.extra-icon.extra-3 { top: 14px; left: 142px; --tilt: -5deg; transition-delay: 0.18s; }

.service-row:nth-child(2) .extra-icon { color: var(--pink); }
.service-row:nth-child(3) .extra-icon { color: var(--cyan); }
.service-row:nth-child(4) .extra-icon { color: var(--amber); }

@media (max-width: 640px) {
  .service-row { grid-template-columns: 1fr; row-gap: 16px; }
  .service-row-icon { grid-row: 1; }
  .service-row-body { grid-row: 2; }
  .extra-icon { display: none; }
}

@media (max-width: 560px) {
  /* No hover on touch — keep icons fully hidden instead of stuck mid-transition */
  .extra-icon { display: none; }
}

/* ============================================
   Work / breakpoint viewer
   ============================================ */

.work-list { display: flex; flex-direction: column; gap: 28px; }

.project {
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 12px 32px -20px rgba(15, 11, 30, 0.2);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: var(--edge);
  gap: 16px;
  flex-wrap: wrap;
}

.project-meta h3 { font-size: 21px; margin-bottom: 4px; }
.project-meta .kind { font-size: 13px; color: var(--ink-soft); }

.bp-toggle {
  display: flex;
  border: var(--edge);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}

.bp-toggle button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-soft);
}

.bp-toggle button[aria-pressed="true"] {
  background: var(--project-accent, var(--violet));
  color: #fff;
}

.frame-stage {
  padding: 40px 26px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(110,58,255,0.05), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,46,140,0.05), transparent 50%);
}

.device-frame {
  width: 1440px;
  max-width: 100%;
  border: var(--edge);
  border-radius: 14px;
  background: var(--paper);
  transition: width 0.5s var(--ease);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px -24px rgba(15, 11, 30, 0.3);
}

.device-frame[data-bp="768"] { width: 768px; }
.device-frame[data-bp="375"] { width: 375px; }

.mock-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: var(--edge-soft);
}

.mock-dot-row { display: flex; gap: 6px; }
.mock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.mock-nav .mock-brand { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

.mock-hero { padding: 34px 20px; display: grid; gap: 16px; }
.mock-hero .mock-bar { height: 14px; border-radius: 7px; background: var(--line-soft); }
.mock-hero .mock-bar.w60 { width: 60%; }
.mock-hero .mock-bar.w40 { width: 40%; }
.mock-hero .mock-cta { margin-top: 10px; width: 100px; height: 28px; border-radius: 999px; background: var(--project-accent, var(--violet)); }

.mock-grid { padding: 0 20px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.device-frame[data-bp="375"] .mock-grid { grid-template-columns: 1fr; }
.device-frame[data-bp="768"] .mock-grid { grid-template-columns: repeat(2, 1fr); }

.mock-card { border: var(--edge-soft); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.mock-card .mock-thumb { height: 40px; border-radius: 8px; background: var(--line-soft); }
.mock-card .mock-line { height: 8px; width: 80%; border-radius: 4px; background: var(--line-soft); }

/* Lindenhof — menu list + reservation picker (not a generic hero+grid) */
.mock-reserve {
  margin: 20px 20px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper-tint);
  border: var(--edge-soft);
  display: grid;
  gap: 10px;
}
.mock-reserve .mock-label { height: 8px; width: 45%; border-radius: 4px; background: var(--line-soft); }
.mock-slot-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-slot { padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; border: 1px solid var(--line); color: var(--ink-soft); }
.mock-slot.is-active { background: var(--project-accent, var(--violet)); color: #fff; border-color: transparent; }

.device-frame[data-bp="375"] .mock-slot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.device-frame[data-bp="375"] .mock-slot { text-align: center; padding: 8px 0; }
.mock-reserve .mock-cta { width: 120px; height: 26px; border-radius: 999px; background: var(--project-accent, var(--violet)); }

.mock-menu { padding: 18px 20px 26px; display: grid; gap: 12px; }
.mock-menu-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.mock-menu-row .mock-line { height: 8px; border-radius: 4px; background: var(--line-soft); }
.mock-menu-row .mock-name { width: 55%; }
.mock-menu-row .mock-price { width: 14%; background: var(--project-accent, var(--violet)); opacity: 0.55; }

/* Nova — single booking card, no grid: everything above the fold is one flow */
.mock-booking { margin: 0 20px 28px; padding: 18px; border-radius: 14px; border: var(--edge-soft); background: var(--paper-tint); display: grid; gap: 14px; }
.mock-day-row { display: flex; gap: 8px; }
.mock-day { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9px; color: var(--ink-soft); }
.mock-day.is-active { background: var(--project-accent, var(--violet)); color: #fff; border-color: transparent; }

.device-frame[data-bp="375"] .mock-day-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.device-frame[data-bp="375"] .mock-day { width: 100%; }
.mock-booking .mock-cta { width: 100%; height: 34px; border-radius: 10px; background: var(--project-accent, var(--violet)); }

/* KBCars — real client site, dark theme, matches their actual brand
   (metallic KB mark, near-black ground, their own texture photo) rather
   than the light default the fictional examples use. */
.device-frame.is-dark {
  background: #0c0f12 url("images/kbcars-hero.jpg") center/cover;
}

.device-frame.is-dark .mock-nav { border-bottom-color: rgba(255,255,255,0.12); }
.device-frame.is-dark .mock-dot { background: rgba(255,255,255,0.3); }
.device-frame.is-dark .mock-nav .mock-brand { color: #d8dadd; letter-spacing: 0.06em; display: inline-flex; align-items: center; }

.mock-brand-mark {
  display: inline-block;
  width: 38px; height: 14px;
  margin-right: 7px;
  background: url("images/kbcars-logo.jpg") -28px -96px / 101px 218px no-repeat;
}

.device-frame.is-dark .mock-hero .mock-bar { background: rgba(255,255,255,0.92); }
.device-frame.is-dark .mock-hero .mock-bar.w40 { background: rgba(255,255,255,0.55); }

.device-frame.is-dark .mock-cutoff {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: #d8dadd;
}

.device-frame.is-dark .mock-card { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); }
.device-frame.is-dark .mock-card .mock-thumb { background: rgba(255,255,255,0.1); }
.device-frame.is-dark .mock-card .mock-line { background: rgba(255,255,255,0.28); }

/* Atelier Bloom — persistent delivery-cutoff banner across every screen size */
.mock-cutoff {
  margin: 0 20px;
  padding: 8px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--project-accent, var(--violet)) 14%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--project-accent, var(--violet)) 35%, transparent);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink);
}
.mock-cutoff::before { content: "\25CF"; color: var(--project-accent, var(--violet)); font-size: 8px; }

.project-note { padding: 18px 26px; font-size: 14px; color: var(--ink-soft); border-top: var(--edge); }
.project-note strong { color: var(--ink); font-weight: 700; }

/* ============================================
   Process
   ============================================ */

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 860px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-list { grid-template-columns: 1fr; } }

.process-line {
  position: absolute;
  top: 12px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 0;
}

.process-step {
  padding: 30px 20px 0;
  position: relative;
  z-index: 1;
}

.process-step .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}

.process-step:nth-child(1) .num { background: linear-gradient(135deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process-step:nth-child(2) .num { background: linear-gradient(135deg, var(--pink), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process-step:nth-child(3) .num { background: linear-gradient(135deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process-step:nth-child(4) .num { background: linear-gradient(135deg, var(--amber), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.process-step h3 { font-size: 17px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--ink-soft); }

/* ============================================
   About
   ============================================ */

.about { border-top: var(--edge); background: var(--paper-tint); }

.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.about-portrait {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--gradient-1);
  background-size: 160% 160%;
  animation: gradientShift 10s ease infinite;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(110, 58, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

/* A real deliverable snippet (palette / type / spacing scale) stands in for
   a headshot — evidence of the craft being sold, not a generic avatar. */
.spec-sheet {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  padding: 22px 20px;
  display: grid;
  gap: 18px;
  box-shadow: 0 20px 40px -20px rgba(15, 11, 30, 0.4);
}

.spec-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
}

.spec-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.spec-swatches { display: flex; gap: 8px; }
.spec-swatches span { width: 22px; height: 22px; border-radius: 50%; }

.spec-type {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
}

.spec-scale { display: flex; align-items: flex-end; gap: 6px; height: 22px; }
.spec-scale span { display: block; height: 4px; border-radius: 2px; background: var(--violet); align-self: center; }

.about-portrait .initials {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.about-portrait .role {
  position: absolute;
  bottom: 18px; right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

.about-body p { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; }
.about-body p:first-child { font-size: 21px; color: var(--ink); font-weight: 500; }

.about-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: var(--edge);
  padding-top: 24px;
}

.about-facts .fact .k {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
  display: block;
  margin-bottom: 6px;
}

.about-facts .fact .v { font-size: 14px; color: var(--ink-soft); }

/* ============================================
   Contact
   ============================================ */

.contact-panel {
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(15, 11, 30, 0.3);
}

@media (max-width: 800px) { .contact-panel { grid-template-columns: 1fr; } }

.contact-info { padding: 56px 48px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }

.contact-info::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--gradient-1);
  filter: blur(80px);
  opacity: 0.5;
  top: -120px; right: -120px;
}

.contact-info h2 { font-size: clamp(27px, 3vw, 36px); margin-bottom: 18px; position: relative; }

/* "build"/"bauen" — laid down letter by letter, then a shine sweep.
   IMPORTANT: this box must keep the default `overflow: visible` (and must
   never gain any other property that changes baseline calculation). Per
   CSS2.1 10.8.1, an inline-block's baseline is normally the baseline of its
   last line box — but if `overflow` computes to anything other than
   `visible`, the baseline becomes the box's bottom margin edge instead,
   which visually drops/shifts the whole word off the shared text baseline
   with "Let's" / "something considered." (this was a real, confirmed bug —
   overflow:hidden used to be here to contain the shine sweep below).
   The shine is implemented as a background-position sweep instead of an
   absolutely-positioned/skewed element with left/width, specifically so it
   never needs clipping to stay contained: a background image is always
   confined to its own element's border-box (background-clip: border-box
   is the default, independent of `overflow`), so it cannot bleed outside
   the pseudo-element's box, which itself is pinned exactly to this box's
   bounds via inset:0 — there is no geometry that ever extends past this
   box, so there is nothing to clip and no reason to touch `overflow`. */
.build-word {
  position: relative;
  display: inline-block;
}

.build-letter { display: inline-block; }

.build-word::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 46%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.55) 54%,
    transparent 60%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: 100% 0%;
  filter: blur(1px);
  pointer-events: none;
  opacity: 0;
}

.build-word.is-shining::after {
  animation: buildShine 1.1s ease-out forwards;
}

@keyframes buildShine {
  0% { background-position: 100% 0%; opacity: 0; }
  20% { opacity: 1; }
  70% { opacity: 1; }
  100% { background-position: 0% 0%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .build-word.is-shining::after { animation: none; }
}
.contact-info p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 32px; position: relative; }

.contact-line {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 14px; position: relative;
}

.contact-line .k { color: rgba(255,255,255,0.6); }
.contact-line a { text-decoration: none; font-weight: 700; color: #fff; }
.contact-line a:hover { color: var(--pink); }

.contact-form { padding: 56px 48px; display: grid; gap: 18px; align-content: start; }
@media (max-width: 800px) { .contact-form { padding: 40px 28px; } }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input, .field textarea, .field select {
  width: 100%;
  border: var(--edge);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper-tint);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(110, 58, 255, 0.35);
}

.field textarea { min-height: 110px; }

.form-status { font-size: 13px; color: var(--ink-soft); min-height: 18px; }
.form-status[data-state="ok"] { color: var(--violet); font-weight: 600; }

/* ============================================
   Legal pages (Impressum / Datenschutz)
   ============================================ */

.legal-page h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin: 16px 0 12px;
}

.legal-lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 40px;
}

.legal-fill-note {
  background: var(--paper-tint);
  border: var(--edge);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 48px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 720px;
}

.legal-fill-note strong { color: var(--ink); }

.legal-fill-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--line-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.legal-block {
  max-width: 720px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: var(--edge);
}

.legal-block:last-child { border-bottom: none; }

.legal-block h2 { font-size: 20px; margin-bottom: 14px; }

.legal-block p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

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

.legal-block a:hover { text-decoration-color: var(--violet); }

/* ============================================
   Footer
   ============================================ */

footer { border-top: var(--edge); padding: 40px 0; }

.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft);
}

.footer-links { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--violet); }

/* mobile nav sheet */
.mobile-sheet {
  position: fixed; inset: 0; background: var(--paper); z-index: 50;
  display: flex; flex-direction: column; padding: 24px 24px 40px;
  transform: translateY(-100%); transition: transform 0.4s var(--ease);
  overflow: hidden;
}

.mobile-sheet::before {
  content: "";
  position: absolute;
  top: -30%; right: -35%;
  width: 70%; height: 60%;
  background: var(--gradient-1);
  filter: blur(90px);
  opacity: 0.28;
  border-radius: 50%;
  pointer-events: none;
}

.mobile-sheet::after {
  content: "";
  position: absolute;
  bottom: -25%; left: -30%;
  width: 60%; height: 45%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  filter: blur(80px);
  opacity: 0.22;
  border-radius: 50%;
  pointer-events: none;
}

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

.mobile-sheet-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }

.mobile-sheet .close-btn {
  background: none; border: var(--edge); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; font-size: 18px;
}

.mobile-sheet nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }

.mobile-sheet nav a {
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  text-decoration: none; color: var(--ink); padding: 14px 0; border-bottom: var(--edge);
  display: flex; align-items: center; gap: 14px;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mobile-sheet nav a::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--link-hue, var(--violet));
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-pop);
}

.mobile-sheet nav a:active,
.mobile-sheet nav a:focus-visible {
  color: var(--link-hue, var(--violet));
  padding-left: 6px;
}

.mobile-sheet nav a:active::before,
.mobile-sheet nav a:focus-visible::before {
  transform: rotate(90deg) scale(1.3);
}

.mobile-sheet nav a:nth-child(1) { --link-hue: var(--violet); }
.mobile-sheet nav a:nth-child(2) { --link-hue: var(--pink); }
.mobile-sheet nav a:nth-child(3) { --link-hue: var(--cyan); }
.mobile-sheet nav a:nth-child(4) { --link-hue: var(--amber); }
.mobile-sheet nav a:nth-child(5) { --link-hue: var(--violet); }
