/* ═══════════════════════════════════════════════════════════════
   SHOWROOM EINS — RESPONSIVE DESIGN
   mobile < 768px | tablet 768–1024px | desktop > 1024px
═══════════════════════════════════════════════════════════════ */

/* Kein horizontales Scrollen auf keinem Breakpoint */
html, body { max-width: 100%; overflow-x: hidden; }

/* Scroll lock wenn Overlay oder Lightbox offen */
body.nav-open { overflow: hidden; }


/* ─── HAMBURGER BUTTON ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: #0a0a0a;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}

.nav-hamburger span:nth-child(1) { width: 20px; }
.nav-hamburger span:nth-child(2) { width: 13px; }
.nav-hamburger span:nth-child(3) { width: 20px; }

/* Hover: mittlere Linie verlängert sich */
.nav-hamburger:not(.open):hover span:nth-child(2) { width: 20px; }

/* Open → X */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 20px;
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 20px;
}


/* ─── MOBILE NAV OVERLAY ────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(247, 245, 242, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

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

/* DE/EN Toggle: oben rechts, unterhalb der Nav-Bar */
.nav-overlay-lang-wrap {
  position: absolute;
  top: 60px;           /* unterhalb der Nav-Leiste */
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 48px;
  width: 100%;
  max-width: 360px;
}

/* ── Hauptlinks: exakt wie Desktop-Nav ─────────────────────── */
.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.nav-overlay-links a {
  text-decoration: none;
  color: #0a0a0a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav-overlay-links a:hover { border-bottom-color: #0a0a0a; }

/* ── Künstler:innen flache Liste (alphabetisch) ───────────── */
.nav-overlay-artists {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nav-overlay-artists a {
  text-decoration: none;
  color: #0a0a0a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav-overlay-artists a:hover { border-bottom-color: #0a0a0a; }

/* ── Overlay Extras (Instagram) ───────────────────────────── */
.nav-overlay-extra {
  text-decoration: none;
  color: #0a0a0a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav-overlay-extra:hover { border-bottom-color: #0a0a0a; }

/* ── Lang-Toggle im Overlay ───────────────────────────────── */
.nav-overlay-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-overlay-lang .toggle-track {
  position: relative;
  width: 25px;
  height: 13px;
  border: 1px solid #0a0a0a;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-overlay-lang .toggle-thumb {
  position: absolute;
  top: -1px; left: -1px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #0a0a0a;
  transition: left 0.2s ease;
}

.nav-overlay-lang .toggle-track.en-active .toggle-thumb { left: 11px; }


/* ─── FOOTER LAYOUT ─────────────────────────────────────────── */
.footer-nav-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 48px !important;
  padding: 56px 48px 48px !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-brand {
  gap: 32px;
  flex-shrink: 0;
}

.footer-col-artists {
  gap: 6px;
}

.footer-col-nav {
  gap: 6px;
  flex-shrink: 0;
}

.footer-col-label {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}

.footer-col-sep {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 8px 0;
}

.footer-col-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
  line-height: 1.2;
}

.footer-col-link:hover { color: #ffffff; }

.footer-logo {
  height: 52px !important;
  width: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
}


/* ─── GALLERY ITEM CAPTION (Mobile-Label auf Bildern) ────────── */
/* Zeigt Titel + Künstler auf Touch-Geräten direkt auf dem Bild  */
.gallery-item {
  position: relative;
}

.gallery-item-caption {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to bottom, transparent, rgba(10,10,10,0.5));
  pointer-events: none;
}

.gallery-item-caption-title {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f7f5f2;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-caption-artist {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(247,245,242,0.6);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: none) {
  .gallery-item-caption { display: block; }
}


/* ─── ARTIST TAG SIZING (global) ────────────────────────────── */
.artist-tag {
  font-size: 12px !important;
  padding: 8px 16px !important;
}


/* ═══════════════════════════════════════════════════════════════
   TABLET + MOBILE  (≤ 1024px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* ── Navigation ─────────────────────────────────────────── */
  nav { z-index: 800 !important; }
  .nav-links  { display: none !important; }
  .nav-right  { display: none !important; }
  .nav-hamburger { display: flex; }
  nav { padding: 0 24px !important; }

  /* ── Hero: Stack ────────────────────────────────────────── */
  .hero {
    display: block !important;
    height: auto !important;
  }
  .hero-image {
    width: 100%;
    height: 56vw;
    max-height: 540px;
    min-height: 200px;
  }
  .hero-meta {
    padding: 24px !important;
    border-left: none !important;
    border-top: 1px solid #e0ddd8;
  }
  .hero-title {
    font-size: clamp(28px, 5.5vw, 52px) !important;
    line-height: 1.1 !important;
  }

  /* ── Galerie: 2 Spalten ─────────────────────────────────── */
  .gallery-scatter {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Sections: Seitenabstand ────────────────────────────── */
  .section-gallery,
  .section-artists,
  .section-about,
  .section-contact,
  .section-gallery-artist,
  .section-vermittlung,
  .footer-map-section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* ── Über uns: einspaltig ───────────────────────────────── */
  .about-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }
  .about-right {
    padding-top: 0 !important;
    margin-top: 40px;
  }

  /* ── Kontaktformular Frontpage: kein Overlap auf Tablet ─── */
  .contact-form-box {
    margin-bottom: 0 !important;
  }
  .contact-inner { width: calc(100% - 48px) !important; }
  .contact-form-box { padding: 32px 24px !important; }

  /* ── Footer Tablet ──────────────────────────────────────── */
  .footer-nav-bar {
    padding-left: 24px !important;
    padding-right: 24px !important;
    gap: 40px !important;
  }

  /* ── Künstler-Header ────────────────────────────────────── */
  .section-artist-header { padding: 80px 24px 56px !important; }
  .artist-h1 { font-size: clamp(28px, 5vw, 40px) !important; }
  .artist-bio { font-size: 20px !important; }

  /* ── Unterseiten ────────────────────────────────────────── */
  .section-kontakt   { padding: 80px 24px !important; }
  .section-impressum { padding: 80px 24px !important; }
  .section-datenschutz { padding: 80px 24px !important; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer-dark { padding-top: 80px !important; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE ONLY  (< 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Hero: volle Bildschirmhöhe ─────────────────────────── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
  }
  .hero-image {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
  .hero-meta { flex-shrink: 0 !important; }
  .hero-title { font-size: 28px !important; line-height: 34px !important; }

  /* ── Galerie: 1 Spalte ──────────────────────────────────── */
  .gallery-scatter { grid-template-columns: 1fr !important; }

  /* ── Titel-Größen ───────────────────────────────────────── */
  .section-title { font-size: 26px !important; line-height: 30px !important; }

  /* ── Sections: vertikaler Abstand ──────────────────────── */
  .section-gallery,
  .section-artists,
  .section-about,
  .section-contact,
  .section-gallery-artist,
  .section-vermittlung {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  /* ── Künstler:innen-Liste ───────────────────────────────── */
  .artist-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 20px 0 !important;
  }
  .artist-name { font-size: 20px !important; }
  .artist-tags {
    padding-left: 0 !important;
    gap: 8px !important;
  }
  .artist-line { display: none !important; }

  /* ── Über uns ───────────────────────────────────────────── */
  .about-text { font-size: 18px !important; }
  .about-text p { margin-bottom: 24px !important; }

  /* ── Kontaktformular Frontpage: mobiler Overlap ─────────── */
  .contact-form-box {
    margin-bottom: -48px !important;
  }

  /* ── Kontaktformular (Kontakt-Seite) ────────────────────── */
  .contact-form { max-width: none !important; }

  /* ── Footer: vertikal stapeln ───────────────────────────── */
  .footer-dark { padding-top: 72px !important; }
  .footer-nav-bar {
    flex-direction: column !important;
    padding: 48px 24px !important;
    gap: 32px !important;
  }
  .footer-col-brand {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .footer-col-artists {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 24px !important;
  }
  .footer-col-artists .footer-col-label {
    grid-column: 1 / -1;
  }

  /* ── Unterseiten ────────────────────────────────────────── */
  .section-impressum { padding: 64px 24px !important; }
  .section-kontakt   { padding: 64px 24px !important; }
  .section-datenschutz { padding: 64px 24px !important; }

  /* ── Künstler-Header ────────────────────────────────────── */
  .artist-h1 { font-size: 28px !important; line-height: 36px !important; }
  .artist-bio { font-size: 17px !important; }
  .section-artist-header { padding: 64px 24px 48px !important; }

  /* ── Lightbox: wie Hero (Bild füllt, Info unten) ────────── */
  .artwork-lightbox {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  .lb-image {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .lb-info {
    flex-shrink: 0 !important;
    max-height: 55vh !important;
    overflow-y: auto !important;
    padding: 32px 24px !important;
  }
  .lb-actions {
    margin-top: 24px !important;
  }

  /* ── Lightbox: Info-Caption unten rechts im Bild ─────────── */
  .lb-img-caption {
    display: block !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PHONE LANDSCAPE  (Breite ≤ 900px & orientation: landscape)
   Überschreibt Mobile-Portrait-Regeln für Querformat.
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) and (orientation: landscape) {

  /* ── Hero: 2-spaltig wie Desktop ───────────────────────── */
  .hero {
    display: grid !important;
    grid-template-columns: 63fr 37fr !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    flex-direction: unset !important;
  }
  .hero-image {
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: none !important;
    width: auto !important;
  }
  .hero-meta {
    border-left: 1px solid #e0ddd8 !important;
    border-top: none !important;
    flex-shrink: 1 !important;
    overflow-y: auto;
    padding: 24px 24px !important;
  }
  .hero-title {
    font-size: clamp(22px, 4vw, 40px) !important;
    line-height: 1.15 !important;
  }

  /* ── Nav-Overlay: kompakt für Landscape ────────────────── */
  .nav-overlay {
    justify-content: flex-start !important;
    overflow-y: auto;
  }
  .nav-overlay-inner {
    padding: 80px 32px 24px !important;
    gap: 16px !important;
    max-width: none !important;
  }
  .nav-overlay-links { gap: 10px !important; }
  .nav-overlay-artists { gap: 6px !important; }
}


/* ═══════════════════════════════════════════════════════════════
   TOUCH-INTERAKTION (alle Geräte)
═══════════════════════════════════════════════════════════════ */

/* Alle interaktiven Elemente: kein Tap-Delay, kein Highlight */
.filter-btn,
.load-more-btn,
.lb-btn,
.lb-close,
.toggle-track,
.lang-switch,
.nav-overlay-links a,
.nav-overlay-artists a,
.nav-overlay-extra,
.gallery-item,
.artist-name,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Filter-Buttons: Mindest-Touch-Target 44px */
.filter-btn {
  min-height: 44px;
}

/* Load-More Button: Mindest-Touch-Target 44px */
.load-more-btn {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
}

/* Lightbox-Close Button: Mindest-Touch-Target 44px */
.lb-close {
  min-width: 44px;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}


/* ─── HOVER: NUR FÜR GERÄTE MIT ECHTER HOVER-FÄHIGKEIT ──────── */
/* Auf Touch-Geräten steckt der :hover-State nach dem Antippen   */
/* fest und macht aktive Zustände visuell kaputt.                */

@media (hover: none) {
  /* Cursor-Tooltip: nur auf Hover-Geräten sinnvoll             */
  .cursor-tooltip { display: none !important; }

  /* Filter-Buttons: aktiver Zustand bleibt schwarz, kein Hover  */
  .filter-btn:hover {
    border-color: rgba(10,10,10,0.25) !important;
    color: rgba(10,10,10,0.25) !important;
  }
  .filter-btn.active:hover {
    border-color: #0a0a0a !important;
    color: #0a0a0a !important;
  }

  /* Galerie-Bild: kein Zoom beim Tippen */
  .gallery-item:hover img {
    transform: none !important;
  }

  /* Hamburger: kein Hover-Effekt auf mittlerer Linie */
  .nav-hamburger:not(.open):hover span:nth-child(2) {
    width: 13px !important;
  }

  /* Nav-Links: kein Hover-Underline auf Touch */
  .nav-links a:hover {
    border-bottom-color: transparent !important;
  }
  .nav-overlay-links a:hover {
    border-bottom-color: transparent !important;
  }
  .nav-overlay-artists a:hover,
  .nav-overlay-extra:hover {
    border-bottom-color: transparent !important;
  }

  /* Lightbox-Buttons: kein Hover-Underline */
  .lb-btn:hover,
  .lb-close:hover,
  .load-more-btn:hover {
    border-bottom-color: transparent !important;
    opacity: 1 !important;
  }
}
