:root {
  --bg: #f7f8fb;
  --fg: #17181a;
  --muted: #363636ff;
  --brand: #512fe7ff;
  --brand2: #0e7a6fff;
  --brand3: #ff9f68;
  --card: #fff;
  --border: #e6e8ee;
 
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
video {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--brand2);
  text-decoration: underline;
}



/* Hauptcontainer für den Artikel-Inhalt */
.article-container {
  max-width: 720px; /* Ideale Lesebreite */
  margin: 0 auto;
  padding: 120px 20px 80px 20px; /* Platz für den fixierten Header */
}

/* Artikel-Header */
.article-header {
  text-align: center;
  margin-bottom: 4rem;
}
.article-header .category {
  color: var(--brand2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--fg);
  line-height: 1.2;
  margin: 0 0 1rem 0;
  text-wrap: balance;
}
.article-header .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Artikel-Inhalt */
.article-content {
  font-size: 1.1rem;
  line-height: 1.75;
}
.article-content h2,
.article-content h3 {
  color: var(--fg);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
  /*text-wrap: balance;*/
}

/* 2. Die NEUE, UNIVERSELLE Anker-Regel */
.article-content [id] {
  scroll-margin-top: 85px;
}

.article-content h2 {
  font-size: 1.8rem;
}
.article-content h3 {
  font-size: 1.5rem;
}
.article-content p {
  margin: 0 0 1.5rem 0;
} /* <-- HIER FEHLTE DIE WICHTIGE KLAMMER */

/* * 1. ALLGEMEINE Regel für ALLE Bilder im Artikel
 * (Schatten, Radius, Abstand)
 */
/* --- KORREKTUR 1: Abstand für die Container --- */
/* Setzt den vertikalen Abstand für das Haupt-Figure-Element
   UND für einzelne Bilder, die direkt im Text platziert sind. */
.article-container > figure,
.article-content img {
  margin: 2.5rem 0;
}

/* --- KORREKTUR 2: Styling für die Bilder selbst --- */
/* Wendet das 3:2-Verhältnis und den Schatten auf ALLE Bilder an,
   egal ob im <figure> oder im .article-content */
.article-container > figure img,
.article-content img {
  
  /* Stile für Schatten & Radius */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 
  /* 3:2-Seitenverhältnis */
  width: 100%;
  height: auto; 
  aspect-ratio: 3 / 2; 
  object-fit: cover; 
}
.article-content blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: px solid var(--muted);
  font-style: italic;
  color: var(--muted);
}
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}

/* Zurück-Button */
.back-to-hub {
  display: inline-block;
  margin-top: 3rem;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}
.back-to-hub:hover {
  color: var(--brand);
}

/* Footer-Styling (exakt vom Onepager übernommen) */
.site-footer {
  background-color: var(--muted);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 1.5rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}



.article-header {
  margin-bottom: 2.2rem; /*Abstand Bild oben*/
}

/* =============================================== */
/* CSS für Tabelle                                 */
/* =============================================== */

.fixed-table {
  table-layout: fixed; /* sorgt dafür, dass die Breiten fest sind */
  width: 100%; /* nutzt den gesamten verfügbaren Platz */
}

.fixed-table th,
.fixed-table td {
  width: 50%; /* teilt den Platz gleichmäßig auf */
}

/* =============================================== */
/* CSS für Post-Navigationslinks & CTA-Button      */
/* =============================================== */

/* 1. Container für die untere Navigationszeile */
.back-row {
  display: flex;
  justify-content: space-between; /* Links und Rechts anordnen */
  align-items: center;
  margin-top: 4rem; /* Großzügiger Abstand nach oben */
  padding-top: 1.5rem;
  border-top: 1px solid var(--border); /* Dezente Trennlinie */
}

/* 2. Styling für die Text-Links in der Zeile */
.back-row a {
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover-Effekt für die Text-Links */
.back-row a:hover {
  color: var(--brand); /* Markenfarbe beim Hover */
  text-decoration: none;
}

/* 3. Container für den zentralen CTA-Button */
.post-cta {
  text-align: center; /* Button zentrieren */
  margin: 4rem 0 0 0; /* Abstand nach oben */
}

/* 4. Styling für den "Leistungen ansehen"-Button */
.post-cta .btn {
  display: inline-block;
  background: var(--brand2); /* Gleiche Farbe wie Kontakt-Button im Header */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.8rem; /* Großzügiges Padding für gute Klickbarkeit */
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 18px rgba(125, 95, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt für den Button */
.post-cta .btn:hover {
  transform: translateY(-2px); /* Leichter "Lift"-Effekt */
  box-shadow: 0 8px 24px rgba(125, 95, 255, 0.3);
  color: #fff; /* Sicherstellen, dass Textfarbe weiß bleibt */
}

dt {
  font-weight: 600; /* Etwas dicker als normal, aber nicht ganz fett */
  border-bottom: 1px solid #e0e0e0; /* Eine feine, graue Linie */
  padding-bottom: 8px; /* Abstand zwischen Text und Linie */
  margin-bottom: 8px; /* Abstand zwischen Linie und dem Absatz darunter */
  margin-top: 20px;
}

dt:first-of-type {
  margin-top: 0;
}

pre,
code {
  white-space: pre-wrap; /* Lässt den Code umbrechen */
  overflow-wrap: break-word; /* Bricht auch sehr lange Wörter/URLs um */
  max-width: 100%; /* Stellt sicher, dass der Block nicht breiter als sein Elternelement wird */
}





/* Wendet den ausgewogenen Textumbruch auf alle Absätze an */

p, dd {
  text-wrap: pretty;
}

.article-content code{
       /* kein Umbruch mitten im Snippet */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;            /* kein Trennen bei Bindestrich */
}

/* =============================================== */
/* Dezentes Styling für geordnete Listen           */
/* =============================================== */

/* Wählt jedes li-Element aus, das eine h3 enthält, und entfernt dessen Nummerierung */
ol li:has(> h3) {
  list-style-type: none;
}

/* Stellt sicher, dass verschachtelte Listen innerhalb dieser li-Elemente ihre Nummerierung behalten */
ol li:has(> h3) ol {
  list-style-type: decimal;
}

.article-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: #f3f3f3;
  border: 1px solid #e3e3e3;
  padding: 0.08em 0.32em;
  border-radius: 3px;
  font-variant-ligatures: none;
}

/* =============================================== */
/* Blog Grid & Related Posts (Einheitliches System) */
/* =============================================== */

/* Dein Grid-System (unverändert) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

/* Deine Blog-Karte (ANGEPASST) */
.blog-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card);
  
  /* GEÄNDERT: Harte Border durch weichen Schatten ersetzt (wie im Bild) */
  /* border: 1px solid var(--border); */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden; /* Wichtig, damit das Bild die runden Ecken mitschneidet */
}

.blog-card:hover {
  transform: translateY(-5px);
  /* GEÄNDERT: Hover-Schatten etwas verstärkt */
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
  margin: 0;
}

.blog-card:hover img {
  transform: scale(1.03);
}

.blog-content {
  /* GEÄNDERT: Etwas mehr Innenabstand für ein luftigeres Design */
  padding: 1.75rem; 
  flex-grow: 1;
}

/* Styling für den .category-Text (unverändert) */
.blog-card .blog-content .category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-content h3 {
  /* GEÄNDERT: Deutlich größere Schrift & bessere Zeilenhöhe, wie im Bild */
  margin: 0 0 .75rem;
  font-size: 1.5rem; 
  line-height: 1.3;
  color: var(--fg);
}

.blog-content p {
  /* GEÄNDERT: Schriftgröße auf Standard (1rem) & mehr Zeilenabstand für Lesbarkeit */
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* =============================================== */
/* Wrapper für "Das könnte Sie auch interessieren" */
/* =============================================== */

.related-posts {
  margin-top: 3rem;
  /*padding-top: 2rem; */
  border-top: 1px solid var(--border);
  max-width: 100%; /* Verhindert Überlaufen */
}

/* Die H3 "Das könnte Sie auch interessieren" */
.related-posts > h3 {
  text-align: center;
  font-size: 1.8rem;
  /* margin-top: 0; (von .blog-content h3 geerbt, falls nötig) */
  margin-bottom: 2rem; 
  color: var(--fg);
}

/* Das Grid im Related-Bereich soll etwas weniger Abstand nach oben haben */
.related-posts .blog-grid {
 margin-top: 2rem;
  
  /* * 1. Ersetzt 'repeat(3, 1fr)'
   * 2. 'auto-fit' erstellt Spalten, 'minmax' macht sie 280-320px breit.
   * 3. 'justify-content' zentriert die 3 Karten im breiten Container.
   */
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;

  /* * 4. Setzt den Zwischenraum schmaler als die 2rem vom .blog-grid
   */
  gap: 1.5rem; /* Du kannst hier auch '1rem' probieren, wenn das noch zu breit ist */
}

/* Begrenzt den Text-Auszug auf 3 Zeilen NUR im Related-Bereich */
.related-posts .blog-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Barrierefreie Links im Fließtext (fett statt unterstrichen) 
  Löst das "Nur-Farbe"-Problem für Links in Absätzen.
*/
.article-content p a, 
.article-content li a,
.article-content dd a{
  font-weight: 600; /* oder 'bold', falls 600 nicht stark genug ist */
}


/* =============================================== */
/* Code-Blöcke (für SEO-Beispiele, robots.txt etc.)*/
/* =============================================== */

pre code {
  display: block;
  background: #f5f7fa;
  color: #2a2f3a;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

pre {
  margin: 2rem 0;
}
