/* ═══════════════════════════════════════════════
   BASE — Reset, Globals, Typography, Layout
═══════════════════════════════════════════════ */

/* ─── Inter — lokal gehostet ─── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; background: #fff; scroll-behavior: smooth; }
body { margin: 0; padding: 0; text-transform: lowercase; background: #fff; color: #050203; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* ─── Section label ─── */
.section-label {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #bbb;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Section base ─── */
.stack-section {
  position: relative;
  background: #fff;
}

/* ─── Dark mode ─── */
body.dark {
  background: #141414;
  color: #ededeb;
}
html.dark { background: #141414; }
body.dark ::selection { background: rgba(255,255,255,0.1); }
body.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* Header */
body.dark #site-header { background: #141414; }
body.dark #site-header.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
body.dark #mobile-menu { background: #141414 !important; }
body.dark .mobile-nav-link { color: #ededeb !important; border-bottom-color: rgba(255,255,255,0.06) !important; }
body.dark #site-header a img { filter: invert(1); }
#theme-toggle { transition: background 0.25s, color 0.25s, border-color 0.25s; box-shadow: 3px 3px 0 0 #2c502c; }
#theme-toggle:hover { background: #2c502c !important; border-color: #2c502c !important; color: #fff !important; }
body.dark #theme-toggle { background: transparent !important; border-color: #f1add4 !important; color: #f1add4 !important; box-shadow: 3px 3px 0 0 #f1add4 !important; }
body.dark #theme-toggle:hover { background: #f1add4 !important; border-color: #f1add4 !important; color: #050203 !important; }
body.dark .btn-outline { background: transparent !important; border-color: #f1add4 !important; color: #f1add4 !important; box-shadow: 3px 3px 0 0 #f1add4 !important; }
body.dark .btn-outline:hover { background: #f1add4 !important; color: #050203 !important; border-color: #f1add4 !important; }
body.dark #b1, body.dark #b2 { background: #ededeb !important; }


/* Illustration dark mode */
body.dark #site-illu { filter: brightness(0) saturate(100%) invert(79%) sepia(22%) saturate(500%) hue-rotate(290deg) brightness(105%); }

/* Logo dark mode — grün → rosa */
/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #2c502c;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(8px);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: #1e3a1e; }
body.dark #back-to-top { background: #f1add4; color: #050203; }
body.dark #back-to-top:hover { background: #e898c4; }

/* Logo color via currentColor */
.site-logo-svg { color: #2c502c; }
body.dark .site-logo-svg { color: #f1add4; }

.hero-overlay-text { color: #2c502c; }
body.dark .hero-overlay-text { color: #f1add4 !important; }

/* Sections & backgrounds */
body.dark .stack-section { background: #141414; }
body.dark #hero { background: #141414; }
body.dark #work { background: #141414 !important; }
body.dark .page-section { background: #141414 !important; }
body.dark footer { background: #141414 !important; border-top-color: rgba(255,255,255,0.08) !important; }

/* Colored sections → all dark in dark mode */
body.dark [style*="background:#fff"] { background: #141414 !important; }
body.dark [style*="background:#faf9f5"] { background: #141414 !important; }
body.dark [style*="background:#f9e4f0"] { background: #141414 !important; }
body.dark [style*="background:#e4ede4"] { background: #141414 !important; }
body.dark [style*="background:#f0ede8"] { background: #141414 !important; }

/* Leistungen-Karten: background → dunkelgrün im Dark Mode */
body.dark [style*="background:#fff"][style*="border:2px solid #2c502c"] { background: #2c502c !important; }

/* Leistungen-Karten & Projekt-Karten: grün → rosa im Dark Mode */
body.dark [style*="box-shadow:10px 10px 0 0 #2c502c"] { box-shadow: 5px 5px 0 0 #f1add4 !important; }
body.dark [style*="box-shadow:5px 5px 0 0 #2c502c"] { box-shadow: 5px 5px 0 0 #f1add4 !important; }
body.dark [style*="border:2px solid #2c502c"] { border-color: #f1add4 !important; }
body.dark .work-card { box-shadow: 5px 5px 0 0 #f1add4 !important; border: 2px solid #f1add4 !important; }

/* Illustration: grün → rosa im Dark Mode */
body.dark .illu-svg { filter: brightness(0) saturate(100%) invert(79%) sepia(20%) saturate(700%) hue-rotate(278deg) brightness(104%); }

/* du?-Tile: hellgrün auch im Dark Mode */
body.dark .team-cta-tile { background: #2c502c !important; }
body.dark .team-cta-tile p { color: #f1add4 !important; }

/* Kunden-Logos: schwarz → rosa im Dark Mode */
body.dark .kunden-section img { filter: brightness(0) saturate(100%) invert(79%) sepia(20%) saturate(700%) hue-rotate(278deg) brightness(104%); }
body.dark .kunden-section span { color: #f1add4 !important; }

/* Founder tags */
body.dark .founder-tag { border-color: #f1add4 !important; color: #f1add4 !important; }

/* Typography */
body.dark h1 { color: #f1add4 !important; }
body.dark h2 { color: #f1add4 !important; }

/* Leistungen-Headlines: grün → rosa im Dark Mode */
body.dark .hero-roles { color: #f1add4 !important; }
body.dark .page-section h2 { color: #f1add4 !important; }
body.dark .hero-name { color: #555; }
body.dark .section-label { color: #555; }
body.dark [style*="color:#050203"] { color: #ededeb !important; }

/* Preserve section colors in dark mode */
body.dark [style*="color:#c4849a"] { color: #c4849a !important; }
body.dark [style*="color:#7a9ab8"] { color: #7a9ab8 !important; }
body.dark [style*="color:#72a89a"] { color: #72a89a !important; }
body.dark [style*="color:#9a8ab8"] { color: #9a8ab8 !important; }

/* Borders */
body.dark [style*="border-top:1px solid rgba(0,0,0,0.08)"] { border-top-color: rgba(255,255,255,0.08) !important; }
body.dark [style*="border-top:1px solid rgba(0,0,0,0.07)"] { border-top-color: rgba(255,255,255,0.07) !important; }
body.dark [style*="border-right:1px solid rgba(0,0,0,0.08)"] { border-right-color: rgba(255,255,255,0.08) !important; }
body.dark [style*="border:1px solid #050203"] { border-color: rgba(255,255,255,0.2) !important; }

/* Leistungen-Kacheln dark mode: Rahmen + Überschrift rosa */
body.dark [style*="border:2px solid #050203"] { border-color: #f1add4 !important; }
body.dark [style*="color:#2c502c; margin:0 0 14px 0"] { color: #f1add4 !important; }

/* Buttons */
body.dark .btn-primary { background: transparent !important; color: #f1add4 !important; border-color: #f1add4 !important; box-shadow: 3px 3px 0 0 #f1add4 !important; transition: background 0.25s, color 0.25s, border-color 0.25s; }
body.dark .btn-primary:hover { background: #f1add4 !important; color: #050203 !important; border-color: #f1add4 !important; }

/* Nav */
body.dark .nav-link { color: #f1add4; }
body.dark .nav-link:hover { color: #f1add4; }
body.dark .nav-link::after { background: #2c502c !important; }

/* Cursor */
body.dark #cursor-dot { background: #f1add4; }
body.dark #cursor-ring { border-color: rgba(241,173,212,0.4); }

/* Breadcrumb */
body.dark .breadcrumb-link { color: #555 !important; }
body.dark .breadcrumb-link:hover { color: #ededeb !important; }

/* Hover overrides for inline JS handlers */
body.dark footer a:hover { color: #ededeb !important; }
body.dark #contact a:hover { color: #ededeb !important; }

/* CTA cloud box — dark mode */
body.dark .cta-cloud-box { background: #1a1a1a !important; border-color: rgba(255,255,255,0.15) !important; }
body.dark .cta-cloud-box h2 { color: #f1add4 !important; }
