/* =========================================================================
   p-impressum.css – Komposition der Seite „Impressum“
   Kopf mit Inhaltsverzeichnis · nummerierter Bogen (Zeilen 01–05) · Anbieter-Tafel
   im Stil eines Bauschilds · ruhiger Abschluss (kein CTA-Band auf Rechtsseiten) · Druckfassung.
   Nur Tokens aus site.css.
   ========================================================================= */

/* ---------- Kopf ---------- */
.im-hero { padding-bottom: clamp(2.75rem, 6vw, 5.5rem); }
.im-hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.im-hero .h1 { font-size: clamp(3rem, 1.6rem + 5.4vw, 6rem); letter-spacing: -.05em; }
.im-facts { margin-top: 4px; }

.im-toc { width: 100%; max-width: 40rem; }
.im-toc .m-label { margin-bottom: 14px; }
.im-toc ol { border-top: 1px solid var(--line-2); }
.im-toc a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; gap: 12px;
  min-height: 52px; padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font: 500 1rem/1.35 var(--ff-display); letter-spacing: -.005em;
  transition: color .3s var(--ease), padding .4s var(--ease), background-color .3s var(--ease);
}
.im-toc a:hover { color: #fff; padding-left: 6px; }
.im-toc-n {
  font: 300 1.25rem/1 var(--ff-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em;
}
@media (min-width: 56.25em) {
  /* gleiche Spalten wie die Zeilen darunter: Inhaltsverzeichnis fluchtet mit der Anbieter-Tafel */
  .im-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; column-gap: clamp(2rem, 5vw, 5rem); }
}

/* ---------- Bogen mit nummerierten Zeilen ---------- */
.im-sheet { padding-top: 0; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.im-row {
  display: grid; gap: var(--sp-5); padding-block: clamp(2.25rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line); position: relative;
}
.im-row::before { content: ""; position: absolute; top: -1px; left: 0; width: 64px; height: 1px; background: var(--grad); }
.im-row-head { display: flex; align-items: baseline; gap: 16px; }
.im-no {
  flex: none; font: 300 clamp(2rem, 1.5rem + 1.8vw, 3.25rem)/.9 var(--ff-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em;
}
.im-h {
  font: var(--fw-display) clamp(1.375rem, 1.15rem + 1vw, 2.125rem)/1.18 var(--ff-display); letter-spacing: -.022em;
  color: var(--text); text-wrap: balance; max-width: 22ch;
}
.im-row-body { display: grid; gap: var(--sp-5); min-width: 0; }
.im-x { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); max-width: 40rem; text-wrap: pretty; }
@media (min-width: 56.25em) {
  .im-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .im-row-head { flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* Angaben als Liste (Etikett · Wert) */
.im-dl { display: grid; }
.im-dl > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.im-dl > div:first-child { border-top: 0; }
.im-dl dt { font: 500 var(--fs-xs)/1.4 var(--ff-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.im-dl dd { font: 400 clamp(1.0625rem, 1rem + .35vw, 1.3125rem)/1.4 var(--ff-display); letter-spacing: -.01em; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.im-dl dd a { overflow-wrap: anywhere; }
.im-dl-plain { max-width: 40rem; border-block: 1px solid var(--line); }
.im-dl-plain > div:first-child { border-top: 0; }
@media (min-width: 30em) {
  .im-dl > div { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); align-items: baseline; column-gap: 20px; }
  .im-dl-wide > div { grid-template-columns: minmax(0, 1fr); }
}
/* langes Etikett (Gesetzesbezeichnung) steht über dem Wert */
.im-dl-wide > div { gap: 8px; padding-block: 18px; }
.im-dl-wide dt { text-transform: none; letter-spacing: 0; font: 400 .9375rem/1.5 var(--ff-text); color: var(--text-2); }

/* Kontakt-Werte: Platzhalter bzw. Link (aus build.py) im Fließtext statt Fuß-Stil */
.im-contact .f-ph { display: inline; min-height: 0; padding: 0; font: inherit; color: var(--accent-soft); }
.im-contact a { color: var(--text); text-decoration-color: rgba(34, 211, 238, .55); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.im-contact a:hover { text-decoration-color: var(--accent); }
/* Anschrift/USt-IdNr. aus site.json: nur solange der Wert ein Platzhalter „[…]“ ist, als solcher gefärbt –
   echte Werte erscheinen nach dem Eintragen in site.json + build.py wie die übrigen Angaben (ohne Quelltext-Änderung) */
.im-sheet .im-val[data-im-wert^="["] { color: var(--accent-soft); }

/* ---------- Anbieter-Tafel (Bauschild) ---------- */
.im-sign { position: relative; max-width: 40rem; }
.im-board {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.25rem, 3.2vw, 2.25rem) clamp(1.25rem, 3.4vw, 2.5rem) clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid transparent; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(24, 29, 42, .98), rgba(15, 19, 28, .98)) padding-box, linear-gradient(160deg, var(--line-3), var(--line)) border-box;
  box-shadow: var(--shadow-ui);
}
.im-board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.im-board::after {
  content: ""; position: absolute; z-index: -1; right: -20%; top: -45%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .14), transparent 72%); pointer-events: none;
}
.im-board-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding-bottom: clamp(1rem, 2.4vw, 1.5rem); margin-bottom: 4px; border-bottom: 1px solid var(--line-2);
}
.im-logo { width: auto; height: clamp(36px, 2rem + 1.2vw, 48px); }
.im-board-l {
  font: 500 var(--fs-xs)/1.3 var(--ff-display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft);
  padding: 6px 10px; border: 1px solid rgba(34, 211, 238, .35); border-radius: var(--r-pill);
}
.im-address { font-style: normal; }
/* „Geschäftsbezeichnung“ trägt im Quelltext eine weiche Trennstelle: bricht in der schmalen Etikett-Spalte sauber um */
.im-address .im-dl dt { -webkit-hyphens: manual; hyphens: manual; }
.im-address .im-dl dd { font-size: clamp(1.125rem, 1.02rem + .5vw, 1.4375rem); }

/* Pfosten + Boden (dekorativ) */
.im-posts { position: relative; height: clamp(44px, 6vw, 64px); margin-inline: 12%; display: flex; justify-content: space-between; }
.im-posts span { width: 10px; height: 100%; background: linear-gradient(180deg, var(--surface-3), var(--surface)); border-inline: 1px solid var(--line-2); }
.im-posts::after {
  content: ""; position: absolute; left: -14%; right: -14%; bottom: -14px; height: 14px; border-top: 1px solid var(--line-3);
  background: repeating-linear-gradient(-45deg, rgba(174, 183, 199, .13) 0 1px, transparent 1px 10px);
}
.im-sign { padding-bottom: 14px; }

/* ---------- Hinweise ---------- */
.im-notes { display: grid; max-width: 40rem; border-block: 1px solid var(--line); }
.im-notes li { display: grid; gap: 8px; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.im-notes li:first-child { border-top: 0; padding-top: 4px; }
.im-note-t { font: 500 1.125rem/1.35 var(--ff-display); letter-spacing: -.01em; color: var(--text); }
.im-notes p { font-size: 1rem; line-height: 1.7; color: var(--text-2); text-wrap: pretty; }

/* ---------- Abschluss (ruhig, ohne Primär-Button) ---------- */
.im-next { background: var(--bg-2); border-top: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.im-next::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad); opacity: .5; }
.im-next::after {
  content: ""; position: absolute; z-index: -1; left: -15%; bottom: -45%; width: 70%; height: 110%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .08), transparent 70%); pointer-events: none;
}
.im-next-grid { display: grid; gap: var(--sp-8); align-items: end; }
.im-next-copy { display: grid; gap: var(--sp-5); justify-items: start; }
.im-next-t { max-width: 16ch; }
.im-next .sub { max-width: 32rem; }
.im-next-side { display: grid; gap: var(--sp-6); width: 100%; max-width: 30rem; }
.im-person { padding-top: 0; border-top: 0; }
.im-person-x { color: var(--text-2); margin-top: 4px; font-size: .9375rem; line-height: 1.55; }
.im-more .m-label { margin-bottom: 10px; }
@media (min-width: 56.25em) {
  .im-next-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sp-8); }
  .im-next-side { justify-self: end; }
}

/* ---------- Druck: helles Papier, dunkle Schrift, nur die Angaben ----------
   site.css hat keine Druckregeln; Browser lassen Hintergründe beim Drucken weg –
   deshalb Farb-Tokens zurücksetzen und Rahmen der Seite ausblenden. */
@media print {
  :root {
    color-scheme: light; --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #fff;
    --text: #111; --text-2: #333; --text-3: #555; --accent-soft: #111;
    --line: rgba(0, 0, 0, .14); --line-2: rgba(0, 0, 0, .2); --line-3: rgba(0, 0, 0, .3);
  }
  html, body { background: #fff; color: #111; }
  body.has-sticky { padding-bottom: 0; }
  .site-header, .masthead-bar, .site-footer, .sticky-cta, .rs-dialog, .skip-link,
  .im-hero .guides, .im-hero .hero-glow, .im-toc, .im-posts, .im-logo, .im-next { display: none; }
  .im-hero { padding: 0 0 12px; }
  .im-hero .h1 { font-size: 2rem; }
  .im-sheet { padding: 0; }
  .im-row { padding-block: 16px; break-inside: avoid; }
  .im-row-head { position: static; }
  .im-board { break-inside: avoid; box-shadow: none; background: none; border: 1px solid rgba(0, 0, 0, .3); }
  .im-board::before, .im-board::after, .im-row::before, .eyebrow::before { display: none; }
  /* Trennpunkt als Zeichen statt Verlaufsfläche (Hintergründe fallen beim Drucken weg) */
  .fact-line li + li::before { content: "·"; width: auto; height: auto; border-radius: 0; background: none; color: #555; }
  .im-no, .im-toc-n { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #111; }
  .im-board-l { color: #111; border-color: rgba(0, 0, 0, .3); }
  .im-board-top { justify-content: flex-start; }
  .text-link, .im-contact a { color: #111; text-decoration-color: rgba(0, 0, 0, .45); }
}
