/* =================================================================
   BLACKCIRCLE PROTECTIVE SERVICES — Design System
   ================================================================= */

/* ─── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --ink:       #0A0D12;   /* Hauptbackground — fast schwarz, leicht warm */
  --surface:   #11151C;   /* Card-Background, Sektionen */
  --surface-2: #161B24;   /* Hover, leicht heller */
  --line:      rgba(232,226,210,.12);
  --line-strong: rgba(232,226,210,.22);
  --bone:      #E8E2D2;   /* Haupt-Textfarbe — warmes Off-White */
  --bone-dim:  rgba(232,226,210,.65);
  --bone-faint: rgba(232,226,210,.42);
  --gold:      #B89464;   /* Akzentfarbe — gedämpftes Gold */
  --gold-bright: #C9A675;
  --gold-faint: rgba(184,148,100,.18);
  --gold-line: rgba(184,148,100,.55);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:  "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "IBM Plex Mono", "Courier New", monospace;

  /* Scale */
  --max-w: 1320px;
  --pad-x: clamp(24px, 5vw, 80px);

  /* Motion */
  --ease:      cubic-bezier(.2, .7, .1, 1);
  --ease-out:  cubic-bezier(.7, 0, .2, 1);
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ─── TYPE ───────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.eyebrow::before { content: "— "; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.05;
  margin: 0;
  color: var(--bone);
  text-wrap: pretty;
}
h1 { font-size: clamp(40px, 6.5vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 58px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; }

.serif-italic { font-style: italic; color: var(--gold); }

p { margin: 0 0 1em; color: var(--bone-dim); font-size: 16px; line-height: 1.65; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 17px; max-width: 56ch; }

.hairline {
  display: block; height: 1px; width: 220px;
  background: var(--gold); opacity: .55; border: 0;
  margin: 32px 0 28px;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(50px, 6vw, 90px) 0; }
.grid { display: grid; gap: 32px; }

/* ─── NAV / HEADER ───────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px;
  background: linear-gradient(to bottom, rgba(10,13,18,.85), rgba(10,13,18,0));
  backdrop-filter: blur(0px);
  transition: background .4s ease, backdrop-filter .4s ease, padding .4s ease;
}
.site-header.scrolled {
  background: rgba(10,13,18,.92);
  backdrop-filter: blur(12px);
  padding: 12px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.brand {
  width: 200px; height: 60px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.brand img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: left center;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone); opacity: .75;
  transition: opacity .2s ease, color .2s ease;
  position: relative; padding: 6px 0;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--gold); opacity: 1; }
.nav a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
}
.call-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 9px 13px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  transition: background .3s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.call-pill:hover { background: var(--gold-faint); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span {
  width: 24px; height: 1px; background: var(--bone);
  transition: transform .35s var(--ease), opacity .25s;
}
.hamburger span:nth-child(3) { width: 16px; background: var(--gold); margin-left: auto; }
.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 24px; margin: 0; background: var(--bone); }

/* Mobile menu */
@media (max-width: 1100px) {
  .nav { display: none; }
  .call-pill { display: none; }
  .hamburger { display: flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateX(0); }
}
.mobile-menu {
  position: fixed; inset: 0; background: var(--ink); z-index: 49;
  padding: 100px var(--pad-x) 40px;
  opacity: 0; pointer-events: none; transform: translateX(20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 28px;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 32px; color: var(--bone);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
.mobile-menu .mobile-call {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  letter-spacing: .14em;
  border: 1px solid var(--gold-line); padding: 16px; text-align: center;
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-sans); font-size: 12.5px;
  letter-spacing: .22em; text-transform: uppercase;
  background: transparent; color: var(--bone);
  border: 1px solid var(--gold);
  transition: all .4s var(--ease);
  cursor: pointer;
}
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn:hover .arrow { transform: translateX(8px); }
.btn-ghost { border-color: transparent; color: var(--bone-dim); padding: 16px 4px; }
.btn-ghost:hover { background: transparent; color: var(--bone); }
.btn-solid { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-solid:hover { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }

/* ─── CARDS / TILES ──────────────────────────────────────────────── */
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .5s var(--ease);
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.tile:hover { border-color: var(--gold-line); background: var(--surface-2); }
.tile-num {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .28em; color: var(--gold);
}
.tile-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.15; }
.tile p { font-size: 14.5px; line-height: 1.65; color: var(--bone-dim); }
.tile-arrow {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .25em;
  color: var(--gold); text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.tile-arrow span:last-child { transition: transform .3s var(--ease); }
.tile:hover .tile-arrow span:last-child { transform: translateX(6px); }

/* Image tiles (with photo) */
.tile-image {
  padding: 0; display: flex; flex-direction: column;
}
.tile-image .photo {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
}
.tile-image .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.tile-image:hover .photo img { transform: scale(1.06); }
.tile-image .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,13,18,.65), transparent 50%);
}
.tile-image .body { padding: 28px 30px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 70px var(--pad-x) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: var(--max-w); margin: 0 auto;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
.footer-grid h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; color: var(--gold);
  text-transform: uppercase; margin: 0 0 18px;
}
.footer-grid a, .footer-grid p {
  display: block; font-size: 13.5px; color: var(--bone-dim);
  margin-bottom: 10px; line-height: 1.5;
}
.footer-grid a:hover { color: var(--bone); }
.footer-bottom {
  max-width: var(--max-w); margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; color: var(--bone-faint);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .22s; }
.reveal[data-delay="3"] { transition-delay: .34s; }
.reveal[data-delay="4"] { transition-delay: .46s; }
.reveal[data-delay="5"] { transition-delay: .58s; }

/* ─── HERO (used on home + page-headers) ─────────────────────────── */
.page-header {
  position: relative;
  padding: 160px var(--pad-x) 90px;
  min-height: 50vh;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-header .bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-header .bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s ease-in-out infinite;
}
.page-header .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,.55) 0%, rgba(10,13,18,.7) 50%, var(--ink) 100%);
}
.page-header .container { position: relative; z-index: 1; max-width: var(--max-w); }

@keyframes kenburns {
  0%, 100% { transform: scale(1.04); }
  50%      { transform: scale(1.12); }
}

/* ─── SECTION HEADINGS ───────────────────────────────────────────── */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }

/* ─── QUOTE BLOCK ────────────────────────────────────────────────── */
.quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25; color: var(--bone);
  text-align: center; max-width: 22ch; margin: 0 auto;
}
.quote::before, .quote::after {
  content: "\201C"; color: var(--gold); margin-right: .05em;
}
.quote::after { content: "\201D"; margin: 0 0 0 .05em; }
.quote-attrib {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-top: 28px; text-align: center;
}

/* ─── STATS STRIP ────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 42px 0;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-serif); font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 400; line-height: 1;
}
.stat-num .unit { color: var(--gold); font-size: .65em; }
.stat-label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .22em; color: var(--bone-faint);
  margin-top: 10px; text-transform: uppercase;
}

/* ─── FORM ───────────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 22px; max-width: 640px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; color: var(--bone);
  border: none; border-bottom: 1px solid var(--line-strong);
  padding: 16px 0 14px; font-family: var(--font-sans); font-size: 15px;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
}
.field label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--bone-faint); text-transform: uppercase;
  display: block; margin-bottom: 4px;
}
.field textarea { resize: vertical; min-height: 120px; }

/* ─── SCROLL HINT (Home only) ────────────────────────────────────── */
.scroll-hint {
  position: absolute; right: var(--pad-x); bottom: 28px; z-index: 3;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .22em; color: var(--bone); text-align: right;
  text-transform: uppercase;
}
.scroll-hint .arrow { display: block; margin-top: 4px; opacity: .65; animation: arrow-bob 2.2s ease-in-out infinite; }
@keyframes arrow-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(4px) } }

/* ─── UTILITIES ──────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.muted { color: var(--bone-dim); }
.gold { color: var(--gold); }
.center { text-align: center; }

/* ─── MOBILE GRID OVERRIDES ─────────────────────────────────────
   Force inline two-column grids to single column on small screens
   so text doesn't get cut off in narrow viewports.
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr"],
  [style*="grid-template-columns: 200px 1fr"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  /* Stack CTA buttons */
  .cta-band .actions { flex-direction: column; align-items: stretch; }
  .cta-band .actions .btn { justify-content: center; }
  /* Reduce hero side padding on mobile */
  .home-hero-content { padding-left: var(--pad-x) !important; padding-right: var(--pad-x) !important; }
}
