/* ==========================================================================
   Foliencenter Zürich — Design-System im Tesla-Stil
   ========================================================================== */
:root {
  --c-dark: #171a20;
  --c-text: #393c41;
  --c-gray: #5c5e62;
  --c-line: #d0d1d2;
  --c-soft: #f4f4f4;
  --header-h: 56px;
  --radius: 4px;
  --ease: cubic-bezier(0.5, 0, 0, 0.75);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--c-dark);
  background: transparent;
  transition: background .4s var(--ease), color .3s ease, box-shadow .4s ease;
}
@media (min-width: 1024px) { .site-header { padding: 0 32px; } }

.site-header.is-solid {
  background: #fff;
}
.site-header.has-shadow { box-shadow: 0 1px 0 rgba(23,26,32,.06); }

/* Oben (nicht gescrollt): dunkler Glas-Streifen, weisse Schrift + weisses Logo */
.site-header:not(.is-solid) {
  color: #fff;
  background: rgba(23, 26, 32, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Logo: weisse Variante auf dem Glas-Streifen, dunkle auf weissem Header */
.logo { display: flex; align-items: center; padding: 6px 8px; border-radius: 8px; }
.logo img { height: 32px; width: auto; }
.logo .logo-light { display: none; }
.site-header:not(.is-solid) .logo-light { display: block; }
.site-header:not(.is-solid) .logo-dark { display: none; }

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
}
.nav-item, .util-item {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .25s ease;
  white-space: nowrap;
}
.nav-item:hover, .util-item:hover { background: rgba(23,26,32,.06); }
.site-header:not(.is-solid) .nav-item:hover,
.site-header:not(.is-solid) .util-item:hover,
.site-header:not(.is-solid) .btn-burger:hover { background: rgba(255,255,255,.16); }

.header-utils { display: flex; align-items: center; gap: 2px; }
.util-phone { display: inline-flex; align-items: center; gap: 8px; }
.util-phone svg { flex-shrink: 0; }

.btn-burger { display: none; }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .util-phone { display: none; }
  .btn-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px; border-radius: 8px;
    transition: background .25s ease;
  }
  .btn-burger svg { display: block; }
  .btn-burger:hover { background: rgba(23,26,32,.06); }
}

/* ==========================================================================
   Mega-Menü (Desktop)
   ========================================================================== */
.mega {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 990;
  background: #fff;
  padding: calc(var(--header-h) + 32px) 48px 44px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.mega.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.mega-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 56px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
@media (max-width: 1200px) { .mega-grid { grid-template-columns: repeat(3, 1fr); } }

.mega-tile { text-align: center; }
.mega-tile .tile-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .35s ease;
}
.mega-tile:hover .tile-img { transform: scale(1.02); }
.mega-tile .tile-name {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dark);
}
.mega-tile .tile-links {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.mega-tile .tile-links a {
  font-size: 13px;
  color: var(--c-gray);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mega-tile .tile-links a:hover { color: var(--c-dark); }

.mega-tile.soon .tile-img { filter: grayscale(1); opacity: .55; }
.mega-tile.soon .tile-name { color: var(--c-gray); }
.tile-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-gray);
}

.mega-aside {
  border-left: 1px solid var(--c-line);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.mega-aside a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-dark);
  padding: 7px 0;
}
.mega-aside a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Schleier über dem Seiteninhalt bei offenem Menü */
.veil {
  position: fixed; inset: 0;
  z-index: 900;
  background: rgba(23,26,32,.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.veil.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Mobile Drawer
   ========================================================================== */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 94vw);
  z-index: 1100;
  background: #fff;
  transform: translateX(102%);
  transition: transform .45s cubic-bezier(.32,.72,.24,1);
  padding: 64px 20px 24px;
  overflow-y: auto;
}
.drawer.open { transform: none; }

.drawer-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
}
.drawer-close:hover { background: var(--c-soft); }

.drawer-link, .acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-dark);
  padding: 13px 12px;
  border-radius: 8px;
  text-align: left;
}
.drawer-link:hover, .acc-head:hover { background: var(--c-soft); }

.acc-head svg { transition: transform .3s ease; flex-shrink: 0; }
.acc.open .acc-head svg { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.acc-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--c-text);
  padding: 10px 12px 10px 24px;
  border-radius: 8px;
}
.acc-body a:hover { background: var(--c-soft); }
.acc-body .soon { color: #9b9c9e; pointer-events: none; }
.acc-body .soon small { font-size: 11px; }

.drawer-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  display: grid;
  gap: 10px;
}
.drawer-cta .btn { width: 100%; min-width: 0; }
.drawer-cta .btn-light { background: var(--c-soft); }
.drawer-cta .btn-light:hover { background: #e8e8e8; }

/* ==========================================================================
   Panels (Fullscreen-Sektionen)
   ========================================================================== */
.panel {
  position: relative;
  min-height: 100svh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 17vh 24px 7vh;
  text-align: center;
  overflow: hidden;
}
.panel > * { position: relative; }

/* Glas-Balken hinter dem Hero-Text für Lesbarkeit */
.panel-copy {
  background: rgba(23, 26, 32, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px 44px 26px;
  max-width: min(880px, 94vw);
}
@media (max-width: 640px) {
  .panel-copy { padding: 18px 22px 20px; border-radius: 10px; }
}

.panel-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 500;
  letter-spacing: .3px;
  color: #fff;
  line-height: 1.15;
}
.panel-sub {
  margin: 10px auto 0;
  font-size: 15px;
  max-width: 620px;
  color: rgba(255,255,255,.92);
  line-height: 1.55;
}
.panel-sub a { text-decoration: underline; text-underline-offset: 3px; }

.panel-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  color: var(--c-dark);
  animation: hint 2s infinite;
}
.panel.invert .scroll-hint { color: #fff; }
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 264px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: background .25s ease, color .25s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn-dark { background: rgba(23,26,32,.82); color: #fff; }
.btn-dark:hover { background: rgba(23,26,32,.96); }
.btn-light { background: rgba(255,255,255,.68); color: #262a30; }
.btn-light:hover { background: rgba(255,255,255,.88); }
.btn-white { background: #fff; color: var(--c-dark); }
.btn-white:hover { background: #e8e8e8; }

@media (max-width: 640px) {
  .panel-cta { flex-direction: column; align-items: center; gap: 12px; }
  .btn { width: min(100%, 420px); min-width: 0; }
}

/* ==========================================================================
   Inhalts-Sektionen
   ========================================================================== */
.section { padding: 96px 0; }
.section-soft { background: var(--c-soft); }

.intro { max-width: 780px; margin: 0 auto; text-align: center; }
.intro p { font-size: 17px; line-height: 1.75; }
.intro p + p { margin-top: 20px; }

.sec-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  color: var(--c-dark);
  text-align: center;
}
.sec-lead { text-align: center; margin-top: 10px; color: var(--c-gray); font-size: 15px; }

.benefits {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 36px;
}
.benefit { border-top: 1px solid var(--c-line); padding-top: 18px; text-align: left; }
.benefit h3 { font-size: 15px; font-weight: 600; color: var(--c-dark); }
.benefit p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--c-gray); }

.closing {
  margin: 64px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
}

.note-box {
  margin: 48px auto 0;
  max-width: 720px;
  background: var(--c-soft);
  border-radius: 8px;
  padding: 22px 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-dark);
}

/* Leistungspakete (Lackschutz) */
.pakete-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.paket-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.paket-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(23,26,32,.08); }
.paket-card h3 { font-size: 16px; font-weight: 600; color: var(--c-dark); }
.paket-card p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--c-text); }
.paket-card .paket-sub { color: var(--c-gray); font-weight: 500; }

.ext-banner {
  margin: 40px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 15px;
}
.ext-banner a {
  font-weight: 600;
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Bildstrecke */
.strip-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.strip-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
}
.strip-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.strip-grid a:hover img { transform: scale(1.05); }

/* CTA-Band */
.cta-band {
  background: var(--c-dark);
  color: #fff;
  text-align: center;
  padding: 110px 24px;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 500; }
.cta-band p { margin: 14px auto 36px; max-width: 640px; font-size: 15px; color: #c9cacb; line-height: 1.6; }

/* Anfahrt */
.anfahrt-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.steps { display: grid; gap: 22px; }
.steps li { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
.steps .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--c-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--c-dark);
}
.steps p { font-size: 15px; line-height: 1.55; padding-top: 4px; }
.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(1) contrast(1.04);
}

/* ==========================================================================
   Galerie
   ========================================================================== */
.gal-hero {
  min-height: 46svh;
  padding-top: calc(var(--header-h) + 8vh);
  padding-bottom: 6vh;
  justify-content: flex-end;
}

.gal-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px calc(14px);
  border-bottom: 1px solid rgba(23,26,32,.06);
}
.tab {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  transition: all .25s ease;
}
.tab:hover { border-color: var(--c-dark); }
.tab.active { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.tab small { opacity: .65; font-size: 11px; margin-left: 4px; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
  padding: 8px;
}
@media (max-width: 640px) { .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; } }

.gal-item {
  aspect-ratio: 1394 / 768;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--c-soft);
}
/* Foto-Kategorien (1024x768) im 4:3-Raster */
.gal-panel:not([data-cat="folierung"]) .gal-item { aspect-ratio: 4 / 3; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .5s ease;
}
.gal-item:hover img { transform: scale(1.04); }

.gal-empty {
  padding: 140px 24px;
  text-align: center;
}
.gal-empty h3 { font-size: 22px; font-weight: 500; color: var(--c-dark); }
.gal-empty p { margin-top: 10px; color: var(--c-gray); font-size: 15px; }

.gal-panel { display: none; }
.gal-panel.active { display: block; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(23,26,32,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb img {
  max-width: 94vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lb-btn {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  transition: background .25s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 14px; right: 14px; }
.lb-count {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #a2a3a5;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--c-soft);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(23,26,32,.08); }
.contact-card svg { margin: 0 auto 14px; color: var(--c-dark); }
.contact-card h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--c-gray); }
.contact-card a, .contact-card .val {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--c-dark);
}
.contact-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hours-box {
  margin: 16px auto 0;
  max-width: 560px;
  text-align: center;
}
.hours-box .time { font-size: 20px; font-weight: 500; color: var(--c-dark); margin-top: 8px; }
.hours-box .hint { margin-top: 8px; font-size: 14px; color: var(--c-gray); }
.hours-note {
  margin-top: 24px;
  background: #fff;
  border-radius: 8px;
  padding: 20px 26px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
  text-align: center;
}
/* auf weissen Sektionen: Kärtchen grau statt weiss */
.section:not(.section-soft) .hours-note { background: var(--c-soft); }
.hours-note a {
  font-weight: 600;
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.hours-note .note-tel { margin-top: 12px; font-size: 18px; }

.form-wrap { max-width: 720px; margin: 48px auto 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--c-gray);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--c-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--c-dark);
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--c-dark); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }

.form-actions { margin-top: 24px; text-align: center; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--c-gray); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--c-dark);
  color: #fff;
  padding: 72px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 16px; font-size: 13px; color: #a2a3a5; line-height: 1.7; max-width: 280px; }

.foot-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8e8f92;
  margin-bottom: 14px;
}
.foot-col a, .foot-col p { display: block; font-size: 13px; color: #a2a3a5; padding: 4px 0; line-height: 1.6; }
.foot-col a:hover { color: #fff; }

.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 12px;
  color: #8e8f92;
}

/* ==========================================================================
   Einblende-Animationen
   ========================================================================== */
/* Nur bei aktivem JS ausblenden — ohne JS bleibt alles sichtbar */
.js .fx {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .fx.in { opacity: 1; transform: none; }
.js .fx[data-d="1"] { transition-delay: .12s; }
.js .fx[data-d="2"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  * { transition-duration: .01ms !important; }
}
