/* =========================================================================
   Rainer Rapp AG — Sanitär & Heizung, Oberägeri
   Design system: "Engineered heritage" — warm paper canvas, brand indigo
   (#361389) + crimson (#bb1b23), blueprint-grid + monospace spec motif,
   warm editorial serif for the family heritage since 1948.
   ========================================================================= */

:root {
  /* Brand */
  --indigo: #361389;
  --indigo-700: #28096c;
  --indigo-900: #1a0648;
  --indigo-300: #7a5fd0;
  --red: #bb1b23;
  --red-600: #9c1118;
  --gold: #e7b21d;

  /* Surfaces */
  --paper: #f2eee4;
  --paper-2: #e9e2d4;
  --surface: #fbf9f4;
  --ink: #1b1430;
  --ink-soft: #514a64;
  --ink-faint: #8a8398;
  --line: rgba(27, 20, 48, 0.14);
  --line-strong: rgba(27, 20, 48, 0.26);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 4px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(27, 20, 48, .06), 0 18px 40px -28px rgba(27, 20, 48, .5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -120px;
  z-index: 1000;
  background: var(--indigo);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  font: 600 .9rem/1 var(--sans);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Shared label / eyebrow (monospace, technical) ---------------------- */
.eyebrow {
  font: 700 .72rem/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
}
.eyebrow--light { color: #ffd9c9; }
.eyebrow--light::before { background: var(--gold); }

/* =========================================================================
   Header
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.topbar[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(27, 20, 48, .8);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .85rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font: 600 .95rem/1 var(--sans);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  padding: .3rem 0;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .28s cubic-bezier(.3,.7,.2,1);
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after { width: 100%; }

.nav-cta {
  font-family: var(--mono) !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
  letter-spacing: .04em;
  background: var(--indigo);
  color: #fff !important;
  padding: .6rem 1rem !important;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: background .25s ease, transform .25s ease;
}
.nav-cta::before { content: "↳"; opacity: .7; }
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 42px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 11px;
}
.menu-toggle span { height: 2px; width: 100%; background: var(--ink); transition: transform .3s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font: 700 .95rem/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.3,.7,.2,1), background .22s ease, color .22s ease, border-color .22s ease;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--gold); color: var(--indigo-900); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(4rem, 11vh, 8.5rem) 0 0;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(106deg, var(--indigo-900) 8%, rgba(40,9,108,.86) 46%, rgba(26,6,72,.42) 100%),
    linear-gradient(0deg, rgba(20,5,55,.7), transparent 55%);
}
/* blueprint grid */
.hero-veil::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(105deg, #000 38%, transparent 78%);
  mask-image: linear-gradient(105deg, #000 38%, transparent 78%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(3.5rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(78vh, 720px);
  align-content: end;
}
.hero h1 {
  font-size: clamp(2.05rem, 1.1rem + 4.8vw, 6.2rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 28, "WONK" 0;
  color: #fff;
  max-inline-size: 16ch;
  margin-bottom: 1.4rem;
}
.hero h1 .dot { color: var(--red); }
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--gold);
}
.hero-lead {
  max-inline-size: 52ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* registration / corner marks */
.reg {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 1;
  color: rgba(255,255,255,.55);
  pointer-events: none;
}
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; height: 1.5px; width: 100%; transform: translateY(-50%); }
.reg.tl { top: 22px; left: 22px; }
.reg.tr { top: 22px; right: 22px; }

.hero-tag {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 8vh, 6rem);
  font: 700 .68rem/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  text-align: right;
  display: grid;
  gap: .25rem;
}
.hero-tag span { color: var(--gold); }
@media (max-width: 860px) { .hero-tag { display: none; } }
@media (max-width: 600px) { .hero h1 br { display: none; } }

/* stat strip */
.statstrip {
  background: var(--indigo);
  color: #fff;
  position: relative;
  z-index: 2;
}
.statstrip-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.statstrip .stat {
  padding: 1.7rem clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgba(255,255,255,.16);
}
.statstrip .stat:first-child { border-left: none; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat strong .accent { color: var(--gold); }
.stat span {
  display: block;
  margin-top: .55rem;
  font: 600 .7rem/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
@media (max-width: 760px) {
  .statstrip-inner { grid-template-columns: 1fr 1fr; }
  .statstrip .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.14); }
  .statstrip .stat:nth-child(2) { border-left: 1px solid rgba(255,255,255,.16); }
  .statstrip .stat:nth-child(4) { border-left: 1px solid rgba(255,255,255,.16); }
  .statstrip .stat:nth-child(-n+2) { border-top: none; }
}

/* =========================================================================
   Section scaffolding
   ========================================================================= */
section { position: relative; }
.section {
  padding: clamp(4.5rem, 10vh, 8rem) 0;
}
.section--paper2 { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.section-num {
  font: 700 .8rem/1 var(--mono);
  color: var(--red);
  padding-top: .9rem;
  border-top: 2px solid var(--ink);
  align-self: start;
  white-space: nowrap;
}
.section-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  max-inline-size: 18ch;
}
.section-head p {
  margin: 1.2rem 0 0;
  max-inline-size: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.18rem);
}
.section-head .head-text { min-width: 0; }

/* =========================================================================
   Intro / Betrieb
   ========================================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.intro-copy h2 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  max-inline-size: 16ch;
  margin-bottom: 1.4rem;
}
.intro-copy .lead-serif {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--indigo);
  margin: 0 0 1.4rem;
  max-inline-size: 40ch;
}
.intro-copy p { color: var(--ink-soft); max-inline-size: 50ch; }
.intro-points {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}
.intro-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: baseline;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.intro-points li span.k {
  font: 700 .72rem/1.4 var(--mono);
  color: var(--red);
  letter-spacing: .05em;
}

.intro-media {
  position: relative;
  min-width: 0;
}
.intro-media .img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 3 / 2.05;
  object-fit: cover;
}
.intro-media .img-plan {
  position: absolute;
  right: -1.2rem;
  bottom: -1.8rem;
  width: 42%;
  border-radius: var(--radius);
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-card);
  transform: rotate(2.5deg);
}
.badge-techniker {
  position: absolute;
  left: -1rem; top: -1.4rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: .7rem .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 700 .66rem/1.25 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
  max-width: 13rem;
}
.badge-techniker .dotmark { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }

@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { order: -1; margin-bottom: 2.5rem; }
  .intro-media .img-plan { width: 38%; right: 0; }
}

/* =========================================================================
   Leistungen — feature rows
   ========================================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature-media { position: relative; min-width: 0; }
.feature-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature.reverse .feature-media { order: 2; }
.feature-index {
  position: absolute;
  top: -1.1rem; left: -0.6rem;
  font: 700 .74rem/1 var(--mono);
  letter-spacing: .1em;
  background: var(--red);
  color: #fff;
  padding: .55rem .8rem;
  border-radius: var(--radius);
}
.feature.reverse .feature-index { background: var(--indigo); }

.feature-copy h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  margin-bottom: 1rem;
}
.feature-copy > p { color: var(--ink-soft); max-inline-size: 46ch; margin: 0 0 1.6rem; }
.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}
.spec-list li {
  break-inside: avoid;
  display: flex;
  gap: .65rem;
  padding: .5rem 0;
  font-size: .96rem;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.spec-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  margin-top: .5em;
  background: var(--red);
  transform: rotate(45deg);
}
.feature.reverse .spec-list li::before { background: var(--indigo); }
@media (max-width: 980px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: -1; }
  .feature-media { margin-bottom: 1.5rem; }
}
@media (max-width: 520px) { .spec-list { columns: 1; } }

/* service band (small cards) */
.svc-band {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.3,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.svc-card .ic {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  color: var(--indigo);
  margin-bottom: 1.1rem;
}
.svc-card:nth-child(2) .ic { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.svc-card .ic svg { width: 24px; height: 24px; }
.svc-card h4 { font-size: 1.4rem; margin-bottom: .55rem; }
.svc-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 720px) { .svc-band { grid-template-columns: 1fr; } }

/* =========================================================================
   Heritage band (seit 1948)
   ========================================================================= */
.heritage {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: clip;
}
.heritage-bg { position: absolute; inset: 0; z-index: -2; }
.heritage-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.heritage-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,6,72,.55), rgba(26,6,72,.78)),
              linear-gradient(90deg, rgba(26,6,72,.85), rgba(26,6,72,.25));
}
.heritage-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  display: grid;
  gap: 1.8rem;
}
.heritage-inner .hwrap { max-inline-size: 42ch; }
.heritage h2 {
  color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4.4rem);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.heritage h2 em { font-style: italic; color: var(--gold); font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
.heritage p { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-inline-size: 50ch; }
.year-badge {
  font: 700 .72rem/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(231,178,29,.5);
  padding: .55rem .9rem;
  border-radius: 100px;
  justify-self: start;
}

/* =========================================================================
   Referenzen — gallery
   ========================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3 / 4;
  min-width: 0;
}
.gallery figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26,6,72,.82));
  opacity: .85;
}
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.1rem;
  color: #fff;
}
.gallery figcaption b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.gallery figcaption span {
  display: block;
  margin-top: .35rem;
  font: 700 .64rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery .feat { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .feat { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
}
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } .gallery .feat { grid-column: span 1; } }

/* =========================================================================
   Team
   ========================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.team-card { min-width: 0; }
.team-card .ph {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
}
.team-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.12) contrast(1.02);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.team-card:hover .ph img { transform: scale(1.04); filter: grayscale(0) contrast(1.04); }
.team-card .ph::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.3,.7,.2,1);
}
.team-card.lead .ph::after { background: var(--indigo); }
.team-card:hover .ph::after { transform: scaleX(1); }
.team-card h4 { font-size: 1.18rem; margin: .9rem 0 .15rem; letter-spacing: -0.01em; }
.team-card p {
  margin: 0;
  font: 600 .72rem/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.team-card.lead p { color: var(--red); }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   Kontakt
   ========================================================================= */
.kontakt { background: var(--indigo-900); color: #fff; overflow: clip; position: relative; }
.kontakt::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
  pointer-events: none;
}
.kontakt .section-num { color: var(--gold); border-top-color: rgba(255,255,255,.4); }
.kontakt .section-head h2 { color: #fff; }
.kontakt .section-head p { color: rgba(255,255,255,.78); }
.kontakt .eyebrow { color: var(--gold); }
.kontakt .eyebrow::before { background: var(--gold); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.spec-sheet {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  backdrop-filter: blur(2px);
}
.spec-sheet h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.14);
  align-items: baseline;
}
.spec-row .lab {
  font: 700 .72rem/1.4 var(--mono);
  letter-spacing: .1em;
  color: var(--gold);
}
.spec-row .val { color: #fff; line-height: 1.5; min-width: 0; }
.spec-row .val a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .2s ease, color .2s ease; word-break: break-word; }
.spec-row .val a:hover { color: var(--gold); border-color: var(--gold); }
.spec-row .val .big { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.spec-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  min-height: 420px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.map iframe {
  width: 100%; height: 100%; min-height: 420px;
  border: 0;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .map iframe { min-height: 340px; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-main {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-inline-size: 34ch; font-size: .96rem; }
.footer-col h2 {
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col p { margin: 0 0 .7rem; font-size: .96rem; }
.footer-col a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-col nav { display: grid; gap: .55rem; }
.footer-bottom {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.4rem var(--gutter);
  border-top: 1px solid rgba(255,255,255,.12);
  font: 600 .76rem/1.5 var(--mono);
  letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================================================
   Legal pages
   ========================================================================= */
.legal-hero {
  background: var(--indigo-900);
  color: #fff;
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
}
.legal-hero-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.legal-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem); margin: .4rem 0 .8rem; }
.legal-hero p { color: rgba(255,255,255,.8); max-inline-size: 54ch; margin: 0; }
.legal-body { padding: clamp(3rem, 7vh, 5rem) 0 clamp(4rem, 9vh, 6rem); }
.legal-body-inner { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.legal-body-inner h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  margin: 2.4rem 0 .7rem;
  color: var(--indigo);
}
.legal-body-inner h2:first-of-type { margin-top: 0; }
.legal-body-inner p { color: var(--ink-soft); margin: 0 0 1rem; }
.legal-body-inner a { color: var(--red); }
.legal-contact-strip {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .85rem;
}
.legal-contact-strip a { text-decoration: none; color: var(--indigo); border-bottom: 1px solid var(--line-strong); }
.legal-back {
  display: inline-block;
  margin-top: 2.5rem;
  font: 700 .8rem/1 var(--mono);
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--indigo);
}
.legal-back:hover { color: var(--red); }

/* =========================================================================
   Reveal animations
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .gallery figure img, .team-card .ph img { transition: none; }
}

/* =========================================================================
   Mobile nav
   ========================================================================= */
@media (max-width: 940px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    /* The frosted (backdrop-filter) header is the containing block for this
       fixed drawer, so size by viewport height instead of bottom/inset. */
    height: 100dvh;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .4rem;
    background: var(--surface);
    padding: 6rem var(--gutter) 2rem;
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.3,.7,.2,1);
    box-shadow: -30px 0 60px -30px rgba(27,20,48,.5);
    border-left: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { font-size: 1.25rem; font-family: var(--display); font-weight: 600; padding: .6rem 0; width: 100%; }
  .nav a:not(.nav-cta) { border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1.2rem; font-size: .95rem !important; padding: .85rem 1.2rem !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(26,6,72,.4);
    z-index: 90;
    backdrop-filter: blur(2px);
  }
}
