/* =========================================================
   Mercedes Reibe — Portfolio
   Ein Stylesheet für alle Seiten. Themes pro Case über
   <body data-theme="…">. Linien-System über .rails + .section
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Layout (aus Figma: Frame 1440, Container 1280, Padding 80) */
  --container: 1280px;
  --gutter: 80px;
  --section-y: 112px;
  --section-y-md: 80px;
  --gap: 32px;

  /* Typo */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-accent: "PP Editorial New", "Instrument Serif", Georgia, serif;
  --font-quote: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --h1: clamp(36px, 4.2vw, 48px);
  --h2: clamp(32px, 3.6vw, 42px);
  --h3: clamp(30px, 3.4vw, 48px);
  --h5: clamp(24px, 2.4vw, 32px);
  --t-reg: 18px;
  --t-med: 20px;
  --t-small: 16px;

  /* Default-Theme: hell */
  --bg: #f9f4ef;
  --fg: #1d1d1b;
  --muted: rgba(29, 29, 27, 0.62);
  --line: rgba(29, 29, 27, 0.14);
  --card: rgba(29, 29, 27, 0.04);
  --accent: #72a3ff;
  --accent-fg: #000206;
}

body[data-theme="evidia"] {
  --bg: #000d23;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.05);
}

body[data-theme="daytox"],
body[data-theme="home"] {
  --bg: #f9f4ef;
  --fg: #1d1d1b;
  --muted: rgba(29, 29, 27, 0.62);
  --line: rgba(29, 29, 27, 0.14);
  --card: rgba(29, 29, 27, 0.04);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-reg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.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;
}

/* ---------- Sprachumschalter: beide Sprachen im HTML, eine sichtbar ---------- */
html[data-lang="en"] [lang="de"]:not(html),
html[data-lang="de"] [lang="en"]:not(html) { display: none !important; }

/* ---------- Linien-System ----------
   .rails  = zwei senkrechte Linien an den Container-Kanten, volle Seitenhöhe
   .section = waagerechte Linie oben, über die volle Breite,
              mit kleinen Kreuzen an den Schnittpunkten */
.page { position: relative; }
.rails {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
/* Bilder liegen über den Linien, Text und Linien teilen sich die Fläche */
.case-hero, .gallery figure, .split figure, .card .thumb, .work-item .thumb, .figure-center { position: relative; z-index: 1; }
.nav { z-index: 50; }
.rails::before, .rails::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line);
  transform-origin: top;
  animation: rail-draw 1.4s cubic-bezier(.2,.7,.1,1) both;
}
.rails::before { left: max(var(--gutter), calc(50% - var(--container) / 2)); }
.rails::after  { right: max(var(--gutter), calc(50% - var(--container) / 2)); }

.section { position: relative; border-top: 1px solid var(--line); }
.section.no-line { border-top: 0; }
.section > .cross { position: absolute; top: -6px; width: 11px; height: 11px; z-index: 6; pointer-events: none; }
.section > .cross::before, .section > .cross::after {
  content: ""; position: absolute; background: var(--fg); opacity: .55;
}
.section > .cross::before { left: 5px; top: 0; width: 1px; height: 11px; }
.section > .cross::after  { top: 5px; left: 0; height: 1px; width: 11px; }
.section > .cross.l { left: calc(max(var(--gutter), calc(50% - var(--container) / 2)) - 5px); }
.section > .cross.r { right: calc(max(var(--gutter), calc(50% - var(--container) / 2)) - 5px); }

@keyframes rail-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.pad-l { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.pad-m { padding-top: var(--section-y-md); padding-bottom: var(--section-y-md); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--font-head); font-size: 18px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.wordmark em { font-family: var(--font-accent); font-style: italic; font-weight: 200; opacity: .7; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .8; }
.nav-links a:hover { opacity: 1; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 42px; padding: 3px;
  font: 500 13px/1 var(--font-body);
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent; color: var(--fg);
  font: inherit; padding: 7px 10px; border-radius: 42px; cursor: pointer; opacity: .6;
}
.lang-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 41px; padding: 8px 20px; border-radius: 42px;
  background: var(--accent); color: var(--accent-fg);
  font: 500 14px/1.5 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 30px; border: 0.8px solid color-mix(in srgb, var(--fg) 80%, transparent);
  font: 500 16px/1.7 var(--font-body); text-decoration: none;
}
.btn-ghost:hover { background: var(--card); }

.menu-btn {
  appearance: none; border: 0; background: transparent; color: var(--fg);
  padding: 12px; cursor: pointer; display: none;
}
.menu-btn svg { width: 24px; height: 24px; display: block; }

.menu-panel {
  display: none; border-top: 1px solid var(--line);
}
.menu-panel.open { display: block; }
.menu-panel ul { list-style: none; margin: 0; padding: 16px 0 24px; }
.menu-panel a { display: block; padding: 10px 0; font: 400 28px/1.2 var(--font-head); text-decoration: none; }

/* ---------- Case Hero ---------- */
.case-hero { position: relative; }
.case-hero img { width: 100%; height: auto; }
.case-hero.daytox img { aspect-ratio: 1440 / 608; object-fit: cover; }

/* ---------- Portfolio Header (Relume Header 10) ---------- */
.case-header .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.case-header h1 {
  font-family: var(--font-head); font-size: var(--h1); line-height: 1.1; letter-spacing: -0.01em;
}
.case-header .kicker {
  display: block; margin-bottom: 14px;
  font: 200 italic 24px/1.25 var(--font-accent); opacity: .85;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.tags li {
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px;
  font: 600 14px/1.7 var(--font-body);
}
.meta {
  margin-top: 32px; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px;
  font-size: 15px;
}
.meta dt { font: 200 italic 18px/1.4 var(--font-accent); opacity: .7; }
.meta dd { margin: 0; }
.rich { display: flex; flex-direction: column; gap: 16px; }
.rich .eyebrow { margin-bottom: 8px; }
.rich strong { font-weight: 600; }
.lead { font-size: var(--t-reg); line-height: 1.6; }

/* ---------- Content 17 (Insight links, Text rechts) ---------- */
.content17 .grid {
  display: grid; grid-template-columns: 468px 1fr; gap: 80px; align-items: start;
}
.content17 h2 {
  font-family: var(--font-head); font-size: var(--h3); line-height: 1.2; letter-spacing: -0.01em;
}
.figure-center { margin: 80px auto 0; max-width: 951px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 48px; border-top: 1px solid var(--line);
}
.facts div { padding: 20px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 400 clamp(32px, 3.4vw, 44px)/1.1 var(--font-head); letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--gap); }
.gallery .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: auto; }
.gallery .wide-out { margin-left: -16px; margin-right: -16px; } /* Figma: 1312 statt 1280 */
.gallery figcaption {
  margin-top: 12px; font: 200 italic 18px/1.3 var(--font-accent); color: var(--muted);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.split .rich { padding-top: 8px; }

/* ---------- Quote (Kundenstimme) ---------- */
.quote .grid { display: grid; grid-template-columns: 468px 1fr; gap: 80px; }
.quote .label { font: 200 italic 24px/1.2 var(--font-accent); letter-spacing: -0.01em; }
.quote blockquote { margin: 0; font: 400 clamp(22px, 2.3vw, 32px)/1.5 var(--font-quote); }
.quote .who { display: flex; gap: 20px; align-items: flex-start; margin-top: 32px; }
.quote .avatar { width: 88px; height: 88px; background: var(--card); border: 1px solid var(--line); flex: none; }
.quote .who p { font: 200 italic 24px/1.2 var(--font-accent); }

/* ---------- Platzhalter (sichtbar markiert, leicht zu finden: .is-placeholder) ---------- */
.is-placeholder { position: relative; outline: 1px dashed color-mix(in srgb, var(--accent) 80%, transparent); outline-offset: -1px; }
.is-placeholder::after {
  content: attr(data-todo);
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: var(--accent); color: var(--accent-fg);
  font: 600 12px/1.3 var(--font-body); padding: 6px 10px; border-radius: 4px; max-width: calc(100% - 24px);
}
.ph-box {
  aspect-ratio: 16 / 9; background: var(--card); display: grid; place-items: center;
  color: var(--muted); font-size: 14px;
}

/* ---------- Related / Portfolio 5 ---------- */
.related .head { text-align: center; max-width: 768px; margin: 0 auto 80px; }
.related .tagline { font: 600 16px/1.5 var(--font-body); }
.related h2 { font: 400 var(--h2)/1.2 var(--font-head); letter-spacing: -0.01em; margin-top: 16px; }
.related .head p { margin-top: 24px; font-size: var(--t-med); line-height: 1.7; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 24px; }
.card .thumb { aspect-ratio: 616 / 346.5; overflow: hidden; background: var(--card); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { font: 400 var(--h5)/1.3 var(--font-head); letter-spacing: -0.01em; }
.card p { margin-top: 8px; }
.card .more { display: inline-flex; gap: 8px; align-items: center; font: 500 18px/1.7 var(--font-body); }
.card .more svg { width: 20px; height: 20px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
.center { display: flex; justify-content: center; margin-top: 64px; }

/* ---------- Footer ---------- */
.footer .top { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.footer .big { font: 400 clamp(32px, 4vw, 56px)/1.1 var(--font-head); letter-spacing: -0.02em; max-width: 14ch; }
.footer .big em { font-family: var(--font-accent); font-style: italic; font-weight: 200; }
.footer .links { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; font-size: 16px; font-weight: 400; }
.footer .links a { text-decoration: none; }
.footer .contact { width: 400px; max-width: 100%; }
.footer .contact a.mail { font: 400 22px/1.4 var(--font-head); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer .contact p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
.footer .credits {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px;
}
.footer .credits nav { display: flex; gap: 24px; }

/* ---------- Home ---------- */
.home-hero h1 {
  font: 400 clamp(40px, 5.4vw, 76px)/1.04 var(--font-head); letter-spacing: -0.03em; max-width: 18ch;
}
.home-hero h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 200; letter-spacing: -0.02em; }
.home-hero .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 56px; align-items: end; }
.home-hero .sub p { font-size: 16px; line-height: 1.6; max-width: 46ch; }
.eyebrow { font: 200 italic 22px/1.2 var(--font-accent); color: var(--muted); display: block; margin-bottom: 24px; }

.work-list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 32px; }
.work-item { text-decoration: none; display: block; }
.work-item .thumb { aspect-ratio: 720 / 512; overflow: hidden; background: var(--card); }
.work-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.work-item:hover .thumb img { transform: scale(1.03); }
.work-item .row { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; align-items: baseline; }
.work-item h3 { font: 400 var(--h5)/1.2 var(--font-head); letter-spacing: -0.01em; }
.work-item .year { font: 200 italic 20px/1 var(--font-accent); color: var(--muted); white-space: nowrap; }
.work-item p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.systems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.systems li {
  display: grid; grid-template-columns: 1fr 2fr auto; gap: 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.systems b { font: 400 22px/1.3 var(--font-head); }
.systems span { color: var(--muted); font-size: 16px; }
.systems i { font: 200 italic 18px/1 var(--font-accent); color: var(--muted); }

.about .grid { display: grid; grid-template-columns: 468px 1fr; gap: 80px; }
.about h2 { font: 400 var(--h3)/1.2 var(--font-head); letter-spacing: -0.01em; }
.cv { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cv div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cv div span:first-child { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.1,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rails::before, .rails::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .content17 .grid, .quote .grid, .about .grid { grid-template-columns: 1fr 1.6fr; gap: 48px; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --section-y: 72px; --section-y-md: 56px; --gap: 16px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .btn.nav-cta { display: none; }
  .case-header .grid, .content17 .grid, .quote .grid, .about .grid,
  .home-hero .sub, .split, .cards, .work-list { grid-template-columns: 1fr; gap: 32px; }
  .gallery .row { grid-template-columns: 1fr; }
  .gallery .wide-out { margin-left: 0; margin-right: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div { padding: 16px 0; }
  .footer .top { flex-direction: column; }
  .systems li { grid-template-columns: 1fr; gap: 4px; }
  .cv div { grid-template-columns: 1fr; gap: 2px; }
  .related .head { margin-bottom: 48px; }
  .figure-center { margin-top: 48px; }
  .section > .cross { display: none; }
}

/* Platzhalter mit Text: Platz für das TODO-Label */
.quote .is-placeholder, .rich.is-placeholder { padding-top: 48px; }

/* ---------- Abstand Text ↔ Seitenrahmen ----------
   Text sitzt nicht direkt auf den senkrechten Linien. Bilder bleiben bündig. */
:root { --inset: 28px; }
.nav .container,
.section .container:not(.gallery),
.footer .container { padding-left: calc(var(--gutter) + var(--inset)); padding-right: calc(var(--gutter) + var(--inset)); }
.section .container.gallery .split .rich { padding-right: var(--inset); }
.section > .container.gallery[style] { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 860px) { :root { --inset: 14px; } .section .container.gallery .split .rich { padding-left: var(--inset); } }

/* ---------- Portrait im Hero, hinter Schrift und Button ---------- */
.home-hero.pad-l { padding-top: 0; padding-bottom: 0; }
.home-hero .container { position: relative; min-height: calc(600px + 2 * var(--inset)); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 48px; }
.home-hero .portrait {
  position: absolute; z-index: 0; pointer-events: none;
  right: calc(var(--gutter) + var(--inset)); top: var(--inset);
  height: 600px; width: auto; max-height: none;
}
.home-hero .eyebrow, .home-hero h1, .home-hero .sub { position: relative; z-index: 1; }
.home-hero .btn-ghost { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 860px) {
  .home-hero.pad-l { padding-top: var(--section-y); padding-bottom: var(--section-y); }
  .home-hero .container { min-height: 0; display: block; padding-top: 0; padding-bottom: 0; }
  .home-hero .portrait { position: static; transform: none; display: block; height: auto; width: 45%; max-width: 220px; margin: 0 0 32px auto; }
}

/* ---------- Startseite: Pre-Footer mit Foto im Kasten, Credits darunter auf Beige ---------- */
.footer--home { position: relative; z-index: 1; }
.prefooter {
  position: relative; isolation: isolate;
  max-width: var(--container); margin: 0 auto;
  width: calc(100% - 2 * var(--gutter));
  min-height: min(calc((100vw - 2 * var(--gutter)) / 1.5), 853px);
  padding: var(--section-y-md) 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px;
  --fg: #ffffff; --muted: rgba(255,255,255,.8);
  color: var(--fg);
  background: #1d1d1b url("../img/footer.jpg") 50% 0% / cover no-repeat;
}
.prefooter::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 32%, rgba(0,0,0,0) 55%),
              linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%),
              linear-gradient(0deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 30%);
}
.prefooter .pf-left { align-self: start; }
.prefooter .contact { align-self: end; }
.prefooter .contact a.mail { border-bottom-color: rgba(255,255,255,.5); }
.footer--home .credits { margin-top: 0; padding-top: 32px; padding-bottom: 40px; }
@media (max-width: 860px) {
  .prefooter { grid-template-columns: 1fr; min-height: 0; padding: 48px 20px; background-position: 60% 30%; }
  .prefooter::before { background: rgba(0,0,0,.5); }
  .prefooter .contact { margin-top: 160px; }
}

/* ---------- Cases: Hero-Bild im Kasten, Galerien direkt an der Linie ---------- */
.case-hero { max-width: var(--container); width: calc(100% - 2 * var(--gutter)); margin: 0 auto; }
.section.gal { padding: 0; }
.section.gal > .container.gallery { padding-top: 0; padding-bottom: 0; }
.section.tight-top { padding-top: 64px; }
@media (max-width: 860px) { .section.tight-top { padding-top: 48px; } }
.section.gal figure:last-child figcaption { margin-bottom: 24px; }

/* ---------- Startseite: zentrierter Hero mit verschiebbaren Bildern ---------- */
.home-hero-c .container { position: relative; min-height: min(92vh, 900px); display: grid; place-items: center; padding-top: 64px; padding-bottom: 64px; overflow: hidden; }
.hc-text { position: relative; z-index: 2; text-align: center; max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.hc-text h1 { font: 400 clamp(40px, 5.6vw, 80px)/1.02 var(--font-head); letter-spacing: -0.03em; }
.hc-text p { margin-top: 28px; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.hc-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hc-ctas .btn, .hc-ctas .btn-ghost { height: 46px; padding: 0 22px; }
.hc-ctas .btn-ghost { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.floater {
  position: absolute; left: var(--x); top: var(--y); width: clamp(120px, 13%, 190px); height: auto; aspect-ratio: 1;
  transform: rotate(0deg) scale(.6); opacity: 0;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; pointer-events: auto;
  transition: transform .7s cubic-bezier(.2,1.4,.4,1), opacity .5s ease, box-shadow .2s ease;
}
.floater.in { opacity: 1; transform: rotate(0deg) scale(1); }
.floater.in:hover { transform: rotate(var(--r)) scale(1.04); }
.floater.drag { cursor: grabbing; transition: none; transform: rotate(var(--r)) scale(1.06); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.hc-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  font: 400 12px/1 var(--font-mono, monospace); color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) {
  .home-hero-c .container { min-height: 0; padding-top: 190px; padding-bottom: 200px; }
  .floater:nth-child(1) { left: -4%; top: 22px; }
  .floater:nth-child(2) { left: 34%; top: 46px; }
  .floater:nth-child(3) { left: 70%; top: 14px; }
  .floater:nth-child(4) { left: 2%; top: auto; bottom: 34px; }
  .floater:nth-child(5) { left: 37%; top: auto; bottom: 58px; }
  .floater:nth-child(6) { left: 72%; top: auto; bottom: 26px; }
  .hc-hint { bottom: 8px; }
  .floater { width: 104px; }
  .floater:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .floater { transition: none; } }

/* Textmarkierung im CTA-Blau */
::selection { background: var(--accent); color: var(--accent-fg); }

/* ---------- Themes Goldmarie & BDLI ---------- */
body[data-theme="goldmarie"] {
  --bg: #0e0e0d; --fg: #ffffff; --muted: rgba(255,255,255,.62); --line: rgba(255,255,255,.14); --card: rgba(255,255,255,.05);
  --tile-dark: #000000; --tile-soft: #1b1b19; --tile-purple: #1b1b19;
}
body[data-theme="bdli"] {
  --bg: #efeef6; --fg: #1d1240; --muted: rgba(29,18,64,.62); --line: rgba(29,18,64,.14); --card: rgba(29,18,64,.05);
  --tile-dark: #0b0b0f; --tile-soft: #e2e0ef; --tile-purple: #3d0b7a;
}
:root { --tile-dark: #000; --tile-soft: rgba(0,0,0,.05); --tile-purple: #3d0b7a; }

/* Kacheln für freigestellte Bilder */
.gallery figure.tile { display: grid; place-items: center; padding: clamp(24px, 5%, 64px); }
.gallery figure.tile img { width: auto; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; }
.gallery .row figure.tile { aspect-ratio: 4 / 5; }
.gallery > figure.tile { aspect-ratio: 16 / 9; }
.gallery > figure.tile img { max-height: 100%; }
.tile-dark { background: var(--tile-dark); }
.tile-soft { background: var(--tile-soft); }
.tile-purple { background: var(--tile-purple); }
.gallery .row figure:not(.tile) img { width: 100%; height: 100%; object-fit: cover; }
.gallery .row { align-items: stretch; }
.gallery .row figure { aspect-ratio: 4 / 5; }
body[data-theme="evidia"] .gallery .row figure, body[data-theme="daytox"] .gallery .row figure { aspect-ratio: auto; }
body[data-theme="evidia"] .gallery .row figure:not(.tile) img, body[data-theme="daytox"] .gallery .row figure:not(.tile) img { height: auto; }

/* Ganze Seite zum Durchscrollen */
.scroller {
  margin: 56px auto 0; max-width: 960px; height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); background: #fff; scrollbar-width: thin;
}
.scroller img { width: 100%; height: auto; display: block; }

/* ---------- Startseite: Bild-Trail an der Maus ---------- */
.trail {
  position: absolute; z-index: 4; width: 150px; aspect-ratio: 1; object-fit: cover; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(.2,1.3,.4,1), opacity .25s ease;
}
.trail.in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.trail.out { transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.prefooter > * { min-width: 0; }
@media (max-width: 860px) { .prefooter { display: block; } }

/* Hero ohne feste Bilder: Trail only */
@media (max-width: 860px) {
  .home-hero-c .container { padding-top: 96px; padding-bottom: 96px; }
}
@media (hover: none), (pointer: coarse) { .hc-hint { display: none; } }

/* Linien liegen über Bildern (sichtbar auf dunklen Bildern) */
.rails { z-index: 40 !important; }
/* Screenshot-Kachel: nicht größer als ~1,5x Pixeldichte */
.gallery > figure.tile.tile-shot { aspect-ratio: auto; padding: clamp(24px, 6%, 80px); }
.gallery > figure.tile.tile-shot img { max-width: 880px; width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
/* Hero Startseite: halber Abstand Nav → Overline */
@media (min-width: 861px) {
  .home-hero-c .container { min-height: 0; align-content: start; padding-top: 70px; padding-bottom: 150px; }
}
/* BDLI: Bilder aus dem Website-Layout, Zeilen gleich hoch */
body[data-theme="bdli"] { --bg: #f9f4f0; --fg: #111111; --muted: rgba(17,17,17,.6); --line: rgba(17,17,17,.12); }
body[data-theme="bdli"] .gallery .row figure { aspect-ratio: auto; }
body[data-theme="bdli"] .gallery .row figure img { height: auto; }

/* TEST: feststehender Verlaufs-Hintergrund (Startseite) */
body[data-theme="home"] { background: #e2e2e2; }
body[data-theme="home"]::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/bg-gradient.jpg") center bottom / cover no-repeat;
}
body[data-theme="home"] .nav { background: rgba(226,226,226,.72); }

/* =========================================================
   RUNDE 3 (08.11.)
   ========================================================= */
/* Abstände halbiert */
:root { --gap: 16px; --inset: 14px; }
.gallery figure.tile { padding: clamp(12px, 2.5%, 32px); }
.gallery .row { gap: var(--gap); }
.gallery { gap: var(--gap); }

/* Fester Verlauf raus: vollflächige Farbe */
body[data-theme="home"] { background: var(--bg); }
body[data-theme="home"]::before { content: none; display: none; }
body[data-theme="home"] .nav { background: color-mix(in srgb, var(--bg) 88%, transparent); }

/* Verlauf + Grain (nach bg-gradient) */
:root {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grad-blue: linear-gradient(180deg, #c9c9ea 0%, #8f8fdc 30%, #3b3bd2 62%, #0505bb 82%, #02024f 100%);
}
.btn.btn-grad {
  background: var(--grain), var(--grad-blue); background-size: 160px 160px, 100% 100%;
  background-blend-mode: soft-light, normal; color: #fff; border: 1px solid rgba(255,255,255,.35);
}
.btn.btn-grad:hover { filter: brightness(1.08) saturate(1.1); }
.grad-em em {
  background: var(--grain), linear-gradient(180deg, #a9a9e6 0%, #5555da 40%, #0606c2 75%, #04047a 100%);
  background-size: 160px 160px, 100% 100%; background-blend-mode: soft-light, normal;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}

/* View project-Pfeil */
.card .more svg { width: 18px; height: 18px; }

/* Related-Overline wie die anderen */
.related.pad-l { padding-top: 64px; }
.related .tagline { font: 400 13px/1.5 var(--font-mono, monospace) !important; color: var(--muted); letter-spacing: 0; }
.related .head { margin-bottom: 48px; }

/* About: Jahreszahlen kleiner */
.cv div span:first-child { font-size: 11px !important; }

/* Weitere Systeme: feste Spalten, gleiche Startkante */
.systems li { grid-template-columns: 150px 1fr 2fr; }
.systems i { font-size: 13px !important; }
.systems .badge {
  font: 400 11px/1 var(--font-mono, monospace); font-style: normal; color: #fff; vertical-align: middle;
  margin-left: 10px; padding: 5px 8px; border-radius: 20px;
  background: var(--grain), var(--grad-blue); background-size: 160px 160px, 100% 100%; background-blend-mode: soft-light, normal;
}

/* Tech stack */
.stack-label { margin-top: 48px; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stack li { aspect-ratio: 1; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.stack li svg { width: 30%; height: auto; }
.stack li .mono-mark { font: 500 22px/1 var(--font-mono, monospace); letter-spacing: -.02em; }
.stack li span { font: 400 11px/1.2 var(--font-mono, monospace); color: var(--muted); text-align: center; }
@media (max-width: 860px) { .stack { grid-template-columns: repeat(3, 1fr); } .systems li { grid-template-columns: 1fr; } }

/* Goldmarie: Videos, Herzschlag */
.gallery figure.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figure.vid.fit { background: #fdd100; }
.gallery figure.vid.fit video { object-fit: contain; }
.tile-white { background: #fff; }
.gallery > figure.heart-tile { aspect-ratio: 16 / 7; overflow: hidden; }
.heartbeat { animation: heartbeat 1.6s ease-in-out infinite; transform-origin: 50% 55%; }
@keyframes heartbeat { 0%,40%,100% { transform: scale(1); } 10% { transform: scale(1.09); } 20% { transform: scale(.98); } 30% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .heartbeat { animation: none; } }
.gallery img.narrow { max-width: 720px; margin: 0 auto; }

/* ---------- Footer: vollflächig mit Bild, Pixel-Reveal ---------- */
.site-footer { position: relative; z-index: 41; overflow: hidden; color: #fff; background: #0b0b0d; min-height: min(100vh, 900px); display: flex; flex-direction: column; isolation: isolate; }
.sf-media { position: absolute; inset: 0; background-size: cover; background-position: 55% 20%; z-index: -3; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.25), rgba(0,0,0,.62)); }
.sf-pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sf-grain { position: absolute; inset: -50%; z-index: -1; background: var(--grain); background-size: 160px 160px; opacity: .18; mix-blend-mode: overlay; pointer-events: none; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.sf-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 80px; gap: 28px; }
.sf-title { font: 400 clamp(34px, 5vw, 72px)/1.05 var(--font-head); letter-spacing: -0.03em; max-width: 16ch; }
.sf-title em { font-style: normal; color: var(--accent); }
.sf-mail { display: inline-flex; align-items: center; gap: 10px; font: 400 clamp(15px, 1.6vw, 20px)/1.4 var(--font-mono, monospace); color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.sf-mail svg { width: 20px; height: 20px; transition: transform .2s; }
.sf-mail:hover svg { transform: translateX(4px); }
.sf-credits { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 24px var(--gutter); border-top: 1px solid rgba(255,255,255,.18); font: 400 13px/1.4 var(--font-mono, monospace); color: rgba(255,255,255,.85); }
.sf-credits nav { display: flex; gap: 20px; flex-wrap: wrap; }
.sf-credits a { color: #fff; text-decoration: none; }
.sf-credits a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .sf-grain { animation: none; } }

/* ---------- Case-Teaser: hochkant, Text auf Blur-Kachel im Bild ---------- */
.work-list, .cards { gap: 16px; }
.work-item, .card { position: relative; display: block; overflow: hidden; color: #fff; }
.work-item .thumb, .card .thumb { aspect-ratio: 4 / 5; }
.work-item .thumb img, .card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wi-info, .card-info {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 18px 20px 20px; color: #fff;
  background: rgba(18,18,20,.28); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.18);
}
.wi-info .row { margin-top: 0; }
.wi-info h3, .card-info h3 { color: #fff; }
.wi-info p, .card-info p { color: rgba(255,255,255,.82) !important; margin-top: 6px; font-size: 15px; }
.wi-info .year { color: rgba(255,255,255,.8) !important; }
.card-info .tags { margin-top: 12px; }
.card-info .tags li { border-color: rgba(255,255,255,.3); color: #fff; }
.card-info .more { margin-top: 12px; color: #fff; display: inline-flex; }
.card { gap: 0; }
.work-item:hover .wi-info, .card:hover .card-info { background: rgba(18,18,20,.38); }
@media (max-width: 860px) { .wi-info, .card-info { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; } }

/* ---------- Runde 4 ---------- */
:root { --gap: 8px; }
.work-list, .cards { gap: 8px; }
/* Teaser: Info als Streifen unten, ohne Outline, mehr Innenabstand */
.wi-info, .card-info { left: 0; right: 0; bottom: 0; border: 0; padding: 24px 28px 26px; background: rgba(14,14,16,.32); }
@media (max-width: 860px) { .wi-info, .card-info { left: 0; right: 0; bottom: 0; padding: 18px 20px; } }
/* Verlauf zurück auf einfarbig */
.systems .badge { background: var(--accent); color: var(--accent-fg); }
/* Hero: Bild wird mit der Maus pixelweise freigelegt */
.home-hero-c .container { position: relative; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center 60%; z-index: 0; }
.hero-pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; image-rendering: pixelated; }
.home-hero-c .hc-text, .home-hero-c .hc-hint { z-index: 2; }

/* =========================================================
   Runde 5: Anleihen von Figma Weave
   Gelb #f7ff9e, Kästchenraster, sanfter Verlauf, große enge Schrift
   ========================================================= */
:root { --yellow: #f7ff9e; --grid: rgba(20,20,26,.055); --grid-size: 56px; }

/* Sanfter Verlauf + Kästchenraster als Seitenhintergrund (helle Seiten) */
body[data-theme="home"], body[data-theme="bdli"], body[data-theme="daytox"] {
  background-color: #f6f6f1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf7 0%, #f3f3ee 40%, #e5e5e8 77%, #d3ddd6 100%);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%;
  background-attachment: fixed;
  --bg: #f6f6f1;
}
body[data-theme="evidia"], body[data-theme="goldmarie"] {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
}

/* Nav nicht mehr deckend: nur Blur, Inhalt läuft darunter durch */
.nav, body[data-theme="home"] .nav { background: transparent !important; backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); border-bottom-color: var(--line); }
.home-hero-c { margin-top: -73px; }
.home-hero-c .container { padding-top: calc(70px + 73px) !important; }

/* Gelber CTA-Block wie bei Weave: eine runde Ecke, große Schrift unten */
.btn.nav-cta {
  background: var(--yellow); color: #000; border-radius: 0 0 0 10px; height: 52px; padding: 14px 18px 8px 14px;
  align-items: flex-end; font: 400 20px/1 var(--font-head) !important; letter-spacing: -0.03em !important;
}
.hc-ctas .btn { background: var(--yellow); color: #000; border-radius: 0 10px 0 10px; }
.btn-ghost { border-radius: 10px 0 10px 0; }

/* Große, enge Schrift */
.hc-text h1 { font-size: clamp(44px, 6vw, 96px) !important; line-height: .9 !important; letter-spacing: -0.05em !important; }
.hc-text { max-width: 1100px; }
.content17 h2, .about h2, .related h2, .case-header h1 { letter-spacing: -0.045em !important; line-height: .95 !important; }
.case-header h1 { font-size: clamp(44px, 5.4vw, 80px) !important; }
.content17 h2 { font-size: clamp(32px, 3.8vw, 56px) !important; }
.sf-title { letter-spacing: -0.05em; line-height: .92; font-size: clamp(44px, 6.4vw, 104px); }

/* Teaser-Streifen: CTA-Ecke */
.card-info .more { background: var(--yellow); color: #000; padding: 6px 12px; border-radius: 0 8px 0 0; }

/* Hero: Bild liegt im Canvas, freigelegte Zellen zeigen es, Rest zeigt Raster+Verlauf */
.hero-media { display: none; }

/* =========================================================
   Runde 6
   ========================================================= */
/* Buttons zurück wie vorher */
.btn.nav-cta { background: var(--accent); color: var(--accent-fg); border-radius: 42px; height: 41px; padding: 8px 20px; align-items: center; font: 400 13px/1.5 var(--font-mono, monospace) !important; letter-spacing: 0 !important; }
.hc-ctas .btn { background: var(--accent); color: var(--accent-fg); border-radius: 42px; }
.btn-ghost { border-radius: 30px; }
.card-info .more { background: none; color: #fff; padding: 0; border-radius: 0; }
/* Kästchenraster raus, Verlauf bleibt */
body[data-theme="home"], body[data-theme="bdli"], body[data-theme="daytox"] {
  background-image: linear-gradient(180deg, #fbfbf7 0%, #f3f3ee 40%, #e5e5e8 77%, #d3ddd6 100%);
  background-size: 100% 100%;
}
body[data-theme="evidia"], body[data-theme="goldmarie"] { background-image: none; }
/* Teaser: Kachel wieder aufgesetzt, mehr Innenabstand, flacher */
.wi-info, .card-info { left: 20px; right: 20px; bottom: 20px; padding: 26px 32px 28px; }
.wi-info p, .card-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-info .tags { display: none; }
@media (max-width: 860px) { .wi-info, .card-info { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; } }

/* Footer: Bild steht fest (oben angebunden), wird von der hochfahrenden Fläche freigelegt */
.site-footer { min-height: 100vh; clip-path: inset(0); }
.sf-media { position: fixed; inset: 73px 0 0 0; background-position: center top !important; background-size: cover; }

body.nav-on-dark .nav { --fg: #fff; --line: rgba(255,255,255,.2); color: #fff; }
body.nav-on-dark .nav .wordmark, body.nav-on-dark .nav .nav-links a, body.nav-on-dark .nav .menu-btn { color: #fff; }
body.nav-on-dark .lang-toggle button { color: #fff; }
body.nav-on-dark .lang-toggle button[aria-pressed="true"] { background: #fff; color: #111; }

/* =========================================================
   Runde 7
   ========================================================= */
/* Buttons in Gelb, einheitlich als Pille */
.btn, .btn.nav-cta, .hc-ctas .btn { background: var(--yellow); color: #111; border-radius: 42px; }
.btn:hover { filter: brightness(.97); }
/* Teaser: kleiner Abstand Bild → Box, großer Innenabstand, Bild etwas flacher */
.work-item .thumb, .card .thumb { aspect-ratio: 6 / 7; }
.wi-info, .card-info { left: 8px; right: 8px; bottom: 8px; padding: 34px 40px 36px; }
@media (max-width: 860px) { .wi-info, .card-info { left: 6px; right: 6px; bottom: 6px; padding: 22px 24px; } }
/* Footer: Schrift und CTA kleiner */
.sf-title { font-size: clamp(30px, 3.6vw, 56px) !important; line-height: 1 !important; }
.sf-mail { font-size: 14px !important; }
.sf-mail svg { width: 16px; height: 16px; }

/* ---------- Runde 8: Teaser ohne Box, Blur-Verlauf nach unten ---------- */
.wi-info, .card-info {
  left: 0; right: 0; bottom: 0; padding: 120px 40px 34px;
  background: none !important; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.wi-info::before, .card-info::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
}
.wi-info, .card-info { isolation: isolate; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
@media (max-width: 860px) { .wi-info, .card-info { left: 0; right: 0; bottom: 0; padding: 80px 22px 22px; } }

/* ---------- Runde 9 ---------- */
/* Helle Teaser (Daytox, BDLI): unter der Schrift leicht abdunkeln */
.work-item[href*="daytox"] .wi-info::after, .work-item[href*="airbus"] .wi-info::after,
.card[href*="daytox"] .card-info::after, .card[href*="airbus"] .card-info::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,20,0) 0%, rgba(10,10,20,.22) 45%, rgba(10,10,20,.5) 100%);
}
/* Hervorhebung: Instrument Serif Italic, Headline-Farbe, minimal heller */
h1 em, h2 em, .footer .big em, .hc-text h1 em, .sf-title em {
  font-family: "Instrument Serif", Georgia, serif !important; font-style: italic !important; font-weight: 400 !important;
  letter-spacing: -0.01em !important; font-size: 1.08em; line-height: inherit;
  color: color-mix(in srgb, currentColor 72%, #9a9a96) !important;
  background: none !important; -webkit-text-fill-color: currentColor;
}
.sf-title em { color: rgba(255,255,255,.82) !important; -webkit-text-fill-color: rgba(255,255,255,.82); }

/* ---------- Runde 10 ---------- */
:root { --accent: #f7ff9e; --accent-fg: #111; }
::selection { background: #f7ff9e; color: #111; }
/* Hervorhebung: deutlicher grau, enger */
h1 em, h2 em, .footer .big em, .hc-text h1 em, .sf-title em { letter-spacing: -0.045em !important; color: #8d8d88 !important; -webkit-text-fill-color: #8d8d88; }
body[data-theme="evidia"] h1 em, body[data-theme="evidia"] h2 em, body[data-theme="goldmarie"] h1 em, body[data-theme="goldmarie"] h2 em { color: rgba(255,255,255,.55) !important; -webkit-text-fill-color: rgba(255,255,255,.55); }
.sf-title em { color: rgba(255,255,255,.6) !important; -webkit-text-fill-color: rgba(255,255,255,.6); }
/* Work-Teaser: Jahr als Tag über dem Titel */
.wi-info .row { flex-direction: column; align-items: flex-start; gap: 12px; }
.wi-info .row .year { order: -1; font: 400 11px/1 var(--font-mono, monospace) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; padding: 6px 10px; }
/* Chip „Current“: kleiner, mehr Abstand */
.systems .badge { font-size: 10px; padding: 6px 12px; margin-left: 16px; background: var(--accent); color: #111; letter-spacing: .02em; }

/* Runde 11: Case-Teaser bündig an den Linien, nur Abstand in der Mitte */
.work-list, .cards { margin-left: calc(-1 * var(--inset)); margin-right: calc(-1 * var(--inset)); }
/* Evidia: Brandbook-Text unter dem Seitenraster */
body[data-theme="evidia"] .gallery .split { padding: 40px var(--inset) 32px; grid-template-columns: 1fr 2fr; }
body[data-theme="evidia"] .gallery .row figure { aspect-ratio: 4 / 5; }
body[data-theme="evidia"] .gallery .row figure img { height: 100%; object-fit: cover; }

/* Wortmarke oben: Tiny5 */
@font-face { font-family: "Tiny5"; src: url("../fonts/tiny5.woff2") format("woff2"); font-display: swap; font-weight: 100 900; font-stretch: 50% 200%; }
.nav .wordmark { font-family: "Tiny5", var(--font-head) !important; font-weight: 400 !important; letter-spacing: 0 !important; font-size: 20px; }
/* Wortmarke: Micro5 statt Tiny5 */
@font-face { font-family: "Micro5"; src: url("../fonts/micro5.woff2") format("woff2"); font-display: swap; }
.nav .wordmark { font-family: "Micro5", "Tiny5", var(--font-head) !important; font-size: 30px; line-height: 1; }
/* Case-Kacheln: Titel in Instrument Serif Italic, sehr eng */
.wi-info h3, .card-info h3 { font-family: "Instrument Serif", Georgia, serif !important; font-style: italic !important; font-weight: 400 !important; letter-spacing: -0.05em !important; font-size: clamp(32px, 3vw, 46px) !important; line-height: 1 !important; }

/* ---------- Runde 13 ---------- */
/* Chip „Current“: Schrift kleiner, Rand größer, oben/unten gleich */
.systems .badge { font-size: 9px !important; line-height: 1 !important; padding: 8px 14px !important; margin-left: 18px; display: inline-flex; align-items: center; vertical-align: middle; position: relative; top: -3px; }
/* Hervorhebung ohne Farbunterschied */
h1 em, h2 em, .footer .big em, .hc-text h1 em, .sf-title em,
body[data-theme="evidia"] h1 em, body[data-theme="evidia"] h2 em, body[data-theme="goldmarie"] h1 em, body[data-theme="goldmarie"] h2 em {
  color: inherit !important; -webkit-text-fill-color: currentColor !important;
}
/* Footer: Blitzer an der Oberkante schließen */
.sf-pixels { top: -2px; height: calc(100% + 2px); }
.site-footer { margin-top: -1px; }

/* Runde 14: Goldmarie Herz als Vektor (nur das Herz schlägt), Puzzle auf Weiß */
.gallery figure.vid.fit.fit-white { background: #fff; }
.gallery > figure.heart-tile { background: #fff center / cover no-repeat; display: block; padding: 0; }
.heart-svg { display: block; width: 100%; height: 100%; }
.heart-svg .heartbeat { transform-box: fill-box; transform-origin: 50% 55%; }

/* Runde 15: Badge "Current" kleiner, enger */
.systems .badge { font-size: 8px !important; letter-spacing: -.04em !important; padding: 7px 12px !important; }
.systems .badge span { font-size: inherit !important; letter-spacing: inherit !important; line-height: 1 !important; color: inherit !important; }

/* Runde 16: Wortmarke in Estrella Early, Startseiten-Hero auf großen Screens höher */
.nav .wordmark { font-family: "Estrella Early", "Micro5", var(--font-head) !important; font-size: 26px; letter-spacing: 0; line-height: 1; }
@media (min-width: 1600px) { .home-hero-c .container { min-height: min(92vh, 1240px); align-content: center; } }
@media (min-width: 2200px) { .home-hero-c .container { min-height: min(92vh, 1500px); } }
/* Wortmarke: Switzer, eng */
.nav .wordmark { font-family: "Switzer", var(--font-head) !important; font-weight: 500 !important; font-size: 20px; letter-spacing: -0.05em !important; line-height: 1; }
/* Goldmarie: ganzes Iconset als breite Kachel */
.gallery > figure.iconset-tile { aspect-ratio: auto; padding: clamp(32px, 6%, 88px); }
/* Wortmarke: Instrument Serif Italic, sehr eng (wie Case-Titel) */
.nav .wordmark { font-family: "Instrument Serif", Georgia, serif !important; font-style: italic !important; font-weight: 400 !important; font-size: 26px; letter-spacing: -0.05em !important; line-height: 1; }
.gallery > figure.iconset-tile { padding: clamp(8px, 2%, 24px); }

/* Kein Nachfedern (Overscroll-Bounce) beim Scrollen */
html, body { overscroll-behavior: none; }
.scroller, .scroller * { overscroll-behavior: none !important; }

/* About: What I'm addicted to — Bilder zum Verschieben */
.addict .ad-board { position: relative; min-height: 860px; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.addict .ad-center { text-align: center; position: relative; z-index: 1; pointer-events: none; }
.addict .ad-center h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.04em; margin: 14px 0 18px; }
.addict .ad-hint { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ad-card { position: absolute; z-index: 2; margin: 0; width: clamp(150px, 15vw, 220px); aspect-ratio: 4 / 5; background: var(--c); border-radius: 0;
  cursor: grab; user-select: none; touch-action: none; transform: rotate(var(--r)) scale(.6); opacity: 0;
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.9,.25,1.25), box-shadow .3s ease; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); overflow: hidden; }
.ad-card.in { opacity: 1; transform: rotate(var(--r)) scale(1); }
.ad-card.in:hover, .ad-card.in:focus-visible { transform: rotate(0deg) scale(1.04); outline: none; }
.ad-card.drag { cursor: grabbing; transition: none; transform: rotate(0deg) scale(1.06); box-shadow: 0 34px 70px -24px rgba(0,0,0,.5); }
.ad-visual { position: absolute; inset: 0; display: grid; place-items: center; }
.ad-visual img { width: 64px; height: 64px; pointer-events: none; }
.ad-visual > img.ad-photo { width: 100%; height: 100%; object-fit: cover; }
.ad-aa { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 96px; letter-spacing: -0.05em; color: #111; }
.ad-label { position: absolute; inset: 0; margin: 0; background: #0b0b0d; color: #f7ff9e; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px;
  opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.ad-label b { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.ad-label small { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; line-height: 1.45; letter-spacing: .02em; color: rgba(247,255,158,.7); }
.ad-card:hover .ad-label, .ad-card:focus-visible .ad-label, .ad-card.show .ad-label { opacity: 1; }
.ad-card.drag .ad-label { opacity: 0; }
/* Startpositionen rund um die Mitte */
.ad-rap    { left: 5%;  top: 6%; }
.ad-matcha { left: 72%; top: 4%; }
.ad-cake   { left: 8%;  top: 62%; }
.ad-walks  { left: 80%; top: 56%; }
.ad-plants { left: 54%; top: 70%; }
.ad-fonts  { left: 30%; top: 0%; }
@media (max-width: 760px) {
  .addict .ad-board { min-height: 640px; }
  .ad-card { width: 120px; }
  .addict .ad-board { min-height: 760px; }
  .ad-rap { left: 2%; top: 1%; } .ad-matcha { left: 64%; top: 3%; } .ad-fonts { left: 33%; top: 12%; }
  .ad-cake { left: 3%; top: 72%; } .ad-walks { left: 64%; top: 70%; } .ad-plants { left: 33%; top: 81%; }
  .ad-aa { font-size: 60px; } .ad-label b { font-size: 22px; } .ad-label { padding: 12px; }
}

/* Runde 17 */
/* About: Portrait weiter von der rechten Linie, mittiger */
@media (min-width: 861px) { .home-hero .portrait { right: calc(var(--gutter) + clamp(32px, 5vw, 96px)); } }
/* Addicted: Board füllt die Sektion zwischen den Linien, quadratische Karten, erst gerade */
.section.addict { padding: 0; border-bottom: 1px solid var(--line); }
.addict .ad-board { min-height: 820px; }
.addict .ad-center h2 { font-size: clamp(28px, 3.4vw, 52px); white-space: nowrap; margin: 12px 0 16px; }
.ad-card { aspect-ratio: 1 / 1; transform: rotate(0deg) scale(.6); }
.ad-card.in { transform: rotate(0deg) scale(1); }
.ad-card.in:hover, .ad-card.in:focus-visible { transform: rotate(var(--r)) scale(1.04); }
.ad-card.drag { transform: rotate(var(--r)) scale(1.06); }
@media (max-width: 760px) { .addict .ad-center h2 { white-space: normal; font-size: 30px; } .addict .ad-board { min-height: 700px; } }
/* Footer: Bild läuft unter die Nav, Nav über dem Footer ohne Blur-Streifen */
.sf-media { inset: 0 !important; }
body.nav-over-footer .nav { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: border-color .2s; }
body.nav-on-dark .nav { border-bottom-color: rgba(255,255,255,.18); }

/* Runde 18: Mobil */
/* Menü als Vollbild unter der Leiste, drei große Links */
@media (max-width: 860px) {
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 73px); height: calc(100lvh - 73px); background: var(--bg); border-top: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .menu-panel.open { display: flex; opacity: 1; visibility: visible; }
  .menu-panel .container { width: 100%; }
  .menu-panel ul { padding: 0; display: grid; gap: 4px; }
  .nav .menu-panel a, .nav .menu-panel a span { font-family: "Instrument Serif", Georgia, serif !important; font-style: italic !important; font-weight: 400 !important; font-size: clamp(48px, 15vw, 72px) !important; line-height: 1.05 !important; letter-spacing: -0.04em !important; text-transform: none !important; padding: 8px 0; color: var(--fg); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  body.menu-open.nav-on-dark .nav { --fg: #111; color: #111; }
  body.menu-open.nav-on-dark .nav .wordmark, body.menu-open.nav-on-dark .nav .menu-btn, body.menu-open.nav-on-dark .lang-toggle button { color: var(--fg); }
  .menu-btn .x { display: none; } body.menu-open .menu-btn .bars { display: none; } body.menu-open .menu-btn .x { display: block; }
  /* About: Portrait mittig, groß, volle Breite */
  .home-hero .portrait { width: 100%; max-width: 520px; margin: 0 auto 32px; }
}
/* Touch-Geräte: Verlauf scrollt mit der Seite (fixed geht dort nicht), Footer-Pixel rechnen dann seitenbezogen */
@media (hover: none) {
  body[data-theme="home"], body[data-theme="bdli"], body[data-theme="daytox"] { background-attachment: scroll; background-size: 100% 100%; }
}
.ad-visual > img.ad-photo { width: 100% !important; height: 100% !important; object-fit: cover; -webkit-user-drag: none; }
/* Addicted: Karten verschwinden exakt an den Linien; Hover-Text weiß und mittig */
.addict .container { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.addict .ad-board { margin: 0; }
.ad-label { justify-content: center; align-items: center; text-align: center; color: #fff; padding: 20px; }
.ad-label small { color: rgba(255,255,255,.72); max-width: 22ch; }

/* ---------- Runde 19/20: Evidia KI-Workflow (Schaubild), Kacheln auf Seitenblau ---------- */
.wf-wrap { margin-top: 48px; }
.wf { --wf-blue: #304e66; --wf-lb: #8ed1d9; --wf-g: 24px; color: #fff; }
.wf-badge { display: inline-flex; align-items: center; margin-left: 12px; padding: 6px 10px; font: 400 9px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; background: #8ed1d9; color: #000d23; position: relative; top: -1px; }
.wf-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--wf-g); }
.wf-col { position: relative; padding: 28px 24px 26px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.wf-step { display: flex; gap: 8px; font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.wf-step span:first-child { flex: 1; }
.wf-col h3 { margin: 22px 0 10px; font: 400 clamp(22px, 2vw, 30px)/1.05 var(--font-head); letter-spacing: -0.035em; max-width: 12ch; }
.wf-col > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 30ch; }
.wf-items { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.wf-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px; background: var(--wf-blue); font-size: 15px; line-height: 1.3; }
.wf-items code { font: 400 12px/1 var(--font-mono); white-space: nowrap; color: rgba(255,255,255,.7); }
.wf-md .wf-items code { color: var(--wf-lb); }
.wf-ask .wf-items li { background: transparent; border: 1px solid rgba(255,255,255,.28); }
.wf-out .wf-items li { background: var(--wf-lb); color: #000d23; }
.wf-out .wf-items code { color: rgba(0,13,35,.62); }
.wf-who { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.wf-who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.wf-out .wf-who::before { background: var(--wf-lb); }
.wf-arrow { position: absolute; z-index: 2; right: calc(-18px - var(--wf-g) / 2 - 1px); top: 50%; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.wf-loop { display: flex; align-items: center; gap: 16px; margin-top: var(--wf-g); padding: 20px 24px; border: 1px solid var(--line); }
.wf-loop p { margin: 0; font-size: var(--t-reg); line-height: 1.6; color: var(--fg); }
.wf-loop-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wf-lb); color: #000d23; }
@media (max-width: 1100px) {
  .wf-cols { grid-template-columns: 1fr 1fr; }
  .wf-col:nth-child(2) .wf-arrow { right: auto; left: 50%; top: auto; bottom: calc(-18px - var(--wf-g) / 2 - 1px); transform: translateX(-50%) rotate(90deg); }
}
@media (max-width: 860px) {
  .wf { --wf-g: 16px; }
  .wf-cols { grid-template-columns: 1fr; }
  .wf-col { padding: 24px 20px; }
  .wf-col h3 { max-width: none; }
  .wf-arrow, .wf-col:nth-child(2) .wf-arrow { right: auto; left: 50%; top: auto; bottom: calc(-18px - var(--wf-g) / 2 - 1px); transform: translateX(-50%) rotate(90deg); width: 32px; height: 32px; }
  .wf-loop { align-items: flex-start; padding: 18px 20px; }
}

/* Runde 21: Impressum / Datenschutz */
.rich.legal { gap: 24px; max-width: 68ch; }
.rich.legal p { line-height: 1.6; }
.rich.legal strong { font-weight: 500; display: inline-block; margin-bottom: 4px; }
.rich.legal a { color: inherit; text-underline-offset: 3px; }
/* Impressum / Datenschutz: Zurück-Link klein wie die Navigation */
.nav .container > a:not(.wordmark) { font: 400 13px/1 var(--font-mono); letter-spacing: 0; }

/* Runde 22: Footer hell mit Linien (statt Foto + Pixel) */
.site-footer { background: #f3f3ee; color: #1d1d1b; border-top: 1px solid rgba(29,29,27,.12); }
.site-footer::after { display: none; }
.sf-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.sf-inner { position: relative; }
.sf-title { color: #1d1d1b; }
.site-footer .sf-title em { color: #8d8d88 !important; -webkit-text-fill-color: #8d8d88; }
.sf-mail { color: #1d1d1b; }
.sf-credits { color: rgba(29,29,27,.72); border-top-color: rgba(29,29,27,.14); background: #f3f3ee; position: relative; }
.sf-credits a { color: #1d1d1b; }
body.nav-on-light .nav { --fg: #1d1d1b; --line: rgba(29,29,27,.14); color: #1d1d1b; }
body.nav-on-light .nav .wordmark, body.nav-on-light .nav .nav-links a, body.nav-on-light .nav .menu-btn, body.nav-on-light .lang-toggle button { color: #1d1d1b; }
body.nav-on-light .lang-toggle { border-color: rgba(29,29,27,.18); }
body.nav-on-light .lang-toggle button[aria-pressed="true"] { background: #1d1d1b; color: #fff; }
/* Runde 23: CTA oben, Linienband halb so hoch im Raster */
.site-footer { min-height: 0 !important; }
.sf-rails { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sf-rails::before, .sf-rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(29,29,27,.14); }
.sf-rails::before { left: max(var(--gutter), calc(50% - var(--container) / 2)); }
.sf-rails::after { right: max(var(--gutter), calc(50% - var(--container) / 2)); }
.sf-inner { flex: none; padding: clamp(96px, 14vh, 160px) 20px clamp(64px, 9vh, 104px); }
.sf-band { position: relative; height: clamp(240px, 42vh, 440px); margin: 0 max(var(--gutter), calc(50% - var(--container) / 2)); border-top: 1px solid rgba(29,29,27,.14); overflow: hidden; touch-action: pan-y; }
.sf-band .sf-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
@media (max-width: 860px) { .sf-band { height: 260px; } }
/* Runde 24: Footer ohne Farbbruch, Linien frei, Unterzeile bündig */
.site-footer { border-top: 0; background: #f6f6f1 linear-gradient(180deg, #fbfbf7 0%, #f3f3ee 40%, #e5e5e8 77%, #d3ddd6 100%) fixed; background-size: 100% 100%; }
.sf-band { border-top: 0; overflow: visible; margin-bottom: 120px; }
.sf-band .sf-lines { inset: -48px 0 auto 0; height: calc(100% + 96px); }
.sf-credits { border-top: 0; background: transparent; padding-left: max(var(--gutter), calc(50% - var(--container) / 2)); padding-right: max(var(--gutter), calc(50% - var(--container) / 2)); }
@media (max-width: 860px) { .sf-band { margin-bottom: 72px; } }
/* Runde 25: Quadrat als Mauszeiger, Footer auf dunklen Seiten dunkel */
html.has-sq-cursor, html.has-sq-cursor * { cursor: none !important; }
.sq-cursor { position: fixed; left: -6px; top: -6px; width: 12px; height: 12px; background: #1d1d1b; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s, background-color .15s, width .18s, height .18s, left .18s, top .18s; will-change: transform; }
.sq-cursor.shown { opacity: 1; }
.sq-cursor.on-dark { background: #f7ff9e; }
.sq-cursor.on-link { width: 22px; height: 22px; left: -11px; top: -11px; }
.sq-cursor.down { width: 8px; height: 8px; left: -4px; top: -4px; }
.site-footer { --sf-line: rgba(29,29,27,.24); }
body[data-theme="evidia"] .site-footer, body[data-theme="goldmarie"] .site-footer { --sf-line: rgba(255,255,255,.26); background: var(--bg) !important; color: #fff; }
body[data-theme="evidia"] .sf-title, body[data-theme="goldmarie"] .sf-title, body[data-theme="evidia"] .sf-mail, body[data-theme="goldmarie"] .sf-mail, body[data-theme="evidia"] .sf-credits a, body[data-theme="goldmarie"] .sf-credits a { color: #fff; }
body[data-theme="evidia"] .site-footer .sf-title em, body[data-theme="goldmarie"] .site-footer .sf-title em { color: rgba(255,255,255,.6) !important; -webkit-text-fill-color: rgba(255,255,255,.6); }
body[data-theme="evidia"] .sf-credits, body[data-theme="goldmarie"] .sf-credits { color: rgba(255,255,255,.7); }
.sq-cursor { box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.sq-cursor.on-dark { box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
/* Runde 26: Wellen-Effekt auf Bildern */
.img-ripple { position: absolute; pointer-events: none; opacity: 0; transition: opacity .35s cubic-bezier(.44,0,.56,1); display: block; }
/* Runde 27: About „What I'm addicted to“ mit Foto als Vollbild-Hintergrund */
.section.addict { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: center; background: #1d1d1b url("../img/footer.jpg") 50% 30% / cover no-repeat; color: #fff; border: 0; }
.section.addict::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.42)); pointer-events: none; }
.section.addict > .container { width: 100%; }
.addict .ad-center .eyebrow, .addict .ad-center .ad-hint { color: rgba(255,255,255,.8) !important; }
.addict .ad-center h2 { color: #fff; }
.addict .ad-center h2 em { color: rgba(255,255,255,.7) !important; -webkit-text-fill-color: rgba(255,255,255,.7); }
/* Runde 28: Hintergrundfoto nur zwischen den Rasterlinien, Kopf immer sichtbar */
.section.addict { background: none !important; color: inherit; }
.section.addict::before { display: none; }
.addict > .container { position: relative; padding: 0; }
.addict .addict-bg { position: absolute; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter); width: calc(100% - 2 * var(--gutter)); height: 100%; object-fit: cover; object-position: 45% 0%; z-index: 0; filter: brightness(.72); }
.addict .ad-board { position: relative; z-index: 2; }
.addict .img-ripple { z-index: 1; filter: brightness(.72); }
.section.addict { min-height: 0 !important; display: block !important; }
.addict .ad-board { min-height: max(820px, calc(100vh - 73px)); }
@media (max-width: 760px) { .addict .ad-board { min-height: max(700px, calc(100svh - 73px)); } }
/* Runde 29: Gesicht frei */
.ad-fonts { left: 12%; top: 33%; }
@media (max-width: 760px) { .ad-fonts { left: 30%; top: 30%; } }
/* Runde 30: Addicted-Karten wie Tech-Stack, weiß mit Outline, Foto scheint durch */
.addict .ad-card { --s: var(--stack-size, 111px); width: var(--s) !important; height: var(--s); aspect-ratio: 1 / 1; overflow: visible;
  background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.9); color: #fff; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 1 !important; transform: none; transition: transform .3s ease, background .3s ease; }
.addict .ad-card svg { width: 30%; height: auto; pointer-events: none; }
.addict .ad-card .mono-mark { font: 500 22px/1 var(--font-mono, "Geist Mono", monospace); letter-spacing: -.02em; pointer-events: none; }
.addict .ad-card figcaption { font: 400 11px/1.2 var(--font-mono, "Geist Mono", monospace); color: rgba(255,255,255,.85); text-align: center; pointer-events: none; }
.addict .ad-card.in, .addict .ad-card { transform: none; }
.addict .ad-card:hover, .addict .ad-card:focus-visible { transform: scale(1.04); background: rgba(255,255,255,.16) !important; outline: none; }
.addict .ad-card.drag { transform: scale(1.06); background: rgba(255,255,255,.2) !important; }
.ad-rap    { left: 8%;  top: 10%; }
.ad-matcha { left: 76%; top: 12%; }
.ad-fonts  { left: 16%; top: 42%; }
.ad-cake   { left: 10%; top: 72%; }
.ad-walks  { left: 82%; top: 58%; }
.ad-plants { left: 60%; top: 78%; }
@media (max-width: 760px) {
  .ad-rap { left: 4%; top: 4%; } .ad-matcha { left: 70%; top: 6%; } .ad-fonts { left: 64%; top: 28%; }
  .ad-cake { left: 6%; top: 68%; } .ad-walks { left: 66%; top: 62%; } .ad-plants { left: 38%; top: 80%; }
}
/* Runde 31: Hero-Linse statt Pixel (scharfe Mitte, weiche Kante, Weichzeichner zum Rand) */
.hero-lens { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; overflow: hidden; --r: clamp(150px, 13vw, 260px); }
.hero-lens > div { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero-lens .hl-blur { inset: -40px; filter: blur(16px);
  -webkit-mask-image: radial-gradient(circle calc(var(--r) * 1.55) at calc(var(--lx, -999px) + 40px) calc(var(--ly, -999px) + 40px), #000 0, #000 45%, transparent 100%);
          mask-image: radial-gradient(circle calc(var(--r) * 1.55) at calc(var(--lx, -999px) + 40px) calc(var(--ly, -999px) + 40px), #000 0, #000 45%, transparent 100%); }
.hero-lens .hl-sharp {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--lx, -999px) var(--ly, -999px), #000 0, #000 50%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--lx, -999px) var(--ly, -999px), #000 0, #000 50%, transparent 100%); }
@media (hover: none), (pointer: coarse) { .hero-lens { display: none; } }
/* Hero-Titel: auf großen Screens größer, kein Springen beim Laden */
.hc-text h1 { font-size: clamp(34px, 4.5vw, 104px) !important; }
html.fl .hc-text { opacity: 0; }
.hc-text { transition: opacity .35s ease; }
/* Runde 31: Addicted robust, Bild im Board, eine Ebene */
.addict > .container { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.addict .ad-board { isolation: isolate; background: #2a2a28; }
.addict .ad-board > .addict-bg { position: absolute; inset: 0; left: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 0%; z-index: 0; filter: brightness(.72); }
.addict .ad-board > .img-ripple { z-index: 1; }
.addict .ad-center { z-index: 3; }
.addict .ad-card { z-index: 4; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.1) !important; }
/* Runde 32: Linse als Canvas mit Spur */
canvas.hero-lens { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 1; }
