/* ============================================================
   Oliver Nimz Photography — Global Styles
   ============================================================ */

/* Cormorant Garamond — lokal gehostet */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-normal-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-normal-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;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-italic-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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../assets/fonts/CormorantGaramond-italic-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;
}

:root {
  --black:  #0a0a0a;
  --white:  #ffffff;
  --warm:   #f5f0eb;
  --muted:  #888888;
  --accent: #c8a96e;
  --nav-h:  70px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-ui:    system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  /* Theme tokens — Light Mode (Default) */
  --t-bg:          #f7f4f0;
  --t-bg-alt:      #f0ece6;
  --t-bg-surface:  #ece8e2;
  --t-text:        #1a1a1a;
  --t-text-muted:  #6b6460;
  --t-border:      rgba(30,20,10,0.08);
  --t-border-mid:  rgba(30,20,10,0.13);
  --t-nav-bg:      rgba(247,244,240,0.93);
  --t-logo-filter: brightness(0);
  --t-lb-backdrop: rgba(240,236,230,0.90);
  --t-lb-card:     #f7f4f0;
  --t-lb-info:     #f0ece6;
  --t-scrollbar:    rgba(30,20,10,0.15);
  --t-nav-scrolled: #6b6460;
}

[data-theme="dark"] {
  --t-bg:          #0a0a0a;
  --t-bg-alt:      #0f0f0f;
  --t-bg-surface:  #111111;
  --t-text:        #ffffff;
  --t-text-muted:  #888888;
  --t-border:      rgba(255,255,255,0.06);
  --t-border-mid:  rgba(255,255,255,0.07);
  --t-nav-bg:      rgba(10,10,10,0.92);
  --t-logo-filter: brightness(0) invert(1);
  --t-lb-backdrop: rgba(0,0,0,0.88);
  --t-lb-card:     #0d0d0d;
  --t-lb-info:     #111111;
  --t-scrollbar:    rgba(255,255,255,0.15);
  --t-nav-scrolled: rgba(255,255,255,0.75);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a, button, [role="button"] { cursor: none; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--t-bg);
  color: var(--t-text);
  font-family: var(--font-serif);
  overflow-x: hidden;
  cursor: none;
  transition: background 0.35s ease, color 0.35s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out), opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor.expanded { transform: translate(-50%, -50%) scale(2); opacity: 0.5; }
.cursor-follower.expanded { width: 50px; height: 50px; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body, a, button, [role="button"] { cursor: auto; }
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s;
}

.site-header.scrolled {
  background: var(--t-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0a0a0a;
  opacity: 0.9;
  line-height: 1;
  transition: color 0.3s, opacity 0.3s;
}

.nav-logo-sep {
  margin: 0 4px;
  font-weight: 900;
  opacity: 1;
}

.nav-logo:hover .nav-logo-text { opacity: 1; }

.site-header.scrolled .nav-logo-text       { color: var(--t-nav-scrolled); }
.site-header.scrolled .nav-logo:hover .nav-logo-text { color: var(--t-text); }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a0a0a;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0a0a0a;
  transition: width 0.35s var(--ease-out), background 0.3s;
}

.nav-link:hover { color: #0a0a0a; }
.nav-link:hover::after { width: 100%; }

/* When nav bar is visible (scrolled) — switch to theme-aware colors */
.site-header.scrolled .nav-link       { color: var(--t-nav-scrolled); }
.site-header.scrolled .nav-link:hover { color: var(--t-text); }
.site-header.scrolled .nav-link::after { background: var(--t-nav-scrolled); }

/* ── Hamburger ──────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: #0a0a0a;
  transition: transform 0.35s var(--ease-out), opacity 0.3s, background 0.35s ease;
  transform-origin: center;
}

.site-header.scrolled .hamburger span { background: var(--t-nav-scrolled); }

/* Nav passt sich dem aktuellen Slideshow-Bild an (nur solange nicht gescrollt) */
.site-header:not(.scrolled).nav-on-dark .nav-link,
.site-header:not(.scrolled).nav-on-dark .nav-link:hover { color: #ffffff; }
.site-header:not(.scrolled).nav-on-dark .nav-link::after { background: #ffffff; }
.site-header:not(.scrolled).nav-on-dark .nav-logo-text { color: #ffffff; }
.site-header:not(.scrolled).nav-on-dark .theme-toggle { color: #ffffff; }
.site-header:not(.scrolled).nav-on-dark .hamburger span { background: #ffffff; }

/* Transition-Dauer synchron zum Crossfade während Bildwechsel */
.site-header.nav-theme-active:not(.scrolled) .nav-logo-text {
  transition: color var(--nav-theme-t, 2s) ease-in-out, opacity 0.3s;
}
.site-header.nav-theme-active:not(.scrolled) .nav-link,
.site-header.nav-theme-active:not(.scrolled) .nav-link:hover {
  transition: color var(--nav-theme-t, 2s) ease-in-out;
}
.site-header.nav-theme-active:not(.scrolled) .nav-link::after {
  transition: background var(--nav-theme-t, 2s) ease-in-out, width 0.35s var(--ease-out);
}
.site-header.nav-theme-active:not(.scrolled) .theme-toggle {
  transition: color var(--nav-theme-t, 2s) ease-in-out, opacity 0.3s;
}
.site-header.nav-theme-active:not(.scrolled) .hamburger span {
  transition: background var(--nav-theme-t, 2s) ease-in-out, transform 0.35s var(--ease-out), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--t-bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--t-text);
  font-size: 24px;
  cursor: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.mobile-menu-close:hover { opacity: 1; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--t-text-muted);
  transition: color 0.3s;
}

.mobile-nav-link:hover { color: var(--t-text); }

/* ── Animations — Scroll Reveal ─────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right,
.fade-up {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal         { transform: translateY(40px); }
.reveal-left    { transform: translateX(-60px); }
.reveal-right   { transform: translateX(60px); }
.fade-up        { transform: translateY(30px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.fade-up.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays via data-delay */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }

/* Hero animations on load */
.fade-up        { animation: none; } /* overridden by JS class */
.delay-1        { transition-delay: 0.2s; }
.delay-2        { transition-delay: 0.4s; }
.delay-3        { transition-delay: 0.8s; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--kv-crossfade, 1s) ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-hint span {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.7); }
}

/* ── Section Shared ─────────────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-label--light { color: rgba(255,255,255,0.5); }

.section-header {
  text-align: center;
  padding: 0 40px 60px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--t-text);
}

/* ── Portfolio ──────────────────────────────────────────────── */
.portfolio {
  padding: 120px 0 80px;
  background: var(--t-bg);
}

.portfolio-grid {
  columns: 3;
  column-gap: 3px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: var(--t-bg-surface);
  break-inside: avoid;
  margin-bottom: 3px;
  width: 100%;
}

.portfolio-link {
  display: block;
  width: 100%;
}

.portfolio-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out);
}

.portfolio-overlay--kein-bg { background: transparent; }

.portfolio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35em;
}

.portfolio-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

.portfolio-sub {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}

.portfolio-item:hover .portfolio-img    { transform: scale(1.05); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-grid-thumbs {
  position: absolute;
  display: flex;
  /* bottom, right, gap per JS aus gridVorschau gesetzt */
}

.portfolio-grid-thumb {
  display: none;
  flex-shrink: 0;
  object-fit: cover;
}

.portfolio-grid-thumb.loaded { display: block; }

/* ── About ──────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--warm) !important;
  color: var(--black) !important;
  overflow: hidden;
}

.about-portrait {
  position: relative;
  overflow: hidden;
}

/* DOODLE_CSS_START */
#doodle-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  touch-action: none;
}
.about-doodle-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: italic;
  font-weight: bold;
  cursor: none;
  transition: opacity 0.2s;
}
.about-doodle-link:hover { opacity: 0.7; }
#doodle-palette {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doodle-color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  padding: 0;
  background-color: transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.doodle-color-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 5px rgba(0, 0, 0, 0.45);
  transform: scale(1.2);
}
.doodle-clear-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  padding: 0;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1;
  margin-top: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.doodle-clear-btn:hover {
  background: rgba(180, 40, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.7);
}
/* DOODLE_CSS_END */

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 70px;
  max-width: 600px;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 30px;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--black);
  opacity: 0.3;
  margin-bottom: 30px;
}

.about-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.about-text--italic {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.about-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-meta-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-meta-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
}

/* ── Kunden ─────────────────────────────────────────────────── */
.kunden {
  padding: 120px 0;
  background: var(--t-bg-alt);
}

.kunden-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0 40px;
}

.kunden-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.kunden-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.kunden-item:hover .kunden-logo { transform: scale(1.08); }

/* ── Kontakt ────────────────────────────────────────────────── */
.kontakt {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff !important;
}

.kontakt-bg {
  position: absolute;
  inset: 0;
}

.kontakt-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kontakt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.kontakt-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 40px;
  max-width: 600px;
}

.kontakt-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 20px;
}

.kontakt-tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 50px;
}

.kontakt-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 44px 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: backdrop-filter;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.kontakt-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kontakt-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.kontakt-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s;
}

a.kontakt-value:hover { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--t-bg);
  border-top: 1px solid var(--t-border-mid);
  padding: 30px 40px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--t-text-muted);
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--t-text-muted);
  opacity: 0.6;
  transition: color 0.3s, opacity 0.3s;
}

.footer-link:hover { color: var(--t-text); opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .kunden-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 0 30px 60px; }
  .hero-scroll-hint { right: 30px; bottom: 25px; }

  .portfolio-grid { columns: 2; }

  .about {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-portrait {
    aspect-ratio: 1;
    width: 100%;
  }

  .about-portrait .about-img { object-position: center 42%; }

  .about-content {
    padding: 60px 30px;
    max-width: 100%;
  }

  .kontakt-card { padding: 30px 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 740px) {
  .kunden-grid { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
}

@media (max-width: 580px) {
  .nav { padding: 0 20px; }

  .hero-title { font-size: clamp(2.8rem, 14vw, 5rem); }

  .portfolio { padding: 80px 0 40px; }
  .portfolio-grid { column-gap: 2px; }
  .portfolio-item { margin-bottom: 2px; }

  .section-header { padding: 0 20px 40px; }

  .portfolio { padding-top: 80px; }

  .kunden-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 6px; }

  .kontakt-content { padding: 40px 20px; }

  .site-footer { padding: 24px 20px; }
}

/* ── Theme Toggle ───────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: none;
  color: #0a0a0a;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.35s ease;
  flex-shrink: 0;
}

.site-header.scrolled .theme-toggle { color: var(--t-nav-scrolled); }

.theme-toggle:hover { opacity: 1; }

.theme-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Light mode: show moon */
.theme-icon--sun  { display: none; }
.theme-icon--moon { display: block; }

/* Dark mode: show sun */
[data-theme="dark"] .theme-icon--sun  { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }
