/* ── PhantastikCharts – gemeinsamer Kern für alle öffentlichen Seiten ─────────
   Wird per <link> in jeder Seite eingebunden (statt inline dupliziert), damit
   der Browser die Datei über Page-Loads hinweg cachen kann. Seiten-spezifische
   Styles bleiben weiterhin inline in der jeweiligen Datei. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f5f5f0;
    color: #1a1a1a;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* ── Sticky Header ─────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 2px solid #1a1a1a; padding: 0.6rem 1rem; }
.site-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; justify-content: center; }
.logo { font-size: 1.25rem; font-weight: 800; color: #1a1a1a; letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.logo span { color: #c0392b; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a { font-size: 0.88rem; color: #555; text-decoration: none; transition: color 0.15s; }
.site-nav a:hover { color: #c0392b; }
.nav-cta { background: #c0392b; color: #fff !important; padding: 0.45rem 1rem; border-radius: 4px; font-size: 0.82rem; font-weight: 700; }
.nav-cta:hover { background: #a93226 !important; }

/* Hamburger-Toggle — nur auf Mobile sichtbar (siehe Media Query unten). Desktop-Layout bleibt
   unverändert, .site-nav ist dort immer normal inline sichtbar. */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; color: #1a1a1a; flex-shrink: 0; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ── Zweispalter mit Sticky-Sidebar-Ad ────────────────────────────────────
   align-items: stretch (nicht flex-start!) — sonst hat .ad-sidebar keinen
   Scrollraum und ihr position:sticky-Container "klebt" nicht wirklich. */
.page-layout { display: flex; gap: 2rem; max-width: 1420px; margin: 0 auto; padding: 0 1rem; align-items: stretch; }
.layout-main { flex: 1; min-width: 0; }
.ad-sidebar  { width: 300px; flex-shrink: 0; padding-top: 1.5rem; }
.ad-sticky   { position: sticky; top: 72px; }

@media (max-width: 1000px) {
    /* Anzeige bleibt sichtbar, wandert aber unter statt neben den Inhalt (volle Breite,
       nicht mehr sticky — ergibt über dem Content keinen Sinn). Zentrierung per Flexbox
       statt text-align, damit es unabhängig vom Display-Typ des Inhalts (Link/Bild/
       Platzhalter-Div) zuverlässig funktioniert. */
    .page-layout { flex-direction: column; }
    .ad-sidebar  { width: 100%; padding-top: 0; margin-top: 1.5rem; }
    .ad-sticky   { position: static; top: auto; display: flex; justify-content: center; }
}

@media (max-width: 700px) {
    .site-header-inner { justify-content: space-between; }
    .nav-toggle { display: flex; align-items: center; }
    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 2px solid #1a1a1a;
        flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 0;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 0.75rem 1.25rem; font-size: 0.92rem; }
    .nav-cta { margin: 0.5rem 1.25rem; text-align: center; }
}

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 0.8rem; color: #aaa; margin-bottom: 1.25rem; }
.breadcrumb a { color: #c0392b; }

/* ── Karten-Sektion ────────────────────────────────────────────────────── */
.section { background: #fff; border: 1px solid #e0e0d8; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.section-title { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: #888; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; margin-bottom: 1rem; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid #e0e0d8; padding: 1.5rem; text-align: center; font-size: 0.78rem; color: #aaa; margin-top: 2rem; }
footer a { color: #888; text-decoration: none; }
footer a:hover { color: #c0392b; }
