/* ─── FONTS ───────────────────────────────────────── */
@font-face {
  font-family: "AHDN";
  src: url("ahdn.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── VARIABLES ───────────────────────────────────── */
:root {
  --bg:        #f5f0e6;
  --bg-2:      #ece7d6;
  --panel:     #e4dfc9;
  --text:      #1c1910;
  --muted:     #5e5140;
  --line:      #d4cebc;
  --accent:    #c8612a;
  --accent-h:  #d97030;
  --accent-2:  #4878b0;
  --max:       1240px;
  --gutter:    clamp(20px, 4vw, 48px);
  --display:   "AHDN", "Boogaloo", sans-serif;
  --mono:      "IBM Plex Mono", "Courier New", monospace;
  --sans:      "Barlow", Helvetica, Arial, sans-serif;
  --ease-out:  cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 65%),
    #ede8db;
  background-attachment: fixed;
}

body.page-home {
  --accent:    #4878b0;
  --accent-h:  #5a8cc8;
}

body.page-audio {
  --accent:    #4878b0;
  --accent-h:  #5a8cc8;
}

body.page-lab {
  --accent:    #cf7338;
  --accent-h:  #de8450;
}


body.page-about {
  --accent:    #7a9672;
  --accent-h:  #8aaa82;
}

body.page-faq {
  --accent:    #9898cc;
  --accent-h:  #aaaadc;
}

body.page-contact {
  --accent:    #7a4b90;
  --accent-h:  #8a5ba0;
}

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

/* ─── NAV ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237,232,219,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--accent);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.nav-brand {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-brand:hover { color: var(--accent); }
}

.nav-claim {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 680px) {
  .nav-claim { display: none; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-links a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); }
}
.nav-links a.active {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* Lang toggle */
.lang-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover { border-color: var(--accent); color: var(--accent); }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-inner {
    justify-content: flex-start;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    background: color-mix(in srgb, var(--accent) 12%, var(--bg));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 8px 10px;
  }
  .lang-btn {
    margin-left: 1rem;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(245, 240, 230, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li a {
    display: block;
    padding: 10px var(--gutter);
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none;
  }
}

/* ─── PAGE ────────────────────────────────────────── */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 88px;
}

/* ─── SECTIONS ────────────────────────────────────── */
.section {
  border-top: 1px solid var(--accent);
  padding: 56px 0;
}

.hero + .section {
  border-top: none;
}

.legal-section {
  border-top: 1px solid var(--accent);
  padding: 44px 0;
}

.section-label,
.section-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ─── TYPE ────────────────────────────────────────── */
h1 {
  font-family: var(--display);
  font-size: clamp(58px, 8.5vw, 108px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--text);
}

h1, h2, h3, h4,
.nav-brand,
.chapter-title,
.price-name,
.stance-block p:first-child,
.contact-row-name,
details.acc-item > summary {
  text-transform: uppercase;
}

h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

h4 {
  font-family: var(--display);
  font-weight: 400;
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  line-height: 1.62;
  margin-top: 1.25rem;
  max-width: 520px;
  font-weight: 400;
}

.body-text {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 66ch;
}

.section-intro {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  word-spacing: -0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 160ms var(--ease-out), color 160ms ease, border-color 160ms var(--ease-out), transform 100ms var(--ease-out);
}

.btn {
  background: rgba(237, 232, 219, 0.52);
  color: var(--accent);
  border: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: rgba(237, 232, 219, 0.82); }
}
.btn:active { transform: scale(0.97); }

.btn-ghost {
  background: rgba(237, 232, 219, 0.35);
  color: var(--text);
  border: 1px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: rgba(237, 232, 219, 0.65); }
}
.btn-ghost:active { transform: scale(0.97); }

/* Buttons außerhalb des Hero: Accent-Tint der jeweiligen Seite */
.section .btn,
.section .btn-ghost,
form .btn,
.lab-dialog .btn {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .section .btn:hover,
  form .btn:hover,
  .lab-dialog .btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
  .section .btn-ghost:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ─── HERO ────────────────────────────────────────── */
.hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 68px);
  padding-left: clamp(12px, 3vw, 40px);
}

/* Hero with decorative layered image */
.hero-deco {
  position: relative;
  overflow: clip;
  min-height: clamp(280px, 40vh, 480px);
}
.hero-deco::before {
  display: none;
}
.hero-deco-img {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  opacity: 0.65;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.hero-deco .lede { color: var(--text); }


.hero-deco .hero-kicker { color: var(--text); }

.hero-deco .hero-kicker,
.hero-deco h1,
.hero-deco .lede,
.hero-deco .hero-grid,
.hero-deco .cta-row {
  position: relative;
  z-index: 2;
}

.hero-deco .hero-copy {
  background: rgba(237, 232, 219, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.75rem 2rem;
}

.hero-deco-img.hero-deco-full {
  width: 100%;
  right: 0;
  left: 0;
  top: 0;
  transform: none;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* Hero h1: semi-transparent fill so illustration bleeds through the letters */
.hero-deco h1 {
  color: rgba(28, 25, 16, 0.72);
}



.hero-deco-img.hero-deco-portrait {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  height: 100%;
  transform: none;
  opacity: 0.65;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-deco {
  min-height: clamp(320px, 65vh, 780px);
}

.page-home .hero-copy {
  grid-column: span 5;
}

.page-lab .hero-deco {
  min-height: clamp(360px, 55vh, 580px);
}

.page-faq .hero-deco,
.page-about .hero-deco,
.page-contact .hero-deco {
  min-height: clamp(500px, 68vh, 720px);
}

.page-contact .hero-deco {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-faq .hero h1,
.page-contact .hero h1 {
  font-size: clamp(80px, 11vw, 148px);
}

.page-about .hero h1 {
  font-size: clamp(48px, 6.5vw, 84px);
}

.page-contact .hero-deco-img.hero-deco-full,
.page-about .hero-deco-img.hero-deco-full {
  object-fit: contain;
  object-position: right center;
}

/* object-position for home/audio/lab is randomized by JS */

@media (max-width: 480px) {
  /* Hero line-height: 0.9 is too tight when text wraps on small screens */
  h1 {
    line-height: 1.05;
  }

  .page-faq .hero-deco,
  .page-about .hero-deco,
  .page-contact .hero-deco {
    min-height: clamp(300px, 55svh, 440px);
  }

  .page-faq .hero h1,
  .page-contact .hero h1 {
    font-size: clamp(56px, 15vw, 72px);
  }

  .page-lab .hero h1 {
    font-size: clamp(40px, 11vw, 58px);
  }

  /* Portrait images: cap width so they don't crowd text */
  .hero-deco-img.hero-deco-portrait {
    max-width: 52%;
    opacity: 0.5;
  }

  /* On mobile the bg image is reduced to 0.5 opacity, so text needs more presence */
  .hero-deco h1 {
    color: rgba(28, 25, 16, 0.88);
  }

  /* bg image is 0.5 vs 0.65 on desktop — reduce glass opacity to keep same visual weight */
  .hero-deco .hero-copy,
  .hero-panel {
    background: rgba(237, 232, 219, 0.38);
  }

}

/* Hero with image — 2-column editorial layout */
.hero-has-img {
  display: grid;
  grid-template-columns: 1fr clamp(280px, 42vw, 540px);
  grid-template-rows: minmax(clamp(320px, 55vh, 680px), auto);
  gap: 0;
  align-items: stretch;
  margin-right: calc(-1 * var(--gutter));
}

.hero-text {
  min-width: 0;
}

/* h1 scales to the narrower text column */
.hero-has-img h1 {
  font-size: clamp(32px, 4.5vw, 58px);
}

.page-kontakt .hero-has-img h1 {
  font-size: clamp(48px, 7vw, 96px);
}

.hero-has-img .hero-grid {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
}

.hero-img-wrap {
  background: transparent;
  overflow: hidden;
  padding-left: clamp(1rem, 2vw, 2rem);
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 280ms var(--ease-out) 120ms forwards;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  mix-blend-mode: multiply;
  position: relative;
  z-index: -1;
}

@media (max-width: 680px) {
  .hero-has-img {
    grid-template-columns: 1fr;
  }
  .hero-img-wrap {
    display: none;
  }
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 280ms var(--ease-out) forwards;
}

.hero h1 {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 280ms var(--ease-out) 80ms forwards;
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover h1 { color: color-mix(in srgb, var(--accent) 72%, transparent); }
}

.hero .lede {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 280ms var(--ease-out) 200ms forwards;
}

.hero .hero-grid,
.hero .hero-copy {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 280ms var(--ease-out) 260ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero h1,
  .hero .lede,
  .hero .hero-grid,
  .hero .hero-copy,
  .hero-img-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-top: 2.75rem;
}

.hero-copy { grid-column: span 7; }

.hero-panel {
  grid-column: span 5;
  background: rgba(237, 232, 219, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem 1.75rem;
  align-self: start;
}

@media (max-width: 780px) {
  .hero-copy  { grid-column: span 12; }
  .hero-panel { grid-column: span 12; }
  .page-home .hero-copy { grid-column: span 12; }
}

.hero-panel .lede {
  background-color: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateZ(0);
}

.hero-panel-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-panel ul { list-style: none; }

.hero-panel ul li {
  font-size: 13.5px;
  color: var(--text);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
}

.hero-panel ul li:first-child { border-top: 1px solid var(--line); }

.hero-panel ul li span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ─── CHAPTER NAV (index only) ────────────────────── */
.chapter-list {
  display: grid;
  gap: 0;
  margin-top: 3rem;
}

.chapter-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--accent);
  text-decoration: none;
  color: var(--text);
  transition: color 180ms var(--ease-out);
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 280ms var(--ease-out) forwards;
}

.chapter-item:nth-child(1) { animation-delay: 20ms; }
.chapter-item:nth-child(2) { animation-delay: 50ms; }
.chapter-item:nth-child(3) { animation-delay: 80ms; }
.chapter-item:nth-child(4) { animation-delay: 110ms; }
.chapter-item:nth-child(5) { animation-delay: 140ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.chapter-item:last-child { border-bottom: 1px solid var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .chapter-item:hover { color: var(--accent); }
}
.chapter-item:active { color: var(--accent); }

.chapter-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 4px;
}

.chapter-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.0;
}

.chapter-desc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .chapter-item:hover .chapter-title { color: var(--accent); }

  .chapter-item:nth-child(2):hover,
  .chapter-item:nth-child(2):hover .chapter-title { color: #cf7338; }
  .chapter-item:nth-child(3):hover,
  .chapter-item:nth-child(3):hover .chapter-title { color: #7a9672; }
  .chapter-item:nth-child(4):hover,
  .chapter-item:nth-child(4):hover .chapter-title { color: #9898cc; }
  .chapter-item:nth-child(5):hover,
  .chapter-item:nth-child(5):hover .chapter-title { color: #7a4b90; }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 600px) {
  .chapter-item { grid-template-columns: 2rem 1fr; }
  .chapter-desc { display: none; }
}

/* ─── PRICE TABLE ─────────────────────────────────── */
.price-table { margin-top: 2rem; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  padding: 1rem 0.5rem;
  margin: 0 -0.5rem;
  border-top: 1px solid var(--line);
  transition: background 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .price-row:hover { background: var(--bg-2); }
  .price-row:hover .price-name { color: var(--accent); }
}
.price-row:active { background: var(--bg-2); }
.price-row:active .price-name { color: var(--accent); }

.price-name {
  transition: color 180ms ease;
}

.price-row:last-child { border-bottom: 1px solid var(--line); }

.price-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.price-detail {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  font-family: var(--sans);
}

.price-amount {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.03em;
}

.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

@media (max-width: 680px) {
  .service-cols { grid-template-columns: 1fr; }
}

.service-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 0.6rem;
  letter-spacing: 0.05em;
}

/* ─── ABOUT ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  max-width: 680px;
}

.about-photo-wrap { position: relative; }

.about-photo {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(30%) contrast(1.06) sepia(8%);
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-height: 380px; }
}

.stance-block { margin-top: 1.5rem; }

.stance-block p {
  max-width: 66ch;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.7;
  font-size: clamp(15px, 1.6vw, 17px);
}

.stance-block p:first-child {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.pillars {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (min-width: 721px) { .page-lab .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border-top: 1px solid var(--accent);
  padding: 1rem 1.5rem 1rem 0;
}

.page-audio .pillar,
.page-lab .pillar {
  background: none;
}

.pillar-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── VALUES GRID ─────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 2.5rem;
  margin-top: 2.5rem;
}

.value-item {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  transition: border-color 180ms ease;
}

.value-item h4 {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 0.3rem;
  transition: color 180ms ease;
}

.value-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.value-item:active { border-top-color: var(--accent); }
.value-item:active h4 { color: var(--accent); }


.pillar { transition: background 180ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .pillar:hover { background: var(--bg-2); }
}

/* ─── LAB MODULES ─────────────────────────────────── */
.lab-intro { max-width: 640px; margin-bottom: 3rem; }

.lab-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 3.5rem;
}
@media (max-width: 720px) {
  .lab-phases { grid-template-columns: 1fr 1fr; }
  .lab-phase { min-height: 200px; padding-bottom: 1rem; }
}

.lab-phase {
  border-top: 2px solid var(--accent);
  padding: 1rem 1.5rem 0 0;
  background: none;
}

.lab-phase-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.lab-phase h4 {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text);
  margin-bottom: 0.35rem;
}

.lab-phase p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.lab-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .lab-modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lab-modules { grid-template-columns: 1fr; } }

.lab-module {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.25rem 0;
  background: none;
  transition: border-color 180ms ease, background 180ms ease;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .lab-module:hover {
    border-top-color: var(--accent);
    background: var(--bg-2);
  }
  .lab-module:hover h4 {
    color: var(--accent);
  }
}
.lab-module:active { border-top-color: var(--accent); background: var(--bg-2); }
.lab-module:active h4 { color: var(--accent); }

.lab-module h4 {
  transition: color 180ms ease;
}

.lab-module-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lab-module h4 {
  font-size: clamp(16px, 1.6vw, 21px);
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.lab-module p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.lab-module strong {
  color: var(--text);
  font-weight: 500;
}

.modules-cta {
  margin-top: 2.5rem;
}

.modules-cta-text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 1rem;
}

.lab-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.lab-cta p {
  font-size: 15px;
  color: var(--muted);
}

/* ─── LAB MODULE POPUPS ───────────────────────────── */
.lab-module-more {
  margin-top: auto;
  padding-top: 0.75rem;
}

.lab-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0;
  transition: transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lab-more-btn:hover { text-decoration: underline; }
}

.lab-more-btn:active { transform: scale(0.97); }

.lab-dialog {
  max-width: 560px;
  width: calc(100% - 2.5rem);
  max-height: 85vh;
  margin: auto;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: none;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
              overlay 220ms allow-discrete, display 220ms allow-discrete;
}

.lab-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .lab-dialog[open] {
    opacity: 0;
    transform: translateY(6px);
  }
}

.lab-dialog::backdrop {
  background: rgba(28, 25, 16, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 220ms ease, backdrop-filter 220ms ease,
              overlay 220ms allow-discrete, display 220ms allow-discrete;
}

.lab-dialog[open]::backdrop {
  background: rgba(28, 25, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@starting-style {
  .lab-dialog[open]::backdrop {
    background: rgba(28, 25, 16, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-dialog,
  .lab-dialog[open] { transform: none; }
  @starting-style {
    .lab-dialog[open] { transform: none; }
  }
}

.lab-dialog-close {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.5rem;
}

.lab-dialog-close button {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 160ms ease, transform 100ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lab-dialog-close button:hover { color: var(--accent); }
}

.lab-dialog-close button:active { transform: scale(0.9); }

.lab-dialog-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.lab-dialog h4 {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.lab-dialog .lab-dialog-lede {
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 1.25rem;
}

.lab-dialog h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.5rem;
}

.lab-dialog p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.lab-dialog ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.lab-dialog ul li { margin-bottom: 0.35rem; }

.lab-dialog .lab-dialog-note {
  font-style: italic;
  font-size: 14px;
}

.lab-dialog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
}

.lab-dialog-table tr { border-top: 1px solid var(--line); }
.lab-dialog-table tr:first-child { border-top: none; }

.lab-dialog-table th,
.lab-dialog-table td {
  text-align: left;
  padding: 0.6rem 0;
  font-size: 15px;
  vertical-align: top;
  font-weight: 400;
}

.lab-dialog-table th {
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 1rem;
  color: var(--text);
}

.lab-dialog-table td { color: var(--muted); }

.lab-dialog-cta { margin-top: 1.5rem; }

.lab-dialog-tabs {
  display: flex;
  gap: 1.25rem;
  margin: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.lab-dialog-panel { transition: opacity 90ms ease; }

.lab-dialog-panel.lab-panel-fade-out,
.lab-dialog-panel.lab-panel-fade-in { opacity: 0; }

.lab-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.6rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.lab-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── EDITORIAL LIST ──────────────────────────────── */
.editorial-list { display: grid; gap: 0; }

.editorial-item {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
}

.editorial-item:first-child { border-top: 0; padding-top: 0; }

.editorial-item h3 {
  margin: 0.35rem 0 0.5rem;
}

.editorial-item h3 a {
  text-decoration: none;
  transition: color 160ms ease;
}

.editorial-item h3 a:hover { color: var(--accent); }

.editorial-item p {
  font-size: 15px;
  color: var(--muted);
}

/* ─── FAQ ─────────────────────────────────────────── */
.faq-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.faq-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.65rem 1.25rem;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.faq-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .faq-tab:hover { color: var(--text); }
}

.faq-panel        { display: none; }
.faq-panel.active { display: block; }

details.acc-item { border-top: 1px solid var(--line); }
details.acc-item:last-child { border-bottom: 1px solid var(--line); }

details.acc-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-family: var(--display);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 400;
  color: var(--text);
  user-select: none;
  transition: color 160ms ease;
}

details.acc-item > summary::-webkit-details-marker { display: none; }

details.acc-item > summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 160ms ease;
}

details.acc-item[open] > summary::after { transform: rotate(45deg); }

.acc-body {
  padding-bottom: 1.25rem;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

@starting-style {
  details.acc-item[open] > .acc-body {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ─── CONTACT ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

a.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

a.contact-row:last-child { border-bottom: 1px solid var(--line); }

.contact-row-name {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  transition: color 160ms ease;
}

.contact-row-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.contact-row-arrow {
  font-size: 1rem;
  color: var(--muted);
  transition: color 160ms ease, transform 120ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a.contact-row:hover .contact-row-arrow {
    transform: translateX(4px);
    color: var(--accent);
  }
}


.hours { margin-top: 2rem; }

.hour-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.hour-row:last-child { border-bottom: 1px solid var(--line); }
.hour-row .day  { font-weight: 500; color: var(--text); font-family: var(--sans); }
.hour-row .time { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.hours-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

/* ─── FORM ────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

form input[type="text"],
form input[type="email"],
form textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 0.7rem 0.9rem;
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color 160ms var(--ease-out), background 160ms ease;
}

form input::placeholder,
form textarea::placeholder { color: var(--muted); opacity: 0.7; }

form input:focus,
form textarea:focus {
  border-color: var(--accent);
  background: var(--panel);
}

form textarea { min-height: 120px; resize: vertical; }

.hidden { display: none !important; }

#thank-you {
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}

@starting-style {
  #thank-you { opacity: 0; transform: translateY(4px); }
}

#thank-you h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--text); }
#thank-you p  { font-size: 14px; color: var(--muted); }

/* ─── IMPRESSUM / DATENSCHUTZ ─────────────────────── */
.legal-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 1.5rem;
}

.legal-section p, .legal-section li {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

.legal-section a { color: var(--accent); }

.legal-section ul { list-style: none; margin-top: 0.75rem; }
.legal-section ul li + li { margin-top: 0.4rem; }

.legal-section h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.6rem;
}

/* ─── EMBEDS ──────────────────────────────────────── */
.embed-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.embed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 780px) {
  .embed-row { grid-template-columns: 1fr; }
}

.releases-block {
  margin-top: 2.5rem;
}

.releases-block + .releases-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.embed-wrap {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.embed-wrap-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.embed-wrap-label a {
  color: var(--accent);
  text-decoration: none;
  transition: color 160ms ease;
}
.embed-wrap-label a:hover { color: var(--accent-h); }

.embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0 !important;
  clip-path: inset(0);
}

.embed-wrap.embed-spotify iframe {
  filter: sepia(8%) brightness(0.97) saturate(0.88);
}

.embed-attribution {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--line);
}

.embed-attribution a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.embed-attribution a:hover { color: var(--accent); }

.embed-links {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.embed-links a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.embed-links a:hover { color: var(--text); }

/* ─── MOBILE TAP HIGHLIGHT (erste 3 Seiten) ──────── */
.chapter-item.tapped { color: var(--accent); }
.chapter-item.tapped .chapter-title { color: var(--accent); }
.price-row.tapped { background: var(--bg-2); }
.price-row.tapped .price-name { color: var(--accent); }
.lab-module.tapped { border-top-color: var(--accent); background: var(--bg-2); }
.lab-module.tapped h4 { color: var(--accent); }

/* Letzte 3 Seiten: statische Accent-Farbe auf Touch, kein Fading */
@media (hover: none) {
  .value-item h4 { color: var(--accent); }
  details.acc-item > summary { color: var(--accent); }
  a.contact-row .contact-row-name { color: var(--accent); }
}

.swipe-hint {
  display: none;
}
@media (hover: none) {
  .swipe-hint {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    opacity: 0.45;
    text-align: center;
    margin-top: 1.5rem;
  }
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--accent);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}

.footer-inner span,
.footer-inner a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.footer-socials { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1.5rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ─── SWIPE PAGE TRANSITION ───────────────────────── */
@keyframes swipe-in-from-right {
  from { transform: translateX(60%); opacity: 0; }
}
@keyframes swipe-in-from-left {
  from { transform: translateX(-60%); opacity: 0; }
}

.page[data-entering="from-right"] {
  animation: swipe-in-from-right 380ms cubic-bezier(0.32, 0.72, 0, 1);
}
.page[data-entering="from-left"] {
  animation: swipe-in-from-left 380ms cubic-bezier(0.32, 0.72, 0, 1);
}
