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

:root {
  --bg: #f5f6f7;
  --bg-2: #eceef0;
  --bg-dark: #0f1923;
  --bg-dark-2: #182130;
  --border: #dde0e4;
  --text: #0f1923;
  --text-muted: #5a6572;
  --accent: #e8600a;
  --accent-hover: #d05508;
  --accent-light: rgba(232, 96, 10, 0.1);
  --white: #ffffff;
  --radius: 3px;
  --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── HEADER ─────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
  background: rgba(245, 246, 247, 0.97);
  box-shadow: 0 1px 0 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: 14px; text-decoration: none; color: var(--white); transition: color 0.3s; }
header.scrolled .logo { color: var(--text); }

.logo-mark {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--accent); background: rgba(232,96,10,0.15);
  border: 2px solid var(--accent); padding: 2px 10px; border-radius: 2px;
  line-height: 1.4; flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-weight: 600; font-size: 0.95rem; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.5; margin-top: 2px; }

nav { display: flex; align-items: center; gap: 32px; }
nav a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.75); transition: color 0.2s; }
header.scrolled nav a { color: var(--text-muted); }
nav a:hover { color: var(--white) !important; }
header.scrolled nav a:hover { color: var(--text) !important; }
nav a.nav-cta {
  color: var(--white) !important; background: var(--accent);
  padding: 8px 20px; border-radius: var(--radius); transition: background 0.2s;
}
nav a.nav-cta:hover { background: var(--accent-hover) !important; }

.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(--white); transition: all 0.3s; }
header.scrolled .nav-toggle span { background: var(--text); }

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

body::before {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background: linear-gradient(150deg, #0f1923 0%, #182130 50%, #1a2535 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Crect x='0' y='19' width='40' height='2'/%3E%3Crect x='19' y='0' width='2' height='40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1; pointer-events: none;
}

.hero-eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); background: rgba(232,96,10,0.12);
  border: 1px solid rgba(232,96,10,0.3);
  padding: 5px 14px; border-radius: 2px; margin-bottom: 24px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  max-width: 460px; margin-bottom: 40px; line-height: 1.8; font-weight: 300;
}

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

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  color: rgba(255,255,255,0.07);
}
.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.875rem; 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(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }

/* ── SECTION HEADS ──────────────────────────────── */
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text); margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.02em; }
.section-intro { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; margin-bottom: 48px; line-height: 1.8; }

/* ── SERVICES ───────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.service-card:hover { box-shadow: 0 12px 40px rgba(15,25,35,0.1); transform: translateY(-2px); }
.service-card.featured { border-color: var(--accent); border-width: 2px; }
.service-card.featured::before {
  content: 'Kernleistung';
  position: absolute; top: -1px; right: 24px;
  background: var(--accent); color: var(--white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 0 0 3px 3px;
}
.service-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-weight: 700; font-size: 1.15rem; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

/* ── ÜBER UNS ───────────────────────────────────── */
.bg-dark .eyebrow { color: var(--accent); }
.bg-dark h2 { color: var(--white); }
.bg-dark .about-text > p { color: rgba(255,255,255,0.55); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; font-weight: 300; }
.bg-dark .about-text .btn { margin-top: 12px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text h2 { text-align: left; }

.about-features { display: flex; flex-direction: column; gap: 0; }
.feature {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.feature:last-child { border-bottom: none; }
.feature-num {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent); background: rgba(232,96,10,0.12);
  border: 1px solid rgba(232,96,10,0.25);
  padding: 3px 8px; border-radius: 2px;
  flex-shrink: 0; margin-top: 2px;
}
.feature strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 4px; font-weight: 600; }
.feature p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ── KONTAKT ────────────────────────────────────── */
.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; }
.kontakt-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.kb h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
address { font-style: normal; font-size: 0.9rem; color: var(--text-muted); line-height: 1.9; }
.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(--accent); text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: color 0.2s; }
.kb ul li a:hover { color: var(--accent-hover); }

.kontakt-map { display: flex; flex-direction: column; gap: 8px; }
.kontakt-map iframe { width: 100%; height: 360px; border: 1px solid var(--border); border-radius: var(--radius); }
.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-dark); 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; font-weight: 600; }
.footer-brand span { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── MODAL ──────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 40px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.modal-box h3 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; 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(--text); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 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; }
  .kontakt-blocks { grid-template-columns: 1fr; }
  .kontakt-btns { flex-direction: column; }
  .kontakt-btns .btn { justify-content: center; }
  nav { display: none; position: fixed; inset: 0; top: 68px; background: var(--bg-dark); flex-direction: column; justify-content: center; align-items: center; gap: 36px; }
  body.nav-open nav { display: flex; }
  nav a { font-size: 1.2rem; color: rgba(255,255,255,0.8) !important; }
  nav a.nav-cta { color: var(--white) !important; }
  .nav-toggle { display: flex; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
