/* iFeiertage – Designsystem */
:root {
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --text: #172B4D;
  --muted: #52617A;
  --line: #E2E8F0;
  --primary: #2563EB;
  --primary-ink: #1D4ED8;
  --primary-soft: #E8F0FE;
  --accent: #0D9488;
  --accent-ink: #0F766E;
  --accent-soft: #DDF5F2;
  --amber: #F59E0B;
  --amber-ink: #92400E;
  --amber-soft: #FEF3C7;
  --weekend: #EEF2F6;
  --danger: #B42318;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 43, 77, .04), 0 8px 24px rgba(23, 43, 77, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#rechner, #ergebnis, #kalender, .month, h2[id], h3[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary-ink); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 250, 252, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand b { color: var(--primary); font-weight: 800; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.year-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; }
.year-switch a { min-width: 44px; justify-content: center; padding: 0 8px; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: var(--text); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 859px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 0 12px; }
  .year-switch { margin: 8px 0 0; flex-wrap: wrap; }
}

/* Bausteine */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
@media (min-width: 720px) { .pad { padding: 28px; } }
.section { padding: 40px 0; }
@media (min-width: 720px) { .section { padding: 56px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #CBD5E1; color: var(--text); background: #FBFCFE; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--weekend); color: var(--muted); white-space: nowrap; }
.chip.blue { background: var(--primary-soft); color: var(--primary-ink); }
.chip.teal { background: var(--accent-soft); color: var(--accent-ink); }
.chip.amber { background: var(--amber-soft); color: var(--amber-ink); }
.notice { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: .93rem; }
.notice.warn { border-color: var(--amber); background: var(--amber-soft); }
.placeholder { background: repeating-linear-gradient(45deg, #FFF7E6, #FFF7E6 10px, #FFEFD1 10px, #FFEFD1 20px); border: 2px dashed var(--amber); padding: 2px 8px; border-radius: 6px; font-weight: 700; color: var(--amber-ink); }
.breadcrumb { font-size: .875rem; color: var(--muted); padding-top: 18px; }
.breadcrumb a, .breadcrumb li { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #94A3B8; }
.breadcrumb a { color: var(--muted); }

/* Hero mit Rechner */
.hero { padding: 24px 0 8px; }
@media (min-width: 980px) { .hero { padding: 48px 0 24px; } .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: start; } }
.hero h1 { margin-bottom: 10px; }
.hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 36em; margin-bottom: 20px; }
.calc { padding: 18px; }
@media (min-width: 720px) { .calc { padding: 24px; } }
.calc-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: 1fr 1fr; } .calc-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
select, input[type="number"], input[type="date"], input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #CBD5E1; background: #fff; color: var(--text); font: inherit; font-size: 1rem;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2352617A'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
select:hover, input:hover { border-color: #94A3B8; }
select[aria-invalid="true"], input[aria-invalid="true"] { border-color: var(--danger); }
.stepper { display: flex; align-items: stretch; }
.stepper input { border-radius: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { width: 52px; flex: none; border: 1px solid #CBD5E1; background: #F8FAFC; font-size: 1.4rem; font-weight: 700; color: var(--text); cursor: pointer; }
.stepper button:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.stepper button:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.stepper button:hover { background: var(--primary-soft); }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; border: 0; padding: 0; margin: 0; }
.weekdays legend { font-weight: 650; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.wd { position: relative; }
.wd input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wd span { display: grid; place-items: center; min-height: 44px; border-radius: 10px; border: 1px solid #CBD5E1; font-weight: 700; font-size: .9rem; background: #fff; color: var(--muted); }
.wd input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.wd input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.goals { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.goals legend { font-weight: 650; font-size: .92rem; margin-bottom: 6px; padding: 0; }
@media (min-width: 560px) { .goals { grid-template-columns: repeat(3, 1fr); } }
.goal { position: relative; }
.goal input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.goal span { display: block; min-height: 44px; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 12px; font-weight: 650; font-size: .9rem; line-height: 1.3; background: #fff; }
.goal input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.goal input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
details.more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
details.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 650; color: var(--primary-ink); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--primary-soft); }
details.more[open] > summary::before { content: "–"; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.ranges { display: grid; gap: 8px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; align-items: center; }
.range-row button { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.calc-actions .btn-primary { flex: 1 1 220px; }
.form-error { color: var(--danger); font-weight: 600; font-size: .92rem; }

/* Ergebnisse */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tile .k { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.tile .v.name { font-size: clamp(1.05rem, .9rem + 1vw, 1.35rem); line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.tile.best { background: linear-gradient(135deg, #0D9488, #0F766E); border-color: transparent; color: #fff; }
.tile.best .k, .tile.best .s { color: rgba(255, 255, 255, .85); }
.tile.amber .v { color: var(--amber-ink); }
.tile.blue .v { color: var(--primary-ink); }
.plan-list { display: grid; gap: 12px; }
.block { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
@media (min-width: 720px) { .block { grid-template-columns: 150px 1fr auto; align-items: center; gap: 20px; } }
.block .big { display: flex; align-items: baseline; gap: 8px; }
.block .big strong { font-size: 2.1rem; line-height: 1; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.block .big span { font-weight: 650; color: var(--muted); font-size: .9rem; line-height: 1.2; }
.block h3 { margin: 0 0 4px; font-size: 1.05rem; }
.block .why { font-size: .9rem; color: var(--muted); margin: 0; }
.block .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.block .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th, table.list td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.list td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 639px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  table.stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .85rem; }
}

/* Kalender */
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .85rem; margin: 0 0 14px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; font-weight: 800; }
.sw.hol, .cal .hol { background: var(--primary); color: #fff; }
.sw.vac, .cal .vac { background: var(--amber); color: #3B2300; }
.sw.free, .cal .free { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sw.wkd, .cal .wkd { background: var(--weekend); color: #64748B; }
.sw.fix, .cal .fix { background: repeating-linear-gradient(135deg, var(--accent-soft), var(--accent-soft) 4px, #fff 4px, #fff 8px); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sw.reg, .cal .reg { box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary-ink); background: #fff; }
.months { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 639px) {
  .months.swipe { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; overscroll-behavior-x: contain; }
  .months.swipe .month { scroll-snap-align: start; }
}
.month { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.month h3 { font-size: 1rem; margin: 0 0 8px; display: flex; justify-content: space-between; }
.month h3 small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal th { font-size: .72rem; color: var(--muted); font-weight: 700; padding: 2px 0; }
.cal td { text-align: center; padding: 0; }
.cal td span { display: grid; place-items: center; aspect-ratio: 1; min-height: 32px; border-radius: 8px; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; }
.cal td.today span { outline: 2px solid var(--text); outline-offset: -2px; }
.cal td.out span { opacity: .35; }
.cal .vac::after { content: "U"; position: absolute; top: 1px; right: 3px; font-size: .55rem; font-weight: 800; }
.cal .hol::after { content: "F"; position: absolute; top: 1px; right: 3px; font-size: .55rem; font-weight: 800; opacity: .9; }
.cal .reg::after { content: "R"; position: absolute; top: 1px; right: 3px; font-size: .55rem; font-weight: 800; }
.month .notes { list-style: none; margin: 10px 0 0; padding: 0; font-size: .82rem; display: grid; gap: 3px; }
.month .notes li { display: flex; gap: 8px; }
.month .notes b { min-width: 2.2em; font-variant-numeric: tabular-nums; }
.month.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--amber); } 100% { box-shadow: var(--shadow); } }
.mini-cal { padding: 18px; }
.mini-cal .cal td span { min-height: 36px; font-size: .95rem; }

/* Listen und Inhalte */
.hol-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hol-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.date-badge { display: grid; place-items: center; text-align: center; width: 64px; height: 60px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); line-height: 1.05; }
.date-badge b { font-size: 1.4rem; font-weight: 800; }
.date-badge small { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.hol-list .name { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 420px) { .hol-list li { grid-template-columns: 56px minmax(0, 1fr); } .hol-list li > .chip { grid-column: 2; justify-self: start; } .date-badge { width: 56px; } }
.hol-list .sub { font-size: .85rem; color: var(--muted); }
.state-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.state-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; }
.state-grid a:hover { border-color: var(--primary); color: var(--primary-ink); }
.state-grid a span { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.matrix { border-collapse: collapse; font-size: .85rem; min-width: 760px; width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); min-width: 170px; }
.matrix thead th { font-size: .75rem; color: var(--muted); }
.matrix .y { color: var(--primary-ink); font-weight: 800; }
.matrix .r { color: var(--amber-ink); font-weight: 800; }
.article-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: var(--text); height: 100%; }
.article-card:hover { border-color: var(--primary); color: var(--text); }
.article-card h3 { margin: 4px 0; }
.article-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 1em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }
.page-head { padding-top: 20px; padding-bottom: 8px; }
.page-head .lead { font-size: 1.08rem; color: var(--muted); max-width: 44em; }

/* Fußzeile */
.site-footer { margin-top: 40px; padding: 40px 0 28px; background: #0F1D36; color: #CBD5E1; font-size: .92rem; }
.site-footer a { color: #E2E8F0; }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #94A3B8; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: #94A3B8; }

[hidden] { display: none !important; }
.loading { color: var(--muted); font-size: .92rem; }
.noscript { padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); }

@media print {
  .site-header, .site-footer, .calc form, .no-print, .menu-btn, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card, .tile, .block, .month { box-shadow: none !important; break-inside: avoid; }
  .months.swipe { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; overflow: visible !important; }
  .print-only { display: block !important; }
  a { color: inherit; text-decoration: none; }
}
.print-only { display: none; }

/* Jahresplaner */
.planner { padding: 18px; margin-top: 18px; }
@media (min-width: 720px) { .planner { padding: 26px; } }
.planner-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.planner-head h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin: 0; }
.planner-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat b small { font-size: .55em; color: var(--muted); font-weight: 700; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.stat span small { font-weight: 500; }
.stat.total { background: linear-gradient(135deg, #0D9488, #0F766E); border-color: transparent; color: #fff; }
.stat.total span, .stat.total small { color: rgba(255, 255, 255, .85); }
.stat.wkd b { color: #475569; }
.stat.hol b { color: var(--primary-ink); }
.stat.vac b { color: var(--amber-ink); }
.stat.vac.over { border-color: var(--danger); background: #FEF3F2; }
.stat.vac.over b, .stat.vac.over span { color: var(--danger); }
.stat.fix b { color: var(--accent-ink); }
.meter { height: 10px; border-radius: 99px; background: var(--weekend); overflow: hidden; margin-top: 14px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, #FBBF24, #F59E0B); border-radius: 99px; transition: width .25s; }
.meter.over span { background: var(--danger); }
.breaks { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.breaks li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .85rem; }
.breaks li span { color: var(--amber-ink); font-weight: 600; margin-left: 4px; }
.wall-only { display: none; }
@media (min-width: 900px) { .wall-only { display: block; } .cards-only { display: none; } }
.wall-scroll { overflow-x: auto; }
.wall { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; min-width: 860px; }
.wall th { font-size: .68rem; color: var(--muted); font-weight: 700; padding: 0 0 2px; font-variant-numeric: tabular-nums; }
.wall th.mh { width: 44px; text-align: left; font-size: .8rem; color: var(--text); }
.wall .fs { width: 40px; text-align: center; font-size: .75rem; color: var(--accent-ink); }
.wall td.fs b { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 8px; background: var(--accent-soft); font-size: .82rem; }
.wall td { padding: 0; }
.wall td.na { background: transparent; }
.wall td > span, .wall td > button { display: grid; place-items: center; width: 100%; height: 28px; border-radius: 6px; font: inherit; font-size: .68rem; font-weight: 700; color: #94A3B8; background: #fff; border: 1px solid var(--line); padding: 0; position: relative; }
.wall td > button { cursor: pointer; color: #64748B; }
.wall td > button:hover { border-color: var(--amber); background: var(--amber-soft); color: var(--amber-ink); }
.wall .wkd { background: var(--weekend); border-color: transparent; color: #94A3B8; }
.wall .hol { background: var(--primary); border-color: var(--primary); color: #fff; }
.wall .vac { background: var(--amber); border-color: var(--amber); color: #3B2300; }
.wall td > button.vac:hover { background: #D97706; color: #fff; }
.wall .free { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.wall .fix { background: repeating-linear-gradient(135deg, var(--accent-soft), var(--accent-soft) 3px, #fff 3px, #fff 6px); border-color: var(--accent); color: var(--accent-ink); }
.wall .reg { border: 2px solid var(--primary); color: var(--primary-ink); }
.wall .blk { background: repeating-linear-gradient(135deg, #fff, #fff 3px, #F1F5F9 3px, #F1F5F9 6px); }
.wall .mon { box-shadow: -2px 0 0 0 #CBD5E1; }
.wall .today { outline: 2px solid var(--text); outline-offset: 1px; }
.wall .out { opacity: .35; }
.wall tr.flash th, .wall tr.flash td > * { animation: flash 1.6s ease; }
.cal td button { display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-height: 32px; border-radius: 8px; font: inherit; font-size: .85rem; font-weight: 600; border: 1px dashed #CBD5E1; background: #fff; color: var(--text); cursor: pointer; position: relative; padding: 0; }
.cal td button.vac { border: 0; }
.months.compact { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.months.compact .month { padding: 10px; border-radius: 12px; box-shadow: none; }
.months.compact .month h3 { font-size: .88rem; margin-bottom: 4px; }
.months.compact .cal { border-spacing: 2px; }
.months.compact .cal th { font-size: .6rem; }
.months.compact .cal td span { min-height: 22px; font-size: .7rem; border-radius: 5px; }
.months.compact .cal td span::after { display: none; }
.months.compact .notes { font-size: .72rem; margin-top: 6px; }
@media (max-width: 639px) { .months.compact { grid-auto-columns: 70%; } }

/* Deutschlandkarte */
.map-planner { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.state-panel .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-card svg { max-width: 460px; }
@media (min-width: 980px) { .map-planner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; } }
.map-card { padding: 16px; position: sticky; top: 76px; border-radius: 25px; border-color: #DFE9F5; background: linear-gradient(140deg, #EDF8FF, #FFFFFF 70%); box-shadow: 0 20px 60px rgba(23, 52, 84, .07); }
@media (max-width: 979px) { .map-card { position: static; } }
@media (max-width: 600px) { .map-card { padding: 8px; border-radius: 16px; } }
.map-card svg { display: block; width: 100%; max-height: 76vh; margin: 0 auto; }
.map-card .st path { fill: var(--st); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s; cursor: pointer; }
.map-card .st:hover path, .map-card .st:focus-visible path { fill: #FFB766; stroke: #DF7D15; stroke-width: 2.5; }
.map-card .st[aria-current="true"] path { fill: #FF9E45; stroke: #DF7D15; stroke-width: 2.5; }
.map-card .st:focus { outline: none; }
.map-card .st:focus-visible path { stroke: var(--text); stroke-width: 3; }
.map-card .lbl { pointer-events: none; }
.map-card .lbl .shield { fill: url(#shield-g); stroke: #2D587F; stroke-width: 1.5; stroke-linejoin: round; }
.map-card .lbl.sm .shield { transform: scale(.78); }
.map-card .lbl text { font-family: var(--font); text-anchor: middle; fill: #173454; }
.map-card .lbl .cd { font-size: 12px; font-weight: 800; dominant-baseline: middle; letter-spacing: .02em; }
.map-card .lbl.sm .cd { font-size: 10px; }
.map-card .lbl .nm { font-size: 12.5px; font-weight: 700; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; stroke-linejoin: round; }
.map-card .lbl.sel .shield { fill: #173454; stroke: #fff; }
.map-card .lbl.sel .cd { fill: #fff; }
@media (max-width: 520px) { .map-card .lbl .nm { display: none; } }
.map-hero { text-align: center; max-width: 680px; margin: 0 auto 24px; }
.map-hero .eyebrow { color: #C2650F; }
.map-hero h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; margin: 4px 0 8px; }
.state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
@media (min-width: 560px) { .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.state-grid a { display: block; font-size: .85rem; font-weight: 600; text-decoration: none; color: #264C73; background: #F3F8FE; border-radius: 9px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .15s; }
.state-grid a:hover, .state-grid a:focus-visible { background: #FFEDD2; color: #173454; }
.panel-sub { font-size: 1.05rem; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.map-source { font-size: .72rem; color: var(--muted); margin: 8px 0 0; }
.map-source a { color: var(--muted); }
.state-panel { padding: 18px; min-height: 300px; }
@media (min-width: 720px) { .state-panel { padding: 24px; } }
.state-panel h2 { margin: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--bg); }
.seg button { min-height: 40px; min-width: 56px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--primary-ink); box-shadow: 0 1px 3px rgba(23, 43, 77, .12); }
.hol-cols { columns: 2 220px; column-gap: 20px; list-style: none; padding: 0; margin: 14px 0; font-size: .9rem; }
.hol-cols li { break-inside: avoid; display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.hol-cols li b { min-width: 7.2em; font-variant-numeric: tabular-nums; color: var(--primary-ink); }
.hol-cols li.r b { color: var(--amber-ink); }
.hol-cols li.we { color: var(--muted); }

/* Kompakte Startseite: zuerst Bundesland wählen */
.hero-compact { padding: 22px 0 32px; background: linear-gradient(180deg, #F5F9FF, var(--bg)); }
.hero-compact .map-hero { margin-bottom: 14px; }
.hero-compact h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.04em; margin: 2px 0 6px; }
.hero-compact .map-hero p { margin: 0; }
@media (min-width: 980px) { .hero-compact .map-card svg { max-height: min(640px, 74vh); } }
.calc-band { border-top: 1px solid var(--line); }
.calc-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.03em; margin: 2px 0 6px; }

/* Schulferien */
.sw.fer, .cal .fer { background: #F3E8FF; color: #6B21A8; box-shadow: inset 0 -3px 0 #C084FC; }
.cal .fer.wkd { background: #F6F0FB; color: #7E5A9B; }
.wall .fer { background: #F3E8FF; color: #6B21A8; }
.ferien-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #fff; border: 1px solid #E6DAF5; border-radius: 16px; padding: 10px 14px; margin: 0 auto 16px; max-width: 980px; box-shadow: 0 6px 18px rgba(107, 33, 168, .05); }
.ferien-now p { margin: 0; }
.fn-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fn-title .dot { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; flex: none; }
.fn-title .dot.on { background: #A855F7; box-shadow: 0 0 0 4px #F3E8FF; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fn-next { font-size: .88rem; color: var(--muted); }
.fer-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #F3E8FF; color: #581C87; text-decoration: none; font-size: .85rem; }
.fer-chip small { color: #7E5A9B; }
.fer-chip:hover, .fer-chip:focus-visible { background: #E9D5FF; }
.fn-next .fer-chip { padding: 1px 8px; font-size: .8rem; }
.fer-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.fer-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 12px; border-radius: 10px; background: #FAF5FF; border-left: 4px solid #C084FC; }
.fer-list li.one { background: var(--bg); border-left-color: #E2D3F3; font-size: .9rem; }
.fer-list small { color: var(--muted); }
.fer-table td, .fer-table th { white-space: nowrap; font-size: .88rem; vertical-align: top; }
.fer-table td.small { white-space: normal; min-width: 180px; }
.fer-table tbody th { text-transform: none; letter-spacing: 0; font-size: .92rem; }
.fer-table tbody th a { text-decoration: none; }
@media (max-width: 600px) { .ferien-now { padding: 9px 12px; gap: 6px; } .fn-title { font-size: .92rem; } .fn-next { font-size: .82rem; } .hero-compact { padding-top: 14px; } }
