/*
  Digital Solutions | Stylesheet

  Layout: Briefbogen-Raster. Linksbündiger Satzspiegel wie ein Geschäftsbrief nach DIN 5008,
  Bezugszeichenzeile als Infoband, Spiegelstriche statt Icons, Flächen statt Karten.
  Einziges Bildmotiv ist der Kontierungsstempel.

  Schriften: Barlow, Barlow Semi Condensed, Barlow Condensed (SIL Open Font License 1.1),
  lokal im Ordner fonts/ eingebunden. Es besteht keine Verbindung zu Google Fonts.
*/

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #1a1f2e;
  --ink-soft: #4a5163;
  --line: #d6dbe4;
  --form: #eef1f6;
  --accent: #2343a6;
  --accent-ink: #ffffff;
  --accent-soft: #e3e8f7;
  --band: #172036;
  --band-ink: #e9edf5;
  --band-soft: #aab4c8;
  --band-line: #2e3a55;
  --band-accent: #a9b9ff;
  --sheet: #ffffff;
  --sheet-ink: #1a1f2e;
  --sheet-soft: #5a6274;
  --sheet-line: #d9dde5;
  --stamp: #2343a6;
  --ok: #1d6b46;
  --error: #a3262a;

  --font-display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-stamp: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --fs-label: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.3125rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2rem, 2.2vw + 1.25rem, 3rem);
  --fs-h1: clamp(2.6rem, 4.6vw + 1.2rem, 5.25rem);

  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1422;
    --ink: #e6e9f0;
    --ink-soft: #a3acbe;
    --line: #283146;
    --form: #161d2e;
    --accent: #93a8ff;
    --accent-ink: #0f1422;
    --accent-soft: #1e2846;
    --band: #182238;
    --band-ink: #e6e9f0;
    --band-soft: #a3acbe;
    --band-line: #2f3b58;
    --band-accent: #a9b9ff;
    --sheet: #e8ebf1;
    --sheet-ink: #1a1f2e;
    --sheet-soft: #545c6e;
    --sheet-line: #c9ced8;
    --stamp: #2343a6;
    --ok: #7fd1a8;
    --error: #ff9a9a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1422;
  --ink: #e6e9f0;
  --ink-soft: #a3acbe;
  --line: #283146;
  --form: #161d2e;
  --accent: #93a8ff;
  --accent-ink: #0f1422;
  --accent-soft: #1e2846;
  --band: #182238;
  --band-ink: #e6e9f0;
  --band-soft: #a3acbe;
  --band-line: #2f3b58;
  --band-accent: #a9b9ff;
  --sheet: #e8ebf1;
  --sheet-ink: #1a1f2e;
  --sheet-soft: #545c6e;
  --sheet-line: #c9ced8;
  --stamp: #2343a6;
  --ok: #7fd1a8;
  --error: #ff9a9a;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.site { overflow-x: clip; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd, figcaption { hyphens: auto; -webkit-hyphens: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap {
  max-width: 82rem;
  margin-inline: auto;
  padding-left: max(16px, 4vw, env(safe-area-inset-left, 0px));
  padding-right: max(16px, 4vw, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.band-pad { padding-block: var(--section); }
.band--dark { background: var(--band); color: var(--band-ink); }
.band--form { background: var(--form); }
.band--dark a { color: var(--band-ink); }
.band--dark :focus-visible { outline-color: var(--band-accent); }

.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 1rem; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.25rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-stamp);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand-sub { margin-top: 0.25rem; font-size: var(--fs-label); font-weight: 500; line-height: 1.2; color: var(--ink-soft); }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--accent); }
.cta-short { display: none; }
@media (min-width: 900px) {
  .site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
  main[id], section[id], article[id] { scroll-margin-top: 5.5rem; }
}
@media (max-width: 899px) {
  .nav { order: 3; width: 100%; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 560px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.95rem; }
}

/* ---------- Einstieg ---------- */
.hero-inner { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.0; letter-spacing: -0.012em; max-width: 16em; }
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem var(--gutter);
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 34em; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.hero-note { font-size: var(--fs-small); color: var(--ink-soft); }

/* Bezugszeichenzeile wie im Geschäftsbrief */
.refline { background: var(--form); border-block: 1px solid var(--line); }
.refline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.refline-grid > div { min-width: 0; padding: 1rem 1.25rem 1.1rem; border-left: 1px solid var(--line); }
.refline-grid > div:first-child { padding-left: 0; border-left: 0; }
.refline-grid dt { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-label); letter-spacing: 0.01em; color: var(--ink-soft); }
.refline-grid dd { margin-top: 0.15rem; font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
@media (max-width: 760px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .refline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refline-grid > div { padding: 0.85rem 0.6rem 0.9rem 0.85rem; }
  .refline-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .refline-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Abschnittsköpfe ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem var(--gutter);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { max-width: 36em; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Listen mit Spiegelstrich ---------- */
.dashlist { list-style: none; padding: 0; }
.dashlist li { position: relative; padding: 0.7rem 0 0.7rem 1.6rem; border-top: 1px solid var(--line); line-height: 1.45; }
.dashlist li::before { content: "–"; position: absolute; left: 0; top: 0.7rem; font-weight: 600; color: var(--accent); }
.band--dark .dashlist li { border-top-color: var(--band-line); }
.band--dark .dashlist li::before { color: var(--band-accent); }

/* ---------- Leistungen ---------- */
.core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem var(--gutter); }
.core-item { min-width: 0; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.core-item h3 { font-size: clamp(1.75rem, 1.1vw + 1.35rem, 2.25rem); }
.core-item > p { max-width: 34em; margin-top: 0.9rem; color: var(--ink-soft); }
.core-item .dashlist { margin-top: 1.5rem; }
.more { margin-top: clamp(3.5rem, 6vw, 5rem); }
.more-title { margin-bottom: 1.25rem; font-size: var(--fs-h3); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.more-item { min-width: 0; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.more-item h4 { font-size: 1.375rem; }
.more-item p { margin-top: 0.6rem; font-size: 1.0625rem; color: var(--ink-soft); }
@media (max-width: 899px) { .more-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .core { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Schwerpunkt Immobilien ---------- */
.immo-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem var(--gutter); align-items: start; }
.immo-text h2 { font-size: var(--fs-h2); }
.immo-text p { max-width: 32em; font-size: var(--fs-lead); line-height: 1.5; color: var(--band-soft); }
.immo-text h2 + p { margin-top: 1.25rem; }
.immo-text p + p { margin-top: 1rem; }
.sheet {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--sheet);
  color: var(--sheet-ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sheet-line);
}
.sheet-sender { font-weight: 600; }
.sheet-no { color: var(--sheet-soft); font-variant-numeric: tabular-nums; }
.sheet-rows { display: grid; gap: 0.35rem; margin-top: 0.75rem; }
.sheet-rows > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
.sheet-rows dt { color: var(--sheet-soft); }
.sheet-total { margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px solid var(--sheet-line); font-weight: 600; }
.sheet-total dd { text-align: right; font-variant-numeric: tabular-nums; }

/* Kontierungsstempel */
.stamp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 19.5rem;
  margin: 1.6rem 0.25rem 0 auto;
  border: 2.5px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--font-stamp);
  transform: rotate(-3deg);
  mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-size: 220px 220px;
  mask-size: 220px 220px;
}
.stamp-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.3rem 0.55rem;
  border-top: 1.5px solid var(--stamp);
}
.stamp-cell:first-child { border-top: 0; }
.stamp-cell:nth-child(even) { border-right: 1.5px solid var(--stamp); }
.stamp-wide { grid-column: 1 / -1; }
.stamp-cell > span { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1; }
.stamp-cell > strong { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick { flex: none; width: 1.35rem; height: 1.35rem; }
.tick path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}
.stamp.is-stamping .tick path { animation: tick-draw 0.4s ease-out backwards; }
.stamp.is-stamping .stamp-cell:nth-child(2) .tick path { animation-delay: 0.1s; }
.stamp.is-stamping .stamp-cell:nth-child(3) .tick path { animation-delay: 0.45s; }
.stamp.is-stamping .stamp-cell:nth-child(6) .tick path { animation-delay: 0.8s; }
.stamp.is-stamping .stamp-cell:nth-child(7) .tick path { animation-delay: 1.15s; }
@keyframes tick-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .stamp.is-stamping .tick path { animation: none; } }

.invoice figcaption { max-width: 34em; margin-top: 1rem; font-size: var(--fs-small); line-height: 1.5; color: var(--band-soft); }
.immo-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--gutter); margin-top: clamp(3rem, 6vw, 4.5rem); }
.immo-lists > div { min-width: 0; }
.immo-lists h3 { margin-bottom: 0.9rem; font-size: var(--fs-h3); }
@media (max-width: 860px) {
  .immo-top, .immo-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .sheet { padding: 1.25rem 1.1rem 1.5rem; }
  .sheet-rows > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sheet-total dd { text-align: left; }
}

/* ---------- Projekte ---------- */
.projects { border-bottom: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 1rem var(--gutter);
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.project:first-child { border-top: 2px solid var(--ink); }
.project-client { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.project-body { min-width: 0; }
.project-body h3 { font-size: var(--fs-h3); }
.project-body p { max-width: 38em; margin-top: 0.7rem; color: var(--ink-soft); }
.project-meta { display: grid; gap: 0.75rem; align-content: start; }
.project-meta dt { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-label); color: var(--ink-soft); }
.project-meta dd { margin-top: 0.1rem; font-weight: 500; }
@media (max-width: 860px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Ablauf (Laufzettel) ---------- */
.route-head,
.route-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 0.5rem var(--gutter);
}
.route-head {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-label);
  color: var(--ink-soft);
}
.route { list-style: none; padding: 0; }
.route-row { align-items: start; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.route-row h3 { display: flex; align-items: center; gap: 0.8rem; font-size: var(--fs-h3); }
.route-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}
.route-row p { min-width: 0; color: var(--ink-soft); }
.route-row .route-cost { font-weight: 500; color: var(--ink); }
.cost-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 760px) {
  .route-head { display: none; }
  .route { border-top: 2px solid var(--ink); }
  .route-row { grid-template-columns: minmax(0, 1fr); }
  .cost-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; color: var(--ink-soft); font-weight: 400; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem var(--gutter); align-items: start; }
.contact-info h2 { font-size: var(--fs-h2); }
.contact-info > p { max-width: 30em; margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); }
.contact-list { margin-top: 2rem; border-top: 2px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--font-display); font-weight: 500; color: var(--ink-soft); }
.contact-list dd { min-width: 0; overflow-wrap: anywhere; }
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
  border-top: 3px solid var(--ink);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: 1.0625rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-bottom-color: var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field-error { font-size: var(--fs-small); line-height: 1.4; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: var(--fs-small); color: var(--ink-soft); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { max-width: 36em; font-size: var(--fs-small); }
.form-status[data-state="info"] { color: var(--ink-soft); }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--error); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

/* ---------- Fußzeile ---------- */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 2rem var(--gutter);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.band--dark .brand { color: var(--band-ink); }
.band--dark .brand-mark { border-color: var(--band-accent); color: var(--band-accent); }
.footer-brand p { max-width: 30em; margin-top: 1rem; font-size: 1rem; color: var(--band-soft); }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer-nav a[aria-current="page"] { text-decoration-thickness: 2px; }
.footer-copy { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--band-line); font-size: var(--fs-small); color: var(--band-soft); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Impressum, Datenschutz und Rückmeldung des Formulars ---------- */
.legal-inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.legal-inner > * { max-width: 44rem; }
.legal-back { margin-bottom: 2rem; font-size: var(--fs-small); }
.legal h1 { margin-bottom: 1.5rem; font-size: var(--fs-h2); }
.legal h2 { margin-top: 2.25rem; margin-bottom: 0.6rem; font-size: 1.375rem; }
.legal h3 { margin-bottom: 0.4rem; font-size: 1.125rem; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.65; }
.legal p + p { margin-top: 0.8rem; }
.legal .dashlist { margin-block: 0.6rem 0.8rem; }
.legal .dashlist li { padding-block: 0.3rem; border-top: 0; }
.legal .dashlist li::before { top: 0.3rem; }
.legal-box { margin-block: 1rem; padding: 1rem 1.25rem; border: 2px solid var(--ink); }
.legal-stand { margin-top: 2.5rem; color: var(--ink-soft); }
.legal address { font-style: normal; }
.notice-list { margin-top: 1rem; padding-left: 1.25rem; }
.notice-list li + li { margin-top: 0.3rem; }
