/* zeiterfassung-apps.de — Editorial-Design (Attio-Qualitätslatte, 2026-07)
   Graustufen: Text #141414 · Sekundär #6b7280 · Hairlines #ececf0 · weißer Grund
   EIN Akzent: Waldgrün #0f7a4d · Serif-Display (Georgia/ui-serif) + Sans-Fließtext
   Hairline-Karten Radius 12px · Kapitälchen-Labels · keine externen Assets */

:root {
  --ink: #141414;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #ececf0;
  --bg: #ffffff;
  --wash: #fafafa;
  --accent: #0f7a4d;
  --accent-dark: #0b5c3a;
  --r: 12px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Topbar: luftig, weiß, Hairline unten ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.tb-inner {
  max-width: 1120px; margin: 0 auto;
  min-height: 68px;
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif);
  font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand svg { flex: none; }
.brand:hover { color: var(--accent); }

.topnav { display: flex; flex-wrap: wrap; gap: .15rem; margin-left: auto; }
.topnav a {
  color: var(--muted); text-decoration: none;
  font-size: .74rem; font-weight: 550;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .5rem .7rem; border-radius: 6px;
}
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.btn-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: #fff;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  padding: .55rem 1.15rem; border-radius: 8px; white-space: nowrap;
}
.btn-cta:hover { background: #000; }

/* ---------- Layout: schmale Lesespalte, viel Weißraum ---------- */

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 7rem;
}

.crumbs {
  font-size: .8rem;
  color: var(--faint);
  margin: 1.6rem 0 0;
}
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Artikel-Kopf ---------- */

.kicker {
  font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin: 3.5rem 0 0;
}
.crumbs + article .kicker, .crumbs ~ article .kicker { margin-top: 2.2rem; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: .9rem 0 1.1rem;
}

.standfirst {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.byline {
  font-size: .8rem;
  color: var(--faint);
  letter-spacing: .02em;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin: 0 0 2.4rem;
}
.byline strong { color: var(--muted); font-weight: 600; }

/* ---------- Fließtext ---------- */

article h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 4rem 0 .9rem;
}

article h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 2.2rem 0 .5rem;
}

p { margin: .95rem 0; }
strong { color: var(--ink); font-weight: 650; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #b5d6c6; }
a:hover { color: var(--accent-dark); text-decoration-color: var(--accent-dark); }

ul, ol { padding-left: 1.35rem; }
li { margin: .5rem 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3.5rem 0; }

/* .dropcap bewusst ohne Sonderstil */

/* ---------- Answer-Panel: ruhige Hairline-Karte ---------- */

.answer {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin: 1.6rem 0 2rem;
}
.answer p { margin: .5rem 0; }

/* ---------- Verdict: Hairline-Karte mit Kapitälchen-Label ---------- */

.verdict {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.verdict-title {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.verdict p { margin: .5rem 0; }

/* ---------- Pull-Quote: Serif, Hairline links ---------- */

.pullquote {
  border-left: 2px solid var(--accent);
  padding: .35rem 0 .35rem 1.5rem;
  margin: 2.6rem 0;
}
.pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.pullquote cite {
  display: block; margin-top: .7rem;
  font-style: normal; font-size: .8rem; color: var(--faint);
}

/* ---------- Ranking-Karten: Hairlines, Serif-Ziffern ---------- */

.rank {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
}
.rank.winner { border-color: #cfd3d9; box-shadow: 0 0 0 1px #cfd3d9; }

.rank-head { display: flex; align-items: baseline; gap: 1rem; }

.rank-num {
  flex: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.rank.winner .rank-num { color: var(--accent); }

.rank-head h3 { margin: 0; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.25; }

.rank-claim {
  display: block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: .35rem;
}

.fit {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
  margin: 1rem 0 .7rem;
}
.fit strong { color: var(--ink); font-weight: 600; }

/* ---------- Tabellen: nur horizontale Hairlines ---------- */

.tablewrap { overflow-x: auto; margin: 1.75rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: .9rem;
  line-height: 1.5;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 .7rem;
}

th {
  text-align: left;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid #d9dce1;
  padding: .5rem .85rem .5rem 0;
  vertical-align: bottom;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--line);
  padding: .65rem .85rem .65rem 0;
  vertical-align: top;
}
th:last-child, td:last-child { padding-right: 0; }

tr.hl td { font-weight: 550; color: var(--ink); }
tr.hl td:first-child { color: var(--accent); }

.note {
  font-size: .82rem;
  color: var(--muted);
  margin: .5rem 0 1rem;
}

/* ---------- FAQ: ruhiges Aufklapp-Element mit Hairline-Trennern ---------- */

.faq { margin-top: 1rem; }
.faq h2 { margin-bottom: .6rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: 1rem; font-weight: 550;
  color: var(--ink);
  padding: 1.05rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--faint);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "–"; color: var(--accent); }
.faq-item summary:hover { color: var(--accent-dark); }

.faq-body { padding: 0 1.75rem 1.15rem 0; }
.faq-body p { margin: 0; color: var(--muted); }
.faq-body a { color: var(--accent); }

/* ---------- Download-Box / Buttons ---------- */

.download {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem 1.75rem;
  margin: 2rem 0;
}
.download svg { flex: none; }
.download p { margin: .3rem 0; }
.download .note { margin: .2rem 0 0; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding: .65rem 1.35rem;
  border-radius: 8px;
  margin-top: .55rem;
}
.btn:hover { background: #000; color: #fff; }

/* ---------- Glossar ---------- */

dl.glossar { margin: 1.6rem 0; }
dl.glossar dt {
  font-weight: 650;
  color: var(--ink);
  font-size: 1.05rem;
  margin: 1.4rem 0 .2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
dl.glossar dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
dl.glossar dd { margin: 0; color: var(--muted); }

/* ---------- Quellen ---------- */

.sources {
  font-size: .84rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 1.3rem;
}
.sources h2 {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
}
.sources ul { padding-left: 1.15rem; }
.sources li { margin: .4rem 0; overflow-wrap: anywhere; }
.sources a { color: var(--muted); text-decoration-color: var(--line); }
.sources a:hover { color: var(--accent); }

/* ---------- Steckbrief ---------- */

.facts td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Footer: weiß, Hairline oben, Kapitälchen-Titel ---------- */

.site-footer {
  margin-top: 7rem;
  border-top: 1px solid var(--line);
}

.footgrid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  font-size: .88rem;
}

.foot-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .8rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

.foot-about { color: var(--muted); }
.foot-about p { margin: .2rem 0; }

.foot-legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2.2rem;
  font-size: .78rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

/* ---------- 404 ---------- */

.err-num {
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 600;
  color: var(--line);
  line-height: 1;
  margin: 3.5rem 0 .5rem;
  letter-spacing: -0.02em;
}

/* ---------- Stat-Tiles: Hairline-Karten, Serif-Ziffern ---------- */

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.8rem, 1fr));
  gap: .9rem;
  margin: 1.75rem 0 1rem;
}

.stat-tile {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem 1.35rem 1.1rem;
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-cap {
  display: block;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: .45rem;
}

.stat-tile.dark { background: var(--ink); border-color: var(--ink); }
.stat-tile.dark .stat-num { color: #fff; }
.stat-tile.dark .stat-cap { color: #a8adb5; }

/* ---------- Statbars ---------- */

.statbars { margin: 1.75rem 0 1.4rem; }

.sb-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 13rem) 1fr auto;
  align-items: center;
  gap: .85rem;
  margin: .6rem 0;
}

.sb-label {
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

.sb-track {
  display: block;
  height: 6px;
  background: #f2f3f5;
  border-radius: 999px;
  overflow: hidden;
}

.sb-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #c8ccd2;
}

.sb-fill.main { background: var(--accent); }

.sb-val {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sb-src {
  font-size: .78rem;
  color: var(--faint);
  margin: .75rem 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .tb-inner { gap: .6rem; }
  .topnav { order: 3; width: 100%; margin-left: 0; }
  .btn-cta { margin-left: auto; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  h1 { font-size: 2rem; }
  .standfirst { font-size: 1.1rem; }
  article h2 { font-size: 1.45rem; }
  .rank-head h3 { font-size: 1.18rem; }
  .answer, .verdict, .rank, .download { padding: 1.2rem 1.3rem; }
  .download { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .sb-row { grid-template-columns: 1fr auto; row-gap: .25rem; }
  .sb-label { grid-column: 1 / -1; margin-bottom: -0.15rem; }
  .stat-tiles { grid-template-columns: repeat(auto-fit, minmax(7.8rem, 1fr)); }
}

@media print {
  .topbar, .site-footer { display: none; }
}

/* ---------- Blog: abgerundete Teaser-Karten (analog .rank) ---------- */

.blog-list {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 760px) { .blog-list { grid-template-columns: 1fr; } }

.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin: 0;
}
.blog-card:hover { border-color: #cfd3d9; }

.blog-card h2 {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 .4rem;
}
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent); }

.blog-meta {
  font-size: .78rem;
  color: var(--faint);
  letter-spacing: .02em;
  margin: 0 0 .55rem;
}
.blog-meta strong { color: var(--muted); font-weight: 600; }

.blog-teaser {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 .8rem;
}

.blog-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.blog-more:hover { color: var(--accent-dark); text-decoration: underline; }

@media (max-width: 720px) {
  .blog-card { padding: 1.2rem 1.3rem; }
}
