/* ==========================================================================
   Widmann Automation – gemeinsames Stylesheet
   Wird von allen Seiten eingebunden: <link rel="stylesheet" href="css/style.css">
   Farben/Schrift hier ändern wirkt sich auf die ganze Seite aus.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:        #10151c;
  --ink-soft:   #57616e;
  --ink-faint:  #8892a0;
  --accent:     #0d4f8b;
  --accent-dk:  #0a3d6c;
  --cta:        #e2802c;
  --cta-dk:     #c76a1c;
  --line:       #dde2e8;
  --surface:    #f4f6f8;
  --bg-row:     #f7f9fb;
  --radius:     8px;
  --max-width:  1080px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  margin: 0;
  background: #fff;
  line-height: 1.5;
}

h1, h2, h3, .brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

a { color: var(--accent); }

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

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand .brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  line-height: 1.25;
}
.brand span.tag {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.2;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dk); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  display: none;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.3;
  max-width: 720px;
  margin-bottom: 20px;
}
.lead-block {
  max-width: 620px;
  margin-bottom: 28px;
}
.lead-block p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.lead-block p:last-child { margin-bottom: 0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.trust-item svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Category tiles ---------- */
.section { padding: 56px 0; }
.section h2 { font-size: 24px; margin-bottom: 8px; }
.section p.section-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; max-width: 560px; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}
.tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.tile-grid-2 .tile { padding: 30px 22px; }
.tile-grid-2 .tile svg { width: 32px; height: 32px; }
.tile-grid-2 .tile .tile-name { font-size: 16.5px; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile svg { color: var(--accent); margin-bottom: 12px; }
.tile .tile-name { font-weight: 600; font-size: 14.5px; display: block; margin-bottom: 2px; }
.tile .tile-count { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step { position: relative; padding-left: 44px; }
.step .num {
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.cta-band p { color: #b7c0cc; margin-bottom: 22px; font-size: 14.5px; }

/* ---------- Simple content page ---------- */
.page-header { padding: 40px 0 8px; }
.page-header h1 { font-size: 26px; }
.content-block { padding: 24px 0 56px; max-width: 640px; }
.content-block h2 { font-size: 17px; margin: 28px 0 10px; }
.content-block p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 12px; }
.content-block address { font-style: normal; font-size: 14.5px; color: var(--ink); line-height: 1.7; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}
.contact-card .row { display: flex; gap: 10px; font-size: 14.5px; margin-bottom: 8px; }
.contact-card .row span.label { color: var(--ink-faint); min-width: 90px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 0;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
footer.site-footer a { color: var(--ink-faint); text-decoration: none; margin-right: 16px; }
footer.site-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}

/* ---------- Produktliste ---------- */
.list-header { padding: 36px 0 4px; }
.list-header h1 { font-size: 24px; margin-bottom: 6px; }
.list-header p.sub { color: var(--ink-soft); font-size: 14.5px; max-width: 620px; margin: 0; }

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}
.controls input, .controls select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.controls input[type="search"] { flex: 1; min-width: 220px; }

table.parts-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
table.parts-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table.parts-table thead th:hover { color: var(--accent); }
table.parts-table thead th.sorted::after { content: " \25BE"; }
table.parts-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.parts-table tbody tr:nth-child(even) { background: var(--bg-row); }
table.parts-table tbody tr:hover { background: #eef4fa; }
.verf-ja { color: #1a7f37; font-weight: 500; }
.verf-nein { color: var(--ink-soft); }
.btn-anfrage {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-anfrage:hover { background: var(--cta-dk); }
.empty { padding: 24px; text-align: center; color: var(--ink-soft); }
.count { font-size: 13px; color: var(--ink-soft); margin: 10px 0 40px; }
