/* ─────────────────────────────────────────────────
   Schulferienplaner.de — Main stylesheet
   Light theme is default; .theme-dark on <html> activates dark.
   ───────────────────────────────────────────────── */

:root {
  /* SURFACES */
  --bg:     #ffffff;
  --bg-2:   #f7f8fa;
  --bg-3:   #eef0f5;

  /* BORDERS */
  --border:   #e6e8ee;
  --border-2: #d0d4dd;

  /* TEXT */
  --ink:    #0a0c1a;
  --ink-2:  #4b5063;
  --ink-3:  #757a8a;
  --ink-4:  #a4a8b8;

  /* BRAND (from logo) */
  --brand:        #0055FF;
  --brand-hover:  #0040d9;
  --brand-soft:   #ebf2ff;
  --brand-border: #c7d8ff;

  /* ACCENT (logo green) */
  --accent:      #00A862;
  --accent-soft: #e6f7ee;

  /* HOLIDAY SYSTEM */
  --c-sommer:    #ea580c;
  --c-sommer-bg: #fff5ed;
  --c-sommer-br: #fed7aa;

  --c-herbst:    #b45309;
  --c-herbst-bg: #fefae6;
  --c-herbst-br: #fde68a;

  --c-weihn:     #dc2626;
  --c-weihn-bg:  #fef2f2;
  --c-weihn-br:  #fecaca;

  --c-winter:    #0284c7;
  --c-winter-bg: #eff8ff;
  --c-winter-br: #bae6fd;

  --c-oster:     #16a34a;
  --c-oster-bg:  #f0fdf4;
  --c-oster-br:  #bbf7d0;

  --c-pfingst:   #be185d;
  --c-pfingst-bg:#fdf2f8;
  --c-pfingst-br:#fbcfe8;

  --c-feier:    #dc2626;
  --c-feier-bg: #fef2f2;

  /* TYPE */
  --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* LAYOUT */
  --maxw: 1400px;
  --pad:  clamp(20px, 4vw, 48px);

  /* SHADOWS */
  --shadow-sm: 0 1px 2px rgba(10, 12, 26, 0.04);
  --shadow:    0 4px 16px rgba(10, 12, 26, 0.06);
}

/* ───── DARK THEME ───── */
html.theme-dark {
  --bg:     #0b0d18;
  --bg-2:   #131625;
  --bg-3:   #1a1e30;

  --border:   #232842;
  --border-2: #313858;

  --ink:    #f4f5fa;
  --ink-2:  #b6bbcb;
  --ink-3:  #828797;
  --ink-4:  #5a5e72;

  --brand-soft:   rgba(0, 85, 255, 0.14);
  --brand-border: rgba(0, 85, 255, 0.42);

  --accent-soft: rgba(0, 168, 98, 0.14);

  --c-sommer-bg: rgba(234, 88, 12, 0.13);
  --c-sommer-br: rgba(234, 88, 12, 0.42);
  --c-herbst-bg: rgba(180, 83, 9, 0.16);
  --c-herbst-br: rgba(180, 83, 9, 0.46);
  --c-weihn-bg:  rgba(220, 38, 38, 0.14);
  --c-weihn-br:  rgba(220, 38, 38, 0.42);
  --c-winter-bg: rgba(2, 132, 199, 0.16);
  --c-winter-br: rgba(2, 132, 199, 0.46);
  --c-oster-bg:  rgba(22, 163, 74, 0.14);
  --c-oster-br:  rgba(22, 163, 74, 0.46);
  --c-pfingst-bg: rgba(190, 24, 93, 0.14);
  --c-pfingst-br: rgba(190, 24, 93, 0.46);
  --c-feier-bg:   rgba(220, 38, 38, 0.13);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 4px 16px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 6px;
  z-index: 9999; font-weight: 600;
}

/* STATUS BAR */
.statusbar { border-bottom: 1px solid var(--border); background: var(--bg-2); font-size: 12px; color: var(--ink-3); font-weight: 500; }
.statusbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 24px; }
.statusbar-left, .statusbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.statusbar strong { color: var(--ink); font-weight: 600; }
.sep-dot { color: var(--ink-4); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 168, 98, 0.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 168, 98, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 168, 98, 0); }
  100% { box-shadow: 0 0 0 0   rgba(0, 168, 98, 0); }
}

/* HEADER */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--border); }
html.theme-dark .header { background: rgba(11, 13, 24, 0.82); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex-shrink: 0; display: block; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.dot-de { font-weight: 300; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.nav a { padding: 8px 14px; color: var(--ink-2); border-radius: 7px; font-weight: 500; transition: 0.15s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.active { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 8px; }
.year-switch { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; font-size: 12px; font-weight: 600; }
.year-switch button { padding: 6px 11px; border-radius: 6px; color: var(--ink-3); transition: 0.15s; }
.year-switch button.is-active { background: var(--ink); color: var(--bg); }
.year-switch button:not(.is-active):hover { color: var(--ink); }
.year-switch button:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; color: var(--ink-3); transition: 0.15s; background: var(--bg); }
.theme-toggle:hover { color: var(--ink); border-color: var(--border-2); }

.eyebrow, .section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before, .section-eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--brand); border-radius: 2px; }

/* HERO */
.hero { padding: 64px 0 48px; }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); margin-bottom: 20px; font-weight: 500; flex-wrap: wrap; }
.hero-meta .divider { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
h1.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6.4vw, 80px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); margin-bottom: 22px; max-width: 18ch; }
h1.hero-title .accent { color: var(--brand); font-weight: 800; }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.hero-stats { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 14px; background: var(--bg); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-stat { padding: 22px 24px; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: 0; }
.hero-stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.hero-stat-value { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.025em; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.hero-stat-value .accent { color: var(--brand); }
.hero-stat-meta { font-size: 13px; color: var(--ink-3); }
.hero-stat-meta b { color: var(--ink-2); font-weight: 600; }

/* HEATMAP */
.heatmap { margin-top: 32px; padding: 22px 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); display: flex; align-items: center; gap: 28px; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.heatmap-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.heatmap-stat-num .accent { color: var(--brand); }
.heatmap-stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.heatmap-grid { flex: 1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; min-width: 320px; }
.heat-cell { aspect-ratio: 1.2; border-radius: 5px; border: 1px solid var(--border); background: var(--bg-2); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; transition: 0.15s; cursor: pointer; }
.heat-cell:hover { border-color: var(--ink-4); }
.heat-cell.on-pfingst, .heat-cell.on-active { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }
.heat-cell.on-sommer  { background: var(--c-sommer-bg);  border-color: var(--c-sommer-br);  color: var(--c-sommer); }
.heat-cell.on-herbst  { background: var(--c-herbst-bg);  border-color: var(--c-herbst-br);  color: var(--c-herbst); }
.heat-cell.on-weihn   { background: var(--c-weihn-bg);   border-color: var(--c-weihn-br);   color: var(--c-weihn); }
.heat-cell.on-winter  { background: var(--c-winter-bg);  border-color: var(--c-winter-br);  color: var(--c-winter); }
.heat-cell.on-oster   { background: var(--c-oster-bg);   border-color: var(--c-oster-br);   color: var(--c-oster); }
.heat-legend { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 500; color: var(--ink-2); flex-shrink: 0; }
.heat-legend span { display: flex; align-items: center; gap: 7px; }
.heat-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* CONTROLS */
.controls { padding: 80px 0 0; }
.controls-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 24px; flex-wrap: wrap; }
h2.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
h2.section-title .accent { color: var(--brand); }
.section-desc { color: var(--ink-2); font-size: 16px; max-width: 56ch; margin-top: 12px; line-height: 1.55; }
.mode-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 4px; font-size: 13px; font-weight: 600; flex-shrink: 0; flex-wrap: wrap; }
.mode-toggle button { padding: 9px 16px; border-radius: 8px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; transition: 0.15s; }
.mode-toggle button.is-active { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.mode-toggle button:not(.is-active):hover { color: var(--ink); }
.mode-toggle svg { width: 14px; height: 14px; }

/* Bundesland tiles */
.bl-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 20px; }
.bl-tile { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px 14px; cursor: pointer; transition: 0.15s; text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 100px; color: var(--ink); }
.bl-tile:hover { border-color: var(--brand-border); background: var(--brand-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.bl-tile.is-selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-sm); }
.bl-tile.is-selected::after, .bl-tile.is-compare::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; }
.bl-tile.is-selected::after { background: var(--brand); }
.bl-tile.is-compare { border-color: var(--accent); background: var(--accent-soft); }
.bl-tile.is-compare::after { background: var(--accent); }
.bl-abbr { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.bl-tile.is-selected .bl-abbr { color: var(--brand); }
.bl-tile.is-compare .bl-abbr { color: var(--accent); }
.bl-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.bl-meta { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: auto; }

/* Filter chips */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: 0.15s; }
.chip:hover { color: var(--ink); border-color: var(--border-2); }
.chip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.chip.is-on { color: var(--ink); }
.chip.is-off { opacity: 0.5; }
.chip.is-off:hover { opacity: 0.8; }
.chip i.c-sommer  { background: var(--c-sommer); }
.chip i.c-herbst  { background: var(--c-herbst); }
.chip i.c-weihn   { background: var(--c-weihn); }
.chip i.c-winter  { background: var(--c-winter); }
.chip i.c-oster   { background: var(--c-oster); }
.chip i.c-pfingst { background: var(--c-pfingst); }
.chip i.c-feier   { background: var(--c-feier); border-radius: 50%; }
.filter-divider { width: 1px; height: 18px; background: var(--border-2); margin: 0 4px; }

/* CALENDAR */
.cal-region { padding: 16px 0 0; }
.cal-frame { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: 0 1px 2px rgba(10, 12, 26, 0.04), 0 24px 56px -28px rgba(10, 12, 26, 0.12); position: relative; }
.cal-frame::before { content: ""; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(0, 85, 255, 0.04), transparent 200px); pointer-events: none; }
.cal-frame-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 20px; }
.cal-title-block .section-eyebrow { margin-bottom: 10px; }
.cal-title { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.025em; line-height: 1; color: var(--ink); }
.cal-title .accent { color: var(--brand); }
.cal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: 0.15s; }
.cal-btn:hover { color: var(--ink); border-color: var(--border-2); background: var(--bg-2); }
.cal-btn svg { width: 14px; height: 14px; }
.cal-btn.is-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-btn.is-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Months grid */
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.month { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px 14px; transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, border-color 0.2s; position: relative; }
.month:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 14px 32px -12px rgba(10, 12, 26, 0.14), 0 2px 6px rgba(10, 12, 26, 0.04); }
.month.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 14px 32px -14px rgba(0, 85, 255, 0.35); }
.month.is-current::before { content: "Aktuell"; position: absolute; top: -9px; right: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 3px 8px; border-radius: 999px; z-index: 2; box-shadow: 0 4px 10px rgba(0, 85, 255, 0.4); }
.month-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.month-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; color: var(--ink); }
.month-name .accent { color: var(--brand); font-style: normal; }
.month-year { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.06em; }

.dow-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dow { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 4px 0; }
.dow.we { color: var(--ink-4); }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.d { aspect-ratio: 1; display: grid; place-items: center; font-size: 13.5px; font-weight: 500; color: var(--ink); border-radius: 7px; position: relative; transition: transform 0.15s, box-shadow 0.15s; z-index: 1; }
.d.empty { color: transparent; pointer-events: none; }
.d.we { color: var(--ink-4); font-weight: 400; }
.d:hover:not(.empty):not(.vac):not(.pub) { background: var(--bg-2); cursor: default; }

.d.vac { font-weight: 700; color: #fff !important; z-index: 2; }
.d.vac::before { content: ""; position: absolute; inset: 2px 0; z-index: -1; border-radius: 0; }
.d.vac-sommer::before  { background: linear-gradient(180deg, #f97316, #ea580c); }
.d.vac-herbst::before  { background: linear-gradient(180deg, #d97706, #b45309); }
.d.vac-weihn::before   { background: linear-gradient(180deg, #ef4444, #dc2626); }
.d.vac-winter::before  { background: linear-gradient(180deg, #0ea5e9, #0284c7); }
.d.vac-oster::before   { background: linear-gradient(180deg, #22c55e, #16a34a); }
.d.vac-pfingst::before { background: linear-gradient(180deg, #db2777, #be185d); }
.d.vac.start::before { border-top-left-radius: 999px; border-bottom-left-radius: 999px; margin-left: 2px; }
.d.vac.end::before   { border-top-right-radius: 999px; border-bottom-right-radius: 999px; margin-right: 2px; }
.d.vac.start.end::before { border-radius: 999px; margin: 0 2px; }
.d.vac:hover { transform: translateY(-1px) scale(1.05); z-index: 3; }
.d.vac-sommer:hover  { box-shadow: 0 6px 14px -4px rgba(234, 88, 12, 0.45); }
.d.vac-herbst:hover  { box-shadow: 0 6px 14px -4px rgba(180, 83, 9, 0.45); }
.d.vac-weihn:hover   { box-shadow: 0 6px 14px -4px rgba(220, 38, 38, 0.45); }
.d.vac-winter:hover  { box-shadow: 0 6px 14px -4px rgba(2, 132, 199, 0.45); }
.d.vac-oster:hover   { box-shadow: 0 6px 14px -4px rgba(22, 163, 74, 0.45); }
.d.vac-pfingst:hover { box-shadow: 0 6px 14px -4px rgba(190, 24, 93, 0.45); }

.d.pub:not(.vac) { color: var(--c-feier); font-weight: 800; background: var(--c-feier-bg); box-shadow: inset 0 0 0 1.5px var(--c-feier); }
.d.pub:not(.vac)::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--c-feier); box-shadow: 0 0 0 2px var(--bg); }
.d.pub.vac { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.7); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.d.pub.vac::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #fff; z-index: 3; }

.d.today { color: #fff !important; font-weight: 800; z-index: 4; }
.d.today::before { content: ""; position: absolute; inset: 2px; background: var(--ink); border-radius: 7px; z-index: -1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand), 0 8px 18px -4px rgba(0, 85, 255, 0.5); animation: todayPulse 2.4s ease-in-out infinite; }
@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand), 0 8px 18px -4px rgba(0, 85, 255, 0.5); }
  50%      { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand), 0 0 0 9px rgba(0, 85, 255, 0.18), 0 8px 18px -4px rgba(0, 85, 255, 0.6); }
}
.d.today.vac::before { background: var(--ink); }
.d.today.pub::after { display: none; }

/* Calendar legend */
.cal-legend { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.cal-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 4px 10px 4px 4px; background: var(--bg-2); border-radius: 999px; }
.cal-legend .sw { width: 18px; height: 18px; border-radius: 999px; flex-shrink: 0; }
.cal-legend .sw-sommer  { background: linear-gradient(180deg, #f97316, #ea580c); }
.cal-legend .sw-herbst  { background: linear-gradient(180deg, #d97706, #b45309); }
.cal-legend .sw-weihn   { background: linear-gradient(180deg, #ef4444, #dc2626); }
.cal-legend .sw-winter  { background: linear-gradient(180deg, #0ea5e9, #0284c7); }
.cal-legend .sw-oster   { background: linear-gradient(180deg, #22c55e, #16a34a); }
.cal-legend .sw-pfingst { background: linear-gradient(180deg, #db2777, #be185d); }
.cal-legend .sw-public  { background: var(--c-feier-bg); border: 2px solid var(--c-feier); position: relative; }
.cal-legend .sw-public::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-feier); }
.cal-legend .sw-today { background: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.cal-meta { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* SPOTLIGHT */
.spotlight { margin-top: 32px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; }
.spot-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px; }
.spot-main { background: var(--c-sommer-bg); border-color: var(--c-sommer-br); }
.spot-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--c-sommer); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.spot-eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--c-sommer); border-radius: 2px; }
.spot-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; color: var(--ink); }
.spot-title .accent { color: var(--c-sommer); }
.spot-dates { font-size: 18px; font-weight: 600; color: var(--ink-2); margin-bottom: 28px; }
.spot-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-sommer-br); padding-top: 22px; }
.spot-stat { border-right: 1px solid var(--c-sommer-br); padding-right: 16px; }
.spot-stat:last-child { border-right: 0; padding-left: 16px; padding-right: 0; }
.spot-stat:not(:first-child):not(:last-child) { padding-left: 16px; }
.spot-stat-val { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--ink); }
.spot-stat-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.spot-side h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; margin-bottom: 16px; color: var(--ink); }
.spot-side h3 em { font-style: italic; color: var(--c-pfingst); }
.next-list { display: flex; flex-direction: column; }
.next-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.next-row:last-child { border-bottom: 0; }
.next-mark { width: 10px; height: 10px; border-radius: 3px; }
.next-mark.c-pfingst { background: var(--c-pfingst); }
.next-mark.c-sommer  { background: var(--c-sommer); }
.next-mark.c-herbst  { background: var(--c-herbst); }
.next-mark.c-weihn   { background: var(--c-weihn); }
.next-mark.c-winter  { background: var(--c-winter); }
.next-mark.c-oster   { background: var(--c-oster); }
.next-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.next-meta { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.next-when { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; font-weight: 500; }
.next-when b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }

/* COMPARE */
.compare { margin-top: 80px; }
.compare-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; gap: 24px; flex-wrap: wrap; }
.compare-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); }
.compare-title .accent { color: var(--brand); }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.compare-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.compare-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.compare-state { display: flex; align-items: center; gap: 10px; }
.compare-flag { width: 28px; height: 28px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--border); flex-shrink: 0; overflow: hidden; }
.compare-flag.f-by { background: linear-gradient(180deg, #fff 50%, #0066b3 50%); }
.compare-flag.f-be { background: linear-gradient(180deg, #fff 33%, #DA291C 33%, #DA291C 66%, #fff 66%); }
.compare-flag.f-nw { background: linear-gradient(180deg, #009754 33%, #fff 33%, #fff 66%, #DA291C 66%); }
.compare-flag.f-bw { background: linear-gradient(180deg, #000 50%, #ffce00 50%); color: #fff; }
.compare-flag.f-he { background: linear-gradient(180deg, #fff 50%, #DA291C 50%); }
.compare-flag.f-rp { background: linear-gradient(180deg, #000 33%, #DA291C 33%, #DA291C 66%, #ffce00 66%); }
.compare-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; color: var(--ink); }
.compare-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mini-year { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-bottom: 14px; }
.mini-month { height: 26px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; position: relative; overflow: hidden; }
.mini-month::before { content: attr(data-m); position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; z-index: 2; }
.mini-bar { position: absolute; top: 0; bottom: 0; z-index: 1; }
.mini-bar.c-sommer  { background: var(--c-sommer-bg); }
.mini-bar.c-herbst  { background: var(--c-herbst-bg); }
.mini-bar.c-weihn   { background: var(--c-weihn-bg);  }
.mini-bar.c-winter  { background: var(--c-winter-bg); }
.mini-bar.c-oster   { background: var(--c-oster-bg);  }
.mini-bar.c-pfingst { background: var(--c-pfingst-bg); }
.compare-list { display: flex; flex-direction: column; }
.compare-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.compare-item:last-child { border-bottom: 0; }
.compare-item i { width: 8px; height: 8px; border-radius: 2px; }
.compare-item span:nth-child(2) { color: var(--ink); font-weight: 500; }
.compare-item time { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-weight: 500; }

/* NEIGHBORS */
.neighbors { padding: 80px 0 0; position: relative; }
.neighbors-context { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 24px; }
.neighbors-context::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.neighbors-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; gap: 32px; flex-wrap: wrap; }
.neighbor-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.neighbor-pill { display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); }
.tl-flag { display: block; width: 32px; height: 22px; border-radius: 3px; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-2); }
.tl-flag.is-square { width: 22px; }
.tl-flag svg { display: block; width: 100%; height: 100%; }
.neighbor-pill .tl-flag { width: 22px; height: 16px; }
.neighbor-pill .tl-flag.is-square { width: 16px; }

.neighbor-timeline { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.tl-months { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 4px; }
.tl-months-grid { display: grid; grid-template-columns: repeat(12, 1fr); }
.tl-month { text-align: center; padding: 4px 0 12px; border-left: 1px solid var(--border); }
.tl-month:first-child { border-left: 0; }
.tl-month-name { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 3px; }
.tl-month-num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-2); display: block; line-height: 1; }
.tl-month.is-new-year .tl-month-num { color: var(--brand); }

.tl-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); position: relative; }
.tl-row.is-primary { background: var(--brand-soft); border: 1px solid var(--brand-border); border-radius: 12px; padding: 14px 14px; margin: 4px -14px; }
.tl-row.is-primary + .tl-row { border-top: 0; margin-top: 6px; }
.tl-label { display: flex; align-items: center; gap: 12px; }
.tl-name strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.tl-name strong .accent { color: var(--brand); }
.tl-name span { font-size: 11px; color: var(--ink-3); font-weight: 500; display: block; margin-top: 3px; }
.tl-track { position: relative; height: 30px; background: var(--bg-2); border-radius: 7px; border: 1px solid var(--border); overflow: hidden; }
.is-primary .tl-track { background: rgba(255, 255, 255, 0.55); border-color: var(--brand-border); height: 36px; }
html.theme-dark .is-primary .tl-track { background: rgba(255, 255, 255, 0.04); }
.tl-track::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.3333% - 1px), var(--border) calc(8.3333% - 1px), var(--border) 8.3333%); pointer-events: none; }
.tl-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; display: flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; cursor: default; transition: 0.15s; z-index: 2; color: #fff; border: 0; }
.is-primary .tl-bar { top: 5px; bottom: 5px; }
.tl-bar:hover { transform: translateY(-1px); z-index: 4; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.tl-bar.is-tiny { padding: 0; }
.tl-bar.is-tiny .tl-bar-text { display: none; }
.tl-bar.c-sommer  { background: var(--c-sommer); }
.tl-bar.c-herbst  { background: var(--c-herbst); }
.tl-bar.c-weihn   { background: var(--c-weihn); }
.tl-bar.c-winter  { background: var(--c-winter); }
.tl-bar.c-oster   { background: var(--c-oster); }
.tl-bar.c-pfingst { background: var(--c-pfingst); }
.tl-guide { position: absolute; top: 0; bottom: 0; background: rgba(0, 85, 255, 0.04); border-left: 1px dashed rgba(0, 85, 255, 0.22); border-right: 1px dashed rgba(0, 85, 255, 0.22); pointer-events: none; z-index: 1; }

.tl-legend { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 16px; }
.tl-legend-items { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tl-legend-items span { display: inline-flex; align-items: center; gap: 7px; }
.tl-legend-items i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.tl-legend-meta { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; font-weight: 500; flex-wrap: wrap; }
.tl-legend-meta b { color: var(--ink); font-weight: 600; }
.dashed-key { width: 14px; height: 0; border-top: 1px dashed rgba(0, 85, 255, 0.4); display: inline-block; }

/* Neighbor cards */
.neighbor-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nb-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: 0.15s; }
.nb-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.nb-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.nb-card-head .tl-flag { width: 40px; height: 28px; }
.nb-card-head .tl-flag.is-square { width: 28px; }
.nb-card-id { flex: 1; min-width: 0; }
.nb-card-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; line-height: 1; margin-bottom: 5px; color: var(--ink); }
.nb-card-meta { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.nb-match { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--border); }
.nb-match b { font-weight: 800; font-size: 12px; margin-right: 4px; }
.nb-match.is-high { background: var(--c-oster-bg); border-color: var(--c-oster-br); color: var(--c-oster); }
.nb-match.is-mid  { background: var(--c-sommer-bg); border-color: var(--c-sommer-br); color: var(--c-sommer); }
.nb-match.is-low  { background: var(--c-weihn-bg); border-color: var(--c-weihn-br); color: var(--c-weihn); }
.nb-list { display: flex; flex-direction: column; margin-bottom: 14px; }
.nb-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.nb-row:last-child { border-bottom: 0; }
.nb-row > i { width: 9px; height: 9px; border-radius: 2px; }
.nb-name-cell { display: flex; flex-direction: column; }
.nb-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nb-orig { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.nb-row time { font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nb-insight { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; display: flex; gap: 10px; align-items: flex-start; }
.nb-insight svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.nb-insight b { color: var(--ink); font-weight: 700; }
.nb-insight .accent { font-style: normal; font-weight: 700; color: var(--ink); }

/* Booking widget slot */
.booking-widget { margin-top: 24px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; color: var(--ink-2); }
.booking-widget h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.booking-widget .affiliate-note { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-3); }

/* AD SLOTS */
.ads-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 8px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 24px 0; }
.ads-slot.ads-slot--banner { min-height: 90px; }
.ads-slot.ads-slot--rect { min-height: 250px; max-width: 300px; }
.ads-slot.ads-slot--native { min-height: 120px; }

/* FOOTER */
.footer { margin-top: 96px; background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; padding-bottom: 48px; border-bottom: 1px solid var(--border); gap: 32px; flex-wrap: wrap; }
.footer-cta h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.1; max-width: 18ch; color: var(--ink); }
.footer-cta h3 .accent { color: var(--brand); font-style: normal; }
.footer-cta-btn { padding: 14px 24px; background: var(--brand); color: #fff; border-radius: 11px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; transition: 0.15s; }
.footer-cta-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.footer-grid { margin-top: 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: 0.15s; }
.footer-col a:hover { color: var(--brand); }
.footer-tag { font-size: 14px; color: var(--ink-2); margin-top: 14px; margin-bottom: 12px; max-width: 32ch; line-height: 1.55; font-weight: 500; }
.footer-meta { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); font-weight: 500; flex-wrap: wrap; gap: 12px; }
.footer-bottom span { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* COOKIE CONSENT */
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 24px 56px -16px rgba(10,12,26,0.4); padding: 22px 24px; z-index: 9999; display: none; flex-direction: column; gap: 14px; }
.cc-banner.is-open { display: flex; }
.cc-banner h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cc-banner p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.cc-banner p a { color: var(--brand); text-decoration: underline; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-btn { padding: 10px 18px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-2); color: var(--ink); transition: 0.15s; }
.cc-btn:hover { background: var(--bg-2); }
.cc-btn.is-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.cc-btn.is-primary:hover { background: var(--brand-hover); }
.cc-categories { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--bg-2); border-radius: 10px; }
.cc-category { display: flex; gap: 10px; align-items: flex-start; }
.cc-category label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; }
.cc-category input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.cc-category-name { font-weight: 700; color: var(--ink); }
.cc-category-desc { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }

/* LEGAL PAGES */
.legal { padding: 64px 0 96px; }
.legal article { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.legal h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em; color: var(--ink); margin-bottom: 16px; }
.legal h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.015em; color: var(--ink); margin: 32px 0 8px; }
.legal h3 { font-size: 17px; color: var(--ink); margin: 24px 0 6px; font-weight: 700; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 8px 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal .meta { font-size: 13px; color: var(--ink-3); margin-bottom: 32px; }
.legal address { font-style: normal; }

/* ANIMATIONS */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise 0.6s ease backwards; }
.r-1 { animation-delay: 0.05s; } .r-2 { animation-delay: 0.12s; } .r-3 { animation-delay: 0.20s; }
.r-4 { animation-delay: 0.28s; } .r-5 { animation-delay: 0.36s; } .r-6 { animation-delay: 0.44s; }
.neighbors-anim { animation: rise 0.7s ease backwards; animation-delay: 0.1s; }
.nb-card { animation: rise 0.6s ease backwards; }
.nb-card:nth-child(1) { animation-delay: 0.3s; }
.nb-card:nth-child(2) { animation-delay: 0.4s; }
.nb-card:nth-child(3) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .months { grid-template-columns: repeat(3, 1fr); }
  .bl-grid { grid-template-columns: repeat(4, 1fr); }
  .heatmap-grid { grid-template-columns: repeat(8, 1fr); }
  .spotlight, .compare-grid, .neighbor-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .tl-months, .tl-row { grid-template-columns: 150px 1fr; gap: 14px; }
}
@media (max-width: 700px) {
  .months { grid-template-columns: repeat(2, 1fr); }
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .neighbor-timeline { padding: 20px 18px; overflow-x: auto; }
  .neighbor-timeline > .tl-months,
  .neighbor-timeline > .tl-row { min-width: 720px; }
  .cal-frame { padding: 22px 20px; }
  .heatmap { flex-direction: column; align-items: stretch; gap: 16px; }
}

/* ───────────────────────────────────────────────
   SEO STATIC CONTENT — crawlable, clean UX
   ─────────────────────────────────────────────── */
.seo-content {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.seo-block {
  margin-bottom: 56px;
}
.seo-block:last-child { margin-bottom: 0; }
.seo-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.seo-intro {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.seo-source {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
}
.seo-source a { color: var(--brand); }

/* SEO Table */
.seo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.seo-table thead th {
  background: var(--bg-2);
  padding: 12px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
}
.seo-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.seo-table tbody tr:last-child { border-bottom: 0; }
.seo-table tbody tr:hover { background: var(--bg-2); }
.seo-table td {
  padding: 12px 18px;
  color: var(--ink);
}
.seo-table td:first-child a {
  color: var(--brand);
  font-weight: 600;
}
.seo-table td:nth-child(2),
.seo-table td:nth-child(3) {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
}
.seo-table td:last-child {
  color: var(--ink-3);
  font-size: 13px;
}

/* FAQ Accordion */
.seo-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 8px;
  overflow: hidden;
}
.seo-faq-q {
  list-style: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.seo-faq-q::-webkit-details-marker { display: none; }
.seo-faq-q::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] .seo-faq-q::before {
  content: "−";
}
.seo-faq-a {
  padding: 0 20px 18px 52px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
}
.seo-faq-a ul {
  margin: 8px 0 8px 16px;
}
.seo-faq-a li {
  margin-bottom: 4px;
}
.seo-faq-a a {
  color: var(--brand);
  font-weight: 600;
}

/* BL link list */
.seo-bl-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.seo-bl-list a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  display: block;
  transition: border-color 0.15s, background 0.15s;
}
.seo-bl-list a:hover {
  border-color: var(--brand-border);
  background: var(--brand-soft);
}

@media (max-width: 1100px) {
  .seo-bl-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .seo-bl-list { grid-template-columns: repeat(2, 1fr); }
  .seo-faq-a { padding-left: 20px; }
}

/* ───────────────────────────────────────────────
   E-E-A-T TRUST BAR in footer
   ─────────────────────────────────────────────── */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.trust-item svg {
  color: var(--brand);
  flex-shrink: 0;
  opacity: 0.8;
}
@media (max-width: 700px) {
  .footer-trust { gap: 10px 20px; }
  .trust-item { font-size: 12px; }
}
