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

:root {
  --bg: #f8f6f2;
  --bg-2: #f0ece4;
  --bg-dark: #0f1c2e;
  --bg-dark-2: #162436;
  --border: #ddd8ce;
  --border-dark: #1e3045;
  --text: #1a1a1a;
  --text-muted: #5a5650;
  --accent: #d9480f;
  --accent-hover: #bf3d0c;
  --accent-light: rgba(217, 72, 15, 0.1);
  --warm: #f5f0e8;
  --white: #ffffff;
  --radius: 6px;
  --font-head: 'Roboto 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-warm { 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(248, 246, 242, 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: 12px;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s;
}
header.scrolled .logo { color: var(--text); }

.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.01em; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; margin-top: 2px; }

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8);
  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; }
header.scrolled nav a.nav-cta { color: var(--white) !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: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 60%, rgba(217, 72, 15, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(217, 72, 15, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flame {
  position: absolute;
  color: rgba(217, 72, 15, 0.06);
}
.flame svg { width: 100%; height: 100%; }

.flame-1 {
  width: 300px; height: 450px;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  animation: flicker 4s ease-in-out infinite alternate;
}
.flame-2 {
  width: 180px; height: 270px;
  right: 22%;
  top: 55%;
  transform: translateY(-50%);
  animation: flicker 3s ease-in-out infinite alternate-reverse;
  color: rgba(217, 72, 15, 0.04);
}

@keyframes flicker {
  0% { transform: translateY(-50%) scaleX(1); }
  50% { transform: translateY(-52%) scaleX(0.97); }
  100% { transform: translateY(-48%) scaleX(1.03); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 24px;
  margin-left: max(24px, calc((100vw - 1100px) / 2));
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(217, 72, 15, 0.12);
  border: 1px solid rgba(217, 72, 15, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

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

.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--accent); }

/* ── 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(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); 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.75rem);
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
}

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

/* ── SERVICES GRID ──────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card--highlight {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--white);
}
.service-card--highlight h3 { color: var(--white); }
.service-card--highlight p { color: rgba(255,255,255,0.6); }
.service-card--highlight .service-icon { color: var(--accent); }

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

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

.service-cta {
  display: inline-block;
  margin-top: 20px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.service-cta:hover { background: var(--accent-hover); }

/* ── ÜBER UNS (dark bg) ─────────────────────────── */
.bg-warm h2 { color: var(--white); }
.bg-warm .eyebrow { color: var(--accent); }
.bg-warm .about-text > p { color: rgba(255,255,255,0.6); }
.bg-warm .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: 20px; }

.feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  align-items: flex-start;
}

.feature-icon {
  width: 36px; height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.feature p {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── 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;
}

.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, .kb ul li .no-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.kb ul li a:hover { color: var(--accent); }

.kontakt-map { display: flex; flex-direction: column; gap: 8px; }
.kontakt-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.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; }
.footer-brand span { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  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.25); }

/* ── 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: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-box h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--text); }
.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(--text); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .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: 680px) {
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .kontakt-blocks { grid-template-columns: 1fr; }

  .hero-content { margin-left: 0; }
  .hero h1 { font-size: 3rem; }
  .flame-1 { width: 200px; height: 300px; right: -20px; }
  .flame-2 { display: none; }

  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; }
}
