/* schichtplaner-vergleich.de — Planner-Grid. Stand Juli 2026.
   Weißer Grund, dezentes Karo-Raster (CSS-Gradient) in Hero und Panels,
   Ink #18181b, Akzent Beere #be185d, Monospace-Akzente für Schichtkürzel. */

:root {
  --ink: #18181b;
  --body: #27272a;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --hair: #f4f4f5;
  --paper: #ffffff;
  --panel: #fafafa;
  --berry: #be185d;
  --berry-dark: #9d174d;
  --berry-soft: #fdf2f8;
  --grid-line: rgba(24, 24, 27, 0.055);
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { vertical-align: middle; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.4rem; }
.wrap-narrow { max-width: 1000px; margin: 0 auto; padding: 0 1.4rem; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.05rem, 5.4vw, 3.15rem); line-height: 1.06; margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); margin: 3.6rem 0 .9rem; }
h3 { font-size: 1.16rem; margin: 2.1rem 0 .55rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1.1rem 1.3rem; }
li { margin-bottom: .4rem; }
a { color: var(--berry); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--berry-dark); }
strong { color: var(--ink); font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .92em; }

/* ---------- Kopf: weiß, 1px-Linie, Raster-Wortmarke ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .5rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-icon { width: 24px; height: 24px; flex: none; }
.brand-name { font-weight: 750; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--berry); }
.main-nav { display: flex; flex-wrap: wrap; gap: .05rem; font-size: .92rem; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: .35rem .6rem; border-radius: var(--radius); }
.main-nav a:hover { color: var(--ink); background: var(--hair); }
.main-nav a[aria-current="page"] { color: var(--berry); font-weight: 700; }

/* ---------- Hero: Karo-Raster als Signatur-Motiv ---------- */
.hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  border-bottom: 1px solid var(--ink);
  padding: 3.9rem 0 3.1rem;
}
.hero .lead { font-size: 1.16rem; line-height: 1.55; color: var(--body); max-width: 62ch; margin-bottom: 0; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--berry); background: var(--paper);
  border: 1px solid var(--berry); border-radius: var(--radius);
  padding: .22rem .6rem; margin-bottom: 1.15rem;
}
.badge-bar { display: flex; flex-wrap: wrap; gap: .25rem 0; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.badge-bar li { display: inline-flex; align-items: center; margin: 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.badge-bar li + li::before { content: "\00B7"; margin: 0 .65rem; color: var(--faint); }

/* Kurz-Fazit im Hero */
.verdict-box {
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  border-left: 4px solid var(--berry);
  padding: 1.25rem 1.45rem; margin: 2.1rem 0 0; max-width: 860px;
}
.verdict-box .verdict-label {
  display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--berry); margin-bottom: .4rem;
}
.verdict-box p { margin: 0; color: var(--ink); font-size: 1.02rem; }

/* Answer-Block (AEO) */
.answer-block {
  border: 1px solid var(--line); border-left: 4px solid var(--ink);
  border-radius: var(--radius); background: var(--panel);
  padding: 1.1rem 1.3rem; margin: 1.5rem 0 1.9rem;
}
.answer-block p { margin: 0; color: var(--ink); }
.answer-block p + p { margin-top: .55rem; }
.answer-block .ab-label { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.answer-block ul { margin: .7rem 0 0 1.2rem; }
.answer-block li { margin-bottom: .32rem; color: var(--ink); }
.answer-block li:last-child { margin-bottom: 0; }

.info-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.25rem; margin: 1.4rem 0; }
.warn-box { background: var(--berry-soft); border: 1px solid #f9a8d4; border-radius: var(--radius); padding: 1.05rem 1.25rem; margin: 1.4rem 0; }
.info-box p:last-child, .warn-box p:last-child { margin-bottom: 0; }
.box-title { display: block; font-weight: 750; color: var(--ink); margin-bottom: .3rem; }

.meta-line { font-size: .86rem; color: var(--muted); margin: 1.2rem 0 0; }
.crumbs { font-size: .84rem; color: var(--muted); margin: 1.4rem auto .2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { margin: 0 .4rem; color: var(--faint); }

/* ---------- Buttons: eckig, werkzeughaft ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: var(--radius); font-weight: 700; font-size: .93rem;
  padding: .6rem 1.2rem; text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-berry { background: var(--berry); color: #fff; }
.btn-berry:hover { background: var(--berry-dark); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--hair); }
.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; }

/* ---------- Schicht-Chips (Monospace-Kürzel) ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.35em; padding: .12rem .42rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  border-radius: 3px; border: 1px solid transparent; white-space: nowrap;
}
.chip-f { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.chip-s { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.chip-n { background: #18181b; color: #fafafa; border-color: #18181b; }
.chip-x { background: var(--hair); color: var(--muted); border-color: var(--line); }
.chip-u { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.chip-legend { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin: .8rem 0 1.4rem; font-size: .88rem; color: var(--muted); align-items: center; }
.chip-legend span.lbl { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Wertung ---------- */
.score-pill {
  display: inline-flex; align-items: baseline; gap: .3rem;
  font-family: var(--mono); color: var(--muted); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .18rem .6rem; font-size: .8rem; font-weight: 500; white-space: nowrap;
}
.score-pill .num { font-size: .98rem; font-weight: 700; color: var(--ink); }
.score-pill.is-winner { border-color: var(--berry); background: var(--berry-soft); }
.score-pill.is-winner .num { color: var(--berry); }
.tag {
  display: inline-block; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); border-radius: var(--radius); padding: .1rem .55rem;
  font-size: .77rem; font-weight: 600; white-space: nowrap;
}

/* ---------- Ranking-Karten: eckig, 1px-Border, Raster-Panel für den Sieger ---------- */
.rank-list { list-style: none; margin: 2.3rem 0; padding: 0; }
.rank-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.35rem; margin: 0 0 1.35rem;
}
.rank-card.is-winner {
  border: 1px solid var(--ink); border-left: 4px solid var(--berry);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
}
.rank-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.rank-num {
  flex: none; width: 2.3rem; height: 2.3rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; margin-top: .1rem;
}
.rank-card.is-winner .rank-num { background: var(--berry); border-color: var(--berry); color: #fff; }
.rank-title { flex: 1 1 240px; min-width: 0; }
.rank-title h3 { margin: 0 0 .2rem; font-size: 1.3rem; }
.rank-title .fit { font-size: .9rem; color: var(--muted); margin: 0; }
.rank-title .fit strong { color: var(--ink); }
.rank-badges { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; }
.rank-card > p { margin-bottom: .95rem; }
.rank-shot { margin: .85rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper); }
.rank-shot img { display: block; width: 100%; height: auto;
  aspect-ratio: 24/10; object-fit: cover; object-position: top center; }
.rank-shot figcaption { font-family: var(--mono); font-size: .7rem; color: var(--muted);
  padding: .4rem .6rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .rank-shot img { aspect-ratio: 16/10; } }

.procon { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.05rem 0; }
.procon > div { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); padding: .9rem 1.05rem; }
.procon .pc-title { font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); margin-bottom: .45rem; display: block; }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { position: relative; padding-left: 1.2rem; font-size: .92rem; margin-bottom: .4rem; }
.procon li:last-child { margin-bottom: 0; }
.procon li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.procon .pros li::before { content: "+"; color: var(--berry); }
.procon .cons li::before { content: "\2013"; color: var(--faint); }

.rank-facts { display: flex; flex-wrap: wrap; gap: .5rem .55rem; font-size: .83rem; color: var(--muted); padding-top: 1rem; margin-top: 1rem; border-top: 1px dashed var(--line); }
.rank-facts span { display: inline-flex; align-items: baseline; gap: .3rem; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); padding: .25rem .7rem; }
.rank-facts b { color: var(--ink); font-weight: 700; }

.check-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; color: var(--berry); }

/* ---------- Tabellen: Planungsraster ---------- */
.table-scroll { overflow-x: auto; margin: 1.4rem 0 1.9rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; background: var(--paper); }
caption { caption-side: top; text-align: left; font-weight: 750; color: var(--ink); padding: .8rem 1rem .55rem; font-size: .98rem; }
th, td { padding: .58rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
thead th {
  color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
  background: var(--panel); border-bottom: 1px solid var(--ink);
}
tbody tr:last-child td { border-bottom: none; }
tbody th { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--hair); background: var(--paper); }
tbody tr:hover td { background: var(--panel); }
td.yes { color: var(--ink); font-weight: 700; }
td.no { color: var(--faint); }
.tbl-note { font-size: .83rem; color: var(--muted); margin: -1.1rem 0 1.6rem; }
tr.is-top td, tr.is-top th { background: var(--berry-soft); }
tr.is-top td:first-child, tr.is-top th:first-child { box-shadow: inset 3px 0 0 var(--berry); }
tr.is-top:hover td { background: var(--berry-soft); }

/* Rotations-Raster: zentrierte Chip-Zellen */
.rota td, .rota th { text-align: center; padding: .5rem .45rem; }
.rota td:first-child, .rota th:first-child, .rota tbody th { text-align: left; white-space: nowrap; }
.rota { min-width: 560px; }

/* ---------- FAQ ---------- */
.faq { margin: 1.8rem 0 2.4rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq summary:hover { color: var(--berry-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--berry); }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 0 1.1rem; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Glossar ---------- */
.glossar dt { font-weight: 750; color: var(--ink); font-size: 1.05rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.glossar dt:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.glossar dd { margin: .3rem 0 0; color: var(--body); }

/* ---------- Download ---------- */
.download {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--berry);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.8rem 0;
}
.download p { margin: 0 0 .65rem; }
.download p:last-of-type { margin-bottom: 0; }

/* ---------- Empfehlungsblock ---------- */
.reco-block {
  background: var(--paper); border: 1px solid var(--ink); border-left: 4px solid var(--berry);
  border-radius: var(--radius); padding: 1.35rem 1.5rem; margin: 2rem 0;
}
.reco-block .reco-head { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.reco-block h3 { margin: 0; }
.reco-block p:last-of-type { margin-bottom: 0; }

/* ---------- Quellen ---------- */
.sources { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4rem; padding-top: 1.4rem; }
.sources h2, .sources h3 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); font-weight: 700; margin: 0 0 .65rem; }
.sources ol { margin-left: 1.2rem; }
.sources li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--ink); }

/* ---------- Inhalt ---------- */
main { padding: 1.4rem 0 6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; }
.mini-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.mini-card h3, .mini-card h4 { margin: 0 0 .35rem; font-size: 1rem; }
.mini-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.mini-card .mc-code { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--berry); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .4rem; }

.step-list { counter-reset: step; list-style: none; margin: 1.7rem 0; padding: 0; }
.step-list > li { position: relative; padding: 0 0 1.5rem 3.1rem; margin: 0; }
.step-list > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .1rem; width: 2.15rem; height: 2.15rem;
  font-family: var(--mono); background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.step-list > li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.5rem; bottom: .25rem; width: 1px; background: var(--line); }
.step-list h3 { margin: .15rem 0 .3rem; font-size: 1.05rem; }
.step-list p:last-child { margin-bottom: 0; }

/* ---------- Statistik ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem 1.4rem; margin: 1.7rem 0 .9rem; }
.stat-tile { border-top: 3px solid var(--ink); padding: .55rem 0 .2rem; }
.stat-tile .stat-num { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.stat-tile .stat-cap { display: block; font-size: .83rem; color: var(--muted); margin-top: .3rem; line-height: 1.45; }
.stat-tile.is-accent { border-top-color: var(--berry); }
.stat-tile.is-accent .stat-num { color: var(--berry); }
.stat-src { font-size: .79rem; color: var(--faint); margin: 0 0 1.6rem; }

.statbars { margin: 1.7rem 0 1.9rem; }
.statbars .statbars-title { font-weight: 750; color: var(--ink); margin: 0 0 1rem; font-size: .98rem; }
.statbar { display: grid; grid-template-columns: minmax(120px, 230px) 1fr auto; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.statbar:last-of-type { margin-bottom: 0; }
.statbar .sb-label { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.statbar .sb-track { display: block; background: var(--hair); border-radius: 2px; height: 9px; overflow: hidden; }
.statbar .sb-fill { display: block; height: 100%; background: var(--faint); border-radius: 2px; }
.statbar.is-main .sb-fill { background: var(--berry); }
.statbar .sb-value { font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.statbars-src { font-size: .79rem; color: var(--faint); margin: .8rem 0 0; }

/* ---------- Fuß ---------- */
.site-foot { border-top: 1px solid var(--ink); background: var(--panel); color: var(--muted); margin-top: 4.5rem; padding: 3rem 0 2.2rem; font-size: .89rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.foot-grid h4 { font-family: var(--mono); color: var(--ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; margin-bottom: .7rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .4rem; }
.foot-about p { margin-bottom: .55rem; color: var(--muted); max-width: 36ch; }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; color: var(--ink); font-size: .98rem; margin-bottom: .7rem; }
.foot-brand svg { width: 20px; height: 20px; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; color: var(--faint); font-size: .82rem; }

.page-404 { text-align: center; padding: 4rem 1rem; }
.page-404 h1 { font-family: var(--mono); font-size: 3rem; }
.page-404 p { margin-left: auto; margin-right: auto; }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .procon { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 2.9rem 0 2.4rem; }
  .head-inner { justify-content: center; }
  .statbar { grid-template-columns: 1fr auto; }
  .statbar .sb-label { grid-column: 1 / -1; margin-bottom: .1rem; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
}
