:root {
  --ink: #15233b;
  --muted: #5a6577;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e2e6ec;
  --brand: #0b6e69;
  --brand-dark: #08524e;
  --brand-soft: #e3f2f0;
  --accent: #f2b33d;
  --urgent: #b42318;
  --urgent-soft: #fdecea;
  --new: #1f6feb;
  --new-soft: #e7f0fd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(21, 35, 59, .06), 0 4px 14px rgba(21, 35, 59, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
.fine { font-size: .86rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

.preview-bar { background: var(--accent); color: #3a2a00; text-align: center; font-size: .9rem; padding: 6px 16px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-mark rect { fill: var(--brand); }
.logo-mark path { fill: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-niche { font-size: .72rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 650;
  padding: 12px 20px; border-radius: 10px; border: 2px solid var(--brand); transition: background .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-small { padding: 7px 14px; font-size: .92rem; white-space: nowrap; }
.btn-block { display: block; text-align: center; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.stats { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 2rem; line-height: 1.1; color: var(--brand); }
.stats span { color: var(--muted); font-size: .9rem; }
.stats .stats-updated { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }

/* Lists of tenders */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tender-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tender { overflow-wrap: anywhere; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.tender-title { margin: 8px 0 4px; font-size: 1.08rem; }
.tender-title a { color: var(--ink); text-decoration: none; }
.tender-title a:hover { color: var(--brand); text-decoration: underline; }
.tender-meta { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
.tender-excerpt { font-size: .95rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.tender-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.badge-urgent { background: var(--urgent-soft); color: var(--urgent); }
.badge-new { background: var(--new-soft); color: var(--new); }
.badge-muted { background: #eef0f3; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: .9rem; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--muted); }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; font-weight: 600; }

/* Regions */
.region-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.region-grid a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.region-grid a:hover { border-color: var(--brand); }
.region-grid strong { color: var(--brand); }
.region-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Content blocks */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps, .benefits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefits { grid-template-columns: repeat(4, 1fr); }
.steps li, .benefits li { display: flex; flex-direction: column; gap: 6px; }
.steps { counter-reset: step; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.steps span, .benefits span { color: var(--muted); }

.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sticky { position: sticky; top: 84px; }
.signup-box { background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.signup-box h2 { font-size: 1.2rem; }
.signup-box .btn { width: 100%; text-align: center; margin: 4px 0 10px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs-bar { padding-top: 22px; margin-bottom: -18px; }
.crumbs-bar .crumbs { margin: 0; }
.tender-subtitle { margin-top: -4px; }
.crumbs a { color: var(--muted); }
.tender-h1 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); margin-top: 12px; overflow-wrap: anywhere; hyphens: auto; }
.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0 0 20px; }
.keyfacts div { background: var(--card); padding: 12px 16px; }
.keyfacts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.keyfacts dt { font-size: .82rem; color: var(--muted); }
.keyfacts dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0; }
.prose li { margin-bottom: .6em; }
.source { font-size: .85rem; color: var(--muted); }

/* Pricing */
.plan { background: var(--card); border: 2px solid var(--brand); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); margin: 24px 0 36px; }
.plan-head h2 { font-size: 1.2rem; margin-bottom: .2em; }
.price { font-size: 1.1rem; margin: 0; }
.price strong { font-size: 2.6rem; color: var(--brand); }
.checks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }

/* Trades */
.trade-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.trade-group h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.trade-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.trade-list-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.trade-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.trade-list a:hover { border-color: var(--brand); }
.trade-list strong { color: var(--brand); font-size: .92rem; }
.trade-list .fine { margin: 4px 2px 10px; }
.trade-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.trade-tags a { font-size: .8rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.trade-tags a:hover { border-color: var(--brand); color: var(--brand); }
.region-empty { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }

/* Choosing trades and Bundesländer */
.auswahl-step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.auswahl-step legend { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1rem; }
.auswahl-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.auswahl-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auswahl-group-head h3 { font-size: 1rem; margin: 0 0 8px; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.check-grid-laender { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; }
.check-grid label, .check-all { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; cursor: pointer; }
.check-grid input, .check-all input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); transform: translateY(3px); }
.check-grid .count { margin-left: auto; color: var(--muted); }
.summary-box { background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary-box h2 { font-size: 1.2rem; }
.summary-line { font-weight: 650; }
.match-line { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.error-line { background: var(--urgent-soft); color: var(--urgent); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.ok-line { background: var(--new-soft); color: var(--new); border-radius: 10px; padding: 10px 12px; font-size: .95rem; margin-top: 10px; }
.status-line { font-weight: 600; }
button.btn { font: inherit; font-weight: 650; cursor: pointer; width: 100%; }
button.btn[disabled] { opacity: .6; cursor: wait; }

/* Search */
.search-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; margin: 8px 0 6px; }
.search-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.search-form input, .search-form select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); min-width: 0; width: 100%; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Legal pages */
.legal h2 { font-size: 1.2rem; margin-top: 1.4em; }
.placeholder { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d1dd; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-brand { color: #fff; font-weight: 650; }
.footer-note { font-size: .86rem; max-width: 40em; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner, .layout-split { grid-template-columns: minmax(0, 1fr); }
  .trade-groups, .trade-list-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sticky { position: static; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .header-inner { gap: 10px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-niche { display: none; }
  .btn-small { padding: 6px 10px; font-size: .85rem; }
  .hero-inner { padding-top: 28px; padding-bottom: 28px; gap: 24px; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
  .region-grid a { padding: 10px 12px; font-size: .92rem; }
  .tender { padding: 16px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .trade-groups, .trade-list-wide, .check-grid, .search-form { grid-template-columns: minmax(0, 1fr); }
  .check-grid-laender { grid-template-columns: 1fr 1fr; }
}
