/* ============================================
   KOLORYST.BERLIN — style.css
   Erstellt: 2026-03-19 | Version: 1.6
   Geändert:  2026-03-23 — Justified Layout (Flexbox), ms-X Grid-Klassen entfernt
   Geändert:  2026-03-23 — Gallery Label: .gallery-label, .label-client, .label-project
   ============================================ */

/* ─── Fonts ──────────────────────────────────── */

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BrandonText';
  src: url('Assets/Fonts/HVD Fonts - BrandonText-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Vanitas';
  src: url('Assets/Fonts/Vanitas-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Variables ─────────────────────────── */
:root {
  /* Accent wird per JS beim Seitenaufruf zufällig gesetzt */
  --accent: #E05A4B;

  --bg:       #0a0a0a;
  --bg-2:     #0f0f0f;
  --text:     #f0f0f0;
  --muted:    rgba(240, 240, 240, 0.45);

  --font:     'BrandonText', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Vanitas', 'BrandonText', sans-serif;

  --nav-h:    64px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);

  /* Logo-Farben (per JS gesetzt, hier als Fallback) */
  --c0: #E05A4B;
  --c1: #D47040;
  --c2: #C8952A;
  --c3: #A8A030;
  --c4: #7A9E45;
  --c5: #4A9070;
  --c6: #3A8585;
  --c7: #2E7080;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Custom Cursor ──────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width  0.35s var(--ease),
    height 0.35s var(--ease),
    opacity 0.3s ease,
    background 0.6s ease;
  will-change: left, top;
}

.cursor.hover {
  width: 44px;
  height: 44px;
  opacity: 0.3;
}

/* ─── Scroll Progress Bar ────────────────────── */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: background 0.6s ease;
  pointer-events: none;
}

/* ─── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 500;
  /* backdrop-filter immer aktiv → stabiler GPU-Layer, kein Flackern beim Scrollen */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.75;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease), background 0.6s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Externer Link — optisch leicht abgesetzt */
.nav-links .nav-external {
  border-left: 1px solid var(--muted);
  padding-left: 40px;
  opacity: 0.6;
}
.nav-links .nav-external:hover {
  opacity: 1;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 501;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.open span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── HERO ───────────────────────────────────── */
#hero {
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hintergrund-Video */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #000;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Subtle noise texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.hero-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s var(--ease) 0.4s forwards;
  transition: color 0.6s ease;
}

.hero-headline {
  font-family: 'BrandonText', sans-serif;
  font-size: clamp(44px, 8.5vw, 128px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  color: #fff;  /* immer weiß — Hero hat immer dunklen Video-Hintergrund */
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s var(--ease) 0.7s forwards;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  z-index: 3;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transition: background 0.6s ease;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 0.6; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ─── SHOWREEL ───────────────────────────────── */
#showreel {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.showreel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Stummer Hintergrund-Preview hinter Play-Overlay */
.showreel-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.showreel-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Overlay mit Play-Button */
.showreel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 2;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.showreel-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Play Button */
.play-btn {
  position: relative;
  width: 88px;
  height: 88px;
  background: none;
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: ringPulse 2.4s ease-out infinite;
  transition: border-color 0.6s ease;
}

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.6s ease;
}

.play-btn:hover .play-icon {
  transform: scale(1.12);
}

.play-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 4px;
}

@keyframes ringPulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1);   opacity: 0;   }
}

.showreel-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.45);
}

/* Vimeo iframe */
#vimeoPlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;              /* startet unter Overlay — kein Klick-Blocker */
  pointer-events: none;
}

#vimeoPlayer.active {
  z-index: 3;              /* nach Play-Klick über Overlay */
  pointer-events: all;
}

/* ─── GALLERY ────────────────────────────────── */
#gallery {
  padding: 120px 40px 100px;
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  transition: color 0.6s ease;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ── Gallery: Justified Layout (Flickr-Algorithmus) ──────────
   Jede Zeile hat eine gemeinsame Höhe. Breiten variieren je
   nach echtem Aspect Ratio → kein Crop, kein Letterbox.
   Dimensionen werden per JS berechnet (main.js buildGallery).
   flex-grow: 1 absorbiert Rundungsdifferenzen am Zeilenende.
   ─────────────────────────────────────────────────────────── */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: none;
  flex-shrink: 0;
  flex-grow: 1;
  opacity: 0;
  /* --item-gray: t-Wert (0 = Mitte, 1 = Rand)
     Rand: 10% Sättigung, 85% Helligkeit — weich, nicht flach */
  filter:
    saturate(calc(1 - var(--item-gray, 1) * 0.32))
    brightness(calc(1 - var(--item-gray, 1) * 0.36));
  transition: opacity 0.4s ease, filter 0.5s ease;
}

.gallery-item.visible {
  opacity: 1;
}

/* Aktives (gehoverted) Bild: volle Farbe + volle Helligkeit */
.gallery-item.is-active {
  filter: saturate(1) brightness(1);
}

/* ── Farb-Overlay (Color Burn, 100% Deckkraft) ───────────────
   Pseudo-Element über jedem Bild. Farbe kommt via CSS-Variable
   vom Grid (wird per JS bei Scroll aktualisiert).
   mix-blend-mode: color-burn → Farbe brennt sich ins Bild ein.
   Bei aktivem (gehoverten) Item: Overlay ausblendet → kein Burn.
   ─────────────────────────────────────────────────────────── */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gallery-overlay, transparent);
  mix-blend-mode: color-burn;
  opacity: var(--burn-opacity, 0.25);
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.6s ease;
}


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Border-Snake (Hover + Scroll-Snake) ─────────────────────
   SVG mit Pixel-ViewBox (gesetzt per JS in applyJustifiedLayout).
   1 SVG-Einheit = 1px → stroke-dasharray rechnet korrekt.
   Farbe = aktuelle Scroll-Farbe (--gallery-overlay).
   ─────────────────────────────────────────────────────────── */
.gallery-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.gallery-border path {
  fill: none;
  stroke: var(--gallery-overlay, var(--accent));
  stroke-width: 2;
  /* Einmalige Animation: Linie wächst von unsichtbar bis zum geschlossenen Rand.
     fill-mode: forwards → bleibt beim geschlossenen Kreis stehen.
     --border-len wird per JS nach getTotalLength() gesetzt. */
  animation: border-snake 1.5s linear 1 forwards;
  animation-play-state: paused;
}

.gallery-item.is-active    .gallery-border path,
.gallery-item.snake-active .gallery-border path {
  animation-play-state: running;
}

.gallery-item.is-active    .gallery-border,
.gallery-item.snake-active .gallery-border {
  opacity: 1;
}

@keyframes border-snake {
  from { stroke-dashoffset: var(--border-len, 392); }
  to   { stroke-dashoffset: 0; }
}

/* ── Gallery Label (Hover-Info: Client / Projekt) ── */

.gallery-label {
  position: absolute;
  top: 10px;
  left: 10px;
  text-align: left;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item.is-active .gallery-label {
  opacity: 1;
}

.label-client {
  display: block;
  font-family: 'BrandonText', sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
}

.label-project {
  display: block;
  font-family: 'BrandonText', sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ─── SUITES ─────────────────────────────────── */
#suites {
  padding: 120px 0 0;
}

/* Wrapper für Text-Block: gleiche Ausrichtung wie .about-inner.
   max-width 1360px = 1280px (about-inner) + 2×40px (padding von #about)
   → identischer Centering-Breakpoint und linke Kante auf allen Screenbreiten. */
.suites-text-block {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.suites-intro {
  max-width: 640px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  margin: 20px 0 48px;
}

.suites-filmstrip-wrapper {
  width: 100%;
  overflow: hidden;
}

.suites-filmstrip {
  display: flex;
  height: 40vh;           /* Höhe fix — Breite ergibt sich aus Originalformat */
  align-items: center;
  gap: 6px;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  contain: layout style;
  transform: translateZ(0);
}

.suites-filmstrip::-webkit-scrollbar { display: none; }

.suites-filmstrip.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.suites-filmstrip-item {
  flex: 0 0 auto;
  height: 100%;           /* Höhe = Filmstrip-Höhe */
  width: auto;            /* Breite = Originalformat des Bildes */
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}

.suites-filmstrip-item img {
  height: 100%;
  width: auto;            /* kein object-fit nötig — Bild bestimmt eigene Breite */
  display: block;
  transition: transform 0.5s var(--ease);
}

.suites-filmstrip-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .suites-filmstrip {
    height: 50vh;
  }
}

/* ─── ABOUT ──────────────────────────────────── */
#about {
  padding: 120px 40px;
  background: var(--bg-2);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.about-text .section-label {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 32px;
  margin-top: 8px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
  max-width: 460px;
  font-size: 15px;
}

/* Services */
.services-list {
  list-style: none;
  margin: 40px 0 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-list li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.45);
  padding-left: 18px;
  position: relative;
  transition: color 0.3s ease;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background: var(--accent);
  transition: background 0.6s ease, width 0.3s ease;
}

.services-list li:hover {
  color: var(--text);
}

.services-list li:hover::before {
  width: 14px;
}

/* CTA Buttons */
.about-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.btn-accent {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), background 0.6s ease;
}

.btn-accent:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.btn-text:hover {
  color: var(--text);
}

/* About Image */
.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75);
  transition: transform 0.9s var(--ease);
}

.about-image:hover img {
  transform: scale(1.03);
}

/* Accent bottom bar */
.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transition: background 0.6s ease;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  padding: 80px 40px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 64px;
}

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

.footer-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-contact a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact span {
  font-size: 11px;
  color: rgba(240, 240, 240, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
}

.footer-social a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.3);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom span {
  font-size: 11px;
  color: rgba(240, 240, 240, 0.18);
  letter-spacing: 0.08em;
}

.footer-imprint-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 240, 0.18);
  transition: color 0.2s ease;
}
.footer-imprint-link:hover {
  color: var(--text);
}
.imprint-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-style: normal;
}
.footer-imprint-link[aria-expanded="true"] .imprint-arrow {
  transform: rotate(180deg);
}

/* ─── Imprint ───────────────────────────────── */
.imprint-section {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s ease, border-top-color 0.45s ease;
  border-top: 1px solid transparent;
  background: var(--bg-2, #0a0a0a);
}
.imprint-section.open {
  border-top-color: rgba(255,255,255,0.06);
}
.imprint-inner {
  padding: 60px 40px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.imprint-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.imprint-inner p {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1em;
}
.imprint-inner p:last-child {
  margin-bottom: 0;
}

/* ─── Scroll Reveal ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-image {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}

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

  /* Mobile Nav — Dropdown unter der Nav-Bar */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px 36px;
    gap: 24px;
    z-index: 499;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--muted);
  }

  .nav-links a:hover,
  .nav-links a:active {
    color: var(--text);
  }

  /* Externer Link im Dropdown — Trennlinie weglassen */
  .nav-links .nav-external {
    border-left: none;
    padding-left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  /* Cursor deaktivieren auf Touch */
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  #gallery {
    padding: 80px 16px 80px;
  }

  /* Justified Layout: kleiner Gap auf Mobile */
  .gallery-grid {
    gap: 4px;
  }

  /* Hover auf Touch deaktivieren */
  .gallery-item.is-hovered {
    transform: none;
  }

  #about {
    padding: 80px 20px;
  }

  footer {
    padding: 64px 20px 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 4px;
  }

  .about-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


/* ══════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.lb-open {
  opacity: 1;
  pointer-events: all;
}

/* Bild-Container */
.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  cursor: none;
}

.lb-img-wrap img.lb-fade {
  opacity: 0;
}

/* Buttons allgemein */
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}

/* Close-Button: weiß */
.lb-close {
  color: rgba(255, 255, 255, 0.6);
}
.lb-close:hover {
  color: #fff;
}

/* Pfeil-Buttons: Farbe aus dem wechselnden Schema */
.lb-prev,
.lb-next {
  color: var(--lb-arrow-color, rgba(255, 255, 255, 0.6));
  opacity: 0.7;
}
.lb-prev:hover,
.lb-next:hover {
  color: var(--lb-arrow-color, #fff);
  opacity: 1;
}

/* Schließen-Button */
.lb-close {
  top: 32px;
  right: 40px;
  font-size: 22px;
}

.lb-close:hover {
  transform: rotate(90deg);
}

/* Pfeil-Buttons */
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
}

.lb-prev { left: 32px; }
.lb-next { right: 32px; }

.lb-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lb-next:hover { transform: translateY(-50%) translateX(4px); }

/* Pfeile ausblenden wenn nur 1 Bild */
.lb-prev:disabled,
.lb-next:disabled {
  opacity: 0.15;
  cursor: default;
}

@media (max-width: 768px) {
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev, .lb-next { font-size: 28px; }
}


/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME
   Tagsüber (7–19 Uhr) automatisch aktiv.
   JS setzt: document.documentElement.dataset.theme = 'light'
   ═══════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --bg:    #f2f2ee;
  --bg-2:  #e6e6e2;
  --text:  #0e0e0e;
  --muted: rgba(14, 14, 14, 0.48);
}

/* Nav: helles Frosted Glass */
[data-theme="light"] nav.scrolled {
  background: rgba(242, 242, 238, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Mobile Nav Dropdown */
@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: rgba(242, 242, 238, 0.97);
    border-top-color: rgba(0, 0, 0, 0.08);
  }
  [data-theme="light"] .nav-links a {
    color: rgba(14, 14, 14, 0.55);
  }
  [data-theme="light"] .nav-links a:hover,
  [data-theme="light"] .nav-links a:active {
    color: #0e0e0e;
  }
}

/* Suites Text-Block: passt sich automatisch an via --text / --muted */

/* Footer + Services: hardcodierte weiße Farben überschreiben */
[data-theme="light"] .footer-contact span {
  color: rgba(14, 14, 14, 0.35);
}
[data-theme="light"] .footer-social a {
  color: rgba(14, 14, 14, 0.45);
}
[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .footer-bottom span {
  color: rgba(14, 14, 14, 0.30);
}
[data-theme="light"] .footer-imprint-link {
  color: rgba(14, 14, 14, 0.30);
}
[data-theme="light"] .footer-imprint-link:hover {
  color: #0e0e0e;
}
[data-theme="light"] .services-list li {
  color: rgba(14, 14, 14, 0.45);
}
[data-theme="light"] .services-list li:hover {
  color: #0e0e0e;
}
[data-theme="light"] .btn-text {
  color: rgba(14, 14, 14, 0.48);
}
[data-theme="light"] .btn-text:hover {
  color: #0e0e0e;
}

/* Lightbox bleibt dunkel — immersive Vollbild-Erfahrung */
