/*
  Preisblick Ratgeber – gemeinsames Stylesheet für alle SEO-Artikel unter /ratgeber/.
  Farben und Schrift folgen admin/optics/branding.md (Streamlit-Theme), damit die
  statischen Seiten optisch zum Dashboard passen. Keine Icons/Emojis im Fließtext,
  bewusst zurückhaltend für einen seriösen B2B-Auftritt.
*/

:root {
  --dark-cyan: #368F8B;      /* Primärfarbe: Links, Buttons, Überschriften-Akzent */
  --stormy-teal: #246A73;    /* Hover-/Aktiv-Zustand */
  --midnight-violet: #160F29; /* Fließtext */
  --champagne-mist: #F3DFC1;  /* sekundärer Hintergrund (CTA-Box, Header) */
  --desert-sand: #DDBEA8;     /* Trennlinien, Rahmen */
  --page-bg: #F9F4EC;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--midnight-violet);
  background: var(--page-bg);
  line-height: 1.65;
}

a {
  color: var(--dark-cyan);
  text-decoration: underline;
}

a:hover {
  color: var(--stormy-teal);
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--desert-sand);
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--midnight-violet);
  text-decoration: none;
}

.header-inner nav a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

.header-inner nav a:first-child {
  margin-left: 0;
}

/* Main content */

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--stormy-teal);
  margin-bottom: 24px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--midnight-violet);
}

h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  color: var(--midnight-violet);
}

.lead {
  font-size: 1.1rem;
  color: var(--stormy-teal);
  margin-bottom: 8px;
}

p, li {
  font-size: 1rem;
}

ul, ol {
  padding-left: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--desert-sand);
  vertical-align: top;
}

th {
  background: var(--champagne-mist);
  font-weight: 600;
}

.note {
  background: var(--champagne-mist);
  border-left: 3px solid var(--dark-cyan);
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 0.95rem;
}

/* CTA box */

.cta-box {
  background: var(--champagne-mist);
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0;
  text-align: center;
}

.cta-box p {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  background: var(--dark-cyan);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--stormy-teal);
  color: #ffffff;
}

/* Related articles */

.related {
  margin-top: 48px;
  border-top: 1px solid var(--desert-sand);
  padding-top: 24px;
}

.related h2 {
  margin-top: 0;
}

.related ul {
  padding-left: 0;
  list-style: none;
}

.related li {
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--stormy-teal);
}

.site-footer a {
  margin: 0 10px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Article images */

.article-image {
  margin: 28px 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--desert-sand);
  display: block;
  margin: 0 auto;
}

.article-image figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--stormy-teal);
}

/* Index / hub page */

.article-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--desert-sand);
  border-radius: 8px;
  padding: 20px;
}

.article-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.article-card a {
  text-decoration: none;
}

.article-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--midnight-violet);
}
