/* ============================================================
   CARHIFI-ZONE — Rebuild 2026
   Light content theme: dark only for header, photo heros, CTA, footer.
   Brand DNA: #F6ED08 / #1C1C1C · Oswald + Montserrat (original fonts)
   ============================================================ */

:root {
  --yellow: #F6ED08;
  --yellow-soft: rgba(246, 237, 8, 0.12);
  --ink: #1C1C1C;
  --ink-deep: #101010;
  --ink-raise: #232323;
  --ink-line: #3a3a3a;
  --paper: #ffffff;
  --cream: #FBF8E8;
  --line: #e5e5e5;
  --mist: #b9b9b9;
  --muted: #555555;
  --radius: 25px;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* fine noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--ink);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--yellow);
}

.h-xl { font-size: clamp(42px, 7vw, 92px); }
.h-lg { font-size: clamp(32px, 4.6vw, 58px); }
.h-md { font-size: clamp(24px, 3vw, 36px); }
.h-sm { font-size: clamp(18px, 2vw, 22px); letter-spacing: 0.08em; }

.accent { color: var(--yellow); }

.lede { color: var(--muted); max-width: 62ch; }

/* ---------- layout ---------- */

.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }

section { position: relative; padding-block: clamp(64px, 9vw, 130px); }

.section-light { background: var(--cream); }
.section-white { background: var(--paper); }

/* diagonal joint between sections — racing-cut */
.cut-top { clip-path: polygon(0 0, 100% 3.2vw, 100% 100%, 0 100%); margin-top: -3.2vw; padding-top: calc(clamp(64px, 9vw, 130px) + 3.2vw); }

.grid-2 { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }

/* ---------- header (dark) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 16, 16, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo img { height: 56px; width: auto; }
.logo { display: flex; align-items: center; gap: 14px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 2px;
  position: relative;
  color: #e8e8e8;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  transition: right 0.25s ease;
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--paper); }

.nav .nav-shop {
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 8px 18px;
}
.nav .nav-shop::after { display: none; }
.nav .nav-shop:hover { background: var(--yellow); color: var(--ink); }

.nav-social { display: flex; gap: 14px; align-items: center; }
.nav-social a { opacity: 0.75; transition: opacity 0.2s, transform 0.2s; }
.nav-social a:hover { opacity: 1; transform: translateY(-2px); }
.nav-social svg { width: 18px; height: 18px; fill: var(--paper); display: block; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--paper);
  position: relative;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-burger { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--ink-line);
    padding: 18px var(--pad) 28px;
    display: none;
  }
  .nav a { font-size: 18px; padding: 12px 0; }
  .nav .nav-shop { text-align: center; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::before { transform: rotate(-90deg) translateX(6px); }
  .nav-toggle:checked ~ .nav-burger span::after { opacity: 0; }
}

/* ---------- nav dropdown (Galerie) ---------- */

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > .sub {
  position: absolute;
  top: calc(50% + var(--header-h) / 2);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-top: 3px solid var(--yellow);
  border-radius: 0 0 16px 16px;
  padding: 18px 26px;
  display: none;
  columns: 2;
  column-gap: 34px;
  min-width: 360px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.has-sub::after {
  content: "";
  position: absolute;
  left: -20px; right: -20px;
  top: 100%;
  height: calc(var(--header-h) / 2 - 50%);
  min-height: 26px;
  display: none;
}
.has-sub:hover::after { display: block; }
.sub a {
  display: block;
  break-inside: avoid;
  font-family: var(--font-body);
  font-size: 14.5px;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 7px 0;
  color: #d9d9d9;
  white-space: nowrap;
}
.sub a::after { display: none; }
.sub a:hover { color: var(--yellow); }

@media (max-width: 960px) {
  .has-sub { flex-direction: column; align-items: stretch; }
  .has-sub > .sub, .has-sub:hover > .sub, .has-sub:focus-within > .sub {
    display: block;
    position: static;
    transform: none;
    border: none;
    border-left: 2px solid var(--ink-line);
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 6px 18px;
    columns: 2;
    min-width: 0;
  }
}

/* ---------- buttons ----------
   light default: ink outline / ink solid (like the original's black pills)
   dark contexts override below */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  padding: 14px 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.15s;
}
.btn:hover { background: var(--ink); color: var(--yellow); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* dark contexts: original brand behavior — yellow border, white text,
   hover -> white bg + dark text */
.hero .btn, .hours-card .btn, .page-hero .btn, .cta-band .btn, footer .btn {
  color: var(--paper);
  border-color: var(--yellow);
  background: transparent;
}
.hero .btn:hover, .hours-card .btn:hover, .page-hero .btn:hover, .cta-band .btn:hover, footer .btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.hero .btn-solid, .cta-band .btn-solid {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.hero .btn-solid:hover, .cta-band .btn-solid:hover {
  background: var(--paper);
  border-color: var(--paper);
}

/* ---------- hero (dark, photo) ---------- */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}
.hero .kicker { color: var(--yellow); }
.hero-bg, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,16,16,0.55) 0%, rgba(16,16,16,0.25) 40%, rgba(16,16,16,0.92) 100%),
    linear-gradient(100deg, rgba(16,16,16,0.85) 0%, rgba(16,16,16,0.1) 60%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(60px, 10vh, 120px) clamp(90px, 14vh, 150px); }

.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 20px; color: #d6d6d6; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }

/* equalizer bars along hero bottom */
.eq {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  padding-inline: 8px;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
.eq i {
  flex: 1;
  background: var(--yellow);
  height: 12%;
  animation: eq-bounce 1.15s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes eq-bounce {
  0%, 100% { height: 12%; }
  50% { height: var(--eq, 70%); }
}

/* hours card floating over hero (dark) */
.hours-card {
  background: rgba(28, 28, 28, 0.9);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  max-width: 420px;
  backdrop-filter: blur(6px);
  color: var(--paper);
}
.hours-card h3 { color: var(--yellow); margin-bottom: 14px; }
.hours-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-card td { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.hours-card td:last-child { text-align: right; font-weight: 600; }
.hours-card .btn { margin-top: 22px; }

/* ---------- page hero (subpages, dark photo background) ---------- */

.page-hero {
  padding-block: clamp(70px, 9vw, 130px);
  color: var(--paper);
  background:
    linear-gradient(100deg, rgba(14, 14, 14, 0.93) 30%, rgba(14, 14, 14, 0.55) 80%),
    radial-gradient(900px 340px at 15% 110%, var(--yellow-soft), transparent 60%),
    var(--phbg, linear-gradient(var(--ink), var(--ink))) center / cover no-repeat,
    var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.page-hero .kicker { color: var(--yellow); }
.page-hero .lede { margin-top: 18px; color: #d9d9d9; }

.crumb {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 18px;
}
.crumb:hover { color: var(--yellow); }

/* ---------- cards (light) ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(28, 28, 28, 0.35);
}
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #efefef; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 20px; letter-spacing: 0.06em; }
.card-body p { color: #666; font-size: 14.5px; flex: 1; }
.card-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #9a8f00;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.2em;
  border-bottom: 3px solid var(--yellow);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ---------- brands band: large static image ---------- */

.brands { text-align: center; border-top: 1px solid #ececec; }
.brands img { width: min(1000px, 100%); margin: 38px auto 0; }

/* ---------- stats strip (light) ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { border-left: 3px solid var(--yellow); padding-left: 20px; }
.stat b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 600; display: block; line-height: 1; color: var(--ink); }
.stat span { color: #777; font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- timeline (über uns, light) ---------- */

.timeline { position: relative; display: grid; gap: 42px; margin-top: 50px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--yellow), var(--line));
}
.tl-item { position: relative; padding-left: 44px; max-width: 72ch; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--yellow);
}
.tl-item h3 { color: var(--ink); margin-bottom: 8px; }
.tl-item p { color: var(--muted); }

/* ---------- gallery ---------- */

.cat-tiles {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  isolation: isolate;
  border: 1px solid var(--line);
  color: var(--paper);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transition: transform 0.45s ease, filter 0.3s ease;
}
.cat-tile span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.cat-tile:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 18px 40px -20px rgba(28, 28, 28, 0.4); }
.cat-tile:hover img { transform: scale(1.06); filter: brightness(0.68); }
.cat-tile-wide { grid-column: 1 / -1; aspect-ratio: 21 / 7; }
@media (max-width: 700px) { .cat-tile-wide { aspect-ratio: 16 / 9; } }

.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 36px 42px; }
.filterbar button {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.filterbar button:hover { color: var(--ink); border-color: var(--ink); }
.filterbar button.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 600; }

.masonry { columns: 4 280px; column-gap: 16px; }
.masonry figure {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #ececec;
}
.masonry img { width: 100%; transition: transform 0.4s ease, filter 0.4s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  background: linear-gradient(transparent, rgba(16,16,16,0.85));
  opacity: 0;
  transition: opacity 0.3s;
}
.masonry figure:hover figcaption { opacity: 1; }
.masonry figure.hidden { display: none; }

/* lightbox (dark overlay) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  place-items: center;
  padding: 4vmin;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close, .lightbox-nav {
  position: fixed;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--yellow);
}

/* ---------- CTA band (dark) ---------- */

.cta-band {
  background:
    radial-gradient(1200px 400px at 80% -20%, var(--yellow-soft), transparent 60%),
    var(--ink);
  border-block: 1px solid var(--ink-line);
  text-align: center;
  color: var(--paper);
}
.cta-band .kicker { color: var(--yellow); }
.cta-band .btn { margin-top: 30px; }

/* ---------- contact (light) ---------- */

.contact-tiles { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.contact-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}
.contact-tile h3 { margin-bottom: 16px; }
.contact-tile h3::after { content: ""; display: block; width: 34px; height: 3px; background: var(--yellow); margin-top: 10px; }
.contact-tile a:hover { color: #9a8f00; }
.contact-tile .big {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- footer (dark) ---------- */

footer {
  background: #0b0b0b;
  border-top: 1px solid var(--ink-line);
  padding-block: clamp(50px, 7vw, 90px) 0;
  font-size: 14.5px;
  color: var(--paper);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  padding-bottom: 50px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid li { color: var(--mist); }
.footer-grid li { padding-block: 4px; }
.footer-grid a:hover { color: var(--yellow); }
.footer-logo img { height: 64px; margin-bottom: 18px; }
.footer-bottom {
  border-top: 1px solid #222;
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: #777;
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom .legal { display: flex; gap: 22px; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- legal text pages (light) ---------- */

.prose { max-width: 78ch; color: #3c3c3c; }
.prose h2 { font-size: 24px; margin: 42px 0 14px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 30px 0 10px; color: var(--ink); }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.prose a:hover { background: var(--yellow); text-decoration: none; }
.prose ul { list-style: square; padding-left: 22px; margin-bottom: 14px; }
