/* ========================================= */
/* CORE VARIABLES — DEEP CANVAS PALETTE      */
/* ========================================= */
:root {
  /* Haupttextfarbe (Dark Mode) */
  --text-primary: #EAE6DF;
  /* Sekundäre Textfarbe (etwas gedimmter) */
  --text-secondary: #8F8A82;
  /* Farbe für unwichtige Texte/Platzhalter */
  --text-muted: #5C5852;
  /* Haupt-Akzentfarbe (Champagner/Gold) */
  --accent-bronze: #C2A373;
  /* Transparente Variante der Akzentfarbe */
  --accent-bronze-soft: rgba(194, 163, 115, 0.15);
  /* Warmer Farbton für Highlights */
  --accent-warm: #D8BF96;
  /* Farbe für dezente Rahmen/Linien */
  --border-soft: rgba(234, 230, 223, 0.05);
  /* Farbe für Rahmen bei Hover-Effekten */
  --border-hover: rgba(194, 163, 115, 0.2);
  /* Schriftart für Überschriften */
  --font-display: "Cormorant Garamond", "Georgia", serif;
  /* Schriftart für Fließtext */
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Kurven für weiche Animationen */
  --ease-smooth: cubic-bezier(0.45, 0, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Dauer der Animationen (Lang, Mittel, Kurz) */
  --t-slow: 1.4s var(--ease-smooth);
  --t-med: 0.8s var(--ease-smooth);
  --t-fast: 0.4s var(--ease-smooth);
  /* SVG Signatur Farbe für den dunklen Modus */
  --signature-color: #EAE6DF;
  /* DAS DUNKLE KUNSTWERK (Hintergrund-Farbverlauf) */
  background: #0B0A0A;
  /* Solid dark color as requested */
  --bg-burgermenu: rgba(11, 10, 10, 0.98);
  --text-burgermenu: rgba(234, 230, 223, 0.85);
}

/* ============================================ */
/* Hellmodus                                    */
/* ============================================ */
body.light-mode {
  /*WICHTIG*/
  /* Haupttextfarbe für den Hellmodus */
  --text-primary: #151413;
  /* Sekundäre Textfarbe im Hellmodus */
  --text-secondary: #5C5852;
  /* Farbe für unwichtigen Text im Hellmodus */
  --text-muted: #9A948A;
  /* Hintergrundfarbe für Container im Hellmodus */
  --bg-mid: rgba(255, 255, 255, 0.4);

  /* VERKNÜPFUNG FÜR DEIN MENÜ (EXAKT DIE NAMEN VON UNTEN) */
  --bg-menu-dynamic: rgba(245, 243, 239, 0.95);
  --text-menu-dynamic: #151413;

  /* Rahmenfarbe im Hellmodus */
  --border-soft: rgba(21, 20, 19, 0.08);
  --border-hover: rgba(163, 131, 80, 0.25);

  /* Akzente für den Hellmodus leicht abdunkeln für Kontrast */
  --accent-bronze: #A38350;
  --accent-bronze-soft: rgba(163, 131, 80, 0.15);

  /* SVG Signatur Farbe für den hellen Modus */
  --signature-color: #151413;
  /* Solid Museum Paper Background */
  background: #F5F3EF;
  color: var(--text-primary);

  /* UNFEHLBARER SCHRIFT-FIX: Zwingt die Links im geöffneten Menü auf dein dunkles Anthrazit */
  .main-nav .nav-link {
    color: #151413 !important;
    opacity: 1 !important;
  }

  /* Behält den edlen Gold-/Bronzeton beim Hovern im Hellmodus */
  .main-nav .nav-link:hover {
    color: var(--accent-warm) !important;
  }
}

/* Animationseinstellungen (Bewegung des Hintergrunds) */
@keyframes liquidArt {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ========================================= */
/* FIX: HÄSSLICHEN KASTEN IM HELLMODUS LÖSCHEN */
/* ========================================= */
body.light-mode .main-header,
body.light-mode .view-section {
  /* Entfernt störende Rahmen */
  border: none !important;
  box-shadow: none !important;
}

/* Header-Korrektur für Hellmodus (Milchglas) */
body.light-mode .main-header {
  background: rgba(245, 243, 239, 0.65) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* ============================================ */
/* GSAP FARBEXPLOSIONS-ELEMENT (NATURAL RIPPLE) */
/* ============================================ */
.art-ripple {
  top: 0;
  left: 0;
  position: fixed;
  /* Farbe und Verlauf des Ripple-Effekts */
  background: rgba(194, 163, 115, 0.25); /* Harmonisch warm (Bronze-Ton) */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  will-change: transform, width, height, opacity;
}

/* ========================================= */
/* BASE STYLES                               */
/* ========================================= */

/* Reset aller Elemente: Entfernt Standardabstände und sorgt für einheitliche Schriftglättung */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grundeinstellungen für das gesamte Dokument */
html {
  scroll-behavior: smooth;
  /* Sanftes Scrollen */
  background-color: transparent;
  color: var(--text-primary);
  /* Nutzt die Hauptfarbe aus deinen Variablen */
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Einstellungen für den Body (Hauptbereich) */
body {
  font-family: var(--font-body);
  /* Nutzt die Schriftart aus deinen Variablen */
  min-height: 100vh;
  line-height: 1.8;
  /* Zeilenabstand (leicht luftiger für Premium-Look) */
  font-weight: 300;
  font-size: 16px;
  /* slightly larger for readability */
  color: var(--text-primary);
  /* Haupt-Textfarbe */
  background: transparent;
  transition: color 0.5s ease;
  /* Weicher Farbwechsel bei Änderungen */
  isolation: isolate;
  /* Erzeugt einen isolierten Kontext (wichtig für Ebenen) */
}

/* Farbe, die erscheint, wenn du Text mit der Maus markierst */
::selection {
  background: rgba(203, 188, 207, 0.25);
  /* Hier kannst du die Markierungsfarbe ändern */
  color: var(--text-primary);
}

/* =================================================== */
/* DER FADEN - DYNAMISCHE PHYSIK-SIMULATION            */
/* =================================================== */

/* Container für die Physik-Animation */
#faden-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  /* Liegt hinter dem restlichen Inhalt */
  pointer-events: none;
}

/* ========================================= */
/* ANIMATIONS & REVEALS                      */
/* ========================================= */

/* Grundanimation beim Laden der Seite */
.page-reveal {
  animation: pageIn 2.2s var(--ease-out) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Animation für Elemente, die beim Scrollen erscheinen */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--t-slow),
    transform var(--t-slow);
}

/* Animation für einzelne Unter-Elemente */
.scroll-reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--t-med),
    transform var(--t-med);
}

/* Klasse, die zugewiesen wird, wenn ein Element sichtbar sein soll */
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Spezielle Animation für den Hero-Bereich (Startseite/Header) */
.hero-section {
  animation: heroReveal 1.2s var(--ease-out) both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================= */
/* HEADER & NAVIGATION (PLASTISCHES GLAS MIT LICHTREFLEKTION)*/
/* ========================================================= */
.main-header {
  width: 100%;
  padding: 5rem 5vw 4rem;
  /* Noch größer für das Desktop-Logo */
  transition: padding 0.4s ease, background 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000 !important;
  /* Muss über der .main-nav (9999) liegen, damit das X sichtbar bleibt */

  /* Glas-Effekt für Premium-Look */
  background: rgba(11, 10, 10, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;

  /* Rahmen (dezente Reflektionen) */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;

  /* Schatten für Tiefe */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;

  margin-top: -5px;
  transform: translateY(-5px);
}

.main-header.scrolled {
  padding: 1rem 5vw 1rem;
  background: rgba(11, 10, 10, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .main-header.scrolled {
  background: rgba(245, 243, 239, 0.65) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.main-header.scrolled .logo-link {
  max-width: 250px;
}

/* ============================================================ */
/* OPTIMIERTE GLASANPASSUNG: Harmonischer Look im Light Mode    */
/* ============================================================ */
.main-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  /* 1 Pixel Höhe für die feine Linie */
  height: 1px;

  /* Sehr weiches, halbtransparentes warmes Beige/Bronze */
  background: rgba(234, 230, 223, 0.08) !important;

  /* Der dunkle Schatten zur Trennung vom Hintergrund bleibt */
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.069) !important;
  /* Schatten für Tiefe */

  pointer-events: none;
  opacity: 1;
}

/* Deaktiviert Linie und Schatten im Light-Mode */
body.light-mode .main-header::after {
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}

.logo-wrapper {
  width: 100%;
  max-width: 1400px;
  /* Extrem vergrößert für Desktop */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.96;
  transition:
    opacity var(--t-fast),
    transform var(--t-fast);
  z-index: 1001;
}

.logo-wrapper:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.logo-link {
  width: 100%;
  max-width: 400px;
  /* Macht das Logo deutlich größer auf großen Bildschirmen */
  display: block;
  transition: max-width 0.4s ease;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.02);
  /* Logo leicht aufhellen */
}

/* ========================================= */
/* SVG SIGNATURE ADAPTION                    */
/* ========================================= */
/* Übergangseinstellungen für Farbänderungen */
.logo svg path,
.logo svg line,
.logo svg polyline,
.logo svg circle,
.logo svg rect {
  transition:
    stroke 0.5s var(--ease-smooth),
    fill 0.5s var(--ease-smooth);
}

/* Setzt die Kontur-Farbe auf die Signature-Variable */
.logo svg path,
.logo svg line,
.logo svg polyline {
  stroke: var(--signature-color);
}

/* Setzt die Füll-Farbe für Flächen auf die Signature-Variable */
.logo svg path:not([fill="none"]),
.logo svg circle,
.logo svg rect {
  fill: var(--signature-color);
}

.signature-line {
  fill: transparent;
  will-change: stroke-dashoffset, fill;
  transform-origin: center;
}

/* ========================================= */
/* MOBILE MENU TOGGLE                        */
/* ========================================= */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 5vw;
  top: 55%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 10000 !important;
}

/* ========================================================
 PREMIUM THEME TOGGLE (SVG ANIMATION)
 ======================================================== */
.mobile-header-theme-toggle {
  display: flex !important;
  position: absolute !important;
  right: 5vw !important;
  top: 55% !important;
  transform: translateY(-50%) !important;
  z-index: 1001 !important;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  color: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
  padding: 5px;
}

.mobile-header-theme-toggle:hover {
  transform: translateY(-50%) scale(1.1) !important;
  color: var(--text-primary);
}

.theme-svg {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.moon-icon-path {
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.sun-icon-group {
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* ========================================================
 LIGHT MODE: THEME TOGGLE
 ======================================================== */
body.light-mode .mobile-header-theme-toggle {
  color: #151413 !important;
}

body.light-mode .moon-icon-path {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

body.light-mode .sun-icon-group {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Die Striche des Burger-Menüs */
.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  /* Farbe der Striche (folgt der Variablen) */
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation beim Öffnen des Menüs */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Das mobile Navigationsmenü (Sidebar) */
.main-nav {
  position: fixed !important;
  top: 0 !important;
  left: -2px !important;
  right: auto !important;
  bottom: 0 !important;

  height: 100vh !important;
  height: 100dvh !important;

  width: 350px !important;
  max-width: 80vw !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;

  /* FIX: Das !important sitzt jetzt HINTER der Variable, damit der Browser sie erzwingt */
  background: var(--bg-menu-dynamic, rgba(11, 10, 10, 0.98)) !important;
  --text-menu-dynamic: rgba(234, 230, 223, 0.8);
  backdrop-filter: blur(15px) !important;
  box-shadow: none !important;
  gap: 1.8rem !important;
  padding: 2rem !important;
  margin: 0 !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  transform: translateX(-100%);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    /* Macht den Farbwechsel seidenweich */
    box-shadow 0.4s ease !important;
  z-index: 9999 !important;
}

/* ========================================================
   LINKS & BUTTONS (ULTRA FEIN)
   ======================================================== */
.nav-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
  width: 100% !important;
  text-align: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Schriftstile der Navigationspunkte */
.nav-link {
  display: inline-block !important;
  font-size: 0.8rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.3em !important;

  /* FIX: Auch hier erzwingen wir die Variable mit einem !important dahinter */
  color: var(--text-menu-dynamic, rgba(234, 230, 223, 0.8)) !important;

  text-decoration: none !important;
  text-transform: uppercase;
  transition: color 0.3s ease, letter-spacing 0.3s ease !important;
}

/* Einstellungen für den Theme-Toggle Button */
.theme-toggle {
  min-width: 120px !important;
  height: 32px !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.2em !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-width: 1px !important;
}

/* Hover-Effekte für Links */
.nav-link:hover {
  color: var(--accent-warm) !important;
  /* Farbe beim Drüberfahren */
  letter-spacing: 0.38em !important;
  /* Leichte Ausdehnung beim Hover */
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
  opacity: 1;
}

/* ======================================================================== */
/* WECHSEL-BUTTON: DEIN SCHÖNER ORIGINAL-FARBVERLAUF MIT SANFTEM 3D-EFFEKT  */
/* ======================================================================== */
.theme-toggle {
  min-width: 160px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  /* HINTERGRUND: Haupt-Farbverlauf des Buttons */
  background: var(--accent-bronze) !important;
  border: 1px solid transparent !important;
  /* TEXTFARBE: Button-Text */
  color: #0B0A0A !important;
  padding: 0 28px;
  border-radius: 40px;
  cursor: pointer;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  /* RAHMEN & SCHATTEN: Für den 3D-Effekt */
  border-top: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 10px 25px rgba(194, 163, 115, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 1.5rem;
}

.theme-toggle:hover {
  transform: scale(1.03) translateY(-2px);
  /* HOVER RAHMEN: Ändert sich bei Berührung */
  border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
  /* HOVER HINTERGRUND: Etwas heller/anderer Verlauf */
  background: var(--accent-warm) !important;
  box-shadow:
    0 15px 30px rgba(194, 163, 115, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(0, 0, 0, 0.05) !important;
}

/* HELLMODUS ANPASSUNG FÜR BUTTON */
body.light-mode .theme-toggle {
  /* HINTERGRUND: Hellere Optik für Light Mode */
  background: rgba(255, 255, 255, 0.4) !important;
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-right: 1px solid rgba(21, 20, 19, 0.15) !important;
  border-bottom: 1px solid rgba(21, 20, 19, 0.25) !important;
  box-shadow: 0 8px 20px rgba(21, 20, 19, 0.05) !important;
}

body.light-mode .theme-toggle:hover {
  background: rgba(21, 20, 19, 0.05) !important;
  border-top: 1px solid rgba(21, 20, 19, 0.2) !important;
  border-left: 1px solid rgba(21, 20, 19, 0.15) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: inset 0 6px 12px rgba(21, 20, 19, 0.08) !important;
}

/* ========================================= */
/* HERO & CONTENT GRID                       */
/* ========================================= */
.hero-spacer-section {
  padding: 2rem 0 0;
  display: flex;
  justify-content: center;
}

/* DEKORATIVE LINIE: Verlauf hier anpassbar */
.hero-line {
  height: 1px;
  width: 100px;
  background: rgba(194, 163, 115, 0.35);
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 20rem 0 3rem;
  /* Pushes content below the massive fixed header */
  z-index: 1;
  position: relative;
}

/* HERO LABEL: Farbe durch Variable definiert */
.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--accent-bronze);
  font-weight: 400;
  opacity: 0.8;
}

/* HERO TITEL: Farbe durch Variable definiert */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.25;
  max-width: 100%;
  font-style: italic;
}

/* HERO TEXT: Farbe durch Variable definiert */
.hero-copy {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  max-width: 480px;
  line-height: 1.9;
}

.content-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 5vw 8rem;
  display: grid;
  gap: 7rem;
  position: relative;
}

/* SECTION HEADERS */
.portfolio-section {
  margin-bottom: 0;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.section-title-group {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 22px;
  gap: 0.6rem;
}

/* TITEL-LINIE: Verlauf hier anpassbar */
.section-title-group::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: rgba(194, 163, 115, 0.25);
}

/* ========================================= */
/* SECTION TYPOGRAPHY                        */
/* ========================================= */
.section-number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  /* Farbe der kleinen Sektionsnummer */
  letter-spacing: 0.65em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--text-secondary);
  /* Farbe der Sektionsüberschrift */
}

.section-subtitle {
  font-family: var(--font-display);
  max-width: 550px;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  /* Farbe des Untertitels */
  letter-spacing: 0.06em;
  font-style: italic;
  line-height: 1.85;
}

/* ============================================================ */
/* PORTFOLIO TABS - SCHÖNE REITER / TABS NAVIGATION             */
/* ============================================================ */
.portfolio-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  justify-items: center;
}

.portfolio-tab-button {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  /* Standardfarbe der Reiter */
  font-weight: 400;
  padding: 12px 28px;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-label {
  display: block;
}

/* Hover-Effekt: Textfarbe und Rahmen */
.portfolio-tab-button:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: rgba(194, 163, 115, 0.03);
  /* Ganz subtiler Akzent */
}

/* Aktiver Zustand */
.portfolio-tab-button.active {
  color: var(--text-primary);
  border-color: var(--accent-bronze);
  background: var(--accent-bronze-soft);
}

.tab-indicator {
  display: none !important;
  /* Verstecke die Linie, da wir nun Pill-Buttons nutzen */
}


/* ========================================= */
/* VIEW CONTROLS (Grid/List)                 */
/* ========================================= */
.view-controls {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.view-toggle-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--text-primary);
  color: #0B0A0A;
  /* Dunkle Schrift für das helle Hintergrund-Label im Dark Mode */
  border-radius: 4px;
}

body.light-mode .view-toggle-btn.active {
  background: var(--text-primary);
  /* Tiefdunkel im Light Mode */
  color: #e8e4dc;
  /* Helle Schrift für tiefdunkles Label im Light Mode */
}

/* ========================================= */
/* GALLERY GRID                              */
/* ========================================= */
.gallery-grid {
  display: grid;
  /* Raster-Layout: Passt sich automatisch der Bildschirmbreite an, max 3 Spalten auf Desktop */
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  align-items: start;
  transition: all 0.5s var(--ease-out);
}

/* LISTENANSICHT (List View Modifikator) */
.gallery-grid.list-view {
  grid-template-columns: 1fr !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  justify-content: center !important;
}

.gallery-grid.list-view .gallery-item {
  width: 100% !important;
  margin-bottom: 3rem !important;
}

.gallery-grid .gallery-item {
  scroll-snap-align: center;
}

.gallery-item {
  position: relative;
  overflow: visible;
  /* changed from hidden for stack effect */
  cursor: pointer;
  height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 8px;
  /* Eckenradius der Bilder */
  width: 100%;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition:
    transform var(--t-slow),
    box-shadow var(--t-slow);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 25px 50px rgba(0, 0, 0, 0.18) !important;
  transition: box-shadow var(--t-slow);
}

.gallery-item img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform var(--t-slow) var(--ease-out);
  transform-origin: center center;
  will-change: transform;
}


/* FOLDER STACK EFFEKT (Mappen-Look) */
.gallery-item.folder-link::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2%;
  right: 2%;
  bottom: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  z-index: -1;
  transition: all var(--t-slow);
}

.gallery-item.folder-link::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 4%;
  right: 4%;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  z-index: -2;
  transition: all var(--t-slow);
}

/* Anpassung des Mappen-Looks im Hellmodus */
body.light-mode .gallery-item.folder-link::before {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .gallery-item.folder-link::after {
  background: rgba(0, 0, 0, 0.03);
}

/* Hover-Effekt: Box hebt sich ab */
.gallery-item:hover {
  transform: translateY(-10px);
}

.gallery-item:hover .image-container {
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.2),
    0 40px 80px rgba(0, 0, 0, 0.35) !important;
}

.gallery-item.folder-link:hover::before {
  top: -10px;
}

.gallery-item.folder-link:hover::after {
  top: -20px;
}

/* Hover-Effekt: Bild zoomt leicht */
.gallery-item:hover img {
  transform: scale(1.03);
  filter: none !important;
}

.gallery-item:hover .overlay {
  opacity: 1;
  /* Beim Hover evtl. etwas dunkler oder heller? */
  background: rgba(11, 10, 10, 0.7);
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

/* HOVER-OVERLAY: Hier wird das dunkle Fenster über dem Bild gesteuert */
.overlay {
  position: absolute;
  inset: 0;
  /* Standard-Verlauf */
  background: rgba(11, 10, 10, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  /* Für normale Bilder erst bei Hover sichtbar */
  transition: opacity 0.7s var(--ease-smooth), background 0.7s var(--ease-smooth);
  z-index: 2;
  padding: 2.5rem;
}

.overlay-content {
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.6s var(--ease-out);
}

/* SONDEREGELUNG: MAPPEN-LOOK (Kategorien) SIND IMMER SICHTBAR */
.folder-link .overlay {
  opacity: 1 !important;
}

.folder-link .overlay-content {
  transform: translateY(0) !important;
}

.folder-link:hover .overlay-content {
  transform: translateY(-4px) !important;
}

/* TEXTE IM OVERLAY */
.item-category {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.55em;
  color: var(--accent-bronze);
  /* Farbe der Kategorie */
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.item-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #e8e4dc !important;
  /* Immer helle Schrift, da das Overlay immer dunkel ist */
  font-style: italic;
}

/* ========================================= */
/* ABOUT ME (ÜBER MICH)                      */
/* ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 5rem;
  align-items: center;
  padding: 1rem 0;
}

.about-content {
  order: 2;
}

/* Einleitungs-Text (Lead) */
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--accent-warm);
  /* Farbe des Lead-Textes */
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* Fließtext im About-Bereich */
.about-content p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  /* Textfarbe */
  font-size: 1.05rem;
  line-height: 2.1;
  margin-bottom: 1.8rem;
  letter-spacing: 0.03em;
  text-align: justify;
}

/* Rahmen um das About-Bild */
.about-image-wrapper {
  order: 1;
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  /* Rahmenfarbe */
  box-shadow: 0 0 20px rgba(194, 163, 115, 0.1);
  /* Schatten */
  border-radius: 22px;
  overflow: hidden;
  line-height: 0;
}

.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.8s var(--ease-smooth);
}

/* ========================================= */
/* CONTACT FORM                              */
/* ========================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  /* Farbe der Label-Beschriftung */
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  /* Eingabefeld Hintergrundfarbe */
  border: 1px solid var(--border-soft);
  /* Rahmenfarbe der Eingabefelder */
  padding: 1.2rem;
  color: var(--text-primary);
  /* Textfarbe in den Feldern */
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 12px;
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
}

/* Zustand beim Anklicken des Feldes */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-warm);
  /* Rahmenfarbe beim Fokus */
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(216, 191, 150, 0.15);
  /* Leuchten beim Fokus */
}

/* SUBMIT BUTTON STYLING */
.submit-btn {
  align-self: center;
  background: transparent;
  color: var(--accent-warm);
  /* Button Textfarbe */
  border: 1px solid var(--accent-warm);
  /* Button Rahmenfarbe */
  padding: 1.2rem 3.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  border-radius: 40px;
  transition: all var(--t-fast);
  margin-top: 1rem;
}

.submit-btn:hover {
  background: var(--accent-warm);
  /* Farbe beim Hover */
  color: #010308;
  /* Textfarbe beim Hover */
  box-shadow: 0 0 25px rgba(216, 191, 150, 0.4);
  transform: translateY(-3px);
}

/* ANPASSUNGEN FÜR LIGHT MODE */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  /* Hintergrund im Light Mode */
  border-color: rgba(0, 0, 0, 0.15);
  /* Rahmenfarbe im Light Mode */
  color: var(--text-primary);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
}

/* ============================================ */
/* LIGHTBOX (MODAL)                             */
/* ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 11000 !important;
  inset: 0;
  background: rgba(8, 7, 7, 0.95);
  /* Overlay-Hintergrundfarbe (Abdunklung) */
  backdrop-filter: blur(8px);
  opacity: 0;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  opacity: 0;
  transform: scale(0.95);
}

/* BILDFENSTER IM MODAL */
.modal-content img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px; /* Minimaler, eleganter Radius (fast scharfkantig wie ein echter Print) */
  object-fit: contain;
  border: none !important; /* Kein störender Rahmen mehr */
  /* Ein eleganter, neutraler, dunkler Schatten anstelle des extremen Gold-Leuchtens */
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 40px 80px rgba(0, 0, 0, 0.4) !important;
}

/* SCHLIESSEN-BUTTON */
.close-modal {
  position: absolute;
  top: 40px;
  right: 5vw;
  color: rgba(234, 230, 223, 0.6); /* Helles Grau/Weiß, fixiert für den dunklen Hintergrund */
  font-size: 3.5rem; /* Leicht größer für bessere Bedienbarkeit */
  font-weight: 200; /* Dünner für mehr Eleganz */
  cursor: pointer;
  transition: all var(--t-fast);
  z-index: 2001;
  line-height: 1;
}

.close-modal:hover {
  color: #EAE6DF;
  transform: scale(1.1);
}

/* BILDBESCHRIFTUNG UNTEN */
#modal-caption {
  text-align: center;
  color: #EAE6DF; /* Fixiertes Weiß, da das Modal immer dunkel ist */
  margin-top: 1.8rem;
  font-family: var(--font-body); /* Modernere Schriftart für die Caption */
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* ========================================= */
/* FOOTER & VIEW MANAGEMENT                  */
/* ========================================= */
.view-section {
  display: none;
  opacity: 0;
}

.view-section.active {
  display: block;
  opacity: 1;
}


/* FOOTER STYLING */
.main-footer {
  text-align: center;
  padding: 4rem 2rem 5rem;
  position: relative;
  border-top: 1px solid var(--border-soft);
  /* Oberer Rahmen */
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1) !important;
  /* Schatten für Tiefe */
  z-index: 10;
}

/* GRADIENT-EFFEKT IM FOOTER */
.main-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Radiale Gradient-Farbe für den Footer-Hintergrund */
  background: transparent;
  pointer-events: none;
  z-index: -1;
}

/* ANPASSUNG FÜR LIGHT MODE */
body.light-mode .main-footer {
  box-shadow: 0 -15px 30px rgba(21, 20, 19, 0.05) !important;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* DEKORATIVE LINIE IM FOOTER */
.footer-line {
  height: 1px;
  width: 60px;
  background: rgba(194, 163, 115, 0.4);
}

.footer-credits {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-secondary);
  /* Textfarbe Credits */
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  /* Farbe Copyright */
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.legal-link {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color var(--t-fast);
}

.legal-link:hover {
  color: var(--text-primary);
}

.legal-dot {
  color: var(--text-muted);
  font-size: 0.65rem;
}

/* ========================================= */
/* LEGAL CONTENT STYLING (IMPRESSUM)         */
/* ========================================= */
.legal-content {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  text-align: left;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 400;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}

/* ========================================= */
/* GLÄTTUNGS-BLUR FÜR DEN ANIMIERTEN HINTERGRUND */
/* ========================================= */
.bg-blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Stärke des Blur-Effekts */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
}

#faden-canvas {
  z-index: 1;
}

.bg-container {
  position: fixed;
  top: -50px;
  left: -50px;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  z-index: -2;
  background: inherit;
  filter: blur(40px);
  /* Stärke der Hintergrund-Unschärfe */
}

/* ========================================= */
/* STARTBILDSCHIRM - EXTREM SCHÖNES DESIGN   */
/* ========================================= */
.landing-screen {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* HINTERGRUNDVERLAUF BEIM START */
  background: linear-gradient(135deg,
      #080707 0%,
      #0B0A0A 25%,
      #0E0D0C 50%,
      #0A0909 75%,
      #121110 100%);
  background-size: 400% 400%;
  animation: landingGradient 20s ease infinite;
  z-index: 20000 !important;
  /* Muss über dem Header liegen (10000) */
  box-shadow: inset 0 1px 30px rgba(11, 10, 10, 0.1);
  overflow: hidden;
}

@keyframes landingGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* GITTER-ANIMATION AUF DEM STARTBILDSCHIRM */
.landing-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Farben der Linien im Gitter-Hintergrund */
  background-image:
    linear-gradient(to bottom, rgba(194, 163, 115, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(194, 163, 115, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
  opacity: 0.5;
  animation: slideGrid 8s linear infinite;
}

/* ======================================================== */
/* FIX FÜR LANDING PAGE IM LIGHT-MODE                       */
/* ======================================================== */
body.light-mode .landing-screen {
  /* Ändere den Hintergrund auf ein helles Leinen/Weiß, passend zu deiner Seite */
  background: #F5F3EF !important;
  /* Falls du einen hellen Gradienten willst, nutze diesen hier: */
  /* background: linear-gradient(135deg, #F5F3EF 0%, #EAE6DF 100%) !important; */
}

/* Stelle sicher, dass die Logos und Buttons im Light Mode sichtbar sind */
body.light-mode .landing-logo {
  /* Hier kannst du ggf. einen Schatten hinzufügen, falls das Logo zu dunkel ist */
  filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0)) !important;
}

@keyframes slideGrid {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100px);
  }
}

/* ========================================= */
/* THE EDITORIAL LANDING EXPERIENCE          */
/* ========================================= */
.landing-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  width: 100%;
  padding: 0 5vw;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.landing-logo {
  width: 100%;
  max-width: 780px;
  position: relative;
  /* Schatten-Filter (hier wird das Leuchten gesteuert) */
  filter: drop-shadow(0px 0px 0px rgba(194, 163, 115, 0)) drop-shadow(0px 0px 0px rgba(194, 163, 115, 0));
  transform: translateZ(0);
}

/* Keyframes für das Logo-Leuchten */
@keyframes logoGlow {

  0%,
  30% {
    /* Unsichtbarer Schatten für Browser-Rendering-Performance */
    filter: drop-shadow(0 0 1px rgba(194, 163, 115, 0.01));
  }

  50% {
    /* Aktives Leuchten */
    filter:
      drop-shadow(0 0 15px rgba(194, 163, 115, 0.7)) drop-shadow(0 0 45px rgba(194, 163, 115, 0.3));
  }

  100% {
    filter: drop-shadow(0 0 1px rgba(194, 163, 115, 0.01));
  }
}

/* 1. Die visuelle Anker-Linie unter dem Logo */
.landing-anchor {
  width: 1px;
  height: 70px;
  /* Verlauf der Linie */
  background: linear-gradient(to bottom, rgba(216, 191, 150, 0.6), transparent);
  margin: 2.5rem 0;
  transform-origin: top;
  transform: scaleY(0);
  animation: dropLine 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes dropLine {
  to {
    transform: scaleY(1);
  }
}

/* 2. Der Hauptbutton (Editorial-Stil) */
.btn-editorial-main {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--accent-warm);
  /* Textfarbe */
  background: transparent;
  border: none;
  padding: 18px 45px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.8s forwards;
}

.main-header.scrolled {
  padding: 1rem 5vw 1rem;
  background: rgba(11, 10, 10, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .main-header.scrolled {
  background: rgba(245, 243, 239, 0.65) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.main-header.scrolled .logo-link {
  max-width: 250px;
}

.btn-editorial-main::before {
  display: none;
  /* Hintergrund-Effekt deaktiviert */
}

/* Hover-Effekt: Text-Glow */
.btn-editorial-main:hover {
  color: #fff;
  text-shadow:
    0 0 15px rgba(216, 191, 150, 0.8),
    0 0 30px rgba(216, 191, 150, 0.4);
  transform: translateY(-2px);
}

.btn-editorial-main:hover::before {
  transform: scaleY(1);
}

/* 3. Subtile Secondary Links */
.landing-nav-editorial {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.3s forwards;
}

.link-dot {
  width: 3px;
  height: 3px;
  background: var(--accent-bronze);
  /* Punkt-Farbe */
  border-radius: 50%;
  opacity: 0.5;
}

.link-editorial {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  /* Link-Farbe */
  text-decoration: none;
  letter-spacing: 0.3em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}

.link-editorial::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent-warm);
  /* Unterstreichungs-Farbe */
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

.link-editorial:hover {
  color: var(--accent-warm);
}

.link-editorial:hover::after {
  width: 100%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================= */
/* RESPONSIVE DESIGN FOR MOBILE DEVICES      */
/* ========================================= */

/* Anpassungen für Tablets & Laptops */
@media (max-width: 1024px) {
  .main-header {
    padding: 5rem 4vw 4rem;
    gap: 4rem;
  }

  .logo-wrapper {
    max-width: 600px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }

  .about-grid {
    gap: 3rem;
  }

  .content-wrapper {
    padding: 2rem 4vw 5rem;
    gap: 2rem;
  }
}

/* Anpassungen für mobile Geräte */
@media (max-width: 768px) {

  .hero-section-custom,
  .hero-section {
    padding-top: 12rem;
    /* Angepasst: Schiebt den Text unter dem fixierten mobilen Header hervor */
  }

  .mobile-menu-toggle {
    margin: 0;
    /* Optional: falls du den Z-Index sicherstellen willst */
    z-index: 10000 !important;
  }



  /* ========================================================
   BURGER-MENÜ (SCHLIEßEN-KREUZ) FIX
   ======================================================== */
  .mobile-menu-toggle {
    z-index: 10000 !important;
    /* Muss zwingend höher sein als das Overlay (9999) */
  }

  .landing-content {
    height: 100dvh;
    justify-content: center;
  }

  .landing-logo {
    max-width: 480px;
    margin-top: 0;
    filter: drop-shadow(0 0 20px rgba(194, 163, 115, 0.3));
  }

  .landing-anchor {
    height: 40px;
    margin: 1.5rem 0;
  }

  .btn-editorial-main {
    /* ... */
    opacity: 0;
    animation: fadeUp 0.8s ease 1.8s forwards;
    /* Sehr frühes Erscheinen nach 1.8s */
  }

  .landing-nav-editorial {
    /* ... */
    opacity: 0;
    animation: fadeUp 0.8s ease 2.0s forwards;
    /* Folgt direkt nach 2.0s */
  }

  .main-header {
    padding: 3rem 5vw 2rem !important;
    /* Mehr Padding oben, damit es nicht am Rand klebt */
    margin-bottom: 0rem;
    /* Bringt das Bild näher am Header */
    display: flex;
    justify-content: center;
    /* Logo zentriert */
    align-items: center;

    /* Gleiche Farben wie Desktop (Glassmorphismus) */
    background: rgba(11, 10, 10, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  }

  .logo-wrapper {
    max-width: 300px;
  }

  /* Light-Mode Header: gleiche Farben wie Desktop */
  body.light-mode .main-header {
    background: rgba(245, 243, 239, 0.65) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-top: none !important;
  }

  .main-header.scrolled {
    padding: 1rem 5vw 1rem !important;
  }

  .main-nav {
    width: 50vw !important;
    max-width: 50vw !important;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  body.light-mode .main-nav {
    background: rgba(245, 243, 239, 0.92);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .nav-link {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    padding-bottom: 6px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .theme-toggle {
    min-width: 140px;
    height: 42px;
    font-size: 0.65rem;
    padding: 0 20px;
    margin-top: 1rem;
  }

  .portfolio-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }

  .portfolio-tab-button {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    padding: 10px 0;
    flex-shrink: 0;
    min-width: max-content;
  }

  .tab-indicator {
    height: 1.5px;
  }

  .portfolio-tab-button.active .tab-indicator {
    width: 60px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .hero-copy {
    font-size: 0.95rem;
    max-width: 90%;
  }

  .hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
  }

  .hero-image-wrapper {
    width: 85% !important;
    max-width: 400px !important;
  }

  .content-wrapper {
    padding: 1.5rem 3vw 3rem;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Die Kategorien-Ordner sollen auf dem Handy immer untereinander (1-spaltig) sein */
  #portfolio-categories .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 16 / 12;
  }

  .gallery-item:hover {
    transform: translateY(-5px);
  }

  .item-title {
    font-size: 1.1rem;
  }

  .item-category {
    font-size: 0.65rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
  }

  .about-content {
    order: 1;
  }

  .about-image-wrapper {
    order: 2;
    max-width: 100%;
    margin: 0 auto;
  }

  .about-lead {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
  }

  .about-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .contact-form {
    gap: 1.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.9rem;
    font-size: 16px;
  }

  .submit-btn {
    padding: 0.9rem 2.5rem;
    font-size: 0.75rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  }

  .main-footer {
    padding: 2.5rem 1.5rem 3rem;
  }

  .footer-credits {
    font-size: 0.95rem;
  }

  .footer-copyright {
    font-size: 0.65rem;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 90vh;
  }

  .close-modal {
    top: 20px;
    right: 15px;
    font-size: 2rem;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .landing-logo {
    max-width: 340px;
  }

  .main-header {
    padding: 2rem 5vw 1.5rem;
    gap: 1.5rem;
  }

  .logo-wrapper {
    max-width: 200px;
  }

  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding-bottom: 4px;
  }

  .theme-toggle {
    min-width: 120px;
    height: 38px;
    font-size: 0.6rem;
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .hero-copy {
    font-size: 0.85rem;
  }

  .content-wrapper {
    padding: 1rem 3vw 2rem;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .gallery-item:hover img {
    transform: scale(1.02);
  }

  .item-title {
    font-size: 0.95rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 16px;
  }

  #faden-canvas {
    display: none;
  }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
  .landing-logo {
    max-width: 260px;
  }

  .main-header {
    padding: 1.5rem 2vw 1rem;
    gap: 1rem;
  }

  .logo-wrapper {
    max-width: 150px;
  }

  .nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
  }

  .item-title {
    font-size: 0.85rem;
  }
}

/* Editorial Hero Bild-Integration */
.hero-section-custom {
  padding: 20rem 5vw 2rem;
  /* Extrem weit nach unten gerutscht für das gigantische Desktop-Logo */
  text-align: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* Porträt-Größe */
  margin: 0 auto;
  overflow: hidden;
}

.hero-portrait {
  width: 100%;
  display: block;
  border-radius: 8px;
  /* Ganz leichter Radius für einen cleanen Look */
}

/* Der dunkle Bildverlauf der das Bild nach unten hin abdunkelt (mobil) */
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 10, 10, 0) 50%,
      rgb(11, 10, 10) 100%);
}

/* Light-Mode Anpassung (mobil) */
body.light-mode .gradient-overlay {
  background: linear-gradient(to bottom,
      rgba(245, 243, 239, 0) 50%,
      rgb(245, 243, 239) 100%);
}



* {
  /* Macht das blaue Tipp-Kästchen auf Touch-Geräten unsichtbar */
  -webkit-tap-highlight-color: transparent;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ======================================================== */
/* BENJAMIN VIULET STYLE - CINEMATIC HERO IMAGE             */
/* ======================================================== */

/* 1. Bild-Container: Erzwingt volle Breite über den Container hinaus */
.hero-image-wrapper {
  position: relative;
  width: 100vw !important;
  /* Volle Bildschirmbreite */
  max-width: 100vw !important;

  /* Trick: Zwingt das Element an den linken Rand, ignoriert Padding des Elternelements */
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;

  /* Höhe: 65% der Bildschirmhöhe */
  height: 65vh !important;
  min-height: 450px !important;

  border-radius: 0 !important;
  /* Eckiges Design */
  overflow: hidden;
  box-shadow: none !important;
}

/* 2. Das Bild: Füllt den Container aus, ohne zu verzerren */
.hero-portrait {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  /* Bild wird zugeschnitten, um Fläche zu füllen */
  object-position: center 20% !important;
  /* Fokuspunkt: Gesicht/Hut */
  border-radius: 0 !important;
  border: none !important;
}

/* 3. Der Kino-Fade: Erzeugt einen weichen Übergang zu Schwarz */
.gradient-overlay {
  position: absolute !important;
  inset: 0 !important;
  /* Übergang von Transparent zu Dunkel (unten) */
  background: linear-gradient(to bottom,
      rgba(11, 10, 10, 0) 0%,
      rgba(11, 10, 10, 0) 50%,
      rgba(11, 10, 10, 0.5) 75%,
      rgb(11, 10, 10) 96%,
      rgb(11, 10, 10) 100%) !important;
  pointer-events: none;
}

/* Anpassung: Übergang zu Weiß (für Light-Mode) */
body.light-mode .gradient-overlay {
  background: linear-gradient(to bottom,
      rgba(245, 243, 239, 0) 0%,
      rgba(245, 243, 239, 0) 50%,
      rgba(245, 243, 239, 0.5) 75%,
      rgb(245, 243, 239) 96%,
      rgb(245, 243, 239) 100%) !important;
}

/* MODERATERE ANPASSUNG NUR FÜR DESKTOP */
@media (min-width: 769px) {
  .hero-image-wrapper {
    height: 75vh !important;
    min-height: 500px !important;
  }

  .hero-portrait {
    object-position: center 22% !important;
  }
}


/* ======================================================== */
/* HERO IMAGE LÜCKE SCHLIEßEN                               */
/* ======================================================== */

.hero-section-custom,
.content-wrapper {
  /* Entfernt das Padding oben, damit das Bild bündig abschließt */
  padding-top: 0 !important;
}

.hero-image-wrapper {
  /* Fein-Justierung: Zieht das Bild 1px nach oben */
  margin-top: -1px !important;
}

/* Fix für die Text-Überlagerung im Dunkelmodus auf Mobilgeräten */


/* ======================================================== */
/* GLOBAL FIXES FOR DESKTOP MENU & THEME TOGGLE             */
/* ======================================================== */
.main-nav.active {
  transform: translateX(0) !important;
}

body.light-mode .main-nav {
  background: rgba(245, 243, 239, 0.92) !important;
}

/* Instagram Footer Icon */
.footer-ig-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.footer-ig-icon svg {
  width: 20px;
  height: 20px;
}

.footer-ig-icon:hover {
  color: var(--accent-warm);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(216, 191, 150, 0.15);
  border-color: rgba(216, 191, 150, 0.3);
}

body.light-mode .footer-ig-icon {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .footer-ig-icon:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

/* ======================================================== */
/* IMAGE PROTECTION                                         */
/* ======================================================== */
img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
  /* Allow clicking for lightbox */
}
