/* ==========================================================================
   Heer Sanitär Service — minimal, editorial, water-cool
   ========================================================================== */

:root {
  /* palette: porcelain, ink, deep-blue accent (matches the HEER logo) */
  --c-bg: #f7f6f2;
  --c-bg-soft: #efedea;
  --c-surface: #ffffff;
  --c-ink: #131820;
  --c-ink-soft: #4a525d;
  --c-mute: #8a8e95;
  --c-line: #e0ddd6;
  --c-line-strong: #c9c5bd;

  --c-primary: #1f3d7a;       /* deep blue, from logo */
  --c-primary-hover: #16306b;
  --c-water: #4a90c8;         /* secondary water blue */
  --c-drop: #c63a3a;          /* the red drop */

  --shadow-1: 0 1px 2px rgba(15, 22, 36, .04), 0 8px 28px -16px rgba(15, 22, 36, .14);
  --shadow-lift: 0 4px 12px rgba(15, 22, 36, .06), 0 30px 60px -30px rgba(15, 22, 36, .25);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --space: clamp(20px, 4vw, 40px);
  --max: 1320px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* reset --------------------------------------------------------------------- */
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 10px 14px;
  background: var(--c-ink); color: #fff; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* typography helpers -------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 0 0 16px;
}
.eyebrow .rule {
  display: inline-block; width: 28px; height: 1px; background: var(--c-primary);
}
.lede { font-size: clamp(16px, 1.6vw, 18px); color: var(--c-ink-soft); max-inline-size: min(56ch, 100%); }

/* buttons ------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; min-height: 48px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  max-width: 100%;
}
.button.primary { background: var(--c-ink); color: #fff; }
.button.primary:hover { background: var(--c-primary); }
.button.primary:active { transform: translateY(1px); }
.button.ghost {
  background: transparent; color: var(--c-ink); border-color: var(--c-line-strong);
}
.button.ghost:hover { border-color: var(--c-ink); background: rgba(0, 0, 0, .03); }
.button svg { transition: transform .25s var(--ease); }
.button:hover svg { transform: translateX(2px); }

.inline-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--c-primary); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.inline-link:hover { border-color: var(--c-primary); }
.inline-link svg { transition: transform .2s var(--ease); }
.inline-link:hover svg { transform: translateX(3px); }

/* header -------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(247, 246, 242, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  min-height: var(--header-h);
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  background: rgba(247, 246, 242, .92);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }

.primary-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); justify-content: center; }
.primary-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  color: var(--c-ink-soft);
  padding: 6px 0; position: relative;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--c-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:hover { color: var(--c-ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border: 1px solid var(--c-line-strong); border-radius: 999px;
  color: var(--c-ink); background: var(--c-surface);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.header-cta:hover { border-color: var(--c-ink); }
.header-cta .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #2dbf6c;
  box-shadow: 0 0 0 0 rgba(45, 191, 108, .55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 191, 108, .55); }
  60%  { box-shadow: 0 0 0 9px rgba(45, 191, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 191, 108, 0); }
}

.menu-button {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--c-line-strong); border-radius: 999px;
  cursor: pointer; position: relative;
}
.menu-button span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--c-ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.menu-button span:nth-child(1) { top: 15px; }
.menu-button span:nth-child(2) { top: 21px; }
.menu-button span:nth-child(3) { top: 27px; }
.menu-button[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(380px, 86vw);
  background: var(--c-surface); z-index: 60;
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 4px; padding: 92px 28px 28px;
  border-left: 1px solid var(--c-line);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  text-decoration: none; padding: 16px 0;
  font-family: 'Fraunces', Georgia, serif; font-size: 24px; color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.mobile-nav .mobile-cta {
  margin-top: 16px; align-self: flex-start; padding: 12px 22px;
  background: var(--c-ink); color: #fff; border-radius: 999px;
  border-bottom: none; font-family: 'Inter', sans-serif; font-size: 15px;
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(15, 22, 36, .35); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* hero ---------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 7vw, 88px) clamp(20px, 5vw, 56px) clamp(48px, 8vw, 96px);
}
.hero-text { min-width: 0; }
.hero-text h1 {
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 400;
  color: var(--c-ink);
  margin: 8px 0 24px;
  max-inline-size: min(14ch, 100%);
  text-wrap: balance;
  animation: rise .9s var(--ease) both;
}
.hero-text > .eyebrow { animation: rise .7s var(--ease) both; }
.hero-text > .lede { animation: rise .9s .1s var(--ease) both; max-inline-size: min(46ch, 100%); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; animation: rise .9s .2s var(--ease) both; }
.hero-meta {
  margin: 44px 0 0; padding-top: 28px;
  border-top: 1px solid var(--c-line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  animation: rise 1s .3s var(--ease) both;
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; color: var(--c-ink);
  margin-bottom: 4px; letter-spacing: -.01em;
}
.hero-meta dd { margin: 0; font-size: 13px; color: var(--c-mute); line-height: 1.4; }

.hero-image {
  margin: 0; position: relative;
  border-radius: var(--r-lg);
  overflow: clip;
  box-shadow: var(--shadow-lift);
  animation: revealImg 1.1s var(--ease) both;
}
.hero-image img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transform: scale(1.05);
  animation: zoomOut 1.6s var(--ease) both;
}
.hero-image figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; color: var(--c-ink); letter-spacing: .04em;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealImg {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes zoomOut {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* section heading ----------------------------------------------------------- */
.section-head {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid; gap: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -.015em;
  max-inline-size: min(18ch, 100%);
  text-wrap: balance;
}

/* leistungen ---------------------------------------------------------------- */
.leistungen { padding: clamp(48px, 8vw, 112px) 0 clamp(24px, 5vw, 56px); }
.service-grid {
  max-width: var(--max); margin: 48px auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--c-line);
}
.service-card {
  position: relative; padding: 36px 28px 36px;
  border-bottom: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: 14px;
  background: transparent;
  transition: background .3s var(--ease);
  min-width: 0;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:hover { background: var(--c-surface); }
.service-num {
  position: absolute; top: 20px; right: 24px;
  font-family: 'Fraunces', Georgia, serif; font-size: 13px; color: var(--c-mute);
  letter-spacing: .1em;
}
.service-icon { width: 36px; height: 36px; color: var(--c-primary); margin-bottom: 6px; }
.service-card h3 { font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -.01em; }
.service-card p { color: var(--c-ink-soft); font-size: 15px; line-height: 1.55; max-inline-size: 38ch; }

.service-cta {
  background: var(--c-ink); color: #fff;
}
.service-cta h3 { color: #fff; font-size: clamp(22px, 2.4vw, 26px); }
.service-cta p  { color: rgba(255, 255, 255, .72); }
.service-cta .inline-link { color: #fff; margin-top: auto; }
.service-cta .inline-link:hover { border-color: rgba(255, 255, 255, .8); }
.service-cta:hover { background: var(--c-primary); }

/* band (van photo) ---------------------------------------------------------- */
.band {
  position: relative; margin: clamp(24px, 6vw, 80px) 0;
  overflow: clip;
  background: var(--c-bg-soft);
}
.band img {
  width: 100%; max-height: 64vh; object-fit: cover;
  filter: saturate(.9) contrast(1.02);
}
.band-text {
  position: absolute; left: clamp(24px, 6vw, 72px); right: clamp(24px, 6vw, 72px);
  bottom: clamp(20px, 5vw, 48px);
  max-width: 520px; padding: 24px 26px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.band-text p { color: var(--c-ink); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.5; }

/* referenzen ---------------------------------------------------------------- */
.referenzen { padding: clamp(48px, 8vw, 96px) 0; }
.ref-tabs {
  max-width: var(--max); margin: 36px auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--c-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ref-tabs::-webkit-scrollbar { display: none; }
.ref-tab {
  background: none; border: none; cursor: pointer;
  padding: 14px 0; margin-right: 32px;
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 500;
  color: var(--c-mute);
  position: relative;
  display: inline-flex; align-items: baseline; gap: 10px;
  transition: color .25s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.ref-tab .num {
  font-family: 'Fraunces', Georgia, serif; font-size: 13px; color: var(--c-mute); letter-spacing: .08em;
}
.ref-tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--c-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.ref-tab.is-active { color: var(--c-ink); }
.ref-tab.is-active::after { transform: scaleX(1); }
.ref-tab:hover:not(.is-active) { color: var(--c-ink-soft); }

.ref-panel {
  max-width: var(--max); margin: 36px auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
}
.ref-panel[hidden] { display: none; }
.ref-panel.is-active .masonry { animation: panelFade .5s var(--ease) both; }
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.masonry {
  column-count: 3;
  column-gap: 16px;
}
.masonry .tile {
  display: block; margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--r-md);
  overflow: clip;
  position: relative;
  background: var(--c-bg-soft);
  box-shadow: 0 1px 2px rgba(15, 22, 36, .04);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.masonry .tile img {
  width: 100%; height: auto;
  transition: transform .8s var(--ease), filter .35s var(--ease);
}
.masonry .tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 36, 0) 60%, rgba(15, 22, 36, .35));
  opacity: 0; transition: opacity .35s var(--ease);
}
.masonry .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.masonry .tile:hover img { transform: scale(1.04); }
.masonry .tile:hover::after { opacity: 1; }

/* über uns ------------------------------------------------------------------ */
.ueber-uns {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) clamp(20px, 5vw, 56px);
  align-items: start;
}
.about-text { min-width: 0; }
.about-text h2 {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 8px 0 22px;
  max-inline-size: min(18ch, 100%);
  text-wrap: balance;
}
.about-text p { color: var(--c-ink-soft); font-size: 17px; line-height: 1.65; max-inline-size: 56ch; margin-bottom: 16px; }
.about-text strong { color: var(--c-ink); font-weight: 600; }
.about-text blockquote {
  margin: 28px 0; padding: 18px 0 18px 22px;
  border-left: 2px solid var(--c-primary);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35;
  color: var(--c-ink); font-style: italic; font-weight: 300;
  max-inline-size: 32ch;
}
.team {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.member {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 18px; display: flex; gap: 16px; align-items: center; min-width: 0;
}
.member img {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; object-position: 30% center;
  flex-shrink: 0;
}
.member-monogram {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-water));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif; font-size: 26px; letter-spacing: .04em;
  flex-shrink: 0;
}
.member h3 { font-size: 18px; font-family: 'Inter', sans-serif; font-weight: 600; }
.member .role { font-size: 13px; color: var(--c-mute); margin-top: 2px; }

.about-figure {
  margin: 0; border-radius: var(--r-lg); overflow: clip;
  box-shadow: var(--shadow-lift);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.about-figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* lieferanten --------------------------------------------------------------- */
.lieferanten {
  background: var(--c-bg-soft);
  padding: clamp(48px, 8vw, 96px) 0;
}
.supplier-grid {
  max-width: var(--max); margin: 44px auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: clip;
}
.supplier-grid li {
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.supplier-grid li:nth-child(4n) { border-right: none; }
.supplier-grid li:nth-last-child(-n+4) { border-bottom: none; }
.supplier-grid a {
  display: flex; align-items: center; justify-content: center;
  height: 120px; padding: 22px;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.supplier-grid a:hover { filter: grayscale(0); opacity: 1; background: rgba(31, 61, 122, .03); }
.supplier-grid img { max-height: 60px; width: auto; max-width: 100%; }

/* kontakt ------------------------------------------------------------------- */
.kontakt {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) clamp(20px, 5vw, 56px);
  align-items: start;
}
.kontakt-info { min-width: 0; }
.kontakt-info h2 {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 8px 0 18px;
  max-inline-size: min(18ch, 100%);
  text-wrap: balance;
}
.contact-lines {
  margin-top: 32px; display: grid; gap: 0;
  border-top: 1px solid var(--c-line);
}
.contact-lines li {
  display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 16px;
}
.contact-lines .label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-mute);
}
.contact-lines a { color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line-strong); padding-bottom: 1px; }
.contact-lines a:hover { border-color: var(--c-ink); }
.contact-lines address { font-style: normal; color: var(--c-ink); line-height: 1.5; }

.kontakt-map {
  margin-top: 28px;
  border-radius: var(--r-md); overflow: clip;
  border: 1px solid var(--c-line);
  box-shadow: inset 0 0 0 1px rgba(15, 22, 36, .03);
  aspect-ratio: 16/10;
  background: #eee;
}
.kontakt-map iframe {
  width: 100%; height: 100%; border: 0;
  filter: saturate(1.05) contrast(1.02);
}

.kontakt-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-1);
  display: grid; gap: 16px;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.kontakt-form h3 { font-size: clamp(22px, 2.4vw, 28px); }
.form-intro { color: var(--c-mute); font-size: 14px; margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-ink-soft);
}
.field input, .field textarea {
  font: inherit; color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: 8px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--c-surface);
}
.checkbox {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  font-size: 13px; color: var(--c-ink-soft); line-height: 1.5;
}
.checkbox input { margin-top: 3px; accent-color: var(--c-primary); }
.checkbox a { color: var(--c-primary); }
.kontakt-form .button { justify-self: start; }
.form-note { font-size: 13px; color: var(--c-ink-soft); min-height: 18px; }
.form-note.is-success { color: #1a7c4a; }

/* footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink); color: rgba(255, 255, 255, .8);
  padding: clamp(48px, 7vw, 80px) 0 28px;
  margin-top: clamp(28px, 5vw, 64px);
}
.foot-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.foot-brand img {
  height: 52px; width: auto;
  background: #fff; padding: 6px 10px; border-radius: 6px;
}
.foot-brand p { margin-top: 14px; color: rgba(255, 255, 255, .55); font-size: 14px; }
.foot-col h4 {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}
.foot-col p, .foot-col nav { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.7; }
.foot-col nav { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-bar {
  max-width: var(--max); margin: 56px auto 0;
  padding: 24px clamp(20px, 5vw, 56px) 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .5);
}

/* lightbox ------------------------------------------------------------------ */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100dvh;
  width: 100vw; height: 100dvh;
  background: rgba(15, 18, 24, .96);
  color: #fff;
  margin: 0;
}
.lightbox::backdrop { background: rgba(15, 18, 24, .96); }
.lightbox figure {
  margin: 0; width: 100%; height: 100%;
  display: grid; place-items: center; padding: 56px 16px 64px;
  box-sizing: border-box;
}
.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 80dvh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  animation: lbZoom .35s var(--ease);
}
.lightbox figcaption {
  margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .65); letter-spacing: .04em;
}
@keyframes lbZoom {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255, 255, 255, .08);
  color: #fff; border: 0; border-radius: 999px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev  { top: 50%; left: 16px;  transform: translateY(-50%); }
.lb-next  { top: 50%; right: 16px; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

/* reveal-on-scroll ---------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { aspect-ratio: 16/11; }
  .hero-text h1 { max-inline-size: min(18ch, 100%); }
  .ueber-uns { grid-template-columns: 1fr; gap: 36px; }
  .about-figure { position: static; }
  .kontakt { grid-template-columns: 1fr; gap: 36px; }
  .kontakt-form { position: static; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3n) { border-right: 1px solid var(--c-line); }
  .service-card:nth-child(2n) { border-right: none; }
  .supplier-grid { grid-template-columns: repeat(2, 1fr); }
  .supplier-grid li:nth-child(4n) { border-right: 1px solid var(--c-line); }
  .supplier-grid li:nth-child(2n) { border-right: none; }
  .supplier-grid li:nth-last-child(-n+4) { border-bottom: 1px solid var(--c-line); }
  .supplier-grid li:nth-last-child(-n+2) { border-bottom: none; }
  .masonry { column-count: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .primary-nav, .header-cta { display: none; }
  .menu-button { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { padding-top: 24px; }
  .hero-text h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; margin-top: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; }
  .supplier-grid { grid-template-columns: repeat(2, 1fr); }
  .supplier-grid a { height: 96px; padding: 16px; }
  .supplier-grid img { max-height: 44px; }
  .masonry { column-count: 1; }
  .band-text { left: 16px; right: 16px; padding: 18px; }
  .team { grid-template-columns: 1fr; }
  .contact-lines li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand img { height: 44px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-prev:hover, .lb-next:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
