/* VeldAI Firmenverzeichnis — shared stylesheet for all /neuss, /verzeichnis,
   /methodik, /impressum, /datenschutz pages. Same visual language as veldai.de
   (dark header/footer, light body, gold accent). No JavaScript anywhere. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark-bg: #0b1120;
  --dark-text: #e2e8f0;
  --dark-text-dim: #94a3b8;
  --dark-border: rgba(255, 255, 255, 0.08);

  --light-bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-dim: #475569;
  --border: #E2E8F0;

  --gold: #f59e0b;
  --gold-dk: #d97706;
  --green: #10b981;
  --red: #ef4444;

  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --shell-max: 960px;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}

.shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 24px; }

a { color: var(--gold-dk); }
a:hover { text-decoration: underline; }

/* Header (always dark, sticky) */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--dark-border);
  padding: 14px 0;
}
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-sun { color: var(--gold); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--dark-text-dim); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.nav a:hover { color: #fff; text-decoration: none; }

/* Main content */
main { padding: 40px 0 64px; }
h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; }
p { margin-bottom: 12px; color: var(--text-dim); }
p.lead { font-size: 1.05rem; color: var(--text); }
ul, ol { padding-left: 22px; margin-bottom: 14px; color: var(--text-dim); }
li { margin-bottom: 6px; }
strong { color: var(--text); }

.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* Boxes */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.box h2, .box h3 { margin-top: 0; }
.note-box { background: rgba(245, 158, 11, 0.07); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: 0.92rem; }
.note-box p:last-child { margin-bottom: 0; }
.blocker-box { background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: 0.92rem; }

/* Cards (verzeichnis index) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.card .count { color: var(--gold-dk); font-weight: 700; }

/* List page table */
.list-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.list-table th, .list-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
.list-table th { color: var(--text-dim); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.list-table .rank { font-weight: 700; color: var(--text-dim); width: 2.4em; }
.list-table .company a { color: var(--text); font-weight: 600; text-decoration: none; }
.list-table .company a:hover { text-decoration: underline; }
.list-table .company .sub { display: block; color: var(--text-dim); font-size: 0.82rem; font-weight: 400; margin-top: 2px; }

/* Completeness bar */
.bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 999px; }
.bar-num { font-size: 0.82rem; color: var(--text-dim); white-space: nowrap; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; background: rgba(239, 68, 68, 0.1); color: #b91c1c; border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.chip { display: inline-block; background: var(--light-bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.82rem; margin: 0 6px 6px 0; }
.chip.confirmed { border-color: var(--green); color: #047857; }
.google-line { font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }
.google-line strong { color: var(--text); }

/* Data tables (methodik, profile detail) */
.data-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.88rem; }
.data-table th, .data-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-dim); font-weight: 600; }
.data-table td.num { text-align: right; }
.status-ok { color: var(--green); font-weight: 600; }
.status-blocked { color: var(--red); font-weight: 600; }
.status-unknown { color: var(--text-dim); }

/* Actions */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn { display: inline-block; background: var(--gold); color: #1a1200; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; }
.btn:hover { background: var(--gold-dk); text-decoration: none; color: #fff; }
.btn-ghost { display: inline-block; background: transparent; border: 1px solid var(--border); color: var(--text); text-decoration: none; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; }
.btn-ghost:hover { border-color: var(--gold); text-decoration: none; }

.meta-line { font-size: 0.82rem; color: var(--text-dim); margin-top: 24px; }
.section-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; font-size: 0.9rem; }

/* Footer (always dark) */
.site-footer { background: var(--dark-bg); border-top: 1px solid var(--dark-border); padding: 28px 0; text-align: center; }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; }
.site-footer a { color: var(--dark-text-dim); text-decoration: none; font-size: 0.85rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .copy { color: var(--dark-text-dim); font-size: 0.85rem; }
.footer-sep { color: var(--dark-border); }

/* Table overflow safety on narrow screens */
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  .list-table th:nth-child(3), .list-table td:nth-child(3) { display: none; }
  .site-header .shell { justify-content: center; text-align: center; }
}
