/* ==========================================================================
   Rausch IT – Stylesheet
   ========================================================================== */

/* ---------- Farben und Grundwerte ---------- */

/* Standard: dunkle Darstellung mit Orange, wie v1 im Dunkelmodus */
:root {
  color-scheme: dark;

  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #13161c;
  --ink: #eceae4;
  --muted: #a3a8b4;
  --line: #2a2f3a;
  --noise: #5d6370;

  --accent: #f07a3c;        /* Flächen, Linien, Buttons */
  --accent-text: #f39060;   /* Akzent für Schrift */
  --accent-ink: #14100c;    /* Schrift auf Akzentflächen */

  --panel: #1d212a;         /* Hervorhebungsflächen */
  --panel-ink: #eceae4;
  --panel-muted: #a3a8b4;
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-accent: #f07a3c;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --header-h: 72px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--maxw), 100% - 2rem);
  margin-inline: auto;
}

/* Schmale Spalte für längere Texte, so breit wie die Abschnittsköpfe */
.container-narrow {
  width: min(46rem, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
}

.draft-bar {
  padding: 0.35rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Bausteine ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--ink));
  border-color: color-mix(in srgb, var(--accent) 85%, var(--ink));
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

/* Teil einer Überschrift, der beim Umbruch zusammenbleibt
   (Umbruch nur nach Doppelpunkt oder Satzende, sonst eine Zeile) */
.h-teil {
  display: inline-block;
}

/* Bildplatzhalter, gestaltet wie der frühere Porträt-Platzhalter */
.img-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--surface-2), var(--line));
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Textzeile als Bild (z. B. Anschrift im Impressum), so hoch wie eine Zeile Fließtext */
.text-img {
  display: inline-block;
  width: auto;
  height: 1.6em;
  vertical-align: top;
}

/* Aufforderung: Textlink mit kurzem Hinweis darunter */
.cta {
  margin-top: 1.25rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

.cta-note {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tags li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Kopfbereich ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 24px;
  flex: none;
}

.brand-mark path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-line {
  stroke: url(#mark-gradient);
}

.mark-from {
  stop-color: var(--noise);
}

.mark-to {
  stop-color: var(--accent);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-it {
  margin-left: 0.25em;
  color: var(--accent);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--ink);
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-top: 0.75rem;
  }

  .header-inner > .btn-small {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav ul {
    gap: 1.25rem;
    padding: 0.6rem 0 0.75rem;
    white-space: nowrap;
  }
}

/* ---------- Einstieg ---------- */

.hero {
  padding-top: clamp(3.5rem, 10vw, 7.5rem);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-subline {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 40rem;
  margin: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Einstiegsbild */
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
    object-position: center 70%;
  }
}

/* Diagonal geteiltes Bild: oben Beratung, unten Entwicklung */
.hero-split {
  /* Anschnitt-Werte */
  --line-left: 65%;
  --line-right: 35%;
  --top-x: 5%;
  --top-y: -60%;
  --top-zoom: 1.4;
  --bottom-x: 0%;
  --bottom-y: 30%;
  --bottom-zoom: 1;

  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.split-part {
  position: absolute;
  inset: 0;
}

.split-top {
  clip-path: polygon(0 0, 100% 0, 100% var(--line-right), 0 var(--line-left));
}

.split-bottom {
  clip-path: polygon(0 var(--line-left), 100% var(--line-right), 100% 100%, 0 100%);
}

.hero-split img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Motive in ihre Bildhälfte schieben */
/* Zoom wächst zur Trennlinie hin, damit verschobene Bilder keine Lücke lassen */
.split-top img {
  transform: translate(var(--top-x), var(--top-y)) scale(var(--top-zoom));
  transform-origin: center top;
}

.split-bottom img {
  transform: translate(var(--bottom-x), var(--bottom-y)) scale(var(--bottom-zoom));
  transform-origin: center bottom;
}

.split-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.split-line line {
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 860px) {
  .hero-split {
    aspect-ratio: 16 / 10;
  }
}

.wave {
  display: block;
  width: 100%;
  height: clamp(60px, 10vw, 120px);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.wave path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.wave-noise {
  stroke: var(--noise);
}

.wave-signal {
  stroke: var(--accent);
}

/* ---------- Kennzahlen ---------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0 2rem;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem 0;
}

.fact-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fact-label {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ---------- Abschnitte ---------- */

.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
}

.section-intro {
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.card p {
  color: var(--muted);
}

.card li,
.highlight-list li,
.prose ul li {
  position: relative;
  padding-left: 1.25rem;
}

.card li {
  margin-top: 0.45rem;
  font-size: 0.97rem;
}

.card li::before,
.highlight-list li::before,
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem 3.5rem;
  align-items: center;
  margin-top: 3rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--panel);
  color: var(--panel-ink);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
}

.highlight h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.highlight p {
  margin: 0;
  color: var(--panel-muted);
}

.highlight-list li {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-top: 1px solid var(--panel-line);
}

.highlight-list li:last-child {
  border-bottom: 1px solid var(--panel-line);
}

.highlight-list li::before {
  top: calc(0.9rem + 0.68em);
  background: var(--panel-accent);
}

/* ---------- Vorgehen ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2.5rem 2rem;
}

.step {
  position: relative;
  padding-top: 2.25rem;
  border-top: 2px solid var(--line);
}

.step-no {
  position: absolute;
  top: -19px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Projekte ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Versetzte Breiten, damit die Kacheln kein starres Raster bilden */
.project-span-7 {
  grid-column: span 7;
}

.project-span-5 {
  grid-column: span 5;
}

@media (max-width: 860px) {
  .projects {
    grid-template-columns: 1fr;
  }

  .projects > .project {
    grid-column: auto;
  }
}

.project {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  container-type: inline-size;
}

.project-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

/* Titelgröße richtet sich nach der Breite der Kachel, damit kurze Titel auch in schmalen Kacheln in eine Zeile passen */
.project h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 7cqi, 2rem);
}

.project-main p {
  color: var(--muted);
}

/* Projektkachel über die volle Breite */
.project-wide {
  grid-column: 1 / -1;
}

/* Projektkachel mit Bild: Text links, freigestelltes Bild rechts */
.project-has-media {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.project-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* App-Symbol hinter der Überschrift, mittig zu den Großbuchstaben (Versalhöhe ca. 0,7 em) */
.project-title-icon img {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.25em;
  vertical-align: -0.2em;
}

@media (max-width: 600px) {
  .project-has-media {
    grid-template-columns: 1fr;
  }

  .project-media {
    max-width: 360px;
    margin-inline: auto;
  }
}

.project-meta,
.article-meta,
.callout-label {
  margin-bottom: 0.75rem;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 1.75rem;
}

.project-links a {
  font-weight: 600;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.project-soon {
  border: 2px dashed var(--line);
  color: var(--muted);
}

.project-soon h3 {
  color: var(--ink);
  font-size: 1.4rem;
}

/* ---------- Wissen ---------- */

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.article {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-meta {
  color: var(--muted);
}

.article h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.article h3 + p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 280px;
  }
}

.portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--surface-2), var(--line));
  border-radius: var(--radius-lg);
}

.portrait-initials {
  color: var(--muted);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.portrait-note {
  position: absolute;
  bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.timeline {
  margin: 2rem 0 0;
}

.timeline div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.timeline div:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding-top: 0.15em;
}

.timeline dd {
  margin: 0;
}

@media (max-width: 480px) {
  .timeline div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ---------- Kontakt ---------- */

.contact {
  background: var(--panel);
  color: var(--panel-ink);
}

.contact-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem 4rem;
  align-items: center;
}

.contact p {
  color: var(--panel-muted);
  font-size: 1.15rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  color: var(--panel-ink);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.contact-link:hover {
  border-color: var(--panel-accent);
  background: rgba(255, 255, 255, 0.04);
}

.contact-label {
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-value {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact .contact-place {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

/* ---------- Beitragsseiten ---------- */

.post {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.post-head {
  margin-bottom: 3rem;
}

.post-head .cta-link {
  margin-bottom: 1.5rem;
}

.post-head h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
}

.post-head .lead {
  margin-bottom: 0;
}

.post-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Fließtext für Beiträge, später auch für Impressum und Datenschutz */
.prose {
  color: var(--muted);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  color: var(--ink);
  font-size: 1.25rem;
}

/* Zwischenüberschriften füllen die Zeile; nur ein einzelnes Wort am Ende wird vermieden */
.prose h2,
.prose h3 {
  text-wrap: pretty;
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose li {
  margin-top: 0.45rem;
}

.prose ol {
  counter-reset: schritt;
}

.prose ol li {
  position: relative;
  padding-left: 2rem;
  counter-increment: schritt;
}

.prose ol li::before {
  content: counter(schritt) ".";
  position: absolute;
  left: 0;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-weight: 700;
}

.prose code {
  padding: 0.1em 0.35em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose pre {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: inherit;
}

/* Farbige Codedarstellung in den Farben der Seite:
   Schlüssel und Schlüsselwörter orange, Texte hell, Kommentare gedämpft, Satzzeichen grau */
.tok-key,
.tok-kw,
.tok-num {
  color: var(--accent-text);
}

.tok-str {
  color: var(--ink);
}

.tok-com {
  color: var(--noise);
  font-style: italic;
}

.prose figure {
  margin: 2rem 0;
}

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.prose figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* Zwei Bilder nebeneinander, auf dem Handy untereinander */
.figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.figure-pair .img-placeholder {
  aspect-ratio: 4 / 3;
}

.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  padding: 0.75rem 1.25rem 0.75rem 0;
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose td {
  border-top: 1px solid var(--line);
}

.prose td:first-child {
  color: var(--ink);
}

.prose th:last-child,
.prose td:last-child {
  padding-right: 0;
}

/* Zahlenspalten rechtsbündig */
.prose .num {
  text-align: right;
}

/* Zitate, z. B. Beispielanfragen und Antworten: Kachel wie Codeblock und Hinweiskasten */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Trennlinie, wie die Linie über dem Beitragsende */
.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Hinweiskasten: Kachel mit Meta-Zeile */
.callout {
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Fußbereich ---------- */

.site-footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}
