/* ───────── ECC UX-Overhaul: Kontrast, A11y, Politur (site-weit) ───────── */

/* 1) Tastatur-Fokus: sichtbare Brass-Ringe (nur Keyboard, nicht Maus) */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b69968;
  outline-offset: 3px;
  border-radius: 8px;
}
/* Maus-Klick soll keinen Ring zeigen */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* 2) Brass-Textauswahl */
::selection { background: rgba(182,153,104,0.32); color: #fff; }
::-moz-selection { background: rgba(182,153,104,0.32); color: #fff; }

/* 3) Nav-Kontrast: garantierte Lesbarkeit sobald gescrollt (auch über hellen Sektionen) */
#nav .liquid-glass, #nav .liquid-glass-strong { transition: background .35s ease, box-shadow .35s ease; }
#nav.nav-scrolled .liquid-glass {
  background: rgba(10,10,10,0.74) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,0.40), inset 0 1px 1px rgba(255,255,255,0.12);
}
#nav.nav-scrolled .liquid-glass-strong { background: rgba(10,10,10,0.82) !important; }

/* 4) Reveal-Safety: Inhalt darf nie unsichtbar hängenbleiben */
html.no-js .reveal,
html.no-js .fade-in { opacity: 1 !important; transform: none !important; }
.reveal.in, .fade-in.in { opacity: 1 !important; transform: none !important; }

/* 5) Scroll-Fortschrittsleiste (dünn, Brass) */
#bs-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, #b69968, #d8c9a8);
  z-index: 60; pointer-events: none; transition: width .12s linear;
}

/* 6) Mobile: saubere Tap-Targets ≥40px */
@media (max-width: 767px) {
  #nav a, #nav button { min-height: 40px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  #bs-progress { display: none; }
  #nav .liquid-glass, #nav .liquid-glass-strong { transition: none; }
}

/* ═══════════ ECC UX-Overhaul Runde 2 ═══════════ */

/* Lightbox */
#bs-lightbox { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px; }
#bs-lightbox.open { display: flex; }
#bs-lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
#bs-lightbox .bs-lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.10); color: #fff; border: none; font-size: 22px; cursor: pointer; display:flex; align-items:center; justify-content:center; transition: background .2s; }
#bs-lightbox .bs-lb-close:hover { background: rgba(255,255,255,0.22); }
#bs-lightbox .bs-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color:#fff; border:none; font-size: 28px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition: background .2s; }
#bs-lightbox .bs-lb-nav:hover { background: rgba(255,255,255,0.20); }
#bs-lightbox .bs-lb-prev { left: 18px; } #bs-lightbox .bs-lb-next { right: 18px; }
#bs-lightbox .bs-lb-count { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); font:300 12px/1 'Barlow',sans-serif; letter-spacing:.2em; color:rgba(255,255,255,0.6); }
img.bs-zoomable { cursor: zoom-in; }
@media (max-width:640px){ #bs-lightbox .bs-lb-nav{ width:42px;height:42px;font-size:22px; } }

/* Mobile-Hero Feintuning */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(54px, 15.5vw, 88px) !important; }
  .section-title { font-size: clamp(34px, 9vw, 52px) !important; }
}

/* Sticky Mobile-CTA */
#bs-mcta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: none;
  transform: translateY(120%); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
#bs-mcta.show { transform: translateY(0); }
#bs-mcta a { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #0a0a0a;
  font: 500 14px/1 'Barlow', sans-serif; border-radius: 9999px; padding: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.45); }
@media (max-width: 767px) { #bs-mcta { display: block; } }

/* Aktiver Nav-Link (aktuelle Sektion) */
#nav a.bs-active { color: #fff !important; }

/* Magnetische Buttons */
.bs-magnetic { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .bs-magnetic { transition: none !important; transform: none !important; }
  #bs-mcta { transition: none; }
}

/* ═══════════ Runde 3: Galerie-Zoom + Consent ═══════════ */

/* Zoom-Icon auf Galerie-/Projekt-Kacheln */
.bs-zoom-btn {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(10,10,10,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
a:hover .bs-zoom-btn, .bs-zoom-btn:focus-visible { opacity: 1; transform: scale(1); }
.bs-zoom-btn:hover { background: rgba(10,10,10,0.7); }
@media (hover: none) { .bs-zoom-btn { opacity: 1; transform: scale(1); } }

/* Consent-Banner */
#bs-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997;
  transform: translateY(110%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
  padding: 14px;
}
#bs-consent.show { transform: translateY(0); }
#bs-consent.bs-hide { transform: translateY(110%); }
#bs-consent .bs-consent-inner {
  max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255,255,255,0.12); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5); padding: 18px 22px;
}
#bs-consent .bs-consent-txt { flex: 1 1 320px; font: 300 13px/1.55 'Barlow', sans-serif; color: rgba(255,255,255,0.78); margin: 0; }
#bs-consent .bs-consent-txt a { color: #b69968; text-decoration: underline; text-underline-offset: 2px; }
#bs-consent .bs-consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
#bs-consent button { font: 500 13px/1 'Barlow', sans-serif; border-radius: 9999px; padding: 11px 20px; cursor: pointer; border: none; transition: transform .18s, background .2s; }
#bs-consent button:hover { transform: scale(1.03); }
#bs-consent .bs-c-min { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
#bs-consent .bs-c-all { background: #fff; color: #0a0a0a; }
@media (max-width: 600px) {
  #bs-consent .bs-consent-btns { width: 100%; }
  #bs-consent .bs-c-min, #bs-consent .bs-c-all { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { #bs-consent { transition: none; } }

/* ═══════════ Blog-Artikel: heller Lesebereich (bessere Lesbarkeit langer Texte) ═══════════ */
.bs-article-light .prose-bs p,
.bs-article-light .prose-bs li { color: rgba(10,10,10,0.82); }
.bs-article-light .prose-bs h2 { color: #0a0a0a; }
.bs-article-light .prose-bs .lead { color: rgba(10,10,10,0.92); }
.bs-article-light .prose-bs ul { color: rgba(10,10,10,0.82); }
.bs-article-light .prose-bs p:first-of-type::first-letter { color: var(--brass); }
.bs-article-light .prose-bs a { color: #8a6d3b; }
/* "Weiterlesen"-Box (liquid-glass) auf hell anpassen, falls vorhanden */
.bs-article-light .liquid-glass { background: rgba(10,10,10,0.04); box-shadow: inset 0 1px 1px rgba(255,255,255,0.4); }
.bs-article-light .liquid-glass h3, .bs-article-light .liquid-glass p { color: #0a0a0a; }
.bs-article-light .liquid-glass .text-white\/70 { color: rgba(10,10,10,0.7) !important; }

/* ───────── Hero-Umschalter Privat ↔ Für Brands (Startseite) ───────── */
#heroToggle {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,10,10,0.28);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
}
.bs-seg {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  background: transparent; border: none; border-radius: 9999px;
  padding: 8px 18px; cursor: pointer; line-height: 1;
  transition: color .28s ease, background .28s ease, box-shadow .28s ease;
}
.bs-seg:hover { color: #fff; }
.bs-seg-on {
  color: #0a0a0a; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.bs-seg-on:hover { color: #0a0a0a; }
@media (prefers-reduced-motion: reduce) { .bs-seg { transition: none; } }
