/* =========================================================
   Inflab – Stylesheet
   Tech-Blau, modern, mit Hell-/Dunkel-Modus
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.10);

  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;

  --text: #0f172a;
  --text-muted: #5b6b82;
  --heading: #0b1220;

  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 68px;
}

[data-theme="dark"] {
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.14);

  --bg: #0b1120;
  --bg-alt: #0f1729;
  --surface: #131c30;
  --surface-2: #182238;
  --border: #25304a;

  --text: #e6ecf7;
  --text-muted: #9fb0c9;
  --heading: #f4f7fc;

  --shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

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

.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.req { color: #ef4444; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.97rem; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 700; }
.brand:hover { color: var(--heading); }
.brand-logo { border-radius: 9px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text { font-size: 1.25rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--text-muted); font-weight: 500; padding: 9px 14px;
  border-radius: 8px; transition: all 0.18s ease;
}
.nav-menu a:hover { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.lang-toggle {
  height: 42px; min-width: 42px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  cursor: pointer; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(120% 120% at 85% 0%, var(--accent-soft) 0%, transparent 45%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent); margin: 0 0 12px;
}
.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 52ch; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { display: flex; justify-content: center; }
.logo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow); max-width: 360px; width: 100%;
  transform: rotate(-1.5deg); transition: transform 0.3s ease;
}
.logo-card:hover { transform: rotate(0deg) translateY(-4px); }
.logo-card img { border-radius: 14px; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin: 8px 0 0; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 16px;
}
.card p { color: var(--text-muted); margin: 0; }

/* ---------- Über / Stats ---------- */
.two-col { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.two-col p { color: var(--text-muted); }
.two-col .btn { margin-top: 12px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stats li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column;
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Tags ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tags li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm);
}

/* ---------- Kontakt ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.93rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.97rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--text-muted); }
.consent input { width: auto; margin-top: 3px; flex-shrink: 0; }

/* Honeypot komplett verstecken */
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0; font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form-status.ok { color: #16a34a; }
.form-status.error { color: #ef4444; }

.contact-aside {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.contact-aside h3 { margin-top: 0; }
.contact-aside p { color: var(--text-muted); }
.contact-mail { font-size: 1.15rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { display: block; color: var(--heading); }
.footer-brand span { color: var(--text-muted); font-size: 0.88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--text-muted); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { width: 100%; text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal h3 { font-size: 1.08rem; margin-top: 24px; }
.legal p, .legal li { color: var(--text-muted); }
.legal a { word-break: break-word; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.placeholder {
  background: var(--accent-soft); border: 1px dashed var(--accent);
  border-radius: 6px; padding: 1px 7px; font-weight: 600; color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 10px 16px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 13px 12px; border-radius: 8px; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
