/* Bloch Beratung — Design System v2 · Fresh / Tech / Light */

/* ═══════════════════════════════════════════
   TOKENS — Light default
═══════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:       #f2f6ff;
  --bg-elev:  #ffffff;
  --bg-card:  #ffffff;
  --bg-blue:  #fff8e6;
  --bg-teal:  #fdf3dc;

  /* Ink */
  --ink:       #0b1628;
  --ink-dim:   #4a5a7a;
  --ink-faint: #8898b8;

  /* Gold — primary accent */
  --blue:        #c08a1a;
  --blue-light:  #d9a020;
  --blue-soft:   #fff8e6;
  --blue-glow:   rgba(192, 138, 26, 0.18);
  --blue-border: rgba(192, 138, 26, 0.25);

  /* Deep gold — secondary accent */
  --teal:       #8a6010;
  --teal-light: #b07818;
  --teal-soft:  #fdf3dc;

  /* Amber — brand identity accent */
  --gold:       #c08a1a;
  --gold-bright:#d9a020;
  --gold-deep:  #8a6010;
  --gold-soft:  #fff8e6;

  /* Borders */
  --line:      #dce5f8;
  --line-soft: #eef3ff;

  /* Shadows */
  --shadow-xs: 0 1px 4px  rgba(10,20,70,.05);
  --shadow-sm: 0 2px 12px rgba(10,20,70,.08);
  --shadow:    0 4px 24px rgba(10,20,70,.10);
  --shadow-lg: 0 12px 48px rgba(10,20,70,.14);
  --shadow-blue: 0 6px 28px rgba(192,138,26,.22);

  /* Fonts */
  --serif: "Inter", "Helvetica Neue", -apple-system, sans-serif;
  --sans:  "Inter", "Helvetica Neue", -apple-system, sans-serif;
  --mono:  "Inter", "Helvetica Neue", -apple-system, sans-serif;

  /* Layout */
  --maxw:   1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --r:      14px;
  --r-lg:   22px;
  --r-xl:   30px;
}

/* ═══════════════════════════════════════════
   DARK THEME
═══════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:       #09090f;
  --bg-elev:  #111120;
  --bg-card:  #191928;
  --bg-blue:  #1e1506;
  --bg-teal:  #150e02;

  --ink:       #e4eaff;
  --ink-dim:   #8898c0;
  --ink-faint: #4a5570;

  --blue:       #d9a020;
  --blue-light: #e8b530;
  --blue-soft:  #1e1506;
  --blue-glow:  rgba(217,160,32,.25);
  --blue-border:rgba(217,160,32,.3);

  --teal:       #c08a1a;
  --teal-light: #d9a020;
  --teal-soft:  #150e02;

  --gold:       #d9a020;
  --gold-bright:#e8b530;
  --gold-soft:  #1e1506;

  --line:      #22253a;
  --line-soft: #181828;

  --shadow-xs: 0 1px 4px  rgba(0,0,0,.3);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.35);
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.55);
  --shadow-blue: 0 6px 28px rgba(192,138,26,.3);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s ease, color .3s ease;
}
a  { color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(72px, 9vw, 136px) 0; position: relative; }
section.compact { padding: clamp(48px, 6vw, 96px) 0; }
.section-head {
  max-width: 960px;
  margin-bottom: clamp(48px, 6vw, 88px);
  display: grid; gap: 16px;
}
.section-head .lead { margin-top: 4px; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--blue); border-radius: 2px;
  flex-shrink: 0;
}

h1,h2,h3,h4 {
  font-family: var(--sans); font-weight: 600;
  line-height: 1.04; letter-spacing: -.025em;
  text-wrap: balance;
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.h-display { font-size: clamp(38px, 5.2vw, 78px); line-height: 1.01; }
.h-1  { font-size: clamp(34px, 4.8vw, 70px); }
.h-2  { font-size: clamp(26px, 3vw, 46px); }
.h-3  { font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; }

.italic { font-style: italic; }
.gold  { color: var(--gold); }
.blue  { color: var(--blue); }
.teal  { color: var(--teal); }
.dim   { color: var(--ink-dim); }

p.lead { font-size: clamp(17px, 1.3vw, 21px); color: var(--ink-dim); line-height: 1.55; max-width: 62ch; }

/* Blue gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.5);
  background: color-mix(in oklab, var(--bg-elev) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px var(--blue-glow);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { line-height: 1; }
.brand-name small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--ink-faint); margin-top: 3px; font-weight: 500; text-transform: uppercase; }

nav.primary { display: flex; gap: 2px; align-items: center; }
nav.primary a {
  padding: 9px 15px; font-size: 14px; color: var(--ink-dim);
  border-radius: 999px; transition: color .2s, background .2s;
}
nav.primary a:hover { color: var(--ink); background: var(--bg-blue); }
nav.primary a.active { color: var(--blue); font-weight: 500; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 8px 32px var(--blue-glow); }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-arrow { font-size: 16px; line-height: 1; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════ */
.marquee {
  padding: 16px 0; overflow: hidden;
  background: linear-gradient(90deg, var(--blue) 0%, #2563eb 45%, var(--teal) 100%);
}
.marquee-track {
  display: flex; gap: 64px; white-space: nowrap;
  animation: scroll 44s linear infinite;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.7vw, 23px); color: #fff;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .65em; opacity: .5; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card .num {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  display: block; margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   SERVICE CARDS (photo-based)
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .3s ease, border-color .25s;
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-border);
}

.service-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  position: relative; background: var(--bg-blue);
  flex-shrink: 0;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease;
  display: block;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,22,40,.4) 0%, transparent 55%);
  pointer-events: none;
}

/* Blue accent chip on card img */
.service-card-chip {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 5px 12px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
}

.service-card-body {
  padding: 26px 28px 28px; flex: 1;
  display: flex; flex-direction: column;
  border-top: 2px solid var(--bg-blue);
}
.service-card-body h3 {
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
  margin: 10px 0 10px;
  line-height: 1.2;
}
.service-card-body p {
  font-size: 14.5px; color: var(--ink-dim);
  line-height: 1.6; flex: 1; margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   SITUATIONS GRID
═══════════════════════════════════════════ */
.situations-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
}
.situation { background: var(--bg-card); display: flex; flex-direction: column; transition: background .2s; }
.situation:hover { background: var(--bg-blue); }
.situation-illu {
  aspect-ratio: 200/130;
  background: linear-gradient(160deg, var(--bg-blue) 0%, var(--bg-elev) 100%);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center; padding: 16px;
}
.situation-illu svg { width: 100%; height: 100%; max-width: 210px; }
.situation-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.situation-num {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.situation-title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.2; }
.situation-text  { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }
.situations-closing { margin-top: 44px; text-align: center; font-size: 17px; color: var(--ink-dim); }
.situations-closing a {
  color: var(--blue); border-bottom: 1px solid color-mix(in oklab, var(--blue) 35%, transparent);
  padding-bottom: 2px; margin-left: 8px; transition: border-color .2s;
}
.situations-closing a:hover { border-color: var(--blue); }

@media (max-width: 980px) { .situations-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .situations-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px var(--gutter) 36px;
  background: var(--bg);
}
.site-footer .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.site-footer h4 {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 16px; font-weight: 500;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--ink-dim); font-size: 14px; transition: color .2s; }
.site-footer a:hover { color: var(--blue); }
.site-footer .copy {
  grid-column: 1/-1; padding-top: 28px; border-top: 1px solid var(--line);
  margin-top: 12px; display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-faint);
}

/* ═══════════════════════════════════════════
   TWEAKS PANEL
═══════════════════════════════════════════ */
.tweaks-toggle {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elev); border: 1px solid var(--line);
  cursor: pointer; z-index: 99;
  display: grid; place-items: center; color: var(--ink-dim);
  box-shadow: var(--shadow);
}
.tweaks-toggle:hover { color: var(--blue); border-color: var(--blue); }
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; z-index: 100;
  box-shadow: var(--shadow-lg); display: none; min-width: 260px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 500; }
.tweak-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.tweak-row label { font-size: 14px; color: var(--ink); }
.theme-switch { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.theme-switch button { padding: 6px 14px; border-radius: 999px; border: none; background: transparent; color: var(--ink-dim); cursor: pointer; font-size: 13px; transition: background .2s, color .2s; }
.theme-switch button.on { background: var(--blue); color: #fff; }

/* ═══════════════════════════════════════════
   LOGO SWITCHING
═══════════════════════════════════════════ */
.logo-light-only { display: block; }
.logo-dark-only  { display: none; }
[data-theme="dark"] .logo-light-only { display: none; }
[data-theme="dark"] .logo-dark-only  { display: block; }

/* ═══════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════ */
@media (max-width: 760px) {
  nav.primary { display: none; }
  .menu-btn { display: inline-flex; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .site-footer .copy { flex-direction: column; gap: 12px; }
  .header-cta-text { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg-elev);
  display: none; flex-direction: column;
  padding: 80px var(--gutter) var(--gutter);
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn { position: absolute; top: 18px; right: var(--gutter); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 34px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ═══════════════════════════════════════════
   TECH / AI DECORATIONS
═══════════════════════════════════════════ */
/* Subtle dot grid background */
.bg-dots {
  background-image: radial-gradient(circle, rgba(26,92,248,.10) 1.5px, transparent 0);
  background-size: 30px 30px;
}

/* KI chip badge */
.ki-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft));
  border: 1px solid var(--blue-border);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); font-weight: 500;
}
.ki-chip::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  box-shadow: 0 0 6px var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.8); }
}

/* Stat number accent */
.stat-num {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   RESPONSIVE GRID HELPERS
═══════════════════════════════════════════ */
.grid-2col { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.grid-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.sticky-col { position: sticky; top: 100px; }

@media (max-width: 800px) {
  .grid-2col { grid-template-columns: 1fr !important; gap: 40px; }
  .grid-equal { grid-template-columns: 1fr !important; }
  .grid-sidebar { grid-template-columns: 1fr !important; }
  .sticky-col { position: static; }
  .hide-mobile { display: none !important; }
  .site-footer .inner { grid-template-columns: 1fr !important; }
}

@media (max-width: 760px) {
  .h-display { font-size: clamp(36px, 10vw, 64px) !important; }
  .container { padding-inline: 20px; }
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2col h2.h-1 {
    font-size: clamp(32px, 8vw, 52px) !important;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats-grid > div {
    padding: 20px 16px !important;
  }
}

/* System tiles (2x2 grid in Anbieterneutralität) */
.system-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* KI Readiness 4-card grid */
.ki-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 800px) {
  .system-tiles-grid {
    grid-template-columns: 1fr;
  }
  .ki-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ki-cards-grid {
    grid-template-columns: 1fr;
  }
  .ki-cards-grid > div {
    padding: 20px 18px !important;
  }
}

/* Reference articles (Logo | Text | Quote) */
.ref-article {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

@media (max-width: 800px) {
  .ref-article {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}
