/* =============================================================
   Alpha Field Engineering UG – Stylesheet
   Designsystem im Stil von plt-labor.de (sachlich-professionell,
   viel Weißraum, Akzentfarbe = Logo-Blau).
   ============================================================= */

:root {
  /* Markenfarben (abgeleitet aus dem Logo) */
  --blue:        #2e9bd6;
  --blue-600:    #1f87c0;
  --blue-700:    #176a99;
  --blue-900:    #103f5c;

  --ink:         #1d2b36;   /* Überschriften / dunkler Text */
  --slate:       #45596a;   /* Fließtext */
  --muted:       #6c7c89;   /* sekundärer Text */
  --line:        #e2eaf0;   /* Trennlinien / Rahmen */

  --bg:          #ffffff;
  --bg-alt:      #f4f8fb;   /* helle Sektionen */
  --bg-dark:     #103248;   /* dunkle Bänder / CTA */

  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 10px 30px rgba(16, 63, 92, .08);
  --shadow-sm:   0 4px 14px rgba(16, 63, 92, .06);

  --container:   1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.5em; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue-700); border-color: #fff; }
.btn-light:hover { background: #eef6fb; color: var(--blue-700); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo-img { height: 48px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-weight: 600; font-size: .98rem; padding: 6px 0; position: relative; }
.primary-nav a:hover { color: var(--blue); }
.primary-nav a.active { color: var(--blue); }
.primary-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue);
}
.nav-cta { padding: .6em 1.2em; }

/* Hamburger (mobil) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f4f9fc 0%, #e9f3fa 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 90px 0; }
.hero-content { max-width: 780px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 1.18rem; color: var(--slate); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(330px, 80%); opacity: .96; filter: drop-shadow(0 18px 40px rgba(16,63,92,.18)); }

/* ---------- Karten / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #e8f4fb; color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }

/* ---------- Feature-Liste (Häkchen) ---------- */
.features { list-style: none; padding: 0; margin: 0; }
.features li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line); }
.features li:last-child { border-bottom: 0; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; border-radius: 50%;
  background: #e8f4fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232e9bd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.features li strong { color: var(--ink); }

/* ---------- Split (zwei Spalten) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.narrow { gap: 40px; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--bg-dark) 0%, var(--blue-900) 60%, var(--blue-700) 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe6f3; max-width: 56ch; margin: 0 auto 28px; font-size: 1.12rem; }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.pagehero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.pagehero h1 { margin-bottom: .25em; }
.pagehero p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Statistiken / Highlights ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat .label { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* ---------- Textseiten (Impressum / Datenschutz) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin-bottom: 1.2em; }
mark.todo {
  background: #fff3cd; color: #7a5d00; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; border: 1px dashed #e0b400;
}

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  font: inherit; font-size: .98rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--blue);
}
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-consent input { margin-top: 4px; }

.contact-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.contact-card h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b9d3e2; padding: 60px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .mark { width: 46px; flex: none; filter: brightness(0) invert(1); }
.footer-brandname { color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.footer-brandname small { display: block; color: #8fb4c9; font-weight: 400; font-size: .8rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9d3e2; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8fb4c9;
}
.footer-bottom a { color: #8fb4c9; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px;
    box-shadow: var(--shadow); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 14px 0; }
  .primary-nav a.active::after { display: none; }
  .nav-cta { margin-top: 14px; text-align: center; justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 60px 0; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
