/* ---- Tokens ---- */
:root {
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --surface: #111c33;
  --surface-2: #16243f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9eef7;
  --muted: #9fb0c8;
  --accent: #24addb;
  --accent-strong: #1e92b8;
  --accent-2: #6ec9e7;
  --accent-ink: #052734;
  --accent-soft: rgba(36, 173, 219, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
  border-radius: 8px; z-index: 200; font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600;
  font-size: 0.98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(36,173,219,0.45);
}
.btn-primary:hover { transform: translateY(-2px); background: #3bc0e8; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 38px; width: auto; }
.footer-logo { height: 40px; width: auto; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 20px -8px rgba(36,173,219,0.5);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: "Space Grotesk", sans-serif; font-size: 1.12rem; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  padding: 9px 14px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: 0.95rem; transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { background: var(--accent-soft); color: var(--accent) !important; }
.nav-cta:hover { background: rgba(36,173,219,0.24) !important; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--text); transform: translate(-50%, -50%); transition: 0.25s var(--ease);
}
.nav-toggle .bars::before { transform: translate(-50%, -7px); }
.nav-toggle .bars::after { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: radial-gradient(120% 100% at 80% -10%, var(--bg-2), var(--bg) 60%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(77,163,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,255,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(110% 80% at 70% 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(110% 80% at 70% 0%, #000 35%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure img { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 26px 54px rgba(0, 0, 0, 0.5)); }
.eyebrow {
  display: inline-block; margin: 0 0 18px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
.hero h1 .accent { color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 620px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 56px 0 0; padding: 0; max-width: 640px;
}
.hero-stats > div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.hero-stats dt { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--text); }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 10px 0 0; }
.section-sub { color: var(--muted); margin: 16px 0 0; font-size: 1.05rem; }

/* ---- Cards (Leistungen) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(36,173,219,0.45); background: var(--surface-2); }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  margin-bottom: 18px; color: var(--accent); background: var(--accent-soft);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---- Referenzprojekte ---- */
.proj-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.proj {
  position: relative; padding: 26px 22px; background: var(--surface); min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.proj h3 { overflow-wrap: anywhere; }
.proj::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: linear-gradient(var(--accent), var(--accent-strong));
}
.proj-count { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.proj h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.proj p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---- Referenzfirmen ---- */
.logo-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.logo-chip {
  display: grid; place-items: center; text-align: center; min-height: 104px; min-width: 0;
  padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.25s, transform 0.2s var(--ease);
}
.logo-chip:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(0,0,0,0.7); }
.logo-chip img {
  max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain;
}
.logo-chip--text {
  color: #20324a; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.02rem; letter-spacing: -0.01em; overflow-wrap: anywhere;
}

/* ---- Unternehmen split ---- */
.section-art { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto 28px; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.split-text h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 10px 0 18px; }
.split-text p { color: var(--muted); margin: 0 0 16px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2324addb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.hours-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { font-weight: 600; }
.hours-note { color: var(--muted); font-size: 0.88rem; margin: 16px 0 0; }

/* ---- Kontakt ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-item .contact-label {
  display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.contact-item p { margin: 0; color: var(--text); }
.contact-item a:hover { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-size: 0.97rem; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { color: var(--muted); font-size: 0.85rem; margin: 0; text-align: center; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: "Space Grotesk", sans-serif; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-figure { order: -1; }
  .hero-figure img { max-width: 320px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav ul {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 4px; padding: 14px 24px 22px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s var(--ease);
  }
  .main-nav ul.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .proj-grid, .logo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 52px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .container { padding: 0 20px; }
  .card { padding: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
