/* ==========================================================================
   ISO Dämmtechnik GmbH — Design System
   Richtung 1a "Fotoführend". Mobile-first, Breakpoints bei 700px und 1024px.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Farben */
  --ink: #1f2a44;
  --green: #4caf50;
  --green-dark: #2e7d32;
  --muted: #5a6478;
  --muted-light: #8a93a6;
  --line: #dce1e9;
  --line-soft: #e3e8ef;
  --line-faint: #edf0f5;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --surface-sunken: #f9fafc;

  /* Farben auf dunklem Grund */
  --on-dark: #ffffff;
  --on-dark-body: #b9c2d4;
  --on-dark-strong: #d6dce8;
  --on-dark-link: #e4e9f1;
  --on-dark-muted: #8fa0be;

  /* Radien */
  --r-tile: 5px;
  --r-sm: 9px;
  --r-md: 11px;
  --r-lg: 12px;
  --r-img: 14px;
  --r-card: 16px;

  /* Raster */
  --page-max: 1440px;
  --gutter: 22px;
  --section-y: 40px;

  --shadow-card: 0 6px 18px rgba(31, 42, 68, 0.12);
  --focus: 0 0 0 3px rgba(76, 175, 80, 0.45);
}

@media (min-width: 700px) {
  :root {
    --gutter: 40px;
    --section-y: 72px;
    --r-tile: 6px;
    --r-card: 18px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 56px;
    --section-y: 104px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--green-dark);
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

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

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- Typografie --------------------------------------------------------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  font-weight: 700;
}

.eyebrow--dark {
  color: var(--on-dark-muted);
}

.eyebrow--hero {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-body);
}

.eyebrow--hero::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 2px;
  flex: none;
}

h1,
.h1 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: pretty;
}

h2,
.h2 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: pretty;
}

h3,
.h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.body-muted {
  color: var(--muted);
}

@media (min-width: 700px) {
  .eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  h1,
  .h1 {
    font-size: 46px;
    line-height: 1.06;
    letter-spacing: -0.025em;
  }

  h2,
  .h2 {
    font-size: 34px;
  }

  h3,
  .h3 {
    font-size: 21px;
  }

  .lead {
    font-size: 19px;
  }
}

@media (min-width: 1024px) {
  h1,
  .h1 {
    font-size: 62px;
  }

  h2,
  .h2 {
    font-size: 40px;
  }

  h3,
  .h3 {
    font-size: 23px;
  }

  .lead {
    font-size: 21px;
  }
}

/* --- Icon-Kachel (2x2 gerundete Quadrate) ------------------------------- */
.icon-tile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5px;
  width: 40px;
  height: 40px;
  flex: none;
}

.icon-tile span {
  background: var(--ink);
  border-radius: var(--r-tile);
}

.icon-tile[data-accent="1"] span:nth-child(1),
.icon-tile[data-accent="2"] span:nth-child(2),
.icon-tile[data-accent="3"] span:nth-child(3),
.icon-tile[data-accent="4"] span:nth-child(4) {
  background: var(--green);
}

@media (min-width: 1024px) {
  .icon-tile {
    gap: 4px;
    width: 48px;
    height: 48px;
  }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: var(--ink);
}

.btn--primary:hover {
  background: #43a047;
  color: var(--ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

.btn--outline {
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.link-arrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}

.link-underline {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green);
  padding-bottom: 3px;
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .btn {
    font-size: 17px;
    padding: 17px 28px;
  }

  .link-underline {
    font-size: 16px;
  }
}

/* --- Kopfzeile ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line-faint);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__text {
  line-height: 1.05;
}

.brand__kicker {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  font-weight: 700;
}

.brand__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-lg);
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  border-top: 1px solid var(--line-faint);
  padding-bottom: 20px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__list a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 700;
}

.site-nav__list a[aria-current="page"] {
  color: var(--green-dark);
}

.site-nav__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--line-faint);
}

/* Zwei Klassen, damit die Regel `.site-nav__list a` nicht überschreibt. */
.site-nav__contact .site-nav__phone {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .brand__name {
    font-size: 17px;
  }

  .nav-toggle,
  .header-cta-icon {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    border-top: none;
    padding-bottom: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 0;
  }

  .site-nav__list a {
    padding: 0;
    font-size: 15px;
    font-weight: 600;
  }

  .site-nav__contact {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }

  .site-nav__contact .site-nav__phone {
    color: var(--ink);
  }

  .site-nav__contact .btn {
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 10px;
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  min-height: 520px;
  display: flex;
  overflow: hidden;
}

.hero--compact {
  min-height: 340px;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 42, 68, 0.35) 0%,
    rgba(31, 42, 68, 0.72) 46%,
    rgba(31, 42, 68, 0.96) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 28px;
  color: var(--on-dark);
}

.hero__inner h1 {
  color: var(--on-dark);
}

.hero__inner .lead {
  color: var(--on-dark-strong);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 700px) {
  .hero {
    min-height: 560px;
  }

  .hero--compact {
    min-height: 380px;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 640px;
  }

  .hero--compact {
    min-height: 420px;
  }

  .hero__scrim {
    background: linear-gradient(
      100deg,
      rgba(31, 42, 68, 0.94) 0%,
      rgba(31, 42, 68, 0.82) 38%,
      rgba(31, 42, 68, 0.12) 72%,
      rgba(31, 42, 68, 0) 100%
    );
  }

  .hero__inner {
    align-self: center;
    justify-content: center;
    gap: 30px;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Die Textbreite begrenzen, nicht den Container — sonst zentriert `.wrap`
     den Heroblock und er fluchtet nicht mehr mit Logo und Sektionstiteln. */
  .hero__inner > * {
    max-width: 900px;
  }

  .hero__inner .lead {
    max-width: 640px;
  }
}

/* --- Vertrauensleiste --------------------------------------------------- */
.trustbar {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark-strong);
}

.trustbar__list {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  font-weight: 600;
}

.trustbar__list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trustbar__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 2px;
  flex: none;
}

@media (min-width: 1024px) {
  .trustbar__list {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 14px;
    gap: 24px;
  }

  .trustbar__list li::before {
    width: 7px;
    height: 7px;
  }
}

/* --- Abschnittskopf ----------------------------------------------------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}

@media (min-width: 1024px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }

  .section-head__text {
    gap: 14px;
  }
}

/* --- Leistungskarten ---------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.card__img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.card__body .link-arrow {
  margin-top: auto;
  padding-top: 4px;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
  }

  .card__img {
    height: 190px;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .card__img {
    height: 210px;
  }

  .card__body {
    padding: 28px 28px 32px;
    gap: 16px;
  }
}

/* --- Argumente ---------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 22px;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar::before {
  content: "";
  width: 34px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 36px;
  }
}

@media (min-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 52px;
  }

  .pillar {
    gap: 12px;
  }

  .pillar::before {
    width: 40px;
  }
}

/* --- Filter-Chips ------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

@media (min-width: 1024px) {
  .filters {
    margin-top: 0;
  }

  .chip {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* --- Galerie / Referenzen ----------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.gallery__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item img,
.gallery__item .photo-placeholder {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--r-img);
}

.gallery__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.gallery__meta strong {
  font-weight: 700;
}

.gallery__meta span {
  color: var(--muted-light);
}

.gallery__empty {
  margin-top: 20px;
  color: var(--muted);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
  }

  .gallery__item img,
  .gallery__item .photo-placeholder {
    height: 260px;
  }

  .gallery__meta {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
  }

  .gallery__item img,
  .gallery__item .photo-placeholder {
    height: 300px;
  }
}

/* --- Platzhalter für fehlende Fotos ------------------------------------- */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
  border: 2px dashed #c9d1de;
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-sunken),
    var(--surface-sunken) 12px,
    #eef1f6 12px,
    #eef1f6 24px
  );
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.photo-placeholder strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Ablauf ------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
  list-style: none;
  padding: 0;
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
}

.step h3 {
  color: var(--on-dark);
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-dark-body);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 52px;
  }

  .step {
    padding: 28px;
    gap: 12px;
  }
}

/* --- Kontakt / Formular ------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.field--wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--green);
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: #c62828;
  background: #fff7f7;
}

.field__error {
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
}

.field__error:empty {
  display: none;
}

.field__req {
  color: var(--muted-light);
  font-weight: 600;
}

.upload-box {
  grid-column: 1 / -1;
  border: 1px dashed #c9d1de;
  border-radius: var(--r-md);
  padding: 15px;
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.upload-box strong {
  color: var(--ink);
}

.upload-box a {
  color: var(--green-dark);
  font-weight: 700;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.form-note {
  font-size: 14px;
  color: var(--muted-light);
}

.form-status {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--surface-sunken);
  color: var(--muted);
}

.form-status:empty {
  display: none;
}

.form-status--error {
  color: #c62828;
  background: #fff7f7;
  border-color: #f0c4c4;
}

.form-status--ok {
  color: #1b5e20;
  background: #f1f8f2;
  border-color: #b7dcbb;
}

/* Honeypot: muss für Besucher und Hilfsmittel unsichtbar bleiben. */
.honeypot {
  display: none !important;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.consent .field__error {
  flex-basis: 100%;
}

.consent.field--invalid input {
  outline: 2px solid #c62828;
  outline-offset: 2px;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--green);
}

.contact-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card__name {
  font-size: 19px;
  font-weight: 800;
}

.contact-card hr {
  border: none;
  border-top: 1px solid var(--line-faint);
  margin: 0;
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
}

.contact-row .label {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 700;
}

.placeholder-value {
  font-weight: 800;
  color: var(--ink);
  background: #fff4d6;
  border: 1px dashed #d9b45a;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}

.map-figure {
  position: relative;
  height: 200px;
  border-radius: var(--r-img);
  overflow: hidden;
  background: #eaeef3;
  border: 1px solid var(--line-soft);
}

.map-figure .bar-h {
  position: absolute;
  left: 0;
  right: 0;
  background: #dce2ea;
}

.map-figure .bar-v {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #dce2ea;
}

.map-figure .block {
  position: absolute;
  background: #d3dae4;
  border-radius: 4px;
}

.map-figure .pin {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(31, 42, 68, 0.25);
}

.map-figure figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.map-figure figcaption span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-light);
  margin-top: 3px;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .map-figure {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }

  .contact-card {
    padding: 28px;
    gap: 18px;
  }

  .form-grid {
    margin-top: 28px;
  }
}

/* --- Fliesstext (Impressum, Datenschutz) -------------------------------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p,
.prose ul {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--green-dark);
  font-weight: 700;
}

.prose dl {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.prose dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 14px;
}

.prose dd {
  margin: 0;
}

@media (min-width: 1024px) {
  .prose h2 {
    font-size: 26px;
    margin-top: 48px;
  }
}

/* --- Fusszeile ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-top: 36px;
  padding-bottom: 28px;
}

.site-footer .brand__kicker {
  color: var(--on-dark-muted);
}

.site-footer .brand__name {
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--on-dark-link);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-address {
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark-body);
  margin-top: 26px;
}

.footer-address a {
  color: var(--on-dark-link);
  font-weight: 600;
}

.footer-address a:hover {
  color: var(--green);
}

.footer-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 26px 0;
}

.footer-bottom {
  font-size: 13px;
  color: var(--on-dark-muted);
  text-align: center;
}

.footer-bottom a {
  color: var(--on-dark-link);
  font-weight: 700;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: 64px;
    padding-bottom: 36px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 0;
  }

  .footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .footer-address {
    margin-top: 0;
  }

  .footer-rule {
    margin: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
