/* ============================================================
   Lauffenmühle Museum – Global Stylesheet
   museum.css · © 2026 Bitblade Solutions
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Colours */
  --bg:         #08090d;
  --bg-card:    #0f1117;
  --bg-card-h:  #161922;
  --accent:     #0063A9;
  --accent-dim: #0052a0;
  --glow:       rgba(0,99,169,0.12);
  --text:       #e4e4dc;
  --muted:      #80808a;
  --border:     #22252f;
  --border-a:   rgba(0,99,169,0.4);
  --red:        #d94f4f;
  --green:      #4db86a;
  /* Typography */
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  16px;
  /* Transitions */
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── 3. LAYOUT ────────────────────────────────────────────── */
main { position: relative; z-index: 1; }

.sec {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}
.sec-label {
  font-size: .68rem;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.sec-desc {
  color: var(--muted);
  max-width: 560px;
  margin-top: .9rem;
  font-size: .97rem;
  line-height: 1.75;
}
.divider { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }
.divider hr {
  border: none;
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, var(--border), transparent) 1;
}

/* ── 4. NAVIGATION ────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(244,245,247,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background .3s;
}
.nav-i {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #1a1d2b;
}
.nav-logo-box {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo-text span {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: #1a1d2b;
}
.nav-logo-text small {
  display: block;
  font-size: .6rem;
  color: rgba(26,29,43,0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(26,29,43,0.55);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: #1a1d2b; }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: .78rem !important;
  letter-spacing: .3px !important;
  text-transform: none !important;
}
.nav-cta:hover { opacity: .88; }

/* ── 4b. NAV DROPDOWNS ───────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: '▾';
  font-size: .55em;
  margin-left: 4px;
  opacity: .5;
  vertical-align: middle;
}
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(0,0,0,.1));
  border-radius: 10px;
  padding: .5rem 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  list-style: none;
  z-index: 200;
}
.nav-sub::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-sub { display: block; }
.nav-sub li a {
  display: block;
  padding: .5rem 1.2rem;
  font-size: .78rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  color: var(--text, #1a1d2b) !important;
  white-space: nowrap;
  transition: background .15s;
}
.nav-sub li a:hover {
  background: var(--glow, rgba(0,99,169,.06));
  color: var(--accent, #0063A9) !important;
}
.nav-active { color: var(--accent, #0063A9) !important; font-weight: 700 !important; }
.nav-dropdown-active > a { color: var(--accent, #0063A9) !important; }

/* ── 5. HAMBURGER & MOBILE MENU ───────────────────────────── */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color .2s;
}
.hamburger-btn:hover { border-color: var(--accent); }
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a1d2b;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(244,245,247,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 1.2rem 1.5rem 2rem;
  flex-direction: column;
  gap: .4rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(26,29,43,0.6);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #1a1d2b; }
.mobile-menu .nav-cta-m {
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-top: .5rem;
  justify-content: center;
  font-weight: 700;
  border: none;
}
.mobile-section-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent, #0063A9);
  font-weight: 700;
  padding: .8rem .5rem .2rem;
  border-bottom: none;
  margin-top: .4rem;
}

/* ── 6. LOADING SCREEN ────────────────────────────────────── */
#hero-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #08090d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#hero-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
#hero-loader.hidden {
  display: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.loader-logo {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .4rem;
}
.loader-logo-icon { font-size: 2.4rem; }
.loader-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.1;
  text-align: left;
}
.loader-logo-text span {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1px;
}
.loader-spinner {
  width: 52px; height: 52px;
}
.loader-spinner svg {
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-status {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  margin: 0;
  min-height: 1.2em;
}
.loader-progress-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}
.loader-skip-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: .4rem;
}
.loader-skip-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .2s, color .2s, background .2s;
}
.loader-skip-btn:hover {
  border-color: rgba(255,255,255,.45);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.loader-skip-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .72rem;
  color: rgba(255,255,255,.32);
  line-height: 1.55;
  max-width: 280px;
  margin: 0;
}
.loader-skip-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .6;
}

/* ── 6. HERO ──────────────────────────────────────────────── */
/* Scoped to #top so gebaeude .hero is not affected */
.hero#top {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #08090d;
}

/* Matterport iframe fills the full hero — fully interactive */
#hero-model {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 0;
}

/* Gradient at bottom only — keeps model visible, text legible */
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 55%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(8,9,13,0.55) 45%,
    rgba(8,9,13,0.88) 100%
  );
  pointer-events: none;
}

/* Scroll hint arrow, top-centre */
.hero-scroll-hint {
  position: absolute;
  bottom: calc(200px + 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.45);
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  pointer-events: none;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Bottom content bar — sits on top of model */
.hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2rem 2.5rem 1.8rem;
  pointer-events: none; /* bar itself transparent to clicks */
}
.hero-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  pointer-events: none;
}
.hero-bar-text { pointer-events: none; }
.hero-bar-text .hero-badge {
  margin-bottom: .7rem;
}
.hero-bar-text h1 {
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: .5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-bar-text h1 em { font-style: normal; color: var(--accent); }
.hero-bar-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.hero-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  pointer-events: all; /* buttons are clickable */
}

/* Stats row below the bar */
.hero-stats {
  max-width: 1440px;
  margin: 1.2rem auto 0;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  pointer-events: none;
}
.stat .n {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.stat .l {
  font-size: .62rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Buttons in hero override (always readable on dark bg) */
.hero-bar-actions .btn-p {
  background: var(--accent);
  color: #fff;
  pointer-events: all;
}
.hero-bar-actions .btn-s {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  pointer-events: all;
}
.hero-bar-actions .btn-s:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

/* Badge in hero always light */
#top .hero-badge {
  background: rgba(0,99,169,.2);
  border-color: rgba(0,99,169,.5);
  color: #78b9e8;
}

/* Legacy — kept for compatibility */
.hero-inner { display: none; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,99,169,0.08);
  border: 1px solid rgba(0,99,169,0.25);
  color: var(--accent);
  padding: 5px 15px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.75); }
}
#top h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 1.4rem;
  color: #1a1d2b;
}
#top h1 em { font-style: normal; color: var(--accent); }
#top p {
  font-size: 1.1rem;
  color: rgba(26,29,43,0.6);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
/* hero-stats now defined in hero section above */

/* ── 7. BUTTONS ───────────────────────────────────────────── */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-p {
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,99,169,0.35); }
.btn-s {
  background: rgba(255,255,255,0.7);
  color: #1a1d2b;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, background .2s;
}
.btn-s:hover { border-color: var(--accent); background: #fff; }

/* ── 8. PROCESS CHAIN ─────────────────────────────────────── */
.prozess-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: 2.5rem;
}
.prozess-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px,1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.pstep { display: flex; gap: 11px; align-items: flex-start; }
.pnum {
  width: 30px; height: 30px; min-width: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  margin-top: 3px;
}
.pstep strong { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 2px; }
.pstep span   { font-size: .75rem; color: var(--muted); }

/* ── 9. FILTER ────────────────────────────────────────────── */
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
}

/* ── 10. GRID & CARDS ─────────────────────────────────────── */
.buildings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.4rem;
}
.building-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.building-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px var(--glow);
}
.building-card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow), 0 16px 40px rgba(0,0,0,.5);
}
.card-media {
  height: 200px;
  background: linear-gradient(135deg, #161922, #0a0c12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
  transition: opacity .3s;
}
.building-card:hover .card-media img { opacity: 1; }
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.building-card:hover .card-img {
  opacity: 1;
  transform: scale(1.04);
}
.card-gallery {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  z-index: 2;
}
.card-gallery::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  opacity: .6;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity .2s, outline-color .2s;
  outline: 2px solid transparent;
}
.gallery-thumb:hover {
  opacity: 1;
  outline-color: var(--accent);
}
.card-icon {
  font-size: 4rem;
  opacity: .35;
  position: absolute;
}
.card-badge {
  position: absolute;
  top: 11px; right: 11px;
  background: rgba(8,9,13,.82);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
}
.card-priority {
  position: absolute;
  top: 11px; left: 11px;
  width: 9px; height: 9px;
  border-radius: 50%;
}
.card-priority.high   { background: var(--red);  box-shadow: 0 0 7px var(--red); }
.card-priority.medium { background: #d4920a;     box-shadow: 0 0 7px #d4920a; }
.card-priority.done   { background: var(--green); box-shadow: 0 0 7px var(--green); }

.card-body  { padding: 1.1rem; }
.card-tag   {
  font-size: .63rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .6rem;
  letter-spacing: -.3px;
}
.highlight-tag {
  display: inline-block;
  background: var(--glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: .5px;
  margin-left: 6px;
}

/* ── 11. ACCORDION ────────────────────────────────────────── */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: .8rem;
}
.acc-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  background: rgba(255,255,255,.03);
  transition: background .2s;
  user-select: none;
  list-style: none; /* for <summary> use */
}
.acc-trigger:hover { background: var(--glow); }
.acc-arrow {
  font-size: .7rem;
  color: var(--muted);
  transition: transform .25s;
}
.acc-panel {
  display: none;
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.acc-panel p             { margin-bottom: .6rem; }
.acc-panel p:last-child  { margin-bottom: 0; }
.acc-panel ul            { margin: 6px 0 6px 16px; }
.acc-panel ul li         { margin-bottom: 4px; }
.accordion.is-open .acc-panel { display: block; }
.accordion.is-open .acc-arrow { transform: rotate(180deg); }

/* ── 12. FACTS ────────────────────────────────────────────── */
.facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: .8rem 0;
  padding: 9px 11px;
  background: rgba(255,255,255,.025);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.fact { display: flex; gap: 8px; font-size: .75rem; }
.fact:nth-child(n+4) { display: none; }
.fact-key   { color: var(--muted); min-width: 100px; flex-shrink: 0; }
.fact-value { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 13. CARD ACTIONS ─────────────────────────────────────── */
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: .9rem; }
.btn-3d {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-3d:hover { opacity: .84; transform: translateY(-1px); }
.btn-3d.alt {
  background: #222530;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-3d.alt:hover { border-color: var(--accent); color: var(--accent); }
.btn-anchor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-anchor:hover { border-color: var(--accent); color: var(--accent); }

/* ── 14. TIMELINE ─────────────────────────────────────────── */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.timeline-col  { position: relative; padding-left: 1.8rem; }
.timeline-col::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.3rem; top: 4px;
  width: 11px; height: 11px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-year  { font-size: .7rem; font-weight: 800; color: var(--accent); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 3px; }
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.timeline-desc  { font-size: .84rem; color: var(--muted); line-height: 1.7; }

/* ── 15. MATTERPORT VIEWER ────────────────────────────────── */
.viewer-box   { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.8rem; }
.viewer-frame { background: linear-gradient(135deg, #161922, #0a0c12); border-radius: var(--radius-md); overflow: hidden; height: 280px; margin: 1rem 0; }
.viewer-frame iframe { width: 100%; height: 100%; border: none; }

.mp-preview {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #050a14, #0a1628);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.mp-preview-img  { width: 100%; height: 100%; object-fit: cover; opacity: .7; position: absolute; inset: 0; }
.mp-play-btn {
  position: relative;
  z-index: 2;
  width: 70px; height: 70px;
  background: rgba(0,99,169,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(0,99,169,.4);
}
.mp-preview:hover .mp-play-btn {
  transform: scale(1.1);
  background: #0063A9;
  box-shadow: 0 0 0 12px rgba(0,99,169,.15);
}
.mp-label { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 2; color: rgba(255,255,255,.75); font-size: .75rem; text-align: center; }
.mp-embed  { position: relative; padding-bottom: 52%; height: 0; }
.mp-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.mp-embed.hidden { display: none; }

/* ── 16. PARTNERS ─────────────────────────────────────────── */
.partner-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  flex: 1;
  min-width: 210px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s;
}
.partner-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.partner-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.partner-desc { font-size: .78rem; color: var(--muted); line-height: 1.6; }
.partner-url  { font-size: .7rem; color: var(--accent-dim); margin-top: 8px; }
.partner-socials { display: flex; gap: 10px; margin-top: 10px; }
.partner-socials a { color: var(--accent); font-size: .75rem; text-decoration: none; }

/* ── 17. FOOTER ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .78rem;
  color: var(--muted);
}
.footer-inner a { color: var(--accent-dim); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ── 18. THEME TOGGLE ─────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 200;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.theme-toggle:hover  { transform: translateY(-2px); border-color: var(--accent); }
.theme-toggle svg    { width: 20px; height: 20px; color: var(--muted); transition: color .3s; }
.theme-toggle:hover svg { color: var(--accent); }

/* ── 19. LIGHT THEME ──────────────────────────────────────── */
[data-theme="light"] {
  --bg:        #F4F5F7;
  --bg-card:   #FFFFFF;
  --bg-card-h: #F0F1F3;
  --text:      #1A1D2B;
  --muted:     #555b66;
  --border:    #D8DBDF;
  --border-a:  rgba(0,99,169,0.3);
  --glow:      rgba(0,99,169,0.08);
  color-scheme: light;
}

/* Navigation */
[data-theme="light"] .site-nav        { background: rgba(244,245,247,.94); border-bottom-color: rgba(0,0,0,.08); }
[data-theme="light"] .site-nav .nav-title { color: var(--text); }

/* Hero */
/* Hero is always dark (Matterport bg) — no light overrides needed */
[data-theme="light"] .hero-bar-text h1  { color: #fff; }
[data-theme="light"] .hero-bar-text p   { color: rgba(255,255,255,.65); }

/* Buttons */
[data-theme="light"] .btn-s           { background: #fff; color: #1A1D2B; border-color: #D8DBDF; }
[data-theme="light"] .btn-s:hover     { background: rgba(0,99,169,.06); border-color: var(--accent); }
[data-theme="light"] .btn-3d.alt      { background: #F0F1F3; color: #555b66; border-color: #D8DBDF; }
[data-theme="light"] .btn-anchor      { background: #fff; color: #555b66; border-color: #D8DBDF; }

/* Cards */
[data-theme="light"] .building-card   { box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04); }
[data-theme="light"] .building-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1), 0 0 0 1px rgba(0,99,169,.15); }
[data-theme="light"] .card-media      { background: linear-gradient(135deg, #e0e4ea, #cdd2da); }
[data-theme="light"] .card-tag        { color: #555b66; }
[data-theme="light"] .card-title      { color: #111318; }

/* Accordion & Facts */
[data-theme="light"] .acc-trigger     { background: rgba(0,0,0,.02); }
[data-theme="light"] .acc-trigger:hover { background: rgba(0,99,169,.06); }
[data-theme="light"] .acc-panel       { color: #555b66; border-top-color: #E8EAEE; }
[data-theme="light"] .facts           { background: rgba(0,0,0,.015); border-color: #E8EAEE; }

/* Filter */
[data-theme="light"] .filter-btn      { background: #fff; color: #555b66; border-color: #D8DBDF; }
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active { background: rgba(0,99,169,.06); }

/* Timeline */
[data-theme="light"] .timeline-item::before { border-color: var(--bg); }
[data-theme="light"] .timeline-title  { color: #111318; }
[data-theme="light"] .timeline-desc   { color: #555b66; }

/* Matterport */
[data-theme="light"] .mp-preview      { background: linear-gradient(135deg,#e0e4ea,#cdd2da); }
[data-theme="light"] .viewer-box      { background: #fff; }
[data-theme="light"] .viewer-frame    { background: linear-gradient(135deg,#e0e4ea,#cdd2da); }

/* Partners */
[data-theme="light"] .partner-card    { background: #fff; }
[data-theme="light"] .partner-desc    { color: #555b66; }

/* Footer */
[data-theme="light"] .site-footer     { background: #ECEEF1; border-top-color: #D8DBDF; }

/* Process Chain */
[data-theme="light"] .pstep           { background: #fff; color: #555b66; border-color: #D8DBDF; }

/* Theme toggle itself */
[data-theme="light"] .theme-toggle    { background: #fff; border-color: #D8DBDF; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Section headings */
[data-theme="light"] .sec-title       { color: #111318; }
[data-theme="light"] .sec-sub         { color: #555b66; }

/* ── 20. ENTRANCE ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .05s; }
.reveal-delay-2 { transition-delay: .1s; }
.reveal-delay-3 { transition-delay: .15s; }
.reveal-delay-4 { transition-delay: .2s; }

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.stagger.visible > *                  { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(1)     { transition-delay: .02s; }
.stagger.visible > *:nth-child(2)     { transition-delay: .04s; }
.stagger.visible > *:nth-child(3)     { transition-delay: .06s; }
.stagger.visible > *:nth-child(4)     { transition-delay: .08s; }
.stagger.visible > *:nth-child(5)     { transition-delay: .10s; }
.stagger.visible > *:nth-child(6)     { transition-delay: .12s; }
.stagger.visible > *:nth-child(7)     { transition-delay: .14s; }
.stagger.visible > *:nth-child(8)     { transition-delay: .16s; }
.stagger.visible > *:nth-child(9)     { transition-delay: .18s; }
.stagger.visible > *:nth-child(n+10)  { transition-delay: .20s; }

.reveal-fast {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .15s ease-out, transform .15s ease-out;
}
.reveal-fast.visible { opacity: 1; transform: none; }

.card-anim {
  opacity: 0;
  transform: translateY(12px) scale(.99);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.card-anim.visible { opacity: 1; transform: none; }

/* ── 21. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .buildings-grid  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .timeline-grid   { gap: 2rem; }
}
@media (max-width: 800px) {
  .nav-links       { display: none; }
  .hamburger-btn   { display: flex !important; }
  .buildings-grid  { grid-template-columns: 1fr; }
  .timeline-grid   { grid-template-columns: 1fr; }
  .hero-stats      { gap: 1.4rem; }
  .prozess-grid    { grid-template-columns: 1fr 1fr; }
  .hero-bar        { padding: 1.5rem 1.2rem 1.2rem; }
  .hero-bar-inner  { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-bar-text h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .hero-scroll-hint { bottom: calc(180px + 1.5rem); }
}
@media (max-width: 600px) {
  .nav-i           { padding: 0 1rem; gap: .8rem; }
  .sec             { padding: 3rem 1rem; }
  .buildings-grid  { grid-template-columns: 1fr; gap: 1rem; }
  .filter-row      { gap: 6px; }
  .filter-btn      { font-size: .72rem; padding: 5px 11px; }
  .building-card   { border-radius: 12px; }
  .card-body       { padding: 1rem; }
  .hero-stats      { gap: 1rem; }
  .stat .n         { font-size: 1.4rem; }
  .stat .l         { font-size: .55rem; }
  .btn-p, .btn-s   { padding: 11px 18px; font-size: .85rem; }
  .timeline-grid   { grid-template-columns: 1fr; }
  .prozess-grid    { grid-template-columns: 1fr; }
  .partner-grid    { flex-direction: column; }
  .hero-scroll-hint { display: none; }
}
@media (max-width: 400px) {
  .btn-row         { flex-direction: column; align-items: stretch; }
}
