/* ==========================================================================
   Fieldstack GmbH – Stylesheet
   Ohne externe Ressourcen, ohne JavaScript.
   Schrift: Instrument Sans (SIL Open Font License 1.1), lokal eingebunden.
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-cc9db553.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
}

/* Metrisch angeglichene Ersatzschrift: verhindert Layoutsprünge beim Laden */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 92.6%;
  ascent-override: 104.8%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   Design-Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Markenfarben */
  --c-paper: #f4f1ea;      /* Papier */
  --c-paper-2: #ebe6da;    /* Papier, dunkler */
  --c-ink: #14201b;        /* Tinte */
  --c-ink-2: #47534c;      /* Tinte, gedämpft */
  --c-green: #1b4a39;      /* Feldgrün */
  --c-green-deep: #133829;
  --c-brick: #b9542d;      /* Backstein */
  --c-brick-text: #9c421c; /* Backstein für Text auf Papier */
  --c-brick-light: #ee9d75;
  --c-brick-soft: #ebcdb9;
  --c-sage: #dce4d6;       /* Salbei */
  --c-sage-2: #c3d3c8;

  /* Semantische Tokens (werden je Fläche überschrieben) */
  --bg: var(--c-paper);
  --fg: var(--c-ink);
  --fg-muted: var(--c-ink-2);
  --rule: #d3cbba;
  --rule-strong: var(--c-ink);
  --accent: var(--c-brick);
  --accent-text: var(--c-brick-text);
  --btn-bg: var(--c-green);
  --btn-fg: var(--c-paper);
  --btn-bg-hover: var(--c-green-deep);
  --focus: var(--c-ink);
  --tile: var(--c-paper-2);

  /* Lageplan */
  --plan-line: rgb(20 32 27 / 0.38);
  --plan-road: var(--c-ink);
  --plan-house: var(--c-ink);
  --plan-sage: var(--c-sage);
  --plan-furrow: var(--c-green);
  --plan-tree: var(--c-green);
  --plan-accent: var(--c-brick);
  --plan-accent-soft: var(--c-brick-soft);

  /* Typografie */
  --font: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.06rem + 0.55vw, 1.4375rem);
  --step-2: clamp(1.375rem, 1.18rem + 0.9vw, 1.875rem);
  --step-3: clamp(2.125rem, 1.45rem + 3vw, 4rem);
  --step-4: clamp(2.875rem, 1.35rem + 7vw, 7.25rem);

  /* Raster und Abstände */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --maxw: 80rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1713;
    --fg: #ece7dd;
    --fg-muted: #a9b3ab;
    --rule: #2c3933;
    --rule-strong: #ece7dd;
    --accent: #e58f65;
    --accent-text: #ee9d75;
    --btn-bg: #ece7dd;
    --btn-fg: #0f1713;
    --btn-bg-hover: #ffffff;
    --focus: #ece7dd;
    --tile: #18241e;

    --plan-line: rgb(236 231 221 / 0.26);
    --plan-road: #ece7dd;
    --plan-house: #ece7dd;
    --plan-sage: #1a2a22;
    --plan-furrow: #7fa58f;
    --plan-tree: #4f7d63;
    --plan-accent: #e58f65;
    --plan-accent-soft: #3b2a21;
  }
}

/* Flächen mit eigener Farbwelt */
.surface-alt {
  --bg: var(--c-paper-2);
  --tile: var(--c-paper);
}

.surface-green {
  --bg: var(--c-green);
  --fg: var(--c-paper);
  --fg-muted: var(--c-sage-2);
  --rule: rgb(244 241 234 / 0.22);
  --rule-strong: var(--c-paper);
  --accent: var(--c-brick-light);
  --accent-text: #f5b896;
  --btn-bg: var(--c-paper);
  --btn-fg: var(--c-green);
  --btn-bg-hover: #ffffff;
  --focus: var(--c-paper);
  --tile: rgb(244 241 234 / 0.07);
}

.surface-ink {
  --bg: var(--c-ink);
  --fg: var(--c-paper);
  --fg-muted: var(--c-sage-2);
  --rule: rgb(244 241 234 / 0.18);
  --rule-strong: var(--c-paper);
  --accent: var(--c-brick-light);
  --accent-text: var(--c-brick-light);
  --btn-bg: var(--c-paper);
  --btn-fg: var(--c-ink);
  --btn-bg-hover: #ffffff;
  --focus: var(--c-paper);
}

@media (prefers-color-scheme: dark) {
  .surface-alt {
    --bg: #151f1a;
    --tile: #0f1713;
  }

  .surface-green {
    --bg: #153529;
    --fg: #ece7dd;
    --fg-muted: #b5c6ba;
    --rule: rgb(236 231 221 / 0.16);
    --rule-strong: #ece7dd;
    --accent: #ee9d75;
    --accent-text: #ee9d75;
    --btn-bg: #ece7dd;
    --btn-fg: #153529;
    --focus: #ece7dd;
    --tile: rgb(236 231 221 / 0.06);
  }

  .surface-ink {
    --bg: #0a100d;
    --fg: #ece7dd;
    --fg-muted: #a9b3ab;
    --rule: rgb(236 231 221 / 0.14);
  }
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

[class*="surface-"] {
  background: var(--bg);
  color: var(--fg);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address,
blockquote {
  margin: 0;
}

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

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

address {
  font-style: normal;
}

strong,
b {
  font-weight: 650;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--c-brick-soft);
  color: var(--c-ink);
}

h1,
h2,
h3 {
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  hyphens: manual;
}

p,
li,
dd {
  hyphens: auto;
  -webkit-hyphenate-limit-before: 4;
  -webkit-hyphenate-limit-after: 4;
  hyphenate-limit-chars: 12 5 5;
}

p {
  text-wrap: pretty;
}

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

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

.skip-link:focus-visible {
  outline-color: var(--c-brick);
}

.nowrap {
  white-space: nowrap;
}

/* Quadrat – das wiederkehrende Markenzeichen (der i-Punkt) */
.square {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(1rem, 0.3rem + 2vw, 2rem);
  row-gap: 0.75rem;
  padding-block: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  /* großzügige Klickfläche */
  padding-block: 0.625rem;
  margin-block: -0.625rem;
  color: var(--fg);
}

.wordmark {
  height: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
  width: auto;
}

.wordmark__letters {
  fill: currentColor;
}

.wordmark__dot {
  fill: var(--accent);
}

.site-nav {
  justify-self: end;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem clamp(1rem, 0.3rem + 1.5vw, 2rem);
}

.site-nav a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: var(--step--1);
  font-weight: 550;
  letter-spacing: 0.01em;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.header-cta:hover {
  background: var(--fg);
  color: var(--bg);
}

@media (max-width: 40rem) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .header-cta {
    grid-row: 1;
    grid-column: 2;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .site-nav ul {
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Schaltflächen und Links
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.375rem;
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
}

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
}

.icon-arrow {
  transition: transform 0.2s ease;
}

a:hover > .icon-arrow,
a:hover .icon-arrow {
  transform: translateX(0.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Textlink mit Pfeil, z. B. für E-Mail-Anfragen */
.link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-block: 0.25rem;
}

.link-action:hover {
  border-bottom-width: 3px;
  margin-bottom: -1.5px;
}

/* --------------------------------------------------------------------------
   Gemeinsame Abschnittsbausteine
   -------------------------------------------------------------------------- */

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

.section__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.label__no {
  color: var(--fg);
}

.label .square {
  width: 0.625rem;
  height: 0.625rem;
  margin-top: calc(0.8em - 0.3125rem);
}

.section__title {
  font-size: var(--step-3);
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 42ch;
  hyphens: manual;
}

@media (min-width: 60rem) {
  .section__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 1.5rem;
  }

  .section__head .label {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.6em;
  }

  .section__head .section__title,
  .section__head .section__lead {
    grid-column: 4 / -1;
  }
}

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

.hero {
  padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(4rem, 2rem + 6vw, 8rem);
}

.hero .label {
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.display {
  font-size: var(--step-4);
  font-weight: 640;
  font-stretch: 86%;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display__line {
  display: block;
}

.display__line--accent {
  color: var(--c-green);
}

@media (prefers-color-scheme: dark) {
  .display__line--accent {
    color: #9cc3ab;
  }
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  margin-top: clamp(2rem, 1rem + 3vw, 4rem);
  padding-top: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  border-top: 1px solid var(--rule-strong);
}

.hero__intro {
  display: grid;
  gap: 2rem;
  align-content: start;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 38ch;
  hyphens: manual;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .hero__intro {
    grid-column: 1 / span 5;
  }

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

/* Leistungsverzeichnis im Hero */
.index__title {
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.index ol {
  border-top: 1px solid var(--rule);
}

.index li {
  border-bottom: 1px solid var(--rule);
}

.index a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 0.75rem;
  padding: 1.15rem 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.index a:hover {
  background: var(--tile);
}

.index__no {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.index__name {
  font-size: var(--step-2);
  font-weight: 620;
  font-stretch: 92%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.index__meta {
  grid-column: 2;
  font-size: var(--step--1);
  color: var(--fg-muted);
}

.index .icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

/* --------------------------------------------------------------------------
   01 Hausverwaltung
   -------------------------------------------------------------------------- */

.plan-figure {
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-block: 1px solid var(--rule-strong);
}

@media (min-width: 40rem) {
  .plan-figure {
    aspect-ratio: 16 / 7;
  }
}

@media (min-width: 60rem) {
  .plan-figure {
    aspect-ratio: 1200 / 420;
  }
}

.plan {
  width: 100%;
  height: 100%;
}

.pl-line {
  fill: none;
  stroke: var(--plan-line);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.pl-line--accent {
  stroke: var(--plan-accent);
  stroke-width: 2.5;
}

.pl-road {
  fill: none;
  stroke: var(--plan-road);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.pl-sage {
  fill: var(--plan-sage);
}

.pl-accent {
  fill: var(--plan-accent-soft);
}

.pl-house {
  fill: var(--plan-house);
}

.pl-house--accent {
  fill: var(--plan-accent);
}

.pl-furrow {
  fill: none;
  stroke: var(--plan-furrow);
  stroke-width: 1.1;
  opacity: 0.7;
}

.pl-tree {
  fill: var(--plan-tree);
  opacity: 0.85;
}

.services {
  display: grid;
  gap: 0;
}

.service {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.875rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--rule-strong);
}

.service__for {
  order: -1;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.service__name {
  font-size: var(--step-2);
  font-stretch: 92%;
  letter-spacing: -0.015em;
}

.service__text {
  color: var(--fg-muted);
  max-width: 38ch;
}

.service .link-action {
  justify-self: start;
  margin-top: 0.75rem;
}

@media (min-width: 52rem) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 0.5rem + 2vw, 2.5rem);
  }

  .service {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   02 Software
   -------------------------------------------------------------------------- */

.products {
  display: grid;
  gap: clamp(1.25rem, 0.75rem + 2vw, 2rem);
}

@media (min-width: 60rem) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--tile);
}

.product__for {
  order: -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.product__name {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-stretch: 86%;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.product__text {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 30ch;
  hyphens: manual;
}

.product .button {
  justify-self: start;
}

/* Schaubilder aus den Begriffen der Produktbeschreibung */
.diagram {
  display: grid;
  gap: 0.375rem;
  align-self: end;
  margin-block: 0.5rem 0.75rem;
  font-size: var(--step--1);
  font-weight: 550;
  line-height: 1.25;
}

.diagram__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.375rem;
}

.diagram__cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.diagram__cell--strong {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.diagram__cell--strong .square {
  background: var(--accent);
}

/* Stapel: von den Stammdaten (unten) bis zur Jahresabrechnung (oben) */
.diagram--stack .diagram__row:nth-child(1) {
  margin-inline: 16% 0;
}

.diagram--stack .diagram__row:nth-child(2) {
  margin-inline: 8% 0;
}

@media (min-width: 30rem) {
  .diagram--stack .diagram__row:nth-child(1) {
    margin-inline: 22% 0;
  }

  .diagram--stack .diagram__row:nth-child(2) {
    margin-inline: 11% 0;
  }
}

@media (max-width: 30rem) {
  .diagram {
    font-size: 0.8125rem;
  }

  .diagram__cell {
    padding: 0.6rem 0.7rem;
  }
}

/* „an einem Ort“: alles in einem Rahmen */
.diagram--place {
  padding: 0.375rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   03 Individuelle Software
   -------------------------------------------------------------------------- */

.brief {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3rem);
}

.brief__title {
  font-size: var(--step-2);
  font-stretch: 92%;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.checklist {
  display: grid;
  border-top: 1px solid var(--rule-strong);
  counter-reset: item;
}

.checklist li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  counter-increment: item;
}

.checklist li::before {
  content: counter(item, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  padding-top: 0.2em;
}

.checklist__term {
  font-weight: 650;
}

.checklist__desc {
  color: var(--fg-muted);
}

.cta-box {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  align-self: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--tile);
  border-radius: var(--radius);
}

.cta-box__title {
  font-size: var(--step-2);
  font-stretch: 92%;
  letter-spacing: -0.015em;
}

.cta-box p {
  color: var(--fg-muted);
}

.cta-box .button {
  justify-self: start;
}

@media (min-width: 60rem) {
  .brief {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .brief__list {
    grid-column: 4 / span 5;
  }

  .cta-box {
    grid-column: 9 / -1;
    margin-top: 3.6rem;
  }
}

@media (min-width: 60rem) and (max-width: 75rem) {
  .brief__list {
    grid-column: 1 / span 7;
  }

  .cta-box {
    grid-column: 8 / -1;
  }
}

/* --------------------------------------------------------------------------
   04 Kontakt
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 60rem) {
  .contact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .topics {
    grid-column: 1 / span 7;
  }

  .contact-card {
    grid-column: 8 / -1;
  }
}

@media (min-width: 75rem) {
  .contact-card {
    grid-column: 9 / -1;
  }
}

.topics {
  display: grid;
  gap: 2.5rem;
}

.topics__group-title {
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.topics ul {
  border-top: 1px solid var(--rule-strong);
}

.topics li {
  border-bottom: 1px solid var(--rule);
}

.topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.topics a:hover {
  background: var(--tile);
}

.topics__name {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.topics__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--fg-muted);
}

@media (max-width: 30rem) {
  .topics__hint-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.contact-card {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.contact-card__mail {
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  overflow-wrap: anywhere;
  font-weight: 640;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-card__mail a {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.details dt {
  color: var(--fg-muted);
}

.details dd {
  font-variant-numeric: tabular-nums;
}

.details a {
  display: inline-block;
  padding-block: 0.15rem;
}

.note {
  font-size: var(--step--1);
  color: var(--fg-muted);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   Fußbereich
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand {
  display: inline-block;
  color: var(--fg);
  justify-self: start;
}

.wordmark--stacked {
  height: clamp(4.5rem, 3.6rem + 3vw, 6.5rem);
  width: auto;
}

.site-footer__col {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  font-size: var(--step--1);
  line-height: 1.7;
}

.site-footer__head {
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.2rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--fg-muted);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / span 4;
  }

  .site-footer__col--address {
    grid-column: 5 / span 3;
  }

  .site-footer__col--contact {
    grid-column: 8 / span 3;
  }

  .site-footer__col--legal {
    grid-column: 11 / -1;
  }
}

@media (min-width: 48rem) and (max-width: 64rem) {
  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer__col--address {
    grid-column: 1 / span 4;
  }

  .site-footer__col--contact {
    grid-column: 5 / span 5;
  }

  .site-footer__col--legal {
    grid-column: 10 / -1;
  }
}

/* --------------------------------------------------------------------------
   Rechtstexte (Impressum, Datenschutz) und Fehlerseite
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}

.page-head .label {
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: var(--step-3);
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-intro {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--fg-muted);
  max-width: 46ch;
}

.legal {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--section-y);
}

.prose {
  max-width: 44rem;
}

.toc {
  align-self: start;
  font-size: var(--step--1);
}

.toc__title {
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.toc ol {
  border-top: 1px solid var(--rule-strong);
}

.toc li {
  border-bottom: 1px solid var(--rule);
}

.toc a {
  display: block;
  padding-block: 0.6rem;
  color: var(--fg-muted);
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

@media (min-width: 60rem) {
  .page-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .page-head .label {
    grid-column: 1 / span 3;
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.9em;
  }

  .page-head .page-title,
  .page-head .page-intro {
    grid-column: 4 / -1;
  }

  .legal {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .legal .prose {
    grid-column: 4 / span 7;
  }

  .toc {
    grid-column: 1 / span 3;
    position: sticky;
    top: 2rem;
  }
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.25em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  scroll-margin-top: 1.5rem;
  font-stretch: 92%;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2em;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.75em;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--accent);
}

.prose .details {
  border-top: 0;
  padding-top: 0;
}

.details--stack {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.35rem;
}

.details--stack dd + dt {
  margin-top: 0.9rem;
}

@media (max-width: 30rem) {
  .prose .details {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.15rem;
  }

  .prose .details dd + dt {
    margin-top: 0.6rem;
  }
}

/* Sichtbare Platzhalter für noch fehlende Pflichtangaben */
.placeholder {
  display: inline;
  padding: 0.1em 0.4em;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--fg);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.notfound {
  padding-block: clamp(4rem, 2rem + 8vw, 10rem);
}

.notfound .display {
  margin-block: 1.5rem 2rem;
}

.notfound__text {
  max-width: 40ch;
  margin-bottom: 2rem;
  font-size: var(--step-1);
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   Bewegung reduzieren, Kontrastmodus, Druck
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  a:hover .icon-arrow {
    transform: none;
  }
}

@media (forced-colors: active) {
  .plan-figure {
    display: none;
  }

  .button,
  .header-cta,
  .diagram__cell,
  .product {
    border: 1px solid CanvasText;
  }

  .square,
  .wordmark__dot {
    forced-color-adjust: none;
    background: CanvasText;
    fill: CanvasText;
  }

  .placeholder {
    border-color: CanvasText;
  }
}

@media print {
  :root,
  [class*="surface-"] {
    --bg: #fff;
    --fg: #000;
    --fg-muted: #333;
    --rule: #999;
    --rule-strong: #000;
    --tile: #fff;
  }

  body {
    font-size: 11pt;
  }

  .skip-link,
  .site-nav,
  .header-cta,
  .plan-figure,
  .actions,
  .index {
    display: none !important;
  }

  .section,
  .hero {
    padding-block: 1.5rem;
  }

  a {
    text-decoration: none;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
}
