/* =============================================
   paradox.works — style.css
   ============================================= */

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

:root {
  --color-bg:      #e1e2e7;
  --color-bg-blue: #f0f2fe;
  --color-text:    #2F3538;
  --font-dm:       'DM Serif Display', serif;
  --font-noto:     'Noto Serif', serif;
  --font-roboto:   'Roboto', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  width: 100%; height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
}


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

/* ── Splash ─────────────────────────────────── */



#splash-logo-wrap {
  position: relative;
  width: min(721px, 75vw);
  aspect-ratio: 721 / 166;
}
#splash-logo-text, #splash-logo-o {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#splash-logo-o {
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: 77.7% 48.97%;
}

/* ── Site ───────────────────────────────────── */
#site { opacity: 1; }

/* ── Blob ───────────────────────────────────── */
#blob-wrap {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* Always behind content — no transition needed */
}

/* ── Nav ────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; z-index: 100;
  padding: 22px 32px;
  display: flex; align-items: center;
}
#nav-logo {
  display: block; position: relative;
  width: 147px; height: 34px; text-decoration: none;
}
#nav-logo-text, #nav-logo-o {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
#nav-logo-o {
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: 77.7% 48.97%;
}

/* ── Nav logo visibility — controlled via JS inline style ── */
#nav-logo { transition: opacity 400ms ease; }

#nav-logo { opacity:0; transition:opacity 400ms ease; pointer-events:none; }

/* ── Language Switch ────────────────────────── */
#lang-switch {
  position: fixed;
  top: 22px; right: 32px;
  z-index: 101;
  width: 32px; height: 32px;
  background: #2F3538;
  color: #fff;
  border: none; border-radius: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 900; font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}
#lang-switch.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#lang-switch:hover { background: #4a5568; }

/* ── Nav fade overlay ───────────────────────── */
#nav-fade {
  position: fixed; top: 0; left: 0; right: 0;
  height: 140px; z-index: 99; pointer-events: none;
  background: linear-gradient(to bottom, #e1e2e7 0%, #e1e2e7 40%, rgba(225,226,231,0) 100%);
}

/* ── Content ────────────────────────────────── */
#content { position: relative; z-index: 10; }

.section {
  position: relative; width: 100%;
  min-height: 100vh;
  display: flex; align-items: center;
}

/* ── INTRO ──────────────────────────────────── */
.section-intro .section-inner {
  margin-left: 50%; max-width: 700px;
  padding: clamp(100px, 12vw, 160px) 48px clamp(80px, 10vw, 120px) 0;
  display: flex; flex-direction: column; gap: 32px;
}

/* ── QUOTE ──────────────────────────────────── */
.section-quote .section-inner {
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) 40px;
  display: flex; flex-direction: column; gap: 36px;
  align-items: center; text-align: center;
}

/* ── CONTENT + ILLU ─────────────────────────── */
.section-content .section-inner {
  display: flex; align-items: flex-start; gap: 34px;
  padding: clamp(100px, 12vw, 160px) clamp(40px, 8.33%, 160px);
  width: 100%;
}
.section-content .copy {
  flex: 0 0 694px;
  display: flex; flex-direction: column; gap: 28px;
}
.section-content .illu {
  flex: 0 0 397px;
  display: flex; align-items: flex-start;
  justify-content: center; padding-top: 50px;
}
.section-content .illu img { width: clamp(160px, 22vw, 255px); height: auto; }

/* ── ABOUT ──────────────────────────────────── */
.section-about .section-inner {
  display: flex; align-items: flex-start;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(100px, 12vw, 160px) clamp(40px, 8.33%, 160px);
  width: 100%;
}
.section-about .copy { flex: 0 0 694px; display: flex; flex-direction: column; gap: 24px; }
.section-about .about-img { flex: 0 0 438px; max-width: 438px; }
.section-about .about-img img { width: 100%; height: auto; display: block; box-shadow: 0 4px 32px rgba(0,0,0,0.18); }

/* ── CONTACT ────────────────────────────────── */
.section-contact {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.section-contact .section-inner {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(80px, 12vw, 140px) 40px clamp(100px, 14vw, 160px);
  gap: 48px; flex: 1;
}
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-details p, .contact-details a {
  font-family: var(--font-roboto);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.3; color: var(--color-text); text-decoration: none;
}
.contact-linkedin img { width: 72px; height: 72px; }

.site-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(24px, 4%, 48px) 32px; z-index: 10;
}
.site-footer p, .site-footer button, .site-footer a {
  font-family: var(--font-roboto); font-size: 16px;
  line-height: 1.3; color: var(--color-text);
  text-decoration: none; background: none; border: none; cursor: pointer; padding: 0;
}
.site-footer a:hover, .site-footer button:hover { opacity: 0.65; }

/* ── Type ───────────────────────────────────── */
.eyebrow {
  font-family: var(--font-dm);
  font-size: clamp(16px, 1.5vw, 24px); line-height: 0.8; color: var(--color-text);
}
.headline-xl {
  font-family: var(--font-noto); font-weight: 700;
  font-size: clamp(36px, 4.5vw, 64px); line-height: 1;
  color: var(--color-text); white-space: pre-wrap;
}
.headline-xl-dm {
  font-family: var(--font-dm); font-style: normal;
  font-size: clamp(36px, 4.5vw, 64px); line-height: 1;
  color: var(--color-text); white-space: pre-wrap;
}
.subheadline {
  font-family: var(--font-dm); font-style: normal;
  font-size: clamp(18px, 2vw, 32px); line-height: 1.3; color: var(--color-text);
}
.body-text {
  font-family: var(--font-roboto); font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; color: var(--color-text);
}
.body-bold {
  font-family: var(--font-roboto); font-weight: 700;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; color: var(--color-text);
}
.body-italic {
  font-family: var(--font-dm); font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; color: var(--color-text);
}
ul.leistungen { padding-left: 30px; display: flex; flex-direction: column; gap: 4px; }
ul.leistungen li {
  font-family: var(--font-roboto);
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; color: var(--color-text);
}
.quote-text {
  font-family: var(--font-dm);
  font-size: clamp(36px, 5.5vw, 80px); line-height: 1.1;
  font-style: normal; color: var(--color-text);
}
.quote-author {
  font-family: var(--font-roboto); font-weight: 300;
  font-size: clamp(18px, 2vw, 36px); font-style: normal; color: var(--color-text);
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-roboto); font-weight: 600;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; color: var(--color-text);
  text-decoration: none; cursor: pointer; background: none; border: none; padding: 0;
}
.text-link:hover { opacity: 0.65; }
.text-link svg { flex-shrink: 0; }
.praxis { display: flex; flex-direction: column; gap: 8px; }

/* ── Slide / Drawer panels ──────────────────── */
#slide-overlay, #impressum-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.25); opacity: 0; pointer-events: none;
  transition: opacity 500ms ease;
}
#slide-overlay.visible, #impressum-overlay.visible { opacity: 1; pointer-events: auto; }

#slide-panel, #impressum-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(820px, 92vw); background: var(--color-bg-blue);
  transform: translateX(100%);
  transition: transform 500ms cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
#slide-panel.open, #impressum-panel.open { transform: translateX(0); }
#impressum-panel { z-index: 162; }
#impressum-overlay { z-index: 161; }

#slide-panel-inner, #impressum-panel-inner {
  padding: clamp(80px, 10vw, 120px) clamp(32px, 6%, 64px) 80px;
  display: flex; flex-direction: column; gap: 32px;
}

.panel-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-roboto); font-weight: 600; font-size: 20px;
  color: var(--color-text); text-decoration: none;
  background: none; border: none; cursor: pointer; padding: 0;
}
.panel-back svg { transform: rotate(180deg); }
.panel-back:hover { opacity: 0.65; }

.panel-section { display: flex; flex-direction: column; gap: 16px; }
.panel-section-title {
  font-family: var(--font-dm); font-style: normal;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: var(--color-text);
}
.principles { display: flex; flex-direction: column; gap: 24px; }
.principle { display: flex; flex-direction: column; gap: 8px; }

.impressum-section { display: flex; flex-direction: column; gap: 10px; }
.impressum-section-title {
  font-family: var(--font-dm); font-style: normal;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.2; color: var(--color-text);
}
.impressum-text {
  font-family: var(--font-roboto); font-weight: 400;
  font-size: 16px; line-height: 1.5; color: var(--color-text); white-space: pre-line;
}

/* ── [data-depth] parallax ──────────────────── */
[data-depth] { will-change: transform; }

/* ── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #splash, #splash-logo-o, #site, #nav-logo-o,
  #slide-panel, #slide-overlay, #impressum-panel, #impressum-overlay,
  #lang-switch { transition: none; animation: none; }
  #site { opacity: 1; }
  #lang-switch { opacity: 1; transform: none; }
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  #nav { position: fixed; top: 0; left: 0; right: 0; padding: 16px; z-index: 100; }
  #lang-switch { top: 16px; right: 16px; }

  .section-intro .section-inner { margin-left: 0; padding: 100px 24px 60px; }

  .section-content .section-inner { flex-direction: column; padding: 100px 24px 60px; gap: 0; }
  .section-content .copy { flex: none; width: 100%; display: contents; }
  .section-content .copy .eyebrow    { order: 1; margin-bottom: 16px; }
  .section-content .copy .headline-xl,
  .section-content .copy .headline-xl-dm { order: 2; margin-bottom: 0; }
  .section-content .illu { order: 3; padding-top: 24px; padding-bottom: 16px; width: 100%; justify-content: center; flex: none; }
  .section-content .copy .subheadline { order: 4; margin-top: 16px; }
  .section-content .copy .body-text   { order: 5; margin-top: 16px; }
  .section-content .copy .panel-section { order: 6; margin-top: 16px; }
  .section-content .copy .praxis      { order: 7; margin-top: 16px; }
  .section-content .copy .text-link   { order: 8; margin-top: 16px; }
  .section-content .copy > div        { order: 9; margin-top: 16px; }

  .section-about .section-inner { flex-direction: column; padding: 100px 24px 60px; }
  .section-about .copy { flex: none; width: 100%; }
  .section-about .about-img { flex: none; width: 228px; max-width: 228px; align-self: flex-end; margin-top: 16px; }

  .section-contact { min-height: auto; }
  .section-contact .section-inner { padding: 80px 24px 60px; min-height: auto; }

  .site-footer {
    position: static !important;
    flex-direction: column !important;
    gap: 12px; align-items: center; text-align: center;
    padding: 24px 16px 32px; width: 100%;
  }
}
