/* =========================================================
   KOUP Immobilien — Garagen Landingpage
   Design-System übernommen von immobilien.koup.at
   Font: Source Sans 3 (self-hosted) · Radius: 0 · Uppercase-Buttons
   ========================================================= */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #586887;
  --primary-dark: #51607c;
  --primary-deep: #46536d;
  --secondary: #eed9ce;
  --secondary-soft: #f6ebe4;
  --white: #ffffff;
  --ink: #2b3341;
  --ink-soft: #5d6675;
  --line: rgba(88, 104, 135, 0.22);
  --line-light: rgba(238, 217, 206, 0.28);

  --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --container: 80rem;
  --pad-x: 5%;
  --radius: 0px;
  --nav-h: 5.5rem;

  --shadow: 0 1.5rem 3.5rem rgba(43, 51, 65, 0.14);
  --shadow-soft: 0 0.75rem 2rem rgba(43, 51, 65, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  text-wrap: balance;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.5rem; }
h4 { font-size: 1.375rem; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout ---------- */

.padding-global { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.section { padding-block: 7rem; }
.section--tight { padding-block: 4.5rem; }

.section--cream { background: var(--secondary); color: var(--primary); }
.section--cream h2, .section--cream h3, .section--cream h4 { color: var(--primary); }

.section--navy { background: var(--primary); color: var(--secondary); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--secondary); }

.tagline {
  display: inline-block;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section--navy .tagline { color: var(--secondary); opacity: 0.85; }
.section--cream .tagline { color: var(--primary); opacity: 0.8; }

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 46rem;
}
.section--navy .lead { color: var(--secondary); opacity: 0.92; }
.section--cream .lead { color: var(--primary); opacity: 0.88; }

.section-head { max-width: 52rem; margin-bottom: 3.5rem; }
.section-head .lead { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
}
.button:hover { background: var(--primary-deep); border-color: var(--primary-deep); transform: translateY(-2px); }

.button-secondary {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.button-secondary:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }

.button-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.button-ghost:hover { background: currentColor; transform: translateY(-2px); }
.section--navy .button-ghost:hover { color: var(--primary); }
.button-ghost:hover > * { color: var(--white); }
.section--navy .button-ghost:hover > * { color: var(--primary); }

.button-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--secondary);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--nav-h);
}

.navbar__logo img { height: 3.25rem; width: auto; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
}

.navbar__link {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.navbar__link:hover { border-color: var(--secondary); }

.navbar__cta { padding: 0.7rem 1.4rem; font-size: 0.875rem; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-light);
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--secondary);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84vh, 46rem);
  padding-block: 6rem 4.5rem;
  background: var(--primary-deep);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Horizontaler Scrim für Textkontrast links + vertikaler Verlauf zum Seitenübergang */
  background:
    linear-gradient(100deg, rgba(52, 61, 81, 0.9) 0%, rgba(52, 61, 81, 0.72) 38%, rgba(52, 61, 81, 0.24) 68%, rgba(52, 61, 81, 0.1) 100%),
    linear-gradient(180deg, rgba(70, 83, 109, 0.5) 0%, rgba(58, 68, 90, 0.42) 40%, rgba(58, 68, 90, 0.92) 100%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 46rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 { color: var(--white); }

.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
}

.hero .button-row { margin-top: 2.5rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.hero__meta div { min-width: 8rem; }
.hero__meta dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.hero__meta dd {
  margin: 0.35rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.fact {
  padding: 2rem 1.75rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.fact:nth-child(4n) { border-right: 0; }
.fact__icon { color: var(--primary); margin-bottom: 1rem; }
.fact__icon svg { width: 1.75rem; height: 1.75rem; }
.fact h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.fact p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Standort-Blöcke ---------- */

.standort {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.standort + .standort { margin-top: 7rem; padding-top: 7rem; border-top: 1px solid var(--line); }
.standort--reverse .standort__visual { order: 2; }

.standort__visual { position: relative; }
.standort__photo {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.standort__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.standort__photo:hover img { transform: scale(1.04); }

.standort__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 0.55rem 1.1rem;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standort__body .tagline { margin-bottom: 0.75rem; }
.standort__body h3 { font-size: 2.25rem; }

.standort__address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
}
.standort__address svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.2rem; }

.standort__text { margin-top: 1.25rem; color: var(--ink-soft); font-size: 1.0625rem; }

.standort__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.standort__list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 1rem;
  color: var(--ink);
}
.standort__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--primary);
}

/* ---------- Standort-Karte im Brand-Theme (Leaflet) ---------- */

/* Übersicht: Text + Karte mit beiden Standorten */
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5.5rem;
}
.overview__text .lead { margin-top: 1.25rem; }
.overview__legend {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.overview__legend li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
}
.overview__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.overview__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- Karten-Komponente ---- */
.geomap {
  position: relative;
  margin: 1.75rem 0 0;
  padding: 0;
  background: #dfe3ea;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.geomap--overview { margin: 0; }

.geomap__stage { position: relative; }

.geomap__canvas {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 15rem;
  background: #dfe3ea;
  cursor: grab;
}
.geomap--overview .geomap__canvas { aspect-ratio: 4 / 3.4; }
.geomap__canvas:active { cursor: grabbing; }
.geomap__canvas .leaflet-container { background: #dfe3ea; font-family: var(--font); }

/* Duotone: OSM-Tiles in die Hausfarben tönen */
.geomap .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.42) hue-rotate(172deg) saturate(1.45)
          brightness(1.06) contrast(0.92);
}

/* Vignette + Papier-Charakter über der Karte */
.geomap__vignette {
  position: absolute;
  inset: 0;
  z-index: 415;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(88, 104, 135, 0) 42%, rgba(70, 83, 109, 0.34) 100%),
    linear-gradient(180deg, rgba(238, 217, 206, 0.18) 0%, rgba(238, 217, 206, 0) 30%);
}

/* Ecken-Ticks wie in einem Planausschnitt */
.geomap__ticks { position: absolute; inset: 0; z-index: 420; pointer-events: none; }
.geomap__ticks i {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 0 solid var(--primary-deep);
  opacity: 0.55;
}
.geomap__ticks i:nth-child(1) { top: 0.75rem; left: 0.75rem; border-top-width: 2px; border-left-width: 2px; }
.geomap__ticks i:nth-child(2) { top: 0.75rem; right: 0.75rem; border-top-width: 2px; border-right-width: 2px; }
.geomap__ticks i:nth-child(3) { bottom: 0.75rem; left: 0.75rem; border-bottom-width: 2px; border-left-width: 2px; }
.geomap__ticks i:nth-child(4) { bottom: 0.75rem; right: 0.75rem; border-bottom-width: 2px; border-right-width: 2px; }

/* Fadenkreuz, folgt dem Standort-Marker */
.geomap__cross {
  position: absolute;
  inset: 0;
  z-index: 405;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.geomap__cross-x, .geomap__cross-y { position: absolute; background: rgba(70, 83, 109, 0.42); }
.geomap__cross-x { left: 0; right: 0; top: var(--y); height: 1px; }
.geomap__cross-y { top: 0; bottom: 0; left: var(--x); width: 1px; }

/* Marker */
.geopin { position: relative; }
.geopin__gem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin: -0.425rem 0 0 -0.425rem;
  background: var(--primary-deep);
  border: 3px solid var(--secondary);
  transform: rotate(45deg);
  box-shadow: 0 0.35rem 0.9rem rgba(43, 51, 65, 0.45);
}
.geopin__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem 0 0 -0.8rem;
  border: 1px solid rgba(70, 83, 109, 0.85);
  transform: rotate(45deg);
  animation: geopulse 2.8s var(--ease) infinite;
}
@keyframes geopulse {
  0%   { transform: rotate(45deg) scale(0.55); opacity: 0.95; }
  70%  { transform: rotate(45deg) scale(1.6); opacity: 0; }
  100% { transform: rotate(45deg) scale(1.6); opacity: 0; }
}
.geopin__num {
  position: absolute;
  top: -1.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.45rem;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.geopin__label {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  background: rgba(70, 83, 109, 0.92);
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Info-Karte auf der Karte */
.geomap__card {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  z-index: 910;
  display: grid;
  gap: 0.15rem;
  max-width: min(20rem, 78%);
  padding: 1.1rem 1.35rem 1.15rem;
  background: var(--primary);
  color: var(--secondary);
  box-shadow: var(--shadow-soft);
}
.geomap__coords {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.geomap__card strong { font-size: 1.125rem; line-height: 1.3; }
.geomap__place { font-size: 0.9375rem; opacity: 0.85; }
.geomap__route {
  margin-top: 0.6rem;
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  border-bottom: 1px solid rgba(238, 217, 206, 0.55);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.geomap__route::after { content: ' \2192'; }
.geomap__route:hover { border-color: var(--secondary); color: var(--white); }

.geomap__title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 910;
  padding: 0.55rem 1.1rem;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Zoom-Buttons */
.geomap__zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 910;
  display: grid;
}
.geomap--overview .geomap__zoom { top: 3.25rem; }
.geomap__zoom button {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: rgba(88, 104, 135, 0.94);
  color: var(--secondary);
  border: 0;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.geomap__zoom button + button { border-top: 1px solid rgba(238, 217, 206, 0.3); }
.geomap__zoom button:hover { background: var(--primary-deep); }

/* Hinweis + Attribution */
.geomap__hint {
  position: absolute;
  right: 0.75rem;
  bottom: 2.1rem;
  z-index: 910;
  padding: 0.25rem 0.6rem;
  background: rgba(70, 83, 109, 0.88);
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.geomap.is-live .geomap__hint { opacity: 0; }

.geomap__attr {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 910;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}
.geomap__noscript {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 920;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.875rem;
}

.standort .geomap { margin-top: 1.75rem; }

.standort__body .button-row { margin-top: 2rem; }

/* ---------- Vorteile ---------- */

.vorteile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.vorteil {
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.vorteil__num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  opacity: 0.55;
}
.vorteil h4 { margin: 0.85rem 0 0.65rem; }
.vorteil p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Anfrage / Form ---------- */

.anfrage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

.anfrage__aside h2 { font-size: 2.75rem; }
.anfrage__aside .lead { margin-top: 1.25rem; }

.contact-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.contact-list li { display: flex; align-items: flex-start; gap: 0.85rem; }
.contact-list svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.3rem; color: var(--secondary); }
.contact-list span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.contact-list a, .contact-list strong { font-size: 1.0625rem; font-weight: 600; }
.contact-list a { border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.contact-list a:hover { border-color: currentColor; }

/* TEMform-Embed: der Iframe bringt eigenes Weiß und eigenes Logo mit —
   die Karte drumherum liefert nur Rahmen und Schatten der Site. */
.temform__frame {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* Innenabstand der Karte: der Iframe hat selbst nur wenig Luft nach
     links/rechts/unten, bei textlastigen Schritten klebt der Satz sonst am
     Rahmen. Die Karte schiebt den Iframe deshalb nach innen — weiss auf
     weiss, also liest sich das als Luft und nicht als zweiter Kasten. */
  --temform-pad-x: 1.75rem;
  --temform-pad-y: 1.5rem;
  padding: var(--temform-pad-y) var(--temform-pad-x);
  /* Feste Rahmenhoehe: das Formular scrollt intern, statt bei jedem Schritt
     die Seitenhoehe springen zu lassen. Derselbe Wert steht als
     data-tem-height im HTML, damit das Embed gar nicht erst in den
     Auto-Hoehen-Modus geht. */
  --temform-height: 640px;
}
.temform__frame iframe {
  display: block;
  width: 100%;
  border: 0;
  height: var(--temform-height) !important;
  transition: none !important;
}

.temform__note {
  margin: 1.1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--secondary);
  opacity: 0.75;
}
.temform__note a { color: inherit; border-bottom: 1px solid currentColor; }
.temform__note a:hover { opacity: 0.8; }

/* ---------- Footer ---------- */

.footer {
  background: var(--primary-dark);
  color: var(--secondary);
  padding-block: 4.5rem 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__logo img { height: 3.5rem; width: auto; }
.footer__blurb { margin-top: 1.5rem; font-size: 0.9375rem; opacity: 0.85; max-width: 24rem; }

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: 0.7;
  margin-bottom: 1.25rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.footer li { font-size: 0.9375rem; }
.footer a { border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.footer a:hover { border-color: currentColor; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8125rem;
  opacity: 0.8;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__bottom nav a[data-tem-consent] { cursor: pointer; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.75rem; }
  h3 { font-size: 2.25rem; }

  .section { padding-block: 5rem; }

  .navbar__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad-x) 2rem;
    background: var(--primary);
    border-top: 1px solid var(--line-light);
    box-shadow: var(--shadow);
    transform: translateY(-125%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .navbar__links.is-open { transform: none; }
  .navbar__link { padding-block: 1rem; border-bottom: 1px solid var(--line-light); }
  .navbar__link:hover { border-color: var(--line-light); }
  .navbar__cta { margin-top: 1.5rem; }
  .navbar__toggle { display: flex; }

  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(4n) { border-right: 0; }

  .overview { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3.5rem; }
  .standort { grid-template-columns: 1fr; gap: 2.5rem; }
  .standort--reverse .standort__visual { order: 0; }
  .standort + .standort { margin-top: 4rem; padding-top: 4rem; }

  .vorteile { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .anfrage { grid-template-columns: 1fr; gap: 3rem; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  :root { --nav-h: 4.75rem; --pad-x: 1.35rem; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 2rem; }

  .section { padding-block: 4rem; }
  .section--tight { padding-block: 3rem; }

  .navbar__logo img { height: 2.5rem; }

  .hero { min-height: auto; padding-block: 4rem 3.5rem; }
  .hero__sub { font-size: 1.0625rem; }
  .hero .button-row { margin-top: 2rem; }
  .hero .button, .hero .button-secondary { width: 100%; }
  .hero__meta { gap: 1.5rem; margin-top: 2.5rem; }

  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; padding: 1.75rem 1.5rem; }

  .standort__body h3 { font-size: 1.875rem; }
  .standort__body .button-row .button,
  .standort__body .button-row .button-ghost { width: 100%; }
  .geomap__canvas { aspect-ratio: 4 / 3; min-height: 0; }
  .geomap__hint { display: none; }
  .geomap__card { position: static; max-width: 100%; padding: 1rem 1.15rem 1.15rem; }
  .geomap__attr { top: 0; left: 0; right: auto; bottom: auto; }

  .vorteile { grid-template-columns: 1fr; }

  .anfrage__aside h2 { font-size: 2.25rem; }
  .temform__note { font-size: 0.78125rem; }
  /* Mobil mehr Hoehe (die Schritte stapeln sich), aber nie hoeher als der
     sichtbare Bildschirm — sonst muesste man scrollen, um den Weiter-Button
     zu sehen. Was nicht hineinpasst, scrollt im Formular selbst.
     Der Innenabstand der Karte geht von der verfuegbaren Hoehe ab, sonst
     waechst die Karte ueber den Bildschirm hinaus. */
  .temform__frame {
    /* Seitlich nur wenig: auf dem Handy ist die Zeile ohnehin knapp, mehr
       Innenabstand wuerde die Fragen unnoetig umbrechen lassen. */
    --temform-pad-x: 0.5rem;
    --temform-pad-y: 1rem;
    --temform-height: min(720px, calc(100svh - 4.5rem - 2 * var(--temform-pad-y)));
  }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

}
