/* ==========================================================================
   Lizik & Co — Innenausbau Berlin
   Design: "Jasny rzemieślniczy" — warm white, navy accent, silver details
   ========================================================================== */

:root {
  --bg: #FAFBFC;
  --bg-alt: #F1F3F6;
  --ink: #26282B;
  --ink-soft: #4B4F55;
  --navy: #1F3D6E;
  --navy-deep: #162C50;
  --navy-hover: #274B85;
  --silver: #AEB4BD;
  --silver-line: #D8DCE2;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 2px 8px rgba(31, 61, 110, 0.06), 0 8px 24px rgba(31, 61, 110, 0.07);
  --shadow-lift: 0 4px 12px rgba(31, 61, 110, 0.10), 0 14px 34px rgba(31, 61, 110, 0.12);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 var(--s2);
  color: var(--ink);
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-weight: 700; letter-spacing: -0.015em; font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-weight: 600; font-size: clamp(1.15rem, 2.5vw, 1.35rem); }

p { margin: 0 0 var(--s2); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-hover); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

section { padding: var(--s10) 0; }

.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.85); }
.section-dark a { color: var(--white); text-decoration: underline; }

.kicker {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--s1);
}
.section-dark .kicker { color: var(--silver); }

.section-head { max-width: 640px; margin-bottom: var(--s6); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(31, 61, 110, 0.25);
}
.btn-primary:hover {
  background: var(--navy-hover);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(31, 61, 110, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(10, 18, 34, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-dark:hover { background: rgba(31, 61, 110, 0.07); }
.btn-google { gap: 10px; }
.google-icon-wrap { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; }
.google-icon-wrap svg { width: 20px; height: 20px; }
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { color: var(--navy-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transform: translateY(-1px); }
.btn-cta-pulse {
  padding: 17px 32px;
  font-size: 1.06rem;
  animation: ctaGlow 3s ease-in-out infinite;
}
.btn-cta-pulse:hover { animation-play-state: paused; }
/* Shared gold glow — a distinct accent color reads as "click me" against
   both light and dark button/background combinations, unlike a same-color pulse. */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(245, 185, 66, 0); }
}
/* .section-dark a forces white/underline — buttons need to win that specificity fight */
.section-dark .btn { text-decoration: none; }
.section-dark .btn-light { color: var(--navy); }
.section-dark .btn-light:hover { color: var(--navy-deep); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(250, 251, 252, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--silver-line), 0 4px 16px rgba(31, 61, 110, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
@media (min-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-text .brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink); }
.brand-text .brand-sub { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }

.main-nav { display: none; }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 220;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-open .nav-toggle span { background: var(--white); }
.nav-open .site-header { z-index: 230; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-open .brand img { filter: brightness(0) invert(1); }
.nav-open .brand-text .brand-name { color: var(--white); }
.nav-open .brand-text .brand-sub { color: var(--silver); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s8) var(--s4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { opacity: 0; transform: translateY(14px); transition: opacity 0.35s ease, transform 0.35s ease; }
.nav-open .mobile-menu li { opacity: 1; transform: none; }
.nav-open .mobile-menu li:nth-child(1) { transition-delay: 0.05s; }
.nav-open .mobile-menu li:nth-child(2) { transition-delay: 0.1s; }
.nav-open .mobile-menu li:nth-child(3) { transition-delay: 0.15s; }
.nav-open .mobile-menu li:nth-child(4) { transition-delay: 0.2s; }
.nav-open .mobile-menu li:nth-child(5) { transition-delay: 0.25s; }
.nav-open .mobile-menu li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--white);
}
.mobile-menu a[aria-current="page"] { color: var(--silver); }
.mobile-menu .menu-contact {
  margin-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--s3);
}
.mobile-menu .menu-contact a { font-size: 1.05rem; font-weight: 500; padding: 10px 0; }

@media (min-width: 900px) {
  .nav-toggle, .mobile-menu { display: none; }
  .main-nav { display: block; justify-self: center; }
  .main-nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; align-items: center; }
  .main-nav a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 10px 2px;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
  }
  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a:hover { color: var(--navy); }
  .main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    background: var(--navy);
    color: var(--white) !important;
    padding: 15px 28px;
    font-size: 1.04rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-head);
    animation: ctaGlow 3s ease-in-out infinite;
  }
  .nav-cta:hover { background: var(--navy-hover); animation-play-state: paused; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Header is opaque now, so no top scrim needed — just a left-side veil for
     text contrast that clears up well before the right half of the photo. */
  background: linear-gradient(115deg, rgba(9, 16, 30, 0.78) 0%, rgba(9, 16, 30, 0.46) 22%, rgba(9, 16, 30, 0.14) 44%, rgba(9, 16, 30, 0) 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + var(--s6)) 0 var(--s12);
  width: 100%;
}
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: var(--s3); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
  margin-bottom: var(--s4);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-trust .stars { color: #F5B942; letter-spacing: 2px; font-size: 1.05rem; }

.hero-anim { opacity: 0; transform: translateY(24px); }
.loaded .hero-anim { animation: fadeUp 0.7s ease forwards; }
.loaded .hero-anim:nth-child(1) { animation-delay: 0.1s; }
.loaded .hero-anim:nth-child(2) { animation-delay: 0.25s; }
.loaded .hero-anim:nth-child(3) { animation-delay: 0.4s; }
.loaded .hero-anim:nth-child(4) { animation-delay: 0.55s; }
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-content { padding-bottom: calc(var(--s12) + 20px); }
}

/* Subpage hero (small) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: calc(var(--header-h) + var(--s8)) 0 var(--s8);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; font-size: 1.1rem; margin-bottom: 0; }

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: var(--s2);
  color: var(--silver);
}
.breadcrumbs a { color: var(--silver); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-current] { color: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   Trust bar / counters
   -------------------------------------------------------------------------- */
.trust-bar { padding: var(--s8) 0; }
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s4) var(--s3);
  text-align: center;
}
@media (min-width: 480px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.trust-item .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
}
.trust-item .label { color: var(--silver); font-size: 0.95rem; }
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--silver-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card-img { overflow: hidden; aspect-ratio: 4 / 3; }
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); flex: 1; }
.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Project standards (Warum Lizik & Co)
   -------------------------------------------------------------------------- */
.standards-section {
  overflow: hidden;
  padding: clamp(64px, 7vw, 88px) 0;
  background: var(--navy-deep);
  color: var(--white);
}
.standards-heading {
  display: grid;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.standards-section .kicker { color: #C6D0DE; }
.standards-heading h2 {
  max-width: 19ch;
  margin: 0;
  color: var(--white);
  hyphens: none;
}
.standards-heading > p {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}
.standards-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.standard-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--s2);
  min-width: 0;
  padding: var(--s4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.standard-number {
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}
.standard-item h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.15rem;
}
.standard-item p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.65;
}
@media (min-width: 760px) {
  .standards-heading {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: end;
    column-gap: clamp(48px, 7vw, 96px);
  }
}
@media (min-width: 1000px) {
  .standards-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .standard-item {
    display: block;
    min-height: 238px;
    padding: 28px clamp(20px, 2.5vw, 32px) var(--s3);
    border-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
  .standard-item:first-child { padding-left: 0; border-left: 0; }
  .standard-item:last-child { padding-right: 0; }
  .standard-number {
    display: block;
    margin-bottom: var(--s4);
    font-size: clamp(2.2rem, 3vw, 2.85rem);
    line-height: 1;
  }
  .standard-number::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 14px;
    background: #D5B46E;
  }
}

/* Compact value list retained on the About page. */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
.feature .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s2);
  border-radius: var(--radius-sm);
  background: rgba(31, 61, 110, 0.08);
  color: var(--navy);
}
.feature .icon svg { width: 28px; height: 28px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Case study — before/after
   -------------------------------------------------------------------------- */
.case-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .case-grid { grid-template-columns: 1.15fr 1fr; } }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.ba-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.ba-single { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.ba-single img { display: block; width: 100%; height: auto; }
.ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 24, 44, 0.75);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
.ba-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s2);
  background: repeating-linear-gradient(45deg, #E6E9EE, #E6E9EE 12px, #EDF0F4 12px, #EDF0F4 24px);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--s2); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--silver);
  display: block;
  margin-bottom: var(--s1);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--silver-line);
  border-radius: var(--radius);
  padding: var(--s3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.quote-card .stars { color: #F5B942; letter-spacing: 2px; margin-bottom: var(--s2); }
.quote-card blockquote { margin: 0 0 var(--s2); color: var(--ink-soft); font-style: normal; flex: 1; }
.quote-card cite { font-style: normal; font-weight: 600; font-size: 0.9rem; }
.quote-card cite span { display: block; font-weight: 400; color: var(--silver); font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   CTA section
   -------------------------------------------------------------------------- */
.cta-section { text-align: center; }
.cta-section h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Leistungen page
   -------------------------------------------------------------------------- */
.service-block { scroll-margin-top: calc(var(--header-h) + 16px); }
.service-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid.flip .service-media { order: 2; }
}
.service-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.service-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.service-list { list-style: none; padding: 0; margin: var(--s3) 0; }
.service-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--silver-line);
  color: var(--ink-soft);
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 18px;
  height: 10px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg) scale(0.8);
}

/* --------------------------------------------------------------------------
   Referenzen — filter + gallery + lightbox
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s4);
}
.filter-btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--silver-line);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid {
  display: grid;
  gap: var(--s2);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.hidden { display: none; }
.gallery-item .g-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(13, 24, 44, 0.75), transparent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 16, 28, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82svh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 90vw;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Über uns
   -------------------------------------------------------------------------- */
.about-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.about-media figcaption {
  padding: var(--s2);
  background: var(--white);
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--silver-line);
}

.values-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  background: var(--white);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: var(--s3);
  box-shadow: var(--shadow-soft);
}
.value-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
.contact-grid > div { min-width: 0; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.contact-form .field { margin-bottom: var(--s3); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--silver);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 61, 110, 0.15);
}
.contact-form input,
.contact-form select,
.contact-form textarea { min-width: 0; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; }
.form-note { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: var(--s2); }

.contact-info {
  background: var(--white);
  border: 1px solid var(--silver-line);
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-soft);
}
.contact-info ul { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--silver-line);
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--navy); margin-top: 3px; }
.contact-info a { font-weight: 600; display: inline-block; padding: 4px 0; }

.map-placeholder {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--silver-line);
  transition: box-shadow 0.25s ease;
}
.map-placeholder:hover { box-shadow: var(--shadow-lift); }
.map-placeholder img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.map-placeholder .map-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(13, 24, 44, 0.85), rgba(13, 24, 44, 0.6) 70%, transparent);
}
.map-placeholder svg { width: 20px; height: 20px; flex-shrink: 0; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--silver-line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding: 18px 4px;
  min-height: 56px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-q::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(225deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-a p { color: var(--ink-soft); padding: 0 4px var(--s3); margin: 0; }

/* --------------------------------------------------------------------------
   Standorte
   -------------------------------------------------------------------------- */
.bezirk-links { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .bezirk-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .bezirk-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bezirk-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--silver-line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bezirk-links a:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--s8) 0 calc(var(--s10) + 24px);
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.footer-logo { max-width: 150px; margin-bottom: var(--s2); }
.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 1px solid rgba(174, 180, 189, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--silver);
}
.footer-bottom button {
  background: none;
  border: 0;
  color: var(--silver);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 4px 0;
}
.footer-bottom button:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Sticky mobile CTA bar + WhatsApp
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(31, 61, 110, 0.18);
  transform: translateY(0);
  transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta.hidden-bar { transform: translateY(110%); }
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}
.sticky-cta .cta-call { color: var(--navy); }
.sticky-cta .cta-offer { background: var(--navy); color: var(--white); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: calc(56px + env(safe-area-inset-bottom) + 16px);
  z-index: 140;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-fab .notify-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #E8433A;
  border: 2px solid var(--white);
  animation: notifyDotPulse 2.4s ease-in-out infinite;
}
@keyframes notifyDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}
@media (min-width: 900px) { .whatsapp-fab { bottom: 24px; } }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(56px + env(safe-area-inset-bottom) + 16px);
  z-index: 400;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--silver-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: var(--s3);
  display: none;
}
.cookie-banner.visible { display: block; }
@media (min-width: 900px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; } }
.cookie-banner p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: var(--s2); }
.cookie-actions { display: flex; gap: var(--s1); }
.cookie-actions .btn {
  flex: 1;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.95rem;
}
.cookie-actions .btn-decline {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1.5px solid var(--silver);
}
.cookie-actions .btn-decline:hover { background: #E6E9EE; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: var(--s8) 0;
}
.error-page .code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(5rem, 18vw, 9rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--silver);
  line-height: 1;
}
.thanks-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--s4);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
}
.thanks-icon svg { width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.4rem; margin-top: var(--s5); }
.legal-content h3 { font-size: 1.1rem; margin-top: var(--s4); }
.legal-content p, .legal-content li { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-media img { animation: none; }
  .hero-anim { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .scroll-hint::before { animation: none; }
}
