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

:root {
  --bg: #111318;
  --bg-2: #181c23;
  --bg-3: #1f242e;
  --border: #252b36;
  --text: #e4e6ea;
  --text-muted: #7a8394;
  --accent: #f5c518;
  --accent-hover: #e0b210;
  --accent-dim: rgba(245, 197, 24, 0.1);
  --white: #ffffff;
  --radius: 4px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section.bg-dark { background: var(--bg-2); }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, border-bottom 0.3s;
}
header.scrolled {
  background: rgba(17, 19, 24, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.logo-icon { width: 36px; height: 36px; color: var(--accent); flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.logo-sub { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
nav a:hover { color: var(--white); }
nav a.nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 0.2s;
}
nav a.nav-cta:hover { background: var(--accent-hover); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

/* full-bleed dark bg for hero */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: var(--bg);
  z-index: -2;
}

.hero-pattern {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(245, 197, 24, 0.12);
}
.hero-visual svg { width: min(380px, 100%); height: auto; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--white); }

/* ── SECTION HEADS ──────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.05;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  margin-bottom: 48px;
  line-height: 1.75;
}

/* ── SERVICES GRID ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--bg-2);
  padding: 36px 28px;
  position: relative;
  transition: background 0.2s;
}
.service-card:hover { background: var(--bg-3); }

.service-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(245, 197, 24, 0.08);
  line-height: 1;
  margin-bottom: -8px;
  letter-spacing: -0.02em;
}

.service-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── ÜBER UNS ───────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 { text-align: left; }
.about-text > p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.75; }
.about-text .btn { margin-top: 12px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-3);
  padding: 28px 24px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.stat-num span { font-size: 1.4rem; }
.stat p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ── KONTAKT ────────────────────────────────────── */
#kontakt { background: var(--bg); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.kontakt-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.kb h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.kb ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.kb ul li { display: flex; flex-direction: column; gap: 2px; }
.kb ul li span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.kb ul li a { color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.kb ul li a:hover { color: var(--accent); }

.kontakt-map { display: flex; flex-direction: column; gap: 8px; }
.kontakt-map iframe {
  width: 100%; height: 360px; border: 0;
  border-radius: var(--radius);
  filter: brightness(0.85) contrast(1.1) saturate(0.7);
}
.map-link { font-size: 0.8rem; color: var(--text-muted); text-align: right; text-decoration: none; transition: color 0.2s; }
.map-link:hover { color: var(--accent); }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}

.footer-brand strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.footer-brand span { font-size: 0.78rem; color: var(--text-muted); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ── MODAL ──────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 200;
  align-items: center; justify-content: center;
  padding: 24px; backdrop-filter: blur(4px);
}
.modal.open { display: flex; }

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  padding: 40px; position: relative;
}
.modal-box h2 { font-size: 1.5rem; margin-bottom: 20px; }
.modal-box h3 {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 20px 0 8px;
}
.modal-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.modal-box a { color: var(--accent); }

.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: var(--white); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .kontakt-blocks { grid-template-columns: 1fr; }

  nav { display: none; position: fixed; inset: 0; top: 68px; background: var(--bg-2); flex-direction: column; justify-content: center; align-items: center; gap: 36px; }
  body.nav-open nav { display: flex; }
  nav a { font-size: 1.2rem; }
  .nav-toggle { display: flex; }

  .footer-links { flex-wrap: wrap; gap: 16px; }
}
