/* ═══════════════════════════════════════════════
   FONTS
   ═══════════════════════════════════════════════ */
@font-face { font-family: 'Eudoxus Sans'; src: url('../fonts/eudoxus-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Eudoxus Sans'; src: url('../fonts/eudoxus-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Eudoxus Sans'; src: url('../fonts/eudoxus-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* ═══════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════ */
:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --glass: rgba(20, 20, 20, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.1);
  --ink: #e8e6e1;
  --ink-dim: #8a8880;
  --ink-faint: #4a4944;
  --accent: #c8a96e;
  --accent-soft: rgba(200, 169, 110, 0.1);
  --mentamap: #c4773a;
  --mentamap-soft: rgba(196, 119, 58, 0.1);
  --pima: #089488;
  --pima-soft: rgba(8, 148, 136, 0.1);
  --pesi: #c47a2a;
  --pesi-soft: rgba(196, 122, 42, 0.1);
  --mind: #84975a;
  --mind-soft: rgba(132, 151, 90, 0.08);
  --vita: #5e88a0;
  --vita-soft: rgba(94, 136, 160, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --sans: 'Eudoxus Sans', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --pad: clamp(24px, 6vw, 80px);
  --max-w: 1080px;
  --blur: blur(28px) saturate(1.5);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }
img { display: block; max-width: 100%; }

/* ── Scroll reveal ── */
[data-r] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
  transition-delay: .04s;
}
[data-r].v { opacity: 1; transform: none; }
[data-r="1"] { transition-delay: .10s; }
[data-r="2"] { transition-delay: .18s; }
[data-r="3"] { transition-delay: .26s; }
[data-r="4"] { transition-delay: .34s; }

/* ── Shared glass panel ── */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
}

/* ═══════════════════════════════════════════════
   LOGOS
   ═══════════════════════════════════════════════ */
.hero-logo {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.brand-logo {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}

.prod-logo {
  height: 26px;
  width: auto;
  margin-bottom: 12px;
  display: block;
}

/* ═══════════════════════════════════════════════
   NAV — floating blur pill
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
  border-radius: 100px;
}
.nav-name {
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink); white-space: nowrap;
}
.nav-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-faint); flex-shrink: 0;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 11px; font-weight: 500;
  color: var(--ink-dim); letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 82vh; min-height: 82dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(56px, 10vh, 110px);
  justify-content: flex-end;
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
}

/* dot */
.hero::before {
  content: ''; position: absolute;
  top: 18%; right: 5%;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #f3f3f3;
  pointer-events: none;
}

.hero-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  max-width: 860px;
}
.hero-title .it {
  color: var(--ink-faint);
}

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 52px; padding-top: 28px;
  border-top: 1px solid var(--ink-faint);
  gap: 40px;
}
.hero-desc {
  font-size: 15.5px; line-height: 1.8;
  color: var(--ink-dim);
  max-width: 430px;
}
.hero-meta { display: flex; gap: 36px; flex-shrink: 0; }
.hero-meta-item { text-align: right; }
.hero-meta-val { font-size: 13px; font-weight: 700; color: var(--ink); }
.hero-meta-lbl { font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* ═══════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════ */
.sec {
  max-width: var(--max-w); margin: 0 auto;
  padding: 64px var(--pad) 0;
}
.sec-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
  display: flex; align-items: center; gap: 12px;
}
.sec-tag::before {
  content: ''; width: 20px; height: 1px; background: var(--accent);
}

/* ═══════════════════════════════════════════════
   01 — WEBDESIGN
   ═══════════════════════════════════════════════ */
.wd-statement {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 700px;
  margin-bottom: 56px;
}
.wd-statement .dim { color: var(--ink-dim); font-weight: 400; }

.wd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.wd-card {
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s;
}
.wd-card:hover { border-color: var(--glass-border-hover); }

.wd-card-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.wd-card p, .wd-list li {
  font-size: 15px; line-height: 1.85; color: var(--ink-dim);
}
.wd-list { list-style: none; }
.wd-list li {
  padding-left: 20px; position: relative; margin-bottom: 5px;
}
.wd-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: 12px;
}
.wd-list-download { margin-top: 10px; border-top: 1px solid var(--glass-border); padding-top: 10px; }
.wd-list-download li::before { content: '↓'; }
.wd-list-download a { color: inherit; text-decoration: none; }
.wd-list-download a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   02 — BRANDS
   ═══════════════════════════════════════════════ */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.brand {
  border-radius: var(--radius);
  padding: 36px;
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.brand:hover { transform: translateY(-2px); }

.brand.mind-b {
  background: linear-gradient(150deg, rgba(132,151,90,0.06) 0%, var(--glass) 50%);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.brand.mind-b:hover { border-color: rgba(132,151,90,0.18); }

.brand.vita-b {
  background: linear-gradient(150deg, rgba(94,136,160,0.06) 0%, var(--glass) 50%);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.brand.vita-b:hover { border-color: rgba(94,136,160,0.18); }

.brand-type {
  font-size: 9px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 20px;
}
.brand.mind-b .brand-type { color: var(--mind); }
.brand.vita-b .brand-type { color: var(--vita); }

.brand-name {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 10px;
}
.brand-desc {
  font-size: 14px; line-height: 1.75; color: var(--ink-dim);
  margin-bottom: 24px;
}
.brand-url {
  font-size: 12px; font-weight: 500; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.brand-url:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════
   03 — PRODUCTS (masonry)
   ═══════════════════════════════════════════════ */
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.prod-featured {
  grid-row: span 2;
  border-radius: var(--radius);
  padding: 40px;
  display: flex; flex-direction: column;
  transition: border-color .3s;
}
.prod-featured:hover { border-color: rgba(196,119,58,0.2); }

.prod-sm {
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .3s;
}
.prod-sm:hover { border-color: var(--glass-border-hover); }

.prod-badge {
  font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  display: inline-block;
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.prod-badge.ai   { background: var(--mentamap-soft); color: var(--mentamap); }
.prod-badge.pima { background: var(--pima-soft);     color: var(--pima); }
.prod-badge.pesi { background: var(--pesi-soft);     color: var(--pesi); }

.prod-name {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 12px;
}
.prod-sm .prod-name { font-size: 17px; }

.prod-desc {
  font-size: 14px; line-height: 1.8; color: var(--ink-dim);
  margin-bottom: 20px;
}

.prod-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.prod-tag {
  font-size: 9px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface-2);
  padding: 4px 9px;
  border-radius: 4px;
}

.prod-penta {
  width: 180px;
  margin: 20px auto 4px;
  overflow: visible;
}

.prod-url {
  font-size: 12px; font-weight: 500; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
  margin-top: auto;
}
.prod-url:hover { color: var(--ink); }

.prod-wip {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: auto;
}

.prod-extra {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 10px;
}
.prod-extra-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.prod-extra a {
  font-size: 13px; color: var(--ink-dim); transition: color .2s;
}
.prod-extra a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════
   04 — REFERENZEN
   ═══════════════════════════════════════════════ */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.ref-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s;
  cursor: pointer;
}
.ref-card:hover { transform: translateY(-3px); border-color: var(--glass-border-hover); }

.ref-vis {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.ref-vis-ls { background: #111010; }
.ref-vis-ls span {
  font-size: 30px; font-weight: 700;
  color: #c0392b; letter-spacing: -0.02em;
}
.ref-vis-gs {
  background: linear-gradient(145deg, #f0ebe2 0%, #e4ddd0 100%);
}
.ref-vis-gs span {
  font-family: var(--serif);
  font-size: 24px; font-style: italic;
  color: #b85c38;
}
.ref-vis-li {
  background: linear-gradient(145deg, #1e1210 0%, #120b09 100%);
}
.ref-vis-li span {
  font-family: var(--serif);
  font-size: 28px; font-style: italic;
  color: #ff7148; letter-spacing: 0.04em;
}

.ref-body {
  padding: 24px 28px;
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.ref-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 5px;
}
.ref-meta { font-size: 12px; color: var(--ink-faint); margin-bottom: 10px; }
.ref-url {
  font-size: 11px; font-weight: 500; color: var(--ink-faint);
  transition: color .2s;
}
.ref-url:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════
   05 — ÜBER MICH / KONTAKT
   ═══════════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}

.about-text {
  font-size: 16px; line-height: 1.9; color: var(--ink-dim);
}
.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--ink); font-weight: 500; }

.about-contact {
  padding: 36px;
  border-radius: var(--radius);
}
.contact-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.contact-item {
  font-size: 14px; color: var(--ink-dim); margin-bottom: 12px;
}
.contact-item a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: border-color .25s;
}
.contact-item a:hover { border-color: var(--accent); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  max-width: var(--max-w); margin: 0 auto;
  margin-top: 120px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 11px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 11px; color: var(--ink-faint); transition: color .2s;
}
.footer-links a:hover { color: var(--ink-dim); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-meta-item { text-align: left; }
  .wd-grid, .brands, .refs { grid-template-columns: 1fr; }
  .prods { grid-template-columns: 1fr; }
  .prod-featured { grid-row: auto; }
  .about { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .nav { padding: 10px 20px; gap: 16px; top: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; }
  .hero { min-height: 92vh; }
  .hero-title { font-size: clamp(34px, 12vw, 48px); }
  .hero-label { font-size: 10px; }
  .sec { padding-top: 72px; }
  .wd-statement { font-size: clamp(20px, 5.5vw, 28px); margin-bottom: 36px; }
  .brand { padding: 28px; }
  .brand-name { font-size: 22px; }
  .prod-featured { padding: 28px; }
  .prod-name { font-size: 18px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; margin-top: 80px; }
}

/* ═══════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ═══════════════════════════════════════════════ */
.legal-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--pad) 100px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page ul {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.legal-page ul {
  padding-left: 20px;
  list-style: none;
}

.legal-page ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.legal-page ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.legal-page a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: border-color .2s;
}

.legal-page a:hover { border-color: var(--accent); }

/* ═══════════════════════════════════════════════
   ERROR PAGE (404)
   ═══════════════════════════════════════════════ */
.error-page {
  min-height: 80dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 var(--pad);
}

.error-page h1 {
  font-size: clamp(80px, 20vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-faint);
  line-height: 1;
}

.error-page p {
  font-size: 15px;
  color: var(--ink-dim);
  margin-block: 20px 32px;
}

.error-page a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: border-color .2s;
}

.error-page a:hover { border-color: var(--accent); }

/* ═══════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}