/* ==========================================================================
   WIACCO GmbH — Website
   Design-Richtung angelehnt an procon.ch: dunkler Statement-Hero,
   Kennzahlen, Dashboard-Widget, klare Sections. Farbsystem aus dem
   Firmenlogo abgeleitet (Markenblau #446BA4).
   ========================================================================== */

:root {
  --navy: #16294A;
  --navy-card: #1E3760;
  --navy-line: #2C4C7C;
  --blue: #446BA4;
  --blue-bright: #8FADD9;
  --green: #3FBF7F;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --ink: #16233A;
  --ink-soft: #5B6B85;
  --line: #E2E8F1;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---------- Header (sticky, light) ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(24px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  box-shadow: 0 1px 3px rgba(15,30,51,0.04);
}

.logo-link { display: flex; align-items: center; height: 100%; }
.logo-link img { height: 30px; width: auto; display: block; }

nav { display: flex; gap: clamp(16px, 3vw, 32px); align-items: center; }

nav a {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--navy);
  border-color: var(--blue);
}

nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 3px;
  border-bottom: none;
}
nav a.nav-cta:hover { background: var(--blue); color: var(--white); }

/* ---------- Main / generic section rhythm ---------- */
main { flex: 1; }

.section {
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px);
}

.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #C3CEE0; }
.section-dark h2 { color: var(--white); }
.section-dark p { color: #9FB0CB; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Courier New', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-alt .eyebrow, .section:not(.section-dark):not(.hero) .eyebrow { color: var(--blue); }

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-dark h3 { color: var(--white); }

p { line-height: 1.65; color: var(--ink-soft); }

.lede {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #B7C3D9;
}

.rule {
  width: 48px;
  height: 3px;
  background: var(--blue-bright);
  margin: 32px 0;
}

/* ---------- Hero (dark, statement) ---------- */
.hero {
  background: var(--navy);
  padding: clamp(64px, 9vw, 104px) clamp(24px, 6vw, 64px) clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero .section-inner {
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 880px) {
  .hero .section-inner { grid-template-columns: 1fr; }
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9FB0CB;
  border: 1px solid var(--navy-line);
  border-radius: 100px;
  padding: 6px 14px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 13px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #375888; border-color: #375888; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--navy-line);
}
.btn-outline:hover { border-color: var(--blue-bright); color: var(--blue-bright); background: transparent; }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--navy-line);
}
.stat .num {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat .label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #8FA1BE;
  line-height: 1.4;
}

/* Status / Fachbereiche card (hero widget, signature element) */
.status-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: 6px;
  padding: 22px 22px 8px;
}
.status-card .status-title {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8FA1BE;
  margin-bottom: 16px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--navy-line);
}
.status-row:first-of-type { border-top: none; }
.status-row .name { font-size: 0.92rem; color: var(--white); font-weight: 600; }
.status-row .sub { font-size: 0.76rem; color: #8FA1BE; margin-top: 2px; }
.status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(63,191,127,0.12);
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero .section-inner.simple {
  display: block;
  max-width: 720px;
}

/* ---------- Feature grid (Warum WIACCO, dark section) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.feature-grid .feature .num {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--blue-bright);
  margin-bottom: 10px;
}

/* ---------- Card grid (Leistungen, light section) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px clamp(20px, 3vw, 28px);
}

.card .index {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.card ul { margin-top: 10px; padding-left: 18px; }
.card li { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; }
.card a.more { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* ---------- Contact box / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-block dt {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 18px;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { font-size: 1rem; margin-top: 3px; color: var(--ink); }
.contact-block a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-block a:hover { color: var(--blue); border-color: var(--blue); }

.interest-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px clamp(22px, 4vw, 36px);
}

form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus, textarea:focus, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

textarea { min-height: 96px; }

button[type="submit"] {
  margin-top: 6px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 13px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
}
button[type="submit"]:hover { background: var(--blue); }

.form-note { margin-top: 12px; font-size: 0.76rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Legal text (Datenschutz) ---------- */
.legal h1 { color: var(--navy); }
.legal h2 { margin-top: 36px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 10px; max-width: 70ch; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: #8FA1BE;
  padding: 48px clamp(24px, 6vw, 64px) 28px;
  font-size: 13px;
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--navy-line);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid img { height: 24px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid p { color: #8FA1BE; font-size: 13px; max-width: 32ch; }

.footer-col h4 {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C3CEE0;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: #8FA1BE;
  text-decoration: none;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1080px;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 12px;
}
.footer-bottom a { color: #8FA1BE; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 640px) {
  header { flex-wrap: wrap; height: auto; padding: 14px clamp(20px, 6vw, 64px); gap: 10px; }
  nav { gap: 14px; flex-wrap: wrap; }
}

