/* ==========================================================================
   Immobilienbewertung Matthias Strahl
   Mobile first · alle Farben, Abstände und Schriftgrößen als Variablen
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schriften (lokal, SIL Open Font License – siehe assets/fonts/OFL-*.txt)
   Beide Dateien sind variable Fonts, ein File deckt alle Strichstärken ab.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --paper: #F7F5F0;
  --ink: #1F2A33;
  --line: #2F5573;
  --line-strong: #24445C;   /* Hover-Zustand für Flächen in Zeichnungsblau */
  --muted: #646A70;         /* 5,0:1 auf --paper (WCAG AA) */
  --hairline: #DAD5CC;

  /* Schriftfamilien */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Typo-Skala – fließend zwischen 360 px und 1280 px Viewport */
  --step--1: clamp(0.875rem, 0.851rem + 0.11vw, 0.9375rem);  /* 14 → 15 */
  --step-0:  clamp(1.0625rem, 1.038rem + 0.11vw, 1.125rem);  /* 17 → 18 */
  --step-1:  clamp(1.125rem, 1.052rem + 0.33vw, 1.3125rem);  /* 18 → 21 */
  --step-2:  clamp(1.3125rem, 1.19rem + 0.54vw, 1.625rem);   /* 21 → 26 */
  --step-3:  clamp(1.875rem, 1.435rem + 1.96vw, 3rem);       /* 30 → 48 (h2) */
  --step-entry: clamp(1.2rem, 1.141rem + 0.26vw, 1.35rem);   /* 19,2 → 21,6 (Abschlüsse in Qualifikationen) */
  --step-4:  clamp(2.5rem, 1.62rem + 3.91vw, 4.75rem);       /* 40 → 76 */

  /* Abstände */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, 1.103rem + 0.65vw, 1.625rem);    /* 20 → 26 */
  --space-l: clamp(2rem, 1.707rem + 1.3vw, 2.75rem);         /* 32 → 44 */
  --space-xl: clamp(3rem, 2.511rem + 2.17vw, 4.25rem);       /* 48 → 68 */
  --section-gap: clamp(4.5rem, 3.326rem + 5.22vw, 7.5rem);  /* 72 → 120: einheitlicher Sektions-Rhythmus */

  /* Layout */
  --gutter: clamp(1.25rem, 0.565rem + 3.04vw, 3rem);         /* 20 → 48 */
  --max: 75rem;
  --measure: 36rem;
  --header-h: 3.75rem;
  --header-h-condensed: 3rem;                                /* Mobil beim Scrollen */
  --callbar-h: 4.75rem;                                      /* Mobile Anruf-Leiste ohne Safe Area */

  /* Linien & Formen */
  --rule: 1px;
  --radius-pill: 999px;
  --tick: 0.875rem;                                          /* Länge der Maßlinien-Schrägstriche */
}

@media (min-width: 56.25em) {
  :root {
    --header-h: 4.5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-s));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

/* Alle Sektions-Überschriften (h2) exakt gleich groß */
h2 {
  font-size: var(--step-3);
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

/* Keine automatische Silbentrennung (Safari trennt deutsche Wörter unschön),
   lange Wörter dürfen im Notfall trotzdem umbrechen statt überzulaufen. */
p,
li,
dd {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* Kurze Beschreibungstexte (2–4 Zeilen): Zeilen ausgleichen. „pretty“ erzeugt
   in WebKit hier Umbrüche wie „Eigentumswohnungen / und Mehrfamilienhäusern“. */
.service p,
.step p,
.contact-sheet__field dd {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--line);
  text-decoration-thickness: var(--rule);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--line-strong);
}

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

main:focus {
  outline: none;
}

::selection {
  background: var(--line);
  color: var(--paper);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: var(--space-2xs);
  left: var(--gutter);
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step--1);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
/* Mobil: Buttons untereinander, volle Breite. Ab 600px nebeneinander. */
.actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.125rem;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--line);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--line-strong);
  border-color: var(--line-strong);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  color: var(--line);
}

.btn--secondary:hover {
  background: color-mix(in srgb, var(--line) 7%, transparent);
  color: var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
}

@media (min-width: 37.5em) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    padding-inline: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: var(--rule) solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  line-height: 1.15;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 500;
}

.brand__role {
  display: block;
  max-height: 1.25em;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-nav {
  display: none;
}

.call {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--line);
  text-decoration: none;
}

/* Trefferfläche bleibt auch beim verkleinerten Button ≥ 44px */
.call::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
}

.call:hover {
  background: color-mix(in srgb, var(--line) 7%, transparent);
}

.call__number {
  display: none;
}

@media (min-width: 56.25em) {
  .site-nav {
    display: block;
    margin-left: auto;
  }

  .site-nav ul {
    display: flex;
    gap: var(--space-l);
  }

  .site-nav a {
    display: block;
    padding-block: var(--space-2xs);
    color: var(--ink);
    font-size: var(--step--1);
    font-weight: 500;
    text-decoration: none;
  }

  .site-nav a:hover {
    color: var(--line);
    text-decoration: underline;
  }
}

@media (min-width: 72em) {
  .call {
    width: auto;
    height: 2.5rem;
    margin-left: var(--space-s);
    padding-inline: 1.125rem;
    font-size: var(--step--1);
    font-weight: 500;
  }

  .call__number {
    display: inline;
    white-space: nowrap;
  }
}

/* Mobil: Header wird beim Scrollen schmaler (Klasse .is-condensed per JS).
   Höhe und margin-bottom ändern sich gegenläufig mit gleichem Timing,
   die Gesamthöhe im Fluss bleibt konstant → kein Springen des Inhalts. */
@media (max-width: 56.24em) {
  .site-header.is-condensed {
    margin-bottom: calc(var(--header-h) - var(--header-h-condensed));
  }

  .site-header.is-condensed .site-header__inner {
    height: var(--header-h-condensed);
  }

  .site-header.is-condensed .brand__role {
    max-height: 0;
    opacity: 0;
  }

  .site-header.is-condensed .call {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (max-width: 56.24em) and (prefers-reduced-motion: no-preference) {
  .site-header,
  .site-header__inner,
  .brand__role,
  .call {
    transition-duration: 0.3s;
    transition-timing-function: ease;
  }

  .site-header         { transition-property: margin-bottom; }
  .site-header__inner  { transition-property: height; }
  .brand__role         { transition-property: max-height, opacity; }
  .call                { transition-property: width, height, background-color; }
}

/* --------------------------------------------------------------------------
   Hero – Höhe nach Inhalt (kein Leerraum unter dem Haus); danach --section-gap
   -------------------------------------------------------------------------- */
.hero {
  padding-top: var(--space-l);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.hero__kicker {
  margin-bottom: var(--space-s);
  color: var(--line);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 30rem;
  margin-top: var(--space-m);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__actions {
  margin-top: var(--space-l);
}

/* Haus-Bauzeichnung: festes Seitenverhältnis der Zeichnung, kein Leerraum darunter */
.hero__visual {
  position: relative;
  aspect-ratio: 440 / 340;
}

.house {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  /* butt: DrawSVG zeigt bei 0 % sonst einen Punkt am Linienanfang.
     vector-effect steht als Attribut an jeder Linie (DrawSVG liest nur das Attribut). */
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

/* Strichstärken: Konturen 1.5px, alles andere 1px wie die Maßkette im Ablauf */
.house .ground__line,
.house .outline,
.house .roof {
  stroke-width: 1.5;
}

.house .hatch,
.house .ground__hatch {
  stroke-opacity: 0.45;
}

.house .guide {
  stroke-opacity: 0.55;
  stroke-dasharray: 4 4;
}

.house .guide--axis {
  stroke-dasharray: 14 4 2 4;
}

.house .dims__ext {
  stroke-opacity: 0.55;
}

.house text {
  fill: var(--line);
  stroke: none;
  font-family: var(--font-sans);
  font-size: 15px;   /* SVG-Einheiten; auf Mobil wird die Zeichnung verkleinert */
  letter-spacing: 0.02em;
}

.house .label text {
  font-size: 15px;
}

@media (min-width: 56.25em) {
  .hero {
    padding-top: var(--space-xl);
  }

  .hero__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: var(--space-m);
  }

  .hero__text {
    grid-column: 1 / span 6;
  }

  .hero__visual {
    grid-column: 7 / -1;
  }

  .house text,
  .house .label text {
    font-size: 12px;
  }
}

/* Startzustände der Hero-Animation.
   Greifen nur, wenn JavaScript läuft (.js auf <html>) und keine reduzierte
   Bewegung gewünscht ist. Ohne JS bzw. mit reduced motion ist alles sofort sichtbar.
   Nur opacity/visibility – keine Layoutänderung. */
@media (prefers-reduced-motion: no-preference) {
  .js .house > g {
    visibility: hidden;
  }

  .js .hero__kicker,
  .js .hero h1,
  .js .hero__lead,
  .js .hero__actions {
    opacity: 0;
  }

  /* Scroll-Reveals: Überschriften, Absätze, Einträge */
  .js [data-reveal] {
    opacity: 0;
  }

  /* Lageskizze: Gruppen bis zum Start verborgen */
  .js .area-map > g,
  .js .area-map__caption {
    visibility: hidden;
  }
}

/* --------------------------------------------------------------------------
   Sektionen allgemein
   -------------------------------------------------------------------------- */
/* Einheitlicher Rhythmus: jede Sektion beginnt mit --section-gap Abstand.
   Nach der letzten nur normaler Abstand – die Footer-Linie trennt. */
.section {
  padding-top: var(--section-gap);
}

main > .section:last-child {
  padding-bottom: var(--space-l);
}

.section__title {
  margin-bottom: var(--space-l);
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  gap: var(--space-l);
}

/* Porträt 4:5 mit Fokus aufs Gesicht. Hintergrund im Bild ist Reinweiß,
   multiply lässt ihn mit --paper verschmelzen (kein heller Kasten). */
.about__photo {
  width: min(80%, 20rem);
  aspect-ratio: 4 / 5;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.about__role {
  margin-top: var(--space-3xs);
  color: var(--line);
  font-size: var(--step-1);
}

.about__text {
  max-width: var(--measure);
  margin-top: var(--space-m);
}

/* Qualifikationen: drei Einträge, nur feine Trennlinien
   (mobil waagerecht, ab Tablet senkrecht). Keine Siegel oder Badges. */
.quals__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--rule) solid var(--hairline);
}

.qual {
  display: grid;
  align-content: start;
  gap: var(--space-2xs);
  padding-block: var(--space-m);
}

.qual + .qual {
  border-top: var(--rule) solid var(--hairline);
}

.qual:last-child {
  padding-bottom: 0;
}

/* Kleiner als h2, größer als Fließtext */
.qual__degree {
  font-family: var(--font-serif);
  font-size: var(--step-entry);
  line-height: 1.15;
  text-wrap: balance;
}

.qual__school {
  color: var(--muted);
  font-size: var(--step--1);
}

@media (min-width: 48em) {
  .quals__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qual,
  .qual:last-child {
    padding-block: var(--space-m) 0;
    padding-inline: var(--space-m);
  }

  .qual:first-child {
    padding-left: 0;
  }

  .qual + .qual {
    border-top: 0;
    border-left: var(--rule) solid var(--hairline);
  }
}

@media (min-width: 56.25em) {
  .about {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: var(--space-m);
  }

  .about__photo {
    grid-column: 1 / span 5;
    width: 100%;
  }

  .about__body {
    grid-column: 7 / -1;
  }
}

/* --------------------------------------------------------------------------
   Leistungen – offene Liste, nur feine Linie oben je Punkt
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--space-xl);
}

/* Mobil: Nummer · Titel · Icon (32px, ca. Titelhöhe) in einer Zeile,
   der Text darunter bündig mit dem Titel und bis zum rechten Rand.
   Ab Tablet: Icon 48px rechts über beide Zeilen. */
.service {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  grid-template-areas:
    "num title icon"
    ".   text  text";
  align-items: baseline;
  align-content: start;   /* zusätzliche Zeilenhöhe (Nachbarspalte) nicht verteilen */
  column-gap: var(--space-s);
  padding-block: var(--space-m);
  border-top: var(--rule) solid var(--hairline);
}

/* Kein zusätzlicher Leerraum unter dem letzten Punkt (der Sektions-Abstand folgt) */
.service:last-child {
  padding-bottom: 0;
}

.service__body {
  display: contents;
}

.service__num   { grid-area: num; }
.service__title { grid-area: title; }
.service p      { grid-area: text; }

/* Nummerierung „01“, „02“ … – gleicher Stil in Leistungen und Ablauf */
.service__num,
.step__num {
  color: var(--line);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.service__title {
  font-size: var(--step-2);
}

.service p {
  max-width: 32rem;
  margin-top: var(--space-2xs);
}

/* Platzhalter für das spätere Strich-Icon */
.service__icon {
  grid-area: icon;
  align-self: start;
  width: 2rem;
  height: 2rem;
}

@media (min-width: 48em) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service {
    grid-template-columns: 2rem minmax(0, 1fr) 3rem;
    grid-template-areas:
      "num title icon"
      ".   text  icon";
  }

  .service__icon {
    width: 3rem;
    height: 3rem;
  }

  .service:nth-last-child(2) {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Ablauf – Schritte an einem Lineal im Bauzeichnungs-Stil (alle Breiten senkrecht)
   Ohne JS: statisches Lineal (SVG-Muster). Mit JS wird es exakt aus der Höhe
   erzeugt (Raster 8px, jeder 5. Strich mittel, jeder 10. lang) und die
   Schritte sitzen auf Hauptstrichen. Animation + Markierung nur ohne reduced motion.
   -------------------------------------------------------------------------- */
.chain {
  --chain-num-w: 2rem;       /* Spalte der Schrittnummern; Grundlinie liegt an ihrer Kante */
  --ruler-w: 2.5rem;         /* Platz für Skalenstriche rechts der Grundlinie */
  position: relative;
  max-width: 46rem;
}

.ruler {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--chain-num-w) + var(--ruler-w));
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.ruler.is-built .ruler__static {
  display: none;
}

/* Markierung: kleines Dreieck links an der Grundlinie, nur in der Animation */
.ruler__marker {
  display: none;
  fill: var(--line);
  stroke: none;
  shape-rendering: auto;
}

.chain.is-animated .ruler__marker {
  display: inline;
}

.steps {
  display: grid;
}

.step {
  display: grid;
  grid-template-columns: var(--chain-num-w) minmax(0, 1fr);
  align-items: baseline;
}

.step__body {
  padding: 0 0 var(--space-l) var(--ruler-w);
}

/* Kein Leerraum nach dem letzten Schritt – danach folgt --section-gap */
.step:last-child .step__body {
  padding-bottom: 0;
}

.step__title {
  margin-bottom: var(--space-2xs);
  font-size: var(--step-2);
}

/* Animiert: Schritt erst kräftig, wenn die Markierung ihn erreicht */
.chain.is-animated .step:not(.is-reached) .step__num {
  color: var(--hairline);
}

.chain.is-animated .step:not(.is-reached) .step__body {
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  .step__num,
  .step__body {
    transition: color 0.4s ease, opacity 0.4s ease;
  }
}

/* --------------------------------------------------------------------------
   Kontakt – Schriftfeld nur angedeutet: Linie oben und unten, kleine Labels
   -------------------------------------------------------------------------- */
.contact-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--rule) solid var(--hairline);
}

.contact-sheet__field {
  display: grid;
  align-content: start;
  gap: var(--space-3xs);
  padding-block: var(--space-m);
}

.contact-sheet__field + .contact-sheet__field {
  border-top: var(--rule) solid var(--hairline);
}

.contact-sheet__field dt {
  color: var(--muted);
  font-size: var(--step--1);
}

.contact-sheet__field dd {
  font-size: var(--step-1);
  line-height: 1.4;
}

.contact-sheet__field dd a {
  color: var(--ink);
  text-decoration-color: var(--hairline);
}

.contact-sheet__field dd a:hover {
  color: var(--line);
  text-decoration-color: currentColor;
}

/* Blickfang: Telefonnummer groß in Newsreader */
.contact-sheet__phone {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  line-height: 1.1;
  white-space: nowrap;
}

/* Einsatzgebiet: Skizze und Bildunterschrift zentriert */
.contact-sheet__field--area dd {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Lageskizze – gleiche Linien wie die Haus-Bauzeichnung */
.area-map {
  display: block;
  width: 72%;
  max-width: 20rem;
  height: auto;
  margin-block: var(--space-s);
  overflow: visible;
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.area-map .map-radius {
  stroke-opacity: 0.55;
  stroke-dasharray: 4 4;
}

.area-map .map-lines {
  stroke-opacity: 0.55;
}

.area-map .map-point__ring {
  stroke-width: 1.5;
}

.area-map .map-point__dot {
  fill: var(--line);
  stroke: none;
}

.area-map .map-point--mayen .map-point__ring {
  stroke-width: 1.75;
}

.area-map .map-pulse__ring {
  opacity: 0;
}

.area-map text {
  fill: var(--line);
  stroke: none;
  font-family: var(--font-sans);
  font-size: 13px;   /* SVG-Einheiten */
  letter-spacing: 0.02em;
}

.area-map__caption {
  display: block;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 48em) {
  .area-map {
    width: 100%;
  }
}

/* Ab Tablet: links Telefon + E-Mail, rechts Einsatzgebiet */
@media (min-width: 48em) {
  .contact-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "phone area"
      "mail  area"
      ".     area";
    column-gap: var(--space-xl);
  }

  .contact-sheet__field--phone { grid-area: phone; }
  .contact-sheet__field--mail  { grid-area: mail; }

  .contact-sheet__field.contact-sheet__field--area {
    grid-area: area;
    border-top: 0;   /* oben schließt die Linie des Blocks ab */
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-l);
  border-top: var(--rule) solid var(--hairline);
  color: var(--muted);
  font-size: var(--step--1);
}

.site-footer a {
  color: inherit;
}

/* Mobil: Copyright und Rechtslinks in zwei Zeilen, ab Tablet in einer */
.site-footer__copy,
.site-footer__links {
  display: block;
}

.site-footer__sep {
  display: none;
}

@media (min-width: 37.5em) {
  .site-footer__copy,
  .site-footer__links,
  .site-footer__sep {
    display: inline;
  }
}

.site-footer a:hover {
  color: var(--line);
}

/* --------------------------------------------------------------------------
   Mobile Anruf-Leiste (unter 768px), unten fixiert
   Ohne JS immer sichtbar; mit JS erst, wenn der Hero-Button aus dem Bild ist.
   -------------------------------------------------------------------------- */
.callbar {
  display: none;
}

@media (max-width: 47.99em) {
  .callbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom));
    /* leicht abgesetzt: Papier mit etwas Linienton, halbtransparent über Weichzeichner */
    background: color-mix(in srgb, color-mix(in srgb, var(--paper) 65%, var(--hairline)) 86%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-top: var(--rule) solid var(--hairline);
  }

  .callbar__call {
    flex: 1 1 auto;
  }

  .callbar__mail {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: var(--rule) solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--line);
  }

  .callbar__mail:hover {
    background: color-mix(in srgb, var(--line) 7%, transparent);
  }

  .js .callbar:not(.is-visible) {
    visibility: hidden;
    transform: translateY(100%);
  }

  /* Footer-Inhalt nie von der Leiste verdeckt */
  .site-footer {
    padding-bottom: calc(var(--space-l) + var(--callbar-h) + env(safe-area-inset-bottom));
  }
}

@media (max-width: 47.99em) and (prefers-reduced-motion: no-preference) {
  .callbar {
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }

  .js .callbar:not(.is-visible) {
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
}
