/* zeiterfassung-check.de — Stylesheet */
:root {
  --primary: #0f2e4f;
  --primary-light: #1d4e89;
  --primary-soft: #eaf1f8;
  --accent: #d97706;
  --accent-dark: #b45309;
  --accent-deep: #9a4207;
  --accent-soft: #fef3e2;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --red: #b91c1c;
  --text: #1f2937;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 46, 79, .08), 0 4px 16px rgba(15, 46, 79, .06);
  --shadow-lg: 0 4px 12px rgba(15, 46, 79, .10), 0 12px 32px rgba(15, 46, 79, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
}
img, svg { max-width: 100%; }
a { color: var(--primary-light); }
a:hover { color: var(--primary); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 800px; }

h1, h2, h3, h4 { color: var(--primary); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; }
h4 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.35rem; }
li { margin-bottom: .4rem; }

.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex-shrink: 0; }

/* ── Header ─────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.site-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.12rem; color: var(--primary); text-decoration: none;
  white-space: nowrap;
}
.site-logo .logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.site-logo .logo-mark svg { width: 20px; height: 20px; }
.site-logo em { font-style: normal; color: var(--accent); }

.site-nav { display: flex; list-style: none; margin: 0; align-items: center; gap: .25rem; }
.site-nav > li { position: relative; }
.site-nav a {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .75rem; border-radius: 8px;
  text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500;
}
.site-nav > li > a:hover { background: var(--bg-soft); color: var(--primary); }
.nav-cta {
  background: var(--accent-dark); color: #fff !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-deep) !important; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: .4rem;
  display: none; z-index: 60;
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a { padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; display: block; }
.dropdown-menu a:hover { background: var(--primary-soft); }
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-arrow { width: .85em; height: .85em; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: .2s; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-header nav.open { display: block; }
  .site-nav { flex-direction: column; align-items: stretch; padding: .75rem 1rem; gap: 0; }
  .dropdown-menu { display: block; position: static; border: none; box-shadow: none; padding-left: 1rem; }
  .nav-cta { justify-content: center; margin-top: .5rem; }
}

/* ── Breadcrumb ─────────────────────────── */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumb {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin: 0; padding: .5rem 0; font-size: .85rem; color: var(--muted);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ── Hero ───────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; padding: 3.25rem 0 3rem;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero .hero-sub { font-size: 1.1rem; max-width: 700px; color: #d7e3f0; margin-bottom: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-bottom: 1.75rem; }
.hero-badge { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: #e8f0f8; }
.hero-badge .icon { color: #7fd1a7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .75rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-secondary:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary-light); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }

/* ── Sections ───────────────────────────── */
.section { padding: 3rem 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* ── Affiliate-Hinweis ──────────────────── */
.affiliate-note {
  background: var(--accent-soft); border-bottom: 1px solid #f3dfc0;
  font-size: .82rem; color: #7c5c1e; text-align: center; padding: .45rem .75rem;
}
.affiliate-note a { color: inherit; }

/* ── Karten / Grids ─────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; display: flex; align-items: center; gap: .5rem; }
.card .icon-lg { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-light); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .85rem; }
.card .icon-lg svg { width: 22px; height: 22px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.card .more { color: var(--primary-light); font-weight: 600; font-size: .92rem; }

/* ── Ranking-Karten (Startseite) ────────── */
.rank-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; position: relative;
  display: flex; flex-direction: column; gap: .75rem;
}
.rank-card--featured { border: 2px solid var(--accent-dark); box-shadow: var(--shadow-lg); }
.rank-badge {
  position: absolute; top: -12px; left: 1.25rem;
  background: var(--accent-dark); color: #fff; font-size: .78rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; letter-spacing: .02em;
}
.rank-badge--alt { background: var(--primary-light); }
.rank-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.rank-pos { font-size: .85rem; color: var(--muted); font-weight: 600; }
.rank-card h3 { margin: 0; font-size: 1.25rem; }
.rank-price { font-weight: 700; color: var(--primary); }
.rank-price small { font-weight: 400; color: var(--muted); }
.rank-note { font-size: .95rem; color: var(--text); }
.rank-facts { list-style: none; margin: 0; display: grid; gap: .35rem; font-size: .92rem; }
.rank-facts li { display: flex; gap: .5rem; align-items: flex-start; margin: 0; }
.rank-facts .icon { color: var(--green); margin-top: .18em; }
.rank-facts .icon--minus { color: var(--muted); }
.rank-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }

/* Sterne */
.stars { color: #eab308; font-size: 1.02rem; letter-spacing: .06em; white-space: nowrap; }
.stars .score { color: var(--muted); font-size: .85rem; margin-left: .35rem; letter-spacing: 0; }

/* ── Tabellen ───────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
.table-hint { font-size: .82rem; color: var(--muted); margin: -1rem 0 1rem; display: none; }
@media (max-width: 760px) { .table-hint { display: block; } }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: #fff; }
th, td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--primary); color: #fff; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }
td .yes { color: var(--green); font-weight: 700; }
td .no { color: var(--muted); }
table a { font-weight: 600; }

/* ── Callouts / Boxen ───────────────────── */
.callout {
  border-radius: var(--radius); padding: 1.15rem 1.35rem; margin: 1.5rem 0;
  border: 1px solid var(--border); background: var(--bg-soft);
}
.callout > p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.callout--tip { background: var(--green-soft); border-color: #c6ecd4; }
.callout--tip .callout-title { color: var(--green); }
.callout--warn { background: var(--accent-soft); border-color: #f3dfc0; }
.callout--warn .callout-title { color: var(--accent-dark); }
.callout--info { background: var(--primary-soft); border-color: #cfdfef; }

/* ── Pro/Contra ─────────────────────────── */
.pro-contra { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.pro-box, .contra-box { border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.pro-box { background: var(--green-soft); border: 1px solid #c6ecd4; }
.contra-box { background: #fef2f2; border: 1px solid #f4d4d4; }
.pro-box h3, .contra-box h3 { margin-top: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.pro-box h3 { color: var(--green); }
.contra-box h3 { color: var(--red); }
.pro-box ul, .contra-box ul { list-style: none; margin-left: 0; margin-bottom: 0; }
.pro-box li, .contra-box li { display: flex; gap: .55rem; align-items: flex-start; }
.pro-box .icon { color: var(--green); margin-top: .2em; }
.contra-box .icon { color: var(--red); margin-top: .2em; }
.pro-box li::before { content: "✓"; color: var(--green); font-weight: 700; }
.contra-box li::before { content: "✗"; color: var(--red); font-weight: 700; }
.pro-box li:has(.icon)::before, .contra-box li:has(.icon)::before { content: none; }
.rank-facts li::before { content: "✓"; color: var(--green); font-weight: 700; }
.rank-facts li.minus::before { content: "–"; color: var(--muted); }
.rank-facts li:has(.icon)::before { content: none; }

/* ── Produkt-Highlight (CTA-Box) ────────── */
.product-highlight {
  display: grid; gap: 1.25rem; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #e8f0f8; border-radius: var(--radius); padding: 1.75rem; margin: 2rem 0;
}
.product-highlight h3 { color: #fff; margin: 0 0 .5rem; }
.product-highlight p { margin-bottom: .75rem; }
.product-highlight .btn-primary { align-self: start; }
.product-highlight .ph-price { font-size: 1.3rem; font-weight: 800; color: #fff; }
.product-highlight .ph-price small { font-size: .85rem; font-weight: 400; color: #b9cde0; }

/* ── Fazit-Box ──────────────────────────── */
.verdict-box {
  border: 2px solid var(--primary-light); border-radius: var(--radius);
  padding: 1.5rem; margin: 2rem 0; background: var(--primary-soft);
}
.verdict-box h2, .verdict-box h3 { margin-top: 0; }
.verdict-box .stars { font-size: 1.15rem; }

/* ── FAQ ────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .75rem; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; color: var(--primary);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 1.1rem 1rem; }
.faq-item .faq-body > p:last-child { margin-bottom: 0; }

/* ── Info-Meta (Stand/Autor) ────────────── */
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }

/* ── Steckbrief ─────────────────────────── */
.factsheet { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.factsheet table { font-size: .95rem; }
.factsheet th { background: var(--bg-soft); color: var(--primary); width: 38%; font-weight: 600; position: static; }

/* ── Footer ─────────────────────────────── */
.site-footer { background: var(--primary); color: #c3d4e4; margin-top: 3rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #fff; text-decoration: none; font-size: 1.05rem; margin-bottom: .75rem; }
.footer-logo .logo-mark { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
.footer-logo .logo-mark svg { width: 16px; height: 16px; }
.footer-about p { font-size: .84rem; color: #9db4ca; }
.footer-nav .footer-head { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 .75rem; }
.footer-nav ul { list-style: none; margin: 0; }
.footer-nav li { margin-bottom: .45rem; }
.footer-nav a { color: #c3d4e4; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding: 1.25rem 0 1.75rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #9db4ca;
}
.footer-bottom a { color: #c3d4e4; }
.footer-disclaimer { font-size: .78rem; color: #8aa2ba; padding-bottom: 1.5rem; max-width: 900px; }

/* ── Artikel-Layout ─────────────────────── */
.article-body { max-width: 800px; }
.article-body img { border-radius: var(--radius); }
.lead { font-size: 1.12rem; color: var(--text); }

/* ── Sonstiges ──────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--primary-soft); color: var(--primary-light); font-size: .8rem; font-weight: 600; padding: .18rem .6rem; border-radius: 999px; }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--amber { background: var(--accent-soft); color: var(--accent-dark); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.anchor-nav a { font-size: .88rem; background: var(--bg-soft); border: 1px solid var(--border); padding: .6rem .95rem; border-radius: 999px; text-decoration: none; color: var(--text); }
.anchor-nav a:hover { border-color: var(--primary-light); color: var(--primary); }
.price-stand { font-size: .82rem; color: var(--muted); }

/* Finder / Quiz */
.finder-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2rem; max-width: 720px; margin: 0 auto; }
.finder-progress { height: 6px; background: var(--border); border-radius: 999px; margin-bottom: 1.5rem; overflow: hidden; }
.finder-progress span { display: block; height: 100%; background: var(--accent-dark); border-radius: 999px; transition: width .3s; }
.finder-q h3 { margin-top: 0; }
.finder-options { display: grid; gap: .65rem; margin: 1.25rem 0; }
.finder-option {
  text-align: left; background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 10px;
  padding: .85rem 1.1rem; font-size: 1rem; cursor: pointer; font-family: inherit; color: var(--text);
  display: flex; gap: .65rem; align-items: center; transition: .15s;
}
.finder-option:hover { border-color: var(--primary-light); background: var(--primary-soft); }
.finder-result h3 { margin-top: 0; }
.finder-back { background: none; border: none; color: var(--muted); font-size: .85rem; cursor: pointer; padding: 0; font-family: inherit; }
.finder-back:hover { color: var(--primary); text-decoration: underline; }

/* ── Reduzierte Bewegung ────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Skip-Link ──────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: .6rem 1.1rem;
  border-radius: 0 0 10px 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Fokus sichtbar & konsistent ────────── */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary-light); outline-offset: 2px; border-radius: 6px;
}
