/* KI Niederrhein — Design-System "Niederrhein-Handwerk, digital"
   Kantige Grotesk, gedeckte Erdtöne, wenig Rundung, Backstein/Industrie als Textur. */

:root {
  --bg: #EDE7E0;
  --bg-alt: #E3DACC;
  --surface: #FAF7F2;
  --ink: #262320;
  --ink-dim: #5B564E;
  --ink-mute: #8C8577;
  --accent: #B5502E;
  --accent-dark: #8C3D22;
  --accent-tint: #F1E0D6;
  --line: #D9CFBE;
  --line-strong: #C7BAA4;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow: 0 8px 24px -12px rgba(38, 35, 32, 0.25);
  --shadow-lg: 0 20px 48px -20px rgba(38, 35, 32, 0.32);
  --maxw: 1180px;
  --font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-dim); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.accent { color: var(--accent-dark); }
.bg-alt { background: var(--bg-alt); }
.bg-surface { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; padding: 14px 26px;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(237, 231, 224, 0.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.solid { border-bottom-color: var(--line); background: rgba(237, 231, 224, 0.98); }
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-dark); text-decoration: none; }
.nav-links a.nav-cta {
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: var(--radius); font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle {
  display: none; background: none; border: none; padding: 6px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; background: var(--bg); flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links a.nav-cta { display: inline-block; margin: 12px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 80px; overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero .bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(38,35,32,0.86) 0%, rgba(38,35,32,0.72) 42%, rgba(38,35,32,0.38) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero .eyebrow, .hero p { color: #fff; }
.hero p.lead { max-width: 56ch; font-size: 1.15rem; color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats .stat span { color: rgba(255,255,255,0.72); font-size: 0.88rem; }

/* Page header (Unterseiten) */
.page-header { position: relative; padding: 64px 0 56px; overflow: hidden; }
.page-header .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-header .bg::after { content: ''; position: absolute; inset: 0; background: rgba(38,35,32,0.82); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1, .page-header p, .page-header .crumbs { color: #fff; }
.page-header.plain { background: var(--bg-alt); padding: 56px 0 44px; }
.page-header.plain h1 { color: var(--ink); }
.page-header.plain .crumbs, .page-header.plain .crumbs a { color: var(--ink-mute); }
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,0.85); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-tint);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card a.more { font-weight: 700; font-size: 0.9rem; }

/* Standort-Karten */
.standort-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.standort-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.standort-card .img { height: 160px; background-size: cover; background-position: center; }
.standort-card .body { padding: 22px 24px; }
.standort-card h3 { color: var(--ink); margin-bottom: 6px; }
.standort-card p { margin: 0; font-size: 0.92rem; }

/* ---------- Fact strip / Kennzahlen ---------- */
.fact-strip { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.fact-strip .fact b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--accent-dark); }
.fact-strip .fact span { color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- Definitionsblöcke (Glossar) ---------- */
.def-block { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 26px 28px; margin-bottom: 20px; }
.def-block h3 { margin-bottom: 8px; }
.def-block .def-term { font-family: var(--font); font-weight: 800; font-size: 1.05rem; color: var(--accent-dark); text-transform: none; }
.def-block p:last-child { margin-bottom: 0; }

/* ---------- Vergleichstabelle ---------- */
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
table.compare th { background: var(--bg-alt); font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ Accordion ---------- */
.faq-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-size: 1.02rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--accent-dark); font-weight: 400; flex-shrink: 0; }
.faq-q[aria-expanded="true"]::after { content: '–'; }
.faq-a { padding: 0 0 20px; color: var(--ink-dim); }
.faq-a[hidden] { display: none; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px; }
.contact-card .row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-card .row:last-child { border-bottom: none; }
.contact-card .ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.contact-card .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.contact-card .lab { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }
.contact-card .val { display: block; font-weight: 600; }
.contact-card .val a { color: #fff; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.96rem; background: #fff; color: var(--ink); margin-bottom: 18px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-success, .form-error { display: none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.9rem; }
.form-success.show { display: block; background: #E4EFE2; color: #2C5A2A; }
.form-error.show { display: block; background: #F5E1DC; color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* ---------- Cookie-Banner ---------- */
#kin-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 18px 24px;
}
.kin-consent-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kin-consent-text { margin: 0; font-size: 0.9rem; max-width: 70ch; color: rgba(255,255,255,0.85); }
.kin-consent-text a { color: #fff; text-decoration: underline; }
.kin-consent-yes { background: var(--accent); color: #fff; border: none; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; cursor: pointer; flex-shrink: 0; }
.kin-consent-yes:hover { background: var(--accent-dark); }

/* ---------- Bio / Prose (Über, Impressum) ---------- */
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.3em; color: var(--ink-dim); }
.prose { max-width: 760px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
