/* ============================================================
   EP Security Service – Köln
   Mobile-first, kein Framework
   ============================================================ */

:root {
  --navy-900: #0a1220;
  --navy-800: #101d30;
  --navy-700: #182a42;
  --navy-600: #23395b;
  --gold: #c9a24b;
  --gold-light: #e0bf76;
  --ink: #1a2433;
  --text: #3d4a5c;
  --muted: #7c8798;
  --bg: #f7f8fa;
  --white: #ffffff;
  --line: #e4e8ee;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(10, 18, 32, 0.10);
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--navy-600); }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 4rem 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy-900); color: #b9c3d3; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(201, 162, 75, 0.35);
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--dark { background: var(--navy-800); color: var(--white); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: #9aa7ba;
  font-size: 0.82rem;
  padding: 0.4rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.topbar__badge { display: none; }
@media (min-width: 640px) { .topbar__badge { display: inline; } }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.logo__img { height: 44px; width: auto; display: block; }
@media (max-width: 380px) { .logo__img { height: 36px; } }
.footer__logo { height: 40px; width: auto; margin-bottom: 0.9rem; opacity: 0.95; }
.logo__text { font-family: var(--font-head); line-height: 1.1; }
.logo__text strong { display: block; color: var(--ink); font-size: 1.02rem; letter-spacing: 0.02em; }
.logo__text span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }

.nav { display: none; }
.nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color 0.15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.header__cta { display: none; }

.burger {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--gold); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .burger, .mobile-nav { display: none !important; }
  .header__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 18, 32, 0.95) 25%, rgba(10, 18, 32, 0.55) 65%, rgba(10, 18, 32, 0.35));
}
.hero .container {
  position: relative;
  padding: 5.5rem 0 6rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .hero .container { margin-left: calc((100% - 1160px) / 2); max-width: 640px; padding: 8rem 0 9rem; }
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { color: #c3cddc; font-size: 1.08rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-800); }
.trustbar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}
@media (min-width: 760px) { .trustbar .container { grid-template-columns: repeat(4, 1fr); } }
.trust {
  padding: 1.4rem 1rem;
  text-align: center;
}
.trust strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--gold-light);
}
.trust span { font-size: 0.82rem; color: #93a1b5; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 75, 0.5);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 0; }
.card a.more {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold);
  text-decoration: none;
}

/* ---------- Leistungs-Kategorien (Tabs) ---------- */
.cat-tabs {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 720px) { .cat-tabs { grid-template-columns: repeat(3, 1fr); } }
.cat-tab {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: grid;
  gap: 0.35rem;
}
.cat-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tab strong { font-size: 1.15rem; color: var(--ink); }
.cat-tab > span:last-child { font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); }
.cat-tab__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold);
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
}
.cat-tab.active {
  border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(201, 162, 75, 0.22);
}
.cat-tab.active strong { color: var(--gold); }

.cat-panel { display: none; }
.cat-panel.active { display: block; animation: fadeUp 0.35s ease; }
.cat-list {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cat-list { grid-template-columns: repeat(2, 1fr); } }
.cat-list a {
  display: grid;
  gap: 0.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem 0.9rem 2.6rem;
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.cat-list a::before {
  content: "→";
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  color: var(--gold);
  font-weight: 700;
}
.cat-list a:hover { border-color: var(--gold); transform: translateX(3px); }
.cat-list strong { font-family: var(--font-head); color: var(--ink); font-size: 0.98rem; }
.cat-list span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Bereichs-Navigation (Leistungsseite) ---------- */
.bereich-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.bereich-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  transition: border-color 0.15s, color 0.15s;
}
.bereich-nav a:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- IHK Siegel ---------- */
.ihk-siegel { height: 72px; width: auto; }
.badge .ihk-siegel { margin: 0 auto 0.6rem; display: block; }
.siegel-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- Split section (image + text) ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/contain no-repeat;
}

/* ---------- Configurator ---------- */
.config {
  background: var(--navy-900);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem 1.4rem;
  color: #b9c3d3;
}
@media (min-width: 760px) { .config { padding: 3rem; } }
.config h2 { color: var(--white); }
.config__steps { display: flex; gap: 0.5rem; margin: 1.6rem 0; }
.config__step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--navy-600);
  transition: background 0.3s;
}
.config__step-dot.active { background: var(--gold); }
.config__panel { display: none; }
.config__panel.active { display: block; animation: fadeUp 0.35s ease; }
.config__label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.config__options {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .config__options { grid-template-columns: repeat(3, 1fr); } }
.config__opt {
  border: 1.5px solid var(--navy-600);
  border-radius: 12px;
  padding: 0.95rem 0.8rem;
  background: var(--navy-800);
  color: #ccd5e2;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.config__opt:hover { border-color: var(--gold); }
.config__opt.selected {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-light);
}
.config__nav { display: flex; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; }
.config__summary {
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.config__summary dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.config__summary dd { margin: 0.1rem 0 0.8rem; color: var(--white); font-family: var(--font-head); font-weight: 600; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- References ---------- */
.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.ref-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-600);
}

/* ---------- Cert badges ---------- */
.badges { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
@media (min-width: 760px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}
.badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.92rem; }
.badge span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.35rem;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__hint { font-size: 0.8rem; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.contact-card {
  background: var(--navy-900);
  color: #b9c3d3;
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-card h3 { color: var(--white); }
.contact-card a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-card svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--gold); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 3rem;
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 380px;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #b9c3d3;
}
.map-consent p { max-width: 52ch; margin: 0; }
.map-consent a { color: var(--gold-light); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2.2rem; font-size: 1.3rem; }
.legal .placeholder {
  background: #fff8e8;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-weight: 600;
  color: #8a6d1f;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #93a1b5; padding: 3.5rem 0 1.5rem; font-size: 0.92rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer a { color: #b9c3d3; text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer__bottom {
  border-top: 1px solid var(--navy-700);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.callbar__phone { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy-900); }
.callbar__mail { background: var(--navy-700); color: var(--white); }
@media (min-width: 900px) { .callbar { display: none; } }
body { padding-bottom: 70px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 3.5rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: #b9c3d3; max-width: 60ch; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
