/* dienstplan-apps.de — nüchternes Vergleichsdesign, Akzent Warm-Amber. Stand Juli 2026 */

:root {
  --ink: #141414;
  --body: #2b2b2e;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #ececf0;
  --bg-soft: #fafafa;
  --accent: #c2570b;
  --accent-dark: #a04708;
  --white: #ffffff;
  --shadow: none;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; font-weight: 700; margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 4rem 0 1rem; }
h3 { font-size: 1.17rem; margin: 2.2rem 0 .6rem; letter-spacing: -0.01em; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1.1rem 1.35rem; }
li { margin-bottom: .4rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
strong { color: var(--ink); font-weight: 650; }
em { color: inherit; }

/* ---------- Header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-icon { width: 26px; height: 26px; flex: none; }
.brand-name { font-weight: 650; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-badge {
  font-size: .68rem; font-weight: 550; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); border: 1px solid var(--line); background: var(--white);
  padding: .16rem .55rem; border-radius: 999px; white-space: nowrap;
}
.main-nav { display: flex; flex-wrap: wrap; gap: .1rem; font-size: .92rem; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  padding: .4rem .65rem; border-radius: 6px;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3rem; }
.hero .lead { font-size: 1.17rem; color: var(--muted); margin-bottom: 0; }
.kicker {
  display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .09em; color: var(--accent); margin-bottom: 1rem;
}

/* Meta-Zeile unter dem Hero-Lead (ehem. Badge-Leiste) */
.badge-bar { display: flex; flex-wrap: wrap; gap: .3rem 0; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.badge-bar li {
  display: inline-flex; align-items: center; margin: 0;
  font-size: .88rem; font-weight: 500; color: var(--muted);
}
.badge-bar li + li::before { content: "\00B7"; margin: 0 .65rem; color: var(--faint); }

/* Kurz-Fazit-Box */
.verdict-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 2.2rem 0 0;
  }
.verdict-box .verdict-label {
  display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); 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: 2px solid var(--accent);
  border-radius: var(--radius); background: var(--white);
  padding: 1.1rem 1.3rem; margin: 1.4rem 0 1.8rem;
}
.answer-block p { margin: 0; color: var(--ink); }
.answer-block p + p { margin-top: .6rem; }

/* Info-/Warn-Boxen */
.info-box, .warn-box {
  background: var(--bg-soft); border: 1px solid var(--line); 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: 650; color: var(--ink); margin-bottom: .3rem; }

/* Meta-Zeile */
.meta-line {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .86rem; color: var(--muted); margin: 1.2rem 0 0;
}
.meta-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); flex: none; }

/* Breadcrumbs */
.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 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: var(--radius); font-weight: 550; font-size: .95rem;
  padding: .62rem 1.15rem; 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-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

/* ---------- Score & Auszeichnung ---------- */
.score-pill {
  display: inline-flex; align-items: baseline; gap: .35rem;
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  border-radius: 999px; padding: .26rem .8rem; font-size: .82rem; font-weight: 500;
  white-space: nowrap;
}
.score-pill .num { font-size: .95rem; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.score-pill.is-winner { border-color: var(--accent); color: var(--accent-dark); }
.score-pill.is-winner .num { color: var(--accent-dark); }
.award-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--accent-dark); font-size: .8rem; font-weight: 600;
  letter-spacing: .01em; white-space: nowrap;
}
.award-badge svg { width: 12px; height: 12px; opacity: .85; }
.tag {
  display: inline-block; border: 1px solid var(--line); background: var(--white);
  color: var(--muted); border-radius: 999px; padding: .14rem .6rem;
  font-size: .78rem; font-weight: 500; white-space: nowrap;
}

/* ---------- Ranking-Cards ---------- */
.rank-list { list-style: none; margin: 2rem 0; padding: 0; }
.rank-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem 1.6rem; margin: 0 0 1.1rem;
}
.rank-card.is-winner { border-color: var(--accent); }
.rank-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.rank-num {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); background: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums;
}
.rank-card.is-winner .rank-num { border-color: var(--accent); color: var(--accent-dark); }
.rank-title { flex: 1 1 240px; min-width: 0; }
.rank-title h3 { margin: 0 0 .2rem; font-size: 1.22rem; }
.rank-title .fit { font-size: .88rem; color: var(--muted); margin: 0; max-width: none; }
.rank-title .fit strong { color: var(--ink); font-weight: 600; }
.rank-badges { display: flex; flex-wrap: wrap; gap: .45rem .8rem; align-items: center; }
.rank-card > p { margin-bottom: 1rem; }

/* Pro/Contra-Spalten, nüchtern */
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 1.1rem 0; }
.procon .pc-title { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; display: block; }
.procon ul { list-style: none; margin: 0; padding: 0; }
.procon li { position: relative; padding-left: 1.15rem; font-size: .93rem; margin-bottom: .4rem; }
.procon li:last-child { margin-bottom: 0; }
.procon li::before { position: absolute; left: 0; top: 0; font-weight: 650; }
.procon .pros li::before { content: "+"; color: var(--accent); }
.procon .cons li::before { content: "\2013"; color: var(--faint); }

/* Fakten-Zeile unter der Card */
.rank-facts { display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1.1rem; }
.rank-facts b { color: var(--ink); font-weight: 600; }

/* Feature-Checkliste */
.check-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: .95em; height: .95em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.2 4.2 8.8-9.4' stroke='%23c2570b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
}

/* ---------- Tabellen ---------- */
.table-scroll { overflow-x: auto; margin: 1.5rem 0 1.8rem; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; background: var(--white); }
caption { caption-side: top; text-align: left; font-weight: 600; color: var(--ink); padding: 0 0 .7rem; font-size: .95rem; letter-spacing: -0.01em; }
th, td { padding: .7rem .9rem .7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th:last-child, td:last-child { padding-right: 0; }
thead th {
  color: var(--muted); font-weight: 550; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td { border-bottom: none; }
tbody th { font-weight: 600; color: var(--ink); background: inherit; }
td.yes { color: var(--ink); font-weight: 600; }
td.no { color: var(--faint); }
.tbl-note { font-size: .84rem; color: var(--muted); margin-top: -1rem; margin-bottom: 1.6rem; }
tr.is-top td:first-child { box-shadow: inset 2px 0 0 var(--accent); padding-left: .9rem; }

/* ---------- FAQ (ruhige Aufklapp-Liste mit Hairline-Trennern) ---------- */
.faq { margin: 2rem 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: 1.05rem 0; font-weight: 550; color: var(--ink); font-size: 1rem;
}
.faq summary:hover { color: var(--accent-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .8rem; height: .8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%236b7280' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain; transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq-body { padding: 0 0 1.15rem; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Glossar ---------- */
.glossar dl { margin: 1.4rem 0; }
.glossar dt {
  font-weight: 650; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em;
  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: .35rem 0 0; color: var(--body); }

/* ---------- Download-Box ---------- */
.download {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.8rem 0; box-shadow: var(--shadow);
}
.download p { margin: 0 0 .7rem; }
.download p:last-of-type { margin-bottom: 0; }

/* ---------- Empfehlungsblock ---------- */
.reco-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin: 2rem 0; box-shadow: var(--shadow);
}
.reco-block .reco-head { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.reco-block h3 { margin: 0; }
.reco-block p:last-of-type { margin-bottom: 0; }

/* ---------- Quellen ---------- */
.sources { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4rem; padding-top: 1.4rem; }
.sources h2, .sources h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 .7rem; }
.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 / Artikel ---------- */
main { padding: 1.5rem 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(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.mini-card h3, .mini-card h4 { margin: 0 0 .4rem; font-size: 1rem; }
.mini-card p { margin: 0; font-size: .91rem; color: var(--muted); }
.step-list { counter-reset: step; list-style: none; margin: 1.6rem 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);
  position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.step-list > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .25rem; width: 1px; background: var(--line);
}
.step-list h3 { margin: .15rem 0 .35rem; font-size: 1.05rem; }
.step-list p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--muted); margin-top: 5rem; padding: 3.5rem 0 2.5rem; font-size: .9rem; }
.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.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.foot-grid h4 { color: var(--ink); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-about p { margin-bottom: .6rem; color: var(--muted); max-width: 34ch; }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--ink); font-size: .98rem; margin-bottom: .8rem; }
.foot-brand svg { width: 22px; height: 22px; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-items: center; color: var(--faint); font-size: .84rem; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 4rem 1rem; }
.page-404 h1 { font-size: 3rem; }
.page-404 p { margin-left: auto; margin-right: auto; }

/* ---------- Statistik-Kacheln ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 1rem; margin: 1.6rem 0 .9rem; }
.stat-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
}
.stat-tile .stat-num {
  display: block; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums;
}
.stat-tile .stat-cap { display: block; font-size: .83rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }
.stat-tile.is-accent .stat-num { color: var(--accent); }
.stat-src { font-size: .8rem; color: var(--faint); margin: 0 0 1.6rem; }

/* ---------- Statistik-Balken ---------- */
.statbars {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.35rem 1.05rem; margin: 1.6rem 0 1.8rem;
}
.statbars .statbars-title { font-weight: 600; color: var(--ink); margin: 0 0 1rem; font-size: .95rem; letter-spacing: -0.01em; }
.statbar { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.statbar:last-of-type { margin-bottom: 0; }
.statbar .sb-label { font-size: .87rem; color: var(--muted); line-height: 1.35; }
.statbar .sb-track { display: block; background: var(--bg-soft); border-radius: 3px; height: 8px; overflow: hidden; }
.statbar .sb-fill { display: block; height: 100%; border-radius: 3px; background: #d5d5da; }
.statbar .sb-value { font-size: .87rem; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.statbar.is-main .sb-fill { background: var(--accent); }
.statbar.is-main .sb-label { color: var(--ink); font-weight: 550; }
.statbars .statbars-src { font-size: .8rem; color: var(--faint); margin: .9rem 0 0; border-top: 1px solid var(--line); padding-top: .7rem; }
@media (max-width: 560px) {
  .statbar { grid-template-columns: 1fr auto; row-gap: .3rem; }
  .statbar .sb-label { order: 1; }
  .statbar .sb-value { order: 2; }
  .statbar .sb-track { order: 3; grid-column: 1 / -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hero { padding: 3rem 0 2.2rem; }
  h2 { margin-top: 3rem; }
  .procon { grid-template-columns: 1fr; gap: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .head-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .rank-card { padding: 1.2rem 1.1rem; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .brand-badge { display: none; }
}
@media print {
  .site-head, .site-foot { display: none; }
}

/* ---------- Blog (Ergänzung 2026-07-18, nur neue Klassen) ---------- */
.blog-list { list-style: none; margin: 2rem 0 2.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.blog-list > li { margin: 0; }
.blog-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.35rem 1.4rem; height: 100%;
  display: flex; flex-direction: column;
}
.blog-card .blog-meta { font-size: .8rem; color: var(--faint); margin: 0 0 .5rem; }
.blog-card h2 { font-size: 1.12rem; margin: 0 0 .5rem; line-height: 1.32; letter-spacing: -0.01em; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent-dark); }
.blog-card .blog-teaser { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; max-width: none; }
.blog-card .blog-more { margin-top: auto; font-size: .9rem; font-weight: 550; }
.blog-backlink { font-size: .9rem; margin: 2.5rem 0 0; }
@media (max-width: 700px) {
  .blog-list { grid-template-columns: 1fr; }
}
