/* calendarios.co – Grundstil (Etappe 2). Palette und Schriften: graficos/IMAGENES.md. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  --c-night: #14213D;
  --c-fest: #C8102E;
  --c-sun: #FCD116;
  --c-blue: #003893;
  --c-lw: #FFE9A3;
  --c-bg: #F6F5F1;
  --c-surface: #FFFFFF;
  --c-text: #1d2433;
  --c-muted: #5B6472;
  --c-line: #e3e1da;
  --c-link: #003893;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", var(--font);
  --gutter: 16px;
  --sidebar: 336px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 1rem/1.6 var(--font); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--c-link); text-underline-offset: 2px; }
a:hover { color: var(--c-fest); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-night); line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-top: .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); }
h3 { font-size: 1.12rem; }
.h4 { font-size: 1rem; margin-top: 0; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; border-radius: 4px; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-night); color: #fff; padding: 8px 12px; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; color: var(--c-muted); }

/* ---------- Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.layout { display: grid; gap: 32px; padding-bottom: 48px; }
.main { min-width: 0; }
@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); }
}

/* ---------- Kopf (Mockup: weiß, Linie #E4E2DA) */
.site-header { background: #fff; border-bottom: 1px solid #E4E2DA; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-night); text-decoration: none; }
.logo:hover { color: var(--c-night); }
.logo__text { font: 800 21px/1 var(--font-head); }
.logo__text span { color: var(--c-fest); }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 6px 0; color: var(--c-blue); text-decoration: none; white-space: nowrap; font-weight: 500; font-size: 14px; }
.nav a:hover { color: #00266B; text-decoration: underline; }
.nav .is-highlight a { background: var(--c-sun); color: var(--c-night); font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.menu-btn { width: 44px; height: 44px; border: 1px solid #E4E2DA; border-radius: 10px; background: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 759px) {
  .logo__text { font-size: 19px; }
  .logo svg { width: 26px; height: 26px; }
  /* ohne JS: Navigation scrollt waagerecht; mit JS: Menü-Knopf */
  .nav { flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)); }
  .nav ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .js .menu-btn { display: flex; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .js .nav.is-open ul { flex-direction: column; gap: 0; overflow: visible; }
  .js .nav.is-open a { padding: 12px 0; font-size: 16px; border-top: 1px solid #ECEAE3; }
}

/* ---------- Werbeplätze (§6): feste Höhen, kein Layout-Shift; nie neben dem Raster */
.ad { display: flex; justify-content: center; align-items: center; margin: 0 auto; width: 100%; position: relative; }
.ad__label { position: absolute; top: -16px; left: 0; font-size: 11px; color: var(--c-muted); }
.ad--top { max-width: 728px; min-height: 90px; }
.ad--incontent-1, .ad--incontent-2 { max-width: 728px; min-height: 90px; }
.ad--sidebar-1, .ad--sidebar-2 { width: 336px; max-width: 100%; min-height: 280px; }
.ad--preview { background: #ECEAE3; border: 1px dashed #B8B4A7; border-radius: 4px; color: var(--c-muted); font-size: 12px; text-align: center; }
.ad--preview span { display: flex; flex-direction: column; }
.ad-row { padding-top: 20px; }
@media (max-width: 759px) {
  .ad--top { max-width: 320px; min-height: 100px; }
  .ad--incontent-1, .ad--incontent-2 { max-width: 300px; min-height: 250px; }
}
@media (max-width: 959px) { .ad--desktop-only { display: none; } }

/* ---------- Breadcrumbs, Kennzahlen, Jahreswechsler */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 16px 0 0; padding: 0; font-size: .875rem; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: var(--c-muted); }
.keynumbers { color: var(--c-muted); font-weight: 500; margin: 0 0 12px; }
.lead { font-size: 1.08rem; }
.year-switch ul, .month-links ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 16px; padding: 0; }
.year-switch a, .year-switch span, .month-links a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; font-weight: 600; color: var(--c-night); }
.year-switch span[aria-current] { background: var(--c-night); color: #fff; border-color: var(--c-night); }
.reviewed { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--c-muted); }

/* ---------- Fließtext */
.prose { max-width: 820px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1em 0; padding: 8px 16px; border-left: 4px solid var(--c-sun); background: var(--c-surface); }
.byline { color: var(--c-muted); font-size: .9rem; }
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius-sm); background: var(--c-fest); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: #a50d26; color: #fff; }
.callout { background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-blue); border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; }
.callout--pago { border-left-color: var(--c-sun); }
.callout p:last-child { margin-bottom: 0; }
.links-row { margin-top: 32px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.datos li { margin-bottom: .4em; }

/* ---------- Tabellen */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table-wrap thead th { background: #faf9f6; font-weight: 600; color: var(--c-night); white-space: nowrap; }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tr.past { color: var(--c-muted); }
.table-wrap tr.finde th, .table-wrap tr.finde td { background: #fbfaf7; }
.table-wrap tr.is-now th, .table-wrap tr.is-now td { background: var(--c-lw); }
.table-wrap tr.total th, .table-wrap tr.total td { background: #faf9f6; }
.note { color: var(--c-fest); font-weight: 700; cursor: help; }

/* ---------- Kalender (Mockup: Zellen 26 px, 12,5 px Schrift, Wochen #8A6D00, Sonntag #9B1C1C) */
.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cal-month { background: var(--c-surface); border: 1px solid #E4E2DA; border-radius: var(--radius); padding: 10px; }
.cal-month__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cal-month__title { margin: 0; font: 600 15px/1.3 var(--font); }
.cal-month__title a { color: var(--c-night); text-decoration: none; }
.cal-month__title a:hover { color: var(--c-fest); text-decoration: underline; }
.cal-month__count { font-size: 12px; color: var(--c-muted); }
.cal-table { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cal-table th { font-weight: 400; color: var(--c-muted); padding: 2px 0; font-size: 11px; }
.cal-table abbr { text-decoration: none; }
.cal-table .wk { color: #8A6D00; font-size: 11px; }
.cal-table thead .wk { color: var(--c-muted); }
.cal-table td { padding: 0; text-align: center; }
.cal-table td button { position: relative; width: 100%; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--c-night); font: inherit; cursor: pointer; padding: 0; }
.cal-table td button:hover { background: #eef1f7; }
.cal-table td:last-child button { color: #9B1C1C; }
.cal-table .lw button { background: var(--c-lw); color: var(--c-night); }
.cal-table .fest button { background: var(--c-fest); color: #fff; font-weight: 700; }
.cal-table .pay:not(.fest) button { background: #EEF3FB; box-shadow: inset 0 -3px 0 var(--c-blue); }
.cal-table .today button { box-shadow: inset 0 0 0 2px var(--c-blue); font-weight: 700; }
.cal-table .is-sel button { outline: 2px solid var(--c-night); outline-offset: 1px; }
.cal-table .moon { position: absolute; top: -1px; right: 1px; font-size: 8px; line-height: 1; color: var(--c-muted); }
/* Schalter (Klassen auf .inicio, Zustand in der URL und in localStorage) */
.no-semanas .cal-table .wk { display: none; }
.no-puentes .cal-table .lw:not(.fest) button { background: transparent; }
.no-pagos .cal-table .pay:not(.fest) button { background: transparent; box-shadow: none; }
.no-pagos .cal-table .pay.today button { box-shadow: inset 0 0 0 2px var(--c-blue); }
.no-luna .moon, .no-luna .lg-luna, .no-pagos .lg-pagos, .no-puentes .lg-puentes { display: none; }
.cal-month--large { padding: 16px; }
.cal-month--large .cal-table { font-size: 1rem; }
.cal-month--large .cal-table td button { aspect-ratio: auto; height: clamp(36px, 6vw, 52px); }
.cal-month--large .cal-month__title { font-size: 1.25rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 12px 0 24px; font-size: .85rem; color: var(--c-muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.sw--fest { background: var(--c-fest); }
.sw--lw { background: var(--c-lw); }
.sw--today { box-shadow: inset 0 0 0 2px var(--c-blue); }
.sw--wk { width: auto; font-size: .65rem; color: #8A6D00; }
.sw--pay { background: #EEF3FB; box-shadow: inset 0 -3px 0 var(--c-blue); }

/* ---------- Startseite (Mockup Main/Mobile) */
.inicio { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; padding-bottom: 64px; }
.inicio h2 { font: 800 24px/1.2 var(--font-head); margin: 0 0 12px; }
.home__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.home__head h1 { margin: 0; font: 800 34px/1.15 var(--font-head); }
.home__keyline { margin: 0; font-size: 14px; color: #3D4657; }
.home__cols { display: flex; gap: 24px; align-items: flex-start; }
.home__main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.inicio > *, .home__main > *, .home__side > * { min-width: 0; max-width: 100%; } /* breite Tabellen scrollen in .table-wrap, statt die Seite aufzudrücken */
.home__side { flex: 0 0 336px; width: 336px; display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.home__sticky { position: sticky; top: 16px; }
.kicker { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }

.dosclics { background: #EEF3FB; border: 1px solid #C9D6EE; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.dosclics__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.dosclics__head h2 { margin: 0; font-size: 26px; }
.dosclics__head span, .dosclics__hint { font-size: 14px; color: #3D4657; }
.dosclics__grid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.dosclics__label { font-size: 14px; font-weight: 600; color: #3D4657; }
.dosclics__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #C9D6EE; padding-top: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; min-width: 72px; text-align: center; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; border: 1px solid #C9C6BB; background: #fff; color: var(--c-night); }
.pill input:checked + span { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.toggles label { display: flex; gap: 6px; align-items: center; min-height: 24px; }
.btn--blue { background: var(--c-blue); border: 0; font: inherit; font-weight: 700; padding: 13px 24px; border-radius: 10px; cursor: pointer; font-size: 16px; color: #fff; }
.btn--blue:hover { background: #00266B; color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; font-size: 15px; padding: 10px 14px; font-weight: 600; }

.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 12px; }
.cal-head h2 { margin: 0; font-size: 28px; }
.cal-head .cal-legend { margin: 0; font-size: 13px; color: #3D4657; gap: 6px 14px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-nav[hidden] { display: none; }
.month-nav__btn { width: 44px; height: 44px; border: 1px solid #E4E2DA; border-radius: 10px; background: #fff; cursor: pointer; font-size: 18px; }
.month-nav__title { font-weight: 700; font-size: 18px; }

.inicio .table-wrap { border-radius: 12px; border-color: #E4E2DA; }
.inicio .festivos-table { min-width: 560px; font-size: 14px; }
.inicio .festivos-table thead th { background: #F0EEE7; padding: 10px 14px; }
.inicio .festivos-table th[scope=row] { white-space: nowrap; }
.inicio .festivos-table td, .inicio .festivos-table th { padding: 9px 14px; }

.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dl-card { background: #fff; border: 1px solid #E4E2DA; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--c-night); }
.dl-card .icon { color: var(--c-blue); width: 28px; height: 28px; }
.dl-card__title { font-weight: 700; font-size: 17px; }
.dl-card__text { font-size: 14px; color: #3D4657; }
.dl-card__link { font-weight: 600; color: var(--c-blue); }
.dl-card:hover .dl-card__link { text-decoration: underline; }

.puente-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.puente-card { background: #fff; border: 1px solid #E4E2DA; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.puente-card__range { font-size: 13px; color: var(--c-muted); }
.puente-card__name { font-weight: 700; }
.puente-card__days { font-size: 14px; color: #8A1C1C; font-weight: 600; }
.only-mobile { display: none; }

.latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.latest__item { background: #fff; border: 1px solid #E4E2DA; border-radius: 12px; padding: 14px; text-decoration: none; color: var(--c-night); display: flex; flex-direction: column; gap: 6px; }
.latest__cat { font-size: 12px; font-weight: 600; color: var(--c-fest); text-transform: uppercase; letter-spacing: .06em; }
.latest__title { font-weight: 700; line-height: 1.3; }
.latest__date { font-size: 13px; color: var(--c-muted); }

.faq details { border-bottom: 1px solid #E4E2DA; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.faq details p { margin: 0 0 14px; }

/* Seitenleiste */
.today { background: var(--c-night); color: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.today__top { display: flex; align-items: flex-end; gap: 12px; }
.today__day { font: 800 52px/.9 var(--font-head); }
.today__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #C7CDDA; }
.today__weekday { font-size: 18px; font-weight: 700; text-transform: capitalize; line-height: 1.2; }
.today__month, .today__sub { font-size: 13px; color: #C7CDDA; }
.today__meta { margin: 0; font-size: 13px; color: #E3E7EF; }
.today__meta strong { color: var(--c-sun); }
.today__sun { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.today__sun > div, .today__moon { background: #1F2E4F; border-radius: 8px; padding: 8px; }
.today__sun span { display: block; font-size: 11px; color: #C7CDDA; }
.today__sun strong { font-weight: 800; font-size: 16px; }
.today__sun .today__len { font-size: 13px; font-weight: 700; line-height: 1.6; }
.today__moon { display: flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.4; }
.today__moon strong { font-size: 13px; }
.today__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: #E3E7EF; }
.today__controls label { display: flex; align-items: center; gap: 6px; }
.today__controls select { background: #1F2E4F; color: #fff; border: 1px solid #44527A; border-radius: 8px; padding: 4px 8px; font: inherit; }
.no-luna .today__moon { display: none; }

.next, .daypanel, .card-list { background: #fff; border: 1px solid #E4E2DA; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.next__top { display: flex; gap: 12px; align-items: center; }
.next__badge { background: var(--c-fest); color: #fff; border-radius: 10px; width: 58px; padding: 6px 0; text-align: center; flex: none; display: flex; flex-direction: column; }
.next__badge span { font: 800 26px/1 var(--font-head); }
.next__badge small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.next__name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.next__in { font-size: 13px; color: #8A1C1C; font-weight: 600; }
.next__note { margin: 0; font-size: 13px; color: #3D4657; }
.daypanel { padding: 20px; gap: 8px; }
.daypanel__date { font: 800 21px/1.2 var(--font-head); }
.daypanel__name { font-size: 17px; font-weight: 600; }
.daypanel__note { font-size: 14px; color: #3D4657; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #EEF1F6; color: #3D4657; }
.tag--fest { background: #FBE3E6; color: #8A1C1C; }
.card-list { padding: 16px 18px; gap: 4px; }
.card-list h2 { font-size: 16px; margin: 0 0 6px; font-family: var(--font); font-weight: 700; }
.card-list ul { list-style: none; margin: 0; padding: 0; }
.card-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #ECEAE3; font-size: 14px; }
.card-list li strong { display: block; font-weight: 600; }
.card-list li span { font-size: 12px; color: var(--c-muted); }
.card-list li em { font-style: normal; font-size: 12px; color: #8A1C1C; font-weight: 600; white-space: nowrap; }
.card-list__more { font-weight: 600; font-size: 14px; padding-top: 6px; }
.recargo { background: #FFF6D6; border-radius: 16px; padding: 16px 18px; font-size: 14px; }
.recargo p { margin: 0; }

/* Unter 960 px: eine Spalte in der Reihenfolge des Mobil-Mockups */
@media (max-width: 959px) {
  .home__cols, .home__main, .home__side { display: contents; }
  .inicio > *, .home__main > *, .home__side > * { order: 50; }
  .o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; } .o-5 { order: 5; } .o-6 { order: 6; }
  .o-7 { order: 7; } .o-8 { order: 8; } .o-9 { order: 9; } .o-10 { order: 10; } .o-11 { order: 11; } .o-12 { order: 12; }
  .o-13 { order: 13; } .o-14 { order: 14; } .o-15 { order: 15; } .o-16 { order: 16; } .o-17 { order: 17; } .o-18 { order: 18; }
  .inicio { gap: 24px; }
  .home__head { flex-direction: column; gap: 10px; }
  .home__head h1 { font-size: 30px; }
  .inicio h2 { font-size: 20px; }
  .home__sticky { display: none; }
  .next { background: var(--c-night); color: #fff; border: 0; padding: 18px; }
  .next__badge { background: none; width: auto; min-width: 64px; }
  .next__badge span { font-size: 44px; }
  .next__badge small { font-size: 14px; text-transform: none; }
  .next .kicker { color: #C7CDDA; }
  .next__name { font-size: 17px; font-weight: 700; }
  .next__in { color: var(--c-sun); font-size: 14px; font-weight: 400; }
  .next__note { color: #E3E7EF; }
  .today { border-radius: 18px; padding: 18px; gap: 12px; }
  .today__day { font-size: 64px; }
  .dosclics { background: none; border: 0; padding: 0; }
  .dosclics__head, .dosclics__more { display: none; }
  .dosclics__grid { display: block; }
  .dosclics__grid > .dosclics__label { display: none; }
  #puentes { background: #FFF6D6; border-radius: 16px; padding: 16px; }
  #puentes h2 { font-size: 18px; margin-bottom: 4px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  p.only-mobile { display: block; margin: 0 0 8px; font-size: 14px; }
  .dl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dl-card { padding: 14px 8px; text-align: center; align-items: center; }
  .dl-card__text, .dl-card__link, .dl-card .icon { display: none; }
}
/* Unter 600 px: ein Monat mit Blättern (nur mit JS; ohne JS alle Monate untereinander) */
@media (max-width: 599px) {
  .cal-head .cal-legend { display: none; }
  .js .cal-year.is-month-mode { display: block; }
  .js .cal-year.is-month-mode .cal-month { display: none; border-radius: 16px; padding: 14px; }
  .js .cal-year.is-month-mode .cal-month.is-active { display: block; }
  .js .cal-year.is-month-mode .cal-month__head { display: none; }
  .js .cal-year.is-month-mode .cal-table { border-spacing: 3px; font-size: 15px; }
  .js .cal-year.is-month-mode .cal-table td button { height: 40px; }
}

/* ---------- Seitenleiste, Karten */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card p { margin: 0 0 6px; }
.card__kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; }
.card__title { font: 700 1.15rem/1.3 var(--font-head); color: var(--c-night); }
.card--next .icon { color: var(--c-fest); width: 28px; height: 28px; float: right; }
.card--tools ul { list-style: none; margin: 0; padding: 0; }
.card--tools a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--c-night); font-weight: 500; border-bottom: 1px solid var(--c-line); }
.card--tools li:last-child a { border-bottom: 0; }
.card--tools .icon { color: var(--c-blue); }
.icon { display: inline-block; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.post-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.post-card__link { display: block; text-decoration: none; color: var(--c-night); }
.post-card__img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card__title { display: block; padding: 12px 14px 0; font: 700 1.02rem/1.35 var(--font-head); }
.post-card__meta, .post-card__excerpt { padding: 0 14px; margin: 6px 0; font-size: .875rem; color: var(--c-muted); }
.post-card__excerpt { padding-bottom: 12px; }
.related, .see-also { margin-top: 40px; }
.see-also { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 20px; max-width: 820px; }
.see-also ul { margin: 0; padding-left: 1.2em; }

/* ---------- Abbildungen, Diagramme */
.figure { margin: 1.4em 0; }
.figure img { display: block; border-radius: var(--radius-sm); }
.figure figcaption { font-size: .85rem; color: var(--c-muted); margin-top: 6px; }
.chart { display: block; width: 100%; height: auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: var(--c-night); }
.chart__val { font: 700 15px var(--font); fill: currentColor; }
.chart__lbl { font: 500 13px var(--font); fill: var(--c-muted); }
.chart__zero { font: 500 13px var(--font); fill: #b3b8c2; }

/* ---------- Fuß */
.site-footer { background: var(--c-night); color: #cfd5e2; padding: 40px 0 24px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--c-sun); }
.site-footer__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__title { font: 700 1rem var(--font-head); color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer__note p { margin: 0 0 8px; }

/* Testdatum sichtbar machen (nur Admins) */
.is-test-date .site-header { box-shadow: inset 0 -4px 0 var(--c-sun); }

@media print {
  .site-header, .site-footer, .sidebar, .breadcrumbs, .year-switch, .pager { display: none; }
  body { background: #fff; }
}

/* ---------- Rechner (Etappe 4) */
.calc { background: #EEF3FB; border: 1px solid #C9D6EE; border-radius: 16px; padding: 20px 22px; margin: 1.2em 0 1.6em; display: flex; flex-direction: column; gap: 14px; }
.calc__field { display: flex; flex-direction: column; gap: 4px; border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__field > span, .calc__field legend { font-size: 14px; font-weight: 600; color: #3D4657; padding: 0; }
.calc__field small { font-size: 12.5px; color: var(--c-muted); }
.calc input[type=text], .calc input[type=number], .calc input[type=date], .calc select { font: inherit; padding: 10px 12px; border: 1px solid #C9C6BB; border-radius: 10px; background: #fff; color: var(--c-night); width: 100%; min-height: 44px; }
.calc__money { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.calc__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.calc__pair [hidden] { display: none; }
.calc__radios { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.calc__radios label, .calc__check { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.calc__actions .btn--blue { padding: 11px 22px; }
.calc__result { display: block; background: #fff; border: 1px solid #E4E2DA; border-radius: 12px; padding: 14px 16px; }
.calc__rows { margin: 0; }
.calc__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #ECEAE3; }
.calc__rows dt { color: #3D4657; }
.calc__rows dd { margin: 0; font-weight: 600; text-align: right; }
.calc__rows .is-main dd { font: 800 22px/1.2 var(--font-head); color: var(--c-night); }
.calc__formula { font-size: 14px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.calc__note { font-size: 14px; margin: 8px 0 0; padding: 8px 10px; background: #FFF6D6; border-radius: 8px; }
.calc__disclaimer { font-size: 12.5px; color: var(--c-muted); margin: 10px 0 0; }

/* ---------- Downloads */
.dl-year { margin-top: 32px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.dl-box { background: #fff; border: 1px solid #E4E2DA; border-radius: 12px; padding: 16px; }
.dl-box h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.dl-box .icon { color: var(--c-blue); }
.dl-box ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; }
.dl-box li { margin-bottom: 6px; }
.dl-months summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 8px; }
.dl-months p { font-size: 14px; margin: 6px 0 0; }
.dl-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; }
.dl-inline .icon { color: var(--c-blue); width: 20px; height: 20px; }

/* ---------- Generator /descargas/{año}/ (§5.1) */
.dl-page .main { padding-bottom: 48px; }
.dl-content > p, .dl-content > h2, .dl-content > h3, .dl-content > ul, .dl-content > ol { max-width: 820px; }
.dl-text { margin-top: 8px; }
.gen { display: grid; gap: 16px; margin: 8px 0 28px; grid-template-areas: "err" "warn" "prev" "opts" "bar"; }
.gen__error { grid-area: err; background: #FBE3E6; color: #8A1C1C; border-radius: 10px; padding: 10px 14px; }
.gen__warn { grid-area: warn; background: #FFF6D6; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.gen__warn[hidden] { display: none; }
.gen__preview { grid-area: prev; margin: 0; min-width: 0; }
.gen__tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.gen__tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid #C9C6BB; background: #fff; text-decoration: none; color: var(--c-night); font-size: 14px; font-weight: 600; }
.gen__tabs a[aria-current] { background: var(--c-night); border-color: var(--c-night); color: #fff; }
.gen__paper { background: #fff; border: 1px solid #E4E2DA; border-radius: 6px; box-shadow: 0 2px 12px rgba(20, 33, 61, .10); overflow: hidden; width: 100%; }
.gen__paper img { display: block; width: 100%; height: 100%; }
.gen__preview figcaption { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.gen__opts { grid-area: opts; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gen__group { background: #fff; border: 1px solid #E4E2DA; border-radius: 12px; padding: 4px 14px 12px; }
.gen__group summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.gen__field { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; border: 0; padding: 0; font-size: 14px; font-weight: 600; color: #3D4657; }
.gen__field legend { padding: 0; margin-bottom: 4px; }
.gen__field label { font-weight: 400; color: var(--c-night); display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; min-height: 28px; }
.gen__field select, .gen__field input[type=text] { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #C9C6BB; border-radius: 8px; min-height: 42px; color: var(--c-night); background: #fff; }
.gen__check { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 15px; }
.gen__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gen__colors input[type=color] { width: 44px; height: 36px; padding: 0 2px; border: 1px solid #C9C6BB; border-radius: 8px; background: #fff; cursor: pointer; }
.gen__swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #C9C6BB; cursor: pointer; padding: 0; }
.gen__swatch:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.gen__bar { grid-area: bar; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn--line { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--c-blue); color: var(--c-blue); background: #fff; font-weight: 700; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.btn--line:hover { background: #EEF3FB; color: var(--c-blue); }
.btn--sm { padding: 8px 12px; font-size: 14px; }
.gen__bar .btn--blue { padding: 10px 22px; }
.dl-list { padding-left: 1.1em; }
.dl-list li { margin-bottom: 4px; }
@media (min-width: 960px) {
  .gen { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "err err" "warn warn" "opts prev" "opts bar"; align-items: start; column-gap: 28px; }
}
@media (max-width: 959px) {
  .gen__bar { position: sticky; bottom: 0; z-index: 5; background: rgba(246, 245, 241, .96); padding: 10px 0; border-top: 1px solid #E4E2DA; }
}
#gen-print { display: none; }
@media print {
  body.view-descargas * { visibility: hidden; }
  body.view-descargas #gen-print, body.view-descargas #gen-print * { visibility: visible; }
  body.view-descargas #gen-print { display: block; position: fixed; left: 0; top: 0; }
}

/* Grafik "beste Kombination": feste Größe, bei Bedarf waagerecht scrollen statt hochskalieren */
.figure--strip .strip-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 10px; }
.figure--strip .chart--strip { display: block; max-width: none; height: auto; border: 0; background: none; }
.strip-key { white-space: nowrap; }
.strip-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }

/* =====================================================================
   Design-Runde 2 (01.12.2026): mehr Kolumbien-Farbe, weniger Textwüste
   Gelb / Blau / Rot in Flaggen-Reihenfolge im Kopf, Kennzahlen als Kacheln,
   Kalenderblatt-Datum und farbige Typen in der Festivo-Tabelle.
   ===================================================================== */

/* ---------- Kopf: gelbe Kante oben, blaue Fläche, rote Kante unten = Flagge */
.site-header { background: var(--c-blue); border-top: 6px solid var(--c-sun); border-bottom: 4px solid var(--c-fest); color: #fff; }
.logo, .logo:hover { color: #fff; }
.logo__text span { color: var(--c-sun); }
.logo svg rect[fill="#C8102E"] { fill: var(--c-sun); }
.nav a { color: #fff; opacity: .92; border-radius: 8px; padding: 6px 10px; }
.nav ul { gap: 4px 6px; }
.nav a:hover { color: #fff; opacity: 1; background: rgba(255, 255, 255, .12); text-decoration: none; }
.nav .is-highlight a { background: var(--c-sun); color: var(--c-night); opacity: 1; }
.nav .is-highlight a:hover { background: #FFE04D; color: var(--c-night); }
.menu-btn { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
@media (max-width: 759px) {
  .js .nav.is-open a { border-top-color: rgba(255, 255, 255, .15); padding-left: 0; }
}

/* ---------- Überschriften: kleiner Flaggenstreifen statt nackter Text */
.inicio .home__main > section > h2,
.main h2:not(.h4) { position: relative; padding-bottom: 10px; }
.inicio .home__main > section > h2::after,
.main h2:not(.h4)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-sun) 0 50%, var(--c-blue) 50% 75%, var(--c-fest) 75%); }
.cal-head h2, .dosclics__head h2 { padding-bottom: 0 !important; }
.cal-head h2::after, .dosclics__head h2::after { display: none; }

/* ---------- Startseite: Kopfbereich als warme Fläche mit Kennzahlen */
.home__head { align-items: center; background: linear-gradient(120deg, #FFF6CC 0%, #FFFBEA 55%, #EEF3FB 100%);
  border-radius: 20px; padding: 22px 24px; position: relative; overflow: hidden; }
.home__head::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 209, 22, .45), rgba(252, 209, 22, 0) 70%); pointer-events: none; }
.home__title { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 380px; position: relative; }
.home__keyline { font-size: 14px; color: #4A5263; max-width: 60ch; }
.stats { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; position: relative; flex-wrap: wrap; }
.stat a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 14px;
  border-radius: 14px; text-decoration: none; transition: transform .15s ease; box-shadow: 0 2px 0 rgba(20, 33, 61, .12); }
.stat a:hover { transform: translateY(-2px); }
.stat strong { font: 800 30px/1 var(--font-head); }
.stat span { font-size: 13px; font-weight: 600; margin-top: 4px; }
.stat--fest a { background: var(--c-fest); color: #fff; }
.stat--sun a { background: var(--c-sun); color: var(--c-night); }
.stat--blue a { background: var(--c-blue); color: #fff; }
.stat a:hover { color: inherit; }
.stat--fest a:hover, .stat--blue a:hover { color: #fff; }
@media (max-width: 759px) {
  .home__head { padding: 18px 16px; border-radius: 16px; }
  .home__title { flex: none; }
  .home__keyline { font-size: 13px; }
  .home__head h1 { font-size: 26px; }
  .stats { width: 100%; }
  .stat { flex: 1 1 0; }
  .stat a { min-width: 0; padding: 10px 6px; }
  .stat strong { font-size: 26px; }
}

/* ---------- Festivo-Tabelle: Kalenderblatt + farbige Typen */
.inicio .festivos-table td, .inicio .festivos-table th { padding: 8px 14px; vertical-align: middle; }
.inicio .festivos-table th[scope=row] { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.leaf { display: inline-flex; flex-direction: column; align-items: center; width: 44px; border-radius: 9px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px #E4E2DA, 0 2px 0 rgba(20, 33, 61, .06); line-height: 1; }
.leaf small { display: block; width: 100%; text-align: center; background: var(--c-fest); color: #fff; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; }
.leaf b { font: 800 19px/1 var(--font-head); color: var(--c-night); padding: 4px 0 5px; }
.leaf__wd { font-size: 13px; color: var(--c-muted); text-transform: capitalize; }
.festivos-table__name { font-weight: 600; color: var(--c-night); }
.festivos-table .tag { white-space: nowrap; }
.tag--fecha-fija { background: #E3EBF8; color: #0B3A8C; }
.tag--ley-emiliani { background: #FFF1B8; color: #6B5200; }
.tag--semana-santa { background: #FBE3E6; color: #8A1C1C; }
.festivos-table tbody tr:hover { background: #FFFBEA; }

/* ---------- Puente-Karten: farbige Kante und Plakette nach Art */
.puente-card { gap: 2px; padding: 12px 14px; border: 0; box-shadow: 0 0 0 1px #E4E2DA; border-top: 5px solid var(--c-sun);
  transition: transform .15s ease, box-shadow .15s ease; }
.puente-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #E4E2DA, 0 6px 16px rgba(20, 33, 61, .08); }
.puente-card__range { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puente-card__name { line-height: 1.3; margin-bottom: 6px; }
.puente-card__days { margin-top: auto; align-self: flex-start; background: #FFF1B8; color: #6B5200; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; }
.puente-card--vac { border-top-color: var(--c-fest); }
.puente-card--vac .puente-card__days { background: #FBE3E6; color: #8A1C1C; }

/* ---------- Runde 3: Legende oben, Hoy weiß auf Blau, einzeilige Tabellen */
.cal-legend { margin: 4px 0 16px; }
/* .today ist auch die dunkle Hoy-Box; in der Kalenderzelle zurücksetzen */
.cal-table td.today { background: none; color: inherit; border-radius: 0; padding: 0; display: table-cell; }
.cal-table td.today button, .no-pagos .cal-table .pay.today button { background: var(--c-blue); color: #fff; box-shadow: none; font-weight: 800; }
.cal-table td.today.fest button { background: var(--c-fest); box-shadow: 0 0 0 2px var(--c-blue); }
.cal-table td.today button .moon { color: #fff; }
.sw--today { background: var(--c-blue); box-shadow: none; }
@media (max-width: 599px) {
  .cal-head .cal-legend { display: flex; font-size: 12px; gap: 4px 12px; }
}
/* Tabellen: Zellen einzeilig, breite Tabellen scrollen in .table-wrap */
.table-wrap thead th, .table-wrap tbody > tr > :first-child, .table-wrap .days, .table-wrap .tag { white-space: nowrap; }
.table-wrap td { min-width: 0; }
/* Zweibuchstabige Wochentage (Lu Ma Mi …): Kopfzeile etwas kleiner, Abstand zur Wochenspalte */
.cal-table thead th { font-size: 10px; letter-spacing: -.01em; }
.cal-table thead th.wk { padding-right: 4px; text-align: left; }
.cal-table thead abbr { text-decoration: none; cursor: help; }

/* ---------- FAQ als Aufklapp-Liste (Content::faqAccordion) */
.faq { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 24px; }
.faq__item { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #E4E2DA; border-left: 4px solid var(--c-sun); }
.faq__item[open] { border-left-color: var(--c-blue); box-shadow: 0 0 0 1px #C9D6EE, 0 4px 14px rgba(20, 33, 61, .06); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; font: 700 1rem/1.35 var(--font-head); color: var(--c-night); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #FFF1B8; color: var(--c-night); font: 700 18px/1 var(--font); transition: transform .2s ease; }
.faq__item[open] summary::after { content: "–"; background: var(--c-blue); color: #fff; }
.faq__item summary:hover { color: var(--c-blue); }
.faq__a { padding: 0 16px 14px; }
.faq__a > :first-child { margin-top: 0; }
.faq__a > :last-child { margin-bottom: 0; }

/* Festivo-Tabellen: alle Zeilen gut lesbar; der nächste Festivo ist hervorgehoben (statt vergangene grau) */
.table-wrap tr.past { color: inherit; }
.table-wrap tr.past .muted { color: var(--c-muted); }
.table-wrap tr.is-next > * { background: #FFF6CC; font-weight: 700; }
.table-wrap tr.is-next > :first-child { box-shadow: inset 4px 0 0 var(--c-blue); }
/* Einzeilig, außer dem Festivo-Namen: der darf umbrechen, damit Tipo/ICS ohne Scrollen sichtbar bleiben */
.table-wrap .festivos-table__name, .table-wrap .festivos-table td:nth-child(3):not(:last-child) { white-space: normal; min-width: 170px; }
.inicio .festivos-table { min-width: 0; }

/* ---------- Gemeinsame Tabellen-Bausteine (Render::leaf / typeTag / days) */
.table-wrap .leaf, .table-wrap .leaf__wd { vertical-align: middle; }
.table-wrap .leaf__wd { margin-left: 8px; }
.leaf--pay small { background: var(--c-blue); }
.days { display: inline-block; background: #FFF1B8; color: #6B5200; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.days--vac { background: #FBE3E6; color: #8A1C1C; }
.table-wrap .tag { white-space: nowrap; }
.table-wrap tr.is-next .festivos-table__name { color: var(--c-night); }

/* ---------- Tagesdetail schwebend (JS setzt .is-floating, Klick auf einen Tag .is-open) */
.daypanel { position: relative; }
.daypanel__x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--c-muted); padding: 6px 10px; cursor: pointer; border-radius: 8px; }
.daypanel__x:hover { color: var(--c-night); background: #F0EEE7; }
.daypanel.is-floating { display: none; }
.daypanel.is-floating.is-open { display: flex; position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 40px); overflow: auto; border-top: 5px solid var(--c-sun);
  box-shadow: 0 12px 40px rgba(20, 33, 61, .22); animation: daypanel-in .18s ease-out; }
.daypanel.is-floating .daypanel__date { padding-right: 28px; }
@keyframes daypanel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .daypanel.is-floating.is-open { left: 8px; right: 8px; bottom: 8px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .daypanel.is-floating.is-open { animation: none; } }

/* ---------- Seitenkopf der Unterseiten (wie Startseite: warme Fläche + Kacheln) */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 8px 0 20px;
  background: linear-gradient(120deg, #FFF6CC 0%, #FFFBEA 55%, #EEF3FB 100%); border-radius: 20px; padding: 20px 24px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 209, 22, .45), rgba(252, 209, 22, 0) 70%); pointer-events: none; }
.page-head__title { flex: 1 1 320px; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { margin: 0; }
.page-head__title > :not(h1) { margin: 0; }
.stat > div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 14px;
  border-radius: 14px; box-shadow: 0 2px 0 rgba(20, 33, 61, .12); }
.stat--fest > div { background: var(--c-fest); color: #fff; }
.stat--sun > div { background: var(--c-sun); color: var(--c-night); }
.stat--blue > div { background: var(--c-blue); color: #fff; }
.stat span { text-align: center; line-height: 1.2; }
@media (max-width: 759px) {
  .page-head { padding: 16px; border-radius: 16px; }
  .page-head__title { flex: none; width: 100%; }
  .page-head .stats { width: 100%; }
  .page-head .stat { flex: 1 1 0; }
  .stat > div { min-width: 0; padding: 10px 6px; }
}
@media (max-width: 599px) {
  .table-wrap tbody > tr > :first-child { white-space: normal; min-width: 120px; }
  .table-wrap tbody > tr > :first-child:has(.leaf) { white-space: nowrap; min-width: 0; }
}

/* =====================================================================
   Kopf v2: abstrakte Flagge waagerecht – Gelb (Logo) | großes Blau (Menü) | Rot (Abschluss)
   Die Flächen richten sich am 1200-px-Raster aus; schräge Kanten (105°).
   ===================================================================== */
.site-header {
  --hdr-h: 64px;
  --edge: max(0px, 50% - 600px);           /* linker Rand des Rasters */
  border: 0;
  background:
    linear-gradient(105deg,
      var(--c-sun) 0 calc(var(--edge) + 250px),
      var(--c-blue) calc(var(--edge) + 250px) calc(100% - var(--edge) - 28px),
      var(--c-fest) calc(100% - var(--edge) - 28px)) top / 100% var(--hdr-h) no-repeat,
    var(--c-blue);
}
.site-header__inner { min-height: var(--hdr-h); padding-right: 52px; }
.logo, .logo:hover { color: var(--c-night); }
.logo__text span { color: var(--c-fest); }
.logo svg rect[fill="#C8102E"] { fill: var(--c-fest); }
@media (max-width: 759px) {
  .site-header { --hdr-h: 60px;
    background:
      linear-gradient(105deg, var(--c-sun) 0 228px, var(--c-blue) 228px calc(100% - 22px), var(--c-fest) calc(100% - 22px)) top / 100% var(--hdr-h) no-repeat,
      var(--c-blue); }
  .site-header__inner { padding-right: 34px; }
  .logo__text { font-size: 18px; }
}

/* ---------- Kopf fixiert (sticky): bleibt beim Scrollen oben */
:root { --hdr-top: 0px; --hdr-space: 64px; }
.admin-bar { --hdr-top: 32px; }
@media (max-width: 782px) { .admin-bar { --hdr-top: 46px; } }
@media (max-width: 600px) { .admin-bar { --hdr-top: 0px; } } /* WP-Adminleiste scrollt dort mit */
.site-header { position: sticky; top: var(--hdr-top); z-index: 50; box-shadow: 0 2px 10px rgba(20, 33, 61, .18); }
html { scroll-padding-top: calc(var(--hdr-top) + var(--hdr-space) + 12px); } /* Sprungmarken nicht unter dem Kopf */
.home__sticky { top: calc(var(--hdr-top) + var(--hdr-space) + 16px); }
@media (max-width: 759px) {
  :root { --hdr-space: 60px; }
  .js .nav.is-open { max-height: calc(100vh - var(--hdr-space) - var(--hdr-top)); overflow-y: auto; }
}

/* =====================================================================
   Runde Shuffle (01.12.2026): weißer Kopf, Hero mit Text links und Vorschau rechts
   ===================================================================== */

/* ---------- Kopf: weiß, Navigation dunkelblau, "Calendario 2027" als blauer Knopf rechts */
.site-header { background: #fff; border-bottom: 1px solid #E4E2DA; box-shadow: 0 1px 8px rgba(20, 33, 61, .06); }
@media (max-width: 759px) { .site-header { background: #fff; } }
.site-header__inner { padding-right: var(--gutter); }
.logo, .logo:hover { color: var(--c-night); }
.logo__text span { color: var(--c-fest); }
.nav ul { align-items: center; gap: 4px 4px; }
.nav a { color: var(--c-night); opacity: 1; font-weight: 600; padding: 8px 12px; }
.nav a:hover { color: var(--c-blue); background: #EEF3FB; }
.nav .is-highlight { order: 99; margin-left: 8px; }
.nav .is-highlight a, .nav .is-highlight a:hover { background: var(--c-blue); color: #fff; border-radius: 999px; padding: 10px 20px; }
.nav .is-highlight a:hover { background: #002A70; }
.menu-btn { background: #fff; border-color: #E4E2DA; color: var(--c-night); }
@media (max-width: 759px) {
  .js .nav.is-open a { border-top-color: #ECEAE3; padding-left: 4px; }
  .nav .is-highlight { order: 0; margin: 8px 0 4px; }
  .js .nav.is-open .is-highlight a { border-top: 0; text-align: center; }
}

/* ---------- Flaggen-Kicker: drei Striche + Versalien */
.flagline { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4A5263; }
.flagline__dashes { display: inline-flex; gap: 8px; }
.flagline__dashes i { display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--c-sun); }
.flagline__dashes i:nth-child(2) { width: 24px; background: var(--c-blue); }
.flagline__dashes i:nth-child(3) { width: 16px; background: var(--c-fest); }

/* ---------- Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px 0 16px; }
.hero__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero__eyebrow { margin: 6px 0 0; color: var(--c-fest); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 800 clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem)/1.06 var(--font-head); letter-spacing: -.02em; color: var(--c-night); }
.hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #3D4657; max-width: 56ch; }

.dosclics { background: none; border: 0; padding: 0; gap: 10px; }
.dosclics__title { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.dosclics__row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pills--sm { gap: 6px; }
.pills--sm .pill span { min-width: 0; padding: 6px 12px; font-size: 14px; border-radius: 999px; }
.dosclics__hint { margin: 0; font-size: 13px; color: var(--c-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn--pill { border-radius: 999px; padding: 13px 24px; font-weight: 700; }
.btn--ghost { background: #fff; color: var(--c-night); border: 1px solid #C9C6BB; text-decoration: none; display: inline-flex; align-items: center; }
.btn--ghost:hover { border-color: var(--c-night); color: var(--c-night); }

.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid #E4E2DA; font-size: 14px; }
.hero__facts a { color: #3D4657; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hero__facts a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hero__facts b { color: var(--c-night); }
.hero__facts a:hover b { text-decoration: underline; }
.fact--fest a::before { background: var(--c-fest); }
.fact--sun a::before { background: var(--c-sun); }
.fact--blue a::before { background: var(--c-blue); }

/* Vorschau: weiße Karte mit runden Ecken, gelber Eckbogen, dunkelblaues Badge */
.hero__preview { position: relative; margin: 0; padding: 18px 18px 0 0; }
.hero__preview::before { content: ""; position: absolute; right: 0; top: 0; width: 120px; height: 120px; border: 6px solid var(--c-sun);
  border-left: 0; border-bottom: 0; border-radius: 0 28px 0 0; }
.hero__card { position: relative; display: block; background: #fff; border-radius: 22px; padding: 16px 16px 14px; text-decoration: none;
  box-shadow: 0 0 0 1px #E4E2DA, 0 18px 40px rgba(20, 33, 61, .12); transition: transform .2s ease; }
.hero__card:hover { transform: translateY(-3px); }
.hero__card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.hero__card figcaption { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.hero__badge { position: absolute; left: 32px; bottom: -22px; background: var(--c-night); color: #fff; border-radius: 12px; padding: 10px 18px;
  font: 800 24px/1.1 var(--font-head); box-shadow: 0 10px 24px rgba(20, 33, 61, .25); }
.hero__badge small { display: block; font: 700 11px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #C7CDDA; }
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 16px; }
  .hero__preview { max-width: 560px; }
}
@media (max-width: 599px) {
  .hero h1 { font-size: 2rem; }
  .hero__lead { font-size: 15px; }
  .flagline__dashes i { width: 28px; } .flagline__dashes i:nth-child(2) { width: 16px; } .flagline__dashes i:nth-child(3) { width: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* ---------- Mostrar-Schalter direkt am Kalender */
.cal-head { flex-wrap: wrap; row-gap: 10px; }
.cal-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; order: 2; }
.cal-opts__label { font-size: 13px; font-weight: 700; color: var(--c-muted); margin-right: 2px; }
.chk { position: relative; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #fff; border: 1px solid #C9C6BB; color: #4A5263; }
.chk span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #9AA1AD; background: #fff; }
.chk input:checked + span { background: #EEF3FB; border-color: var(--c-blue); color: var(--c-blue); }
.chk input:checked + span::before { background: var(--c-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--c-blue); }
.chk input:focus-visible + span { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.cal-head .cal-legend { order: 3; width: 100%; }
.hero__card figcaption { text-align: right; }
.dosclics__row .pills + .pills { padding-left: 14px; border-left: 1px solid #DAD7CE; }
@media (max-width: 599px) { .dosclics__row .pills + .pills { padding-left: 0; border-left: 0; } }

/* ---------- Seitenkopf Unterseiten v2 (Shuffle-Stil wie Startseite: weiß, 3 Striche, große H1, Punktzeile) */
.page-head { display: block; background: none; border-radius: 0; padding: 8px 0 0; margin: 4px 0 24px; overflow: visible; }
.page-head::before { content: none; }
.page-head__title { display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font: 800 clamp(1.9rem, 1.3rem + 2vw, 2.9rem)/1.08 var(--font-head); letter-spacing: -.02em; color: var(--c-night); }
.page-head h1::after { content: none; }
.page-head__facts { margin-top: 16px; }
.hero__facts span { color: #3D4657; display: inline-flex; align-items: center; gap: 6px; }
.hero__facts span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.fact--fest span::before { background: var(--c-fest); }
.fact--sun span::before { background: var(--c-sun); }
.fact--blue span::before { background: var(--c-blue); }
@media (max-width: 759px) {
  .page-head { padding: 4px 0 0; margin-bottom: 18px; }
  .page-head h1 { font-size: 1.75rem; }
  .page-head__facts { gap: 6px 16px; }
}

/* ---------- Startseite: Knopf + Hinweis in einer Zeile (ohne zweiten Knopf) */
.hero__ctas { align-items: center; }
.hero__ctas .dosclics__hint { flex: 1 1 180px; max-width: 260px; line-height: 1.35; }

/* ---------- Jahresseite: Downloads im Seitenkopf */
.dlbar { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dlbar .dosclics__title { margin: 0; }
.dlbar__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dlbar__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid #C9C6BB; background: #fff;
  color: var(--c-night); font-size: 14px; font-weight: 600; text-decoration: none; }
.dlbar__btn::before { content: ""; width: 12px; height: 12px; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M4 21h16'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M6 10l6 6 6-6M4 21h16'/%3E%3C/svg%3E") center/contain no-repeat; }
.dlbar__btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.dlbar__btn--main { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.dlbar__btn--main:hover { background: var(--c-night); border-color: var(--c-night); color: #fff; }
.dlbar__more { font-size: 14px; font-weight: 700; color: var(--c-blue); margin-left: 4px; }
.page-head .year-switch ul { margin: 0; }

/* ---------- Jahres-/Monatsseiten: "Mostrar" direkt über der Legende */
.cal-legendbar { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #E4E2DA; border-radius: 14px; background: #fff; }
.cal-legendbar .cal-opts { order: 0; }
.cal-legendbar .cal-legend { margin: 0; padding-top: 10px; border-top: 1px dashed #E4E2DA; }
.no-semanas .lg-semanas { display: none; }

/* ---------- Themenseiten Festivos (/festivos/{grupo}/) */
.grupo-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.grupo-toc a { padding: 6px 14px; border-radius: 999px; border: 1px solid #C9C6BB; background: #fff; color: var(--c-night); font-size: 14px; font-weight: 600; text-decoration: none; }
.grupo-toc a:hover { border-color: var(--c-blue); color: var(--c-blue); }
.grupo-table th small { display: block; font-size: 11px; font-weight: 500; color: var(--c-muted); text-transform: none; letter-spacing: 0; }
.grupo-table td, .grupo-table th { white-space: nowrap; }
.grupo-table td.is-fest { font-weight: 700; color: var(--c-fest); }
.grupo-table tr.past td, .grupo-table tr.past th { color: var(--c-muted); font-weight: 500; }
.grupo-chart { margin: 20px 0 8px; }
.grupo-chart svg { width: 100%; height: auto; display: block; }
.grupo-chart figcaption { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.gc-grid { stroke: #E4E2DA; stroke-width: 1; }
.gc-axis { font: 500 12px var(--font); fill: #5B6472; }
.gc-year { font: 600 14px var(--font); fill: #5B6472; }
.gc-year.is-focus { font-weight: 800; fill: var(--c-night); }
.gc-bar { fill: #DCE5F5; }
.gc-bar.is-focus { fill: #FCD116; }
.gc-fest { fill: var(--c-fest); }
.gc-label { font: 500 12px var(--font); fill: #5B6472; }
.gc-label.is-focus { font-weight: 700; fill: var(--c-night); }
.grupo-sec { scroll-margin-top: var(--hdr-space, 64px); }
.grupo-dates { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.grupo-dates li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border-radius: 12px; background: #F6F5F1; }
.grupo-dates li.is-focus { background: #FFF6CC; }
.grupo-dates b { font: 800 15px var(--font-head); color: var(--c-night); min-width: 40px; }
.grupo-table { font-size: 14px; }
.grupo-table th[scope="col"] { white-space: normal; vertical-align: bottom; line-height: 1.2; }
.grupo-table th, .grupo-table td { padding-left: 8px; padding-right: 8px; }
@media (max-width: 759px) {
  .grupo-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .grupo-chart svg { min-width: 600px; }
}

/* ---------- Startseite: vier Knöpfe statt Formatwahl + Senden */
.hero__btns { margin-top: 2px; }
.hero__btns .dlbar__btn { padding: 10px 18px; font-size: 15px; }
.dlbar__btn--view::before { -webkit-mask: none; mask: none; background: none; width: 0; margin-right: -6px; }
/* Startseite: vier Knöpfe auch am Handy in einer Zeile */
.hero__btns { flex-wrap: nowrap; }
@media (max-width: 599px) {
  .hero__btns { gap: 6px; }
  .hero__btns li { flex: 1 1 auto; }
  .hero__btns .dlbar__btn { width: 100%; justify-content: center; padding: 10px 8px; font-size: 14px; }
  .hero__btns .dlbar__btn::before { display: none; }
  .hide-sm { display: none; }
}

/* ---------- Descargas: Knöpfe für Jahr/Formato/Papel, Download-Knöpfe gleich groß */
.gen__field .pills { display: flex; flex-wrap: nowrap; gap: 6px; }
.gen__field .pill { margin: 0; min-height: 0; }
.gen__field .pills--sm .pill span { padding: 7px 14px; font-weight: 600; }
.gen__bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.gen__bar .btn, .gen__bar .btn--blue { display: flex; align-items: center; justify-content: center; text-align: center; padding: 11px 12px; font-size: 15px; line-height: 1.2; min-height: 46px; border-radius: 999px; }
.gen__bar [hidden] { display: none; }
.gen__bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gen__bar .btn, .gen__bar .btn--blue { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
@media (max-width: 380px) { .gen__bar .btn, .gen__bar .btn--blue { font-size: 14px; } }

/* ---------- Werbung: flexible Größen (Mindesthöhe = kleinstes Format, größere dürfen kommen) und Abstand */
.ad--top, .ad--incontent-1, .ad--incontent-2 { max-width: 970px; }
.ad--sidebar-1, .ad--sidebar-2 { width: 336px; min-height: 280px; height: auto; }
.ad ins.adsbygoogle { width: 100%; }
.home__side > .ad, .home__sticky { margin: 8px 0; }
@media (max-width: 959px) {
  .home__ad-top, .ad--incontent-1, .ad--incontent-2 { margin-top: 16px; margin-bottom: 16px; }
}
@media (max-width: 759px) {
  .ad--top { max-width: 320px; min-height: 100px; } /* Platz für 320×100 reservieren: kein Springen */
  .ad--incontent-1, .ad--incontent-2 { max-width: 336px; min-height: 250px; }
}

/* Themenseiten: Tabelle mit festen Daten (Puente gelb, Wochenende grau) */
.grupo-table--fechas th a { color: inherit; text-decoration: none; }
.grupo-table--fechas th a:hover { text-decoration: underline; }
.grupo-table--fechas td.is-lw { background: #FFF1B8; font-weight: 700; }
.grupo-table--fechas td.is-we { color: var(--c-muted); background: #F1F0EC; }
.grupo-table--fechas td.is-none { color: var(--c-muted); text-align: center; }
.grupo-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--c-muted); margin: 6px 0 0; }
.grupo-legend .sw { margin-left: 6px; }
.sw--we { background: #F1F0EC; border: 1px solid #D9D6CC; }
.grupo-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.grupo-nav__label { font-size: 13px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.grupo-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid #C9C6BB; background: #fff; color: var(--c-night); font-size: 14px; font-weight: 600; text-decoration: none; }
.grupo-nav a:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* Monatsseiten: gekürzte Feiertagsblöcke (voller Text auf der Themenseite) */
.month-block__fact { font-size: 15px; color: var(--muted, #5B6475); margin-top: -4px; }
.month-block__fact .days { margin-right: 6px; }
.month-block .more-link { margin-top: 4px; font-weight: 600; }

/* ---------- Cookie-Banner (Ley 1581): unten fixiert, Aceptar/Rechazar gleich gewichtet */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 12px var(--gutter); pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { pointer-events: auto; max-width: 860px; margin: 0 auto; background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(20, 33, 61, .18); padding: 16px 20px; font-size: .9rem; line-height: 1.5; }
.cookie-banner__title { font: 700 1rem var(--font-head); color: var(--c-night); margin: 0 0 4px; }
.cookie-banner p { margin: 0 0 10px; }
.cookie-banner__prefs { display: grid; gap: 8px; margin: 4px 0 12px; }
.cookie-banner__prefs[hidden] { display: none; }
.cookie-banner__opt { display: flex; gap: 10px; align-items: flex-start; }
.cookie-banner__opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-blue); flex: none; }
.cookie-banner__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cookie-btn { font: inherit; font-weight: 700; padding: 9px 20px; border-radius: 999px; border: 2px solid var(--c-blue); background: var(--c-blue); color: #fff; cursor: pointer; min-width: 120px; }
.cookie-btn:hover { background: #00266B; border-color: #00266B; }
.cookie-btn--link { background: none; border-color: transparent; color: var(--c-link); text-decoration: underline; min-width: 0; padding: 9px 8px; }
.cookie-btn--link:hover { background: none; border-color: transparent; color: var(--c-fest); }
.cookie-btn[hidden] { display: none; }
@media (max-width: 560px) { .cookie-btn:not(.cookie-btn--link) { flex: 1 1 40%; } }
@media print { .cookie-banner { display: none !important; } }
