/* ==========================================================================
   KI-Beratung Schroell — Static site styles
   Design tokens from the Schroell Design System.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --color-blue-900: #0F2540;
  --color-blue-700: #1D3C58;
  --color-blue-500: #3A6493;
  --color-blue-300: #B0C4D8;
  --color-blue-100: #E4ECF4;

  --color-orange-700: #C77600;
  --color-orange-500: #F39200;
  --color-orange-300: #FBC97A;
  --color-orange-100: #FDEEDB;

  --color-white:    #FFFFFF;
  --color-offwhite: #FAF7F2;
  --color-gray-50:  #F4F4F4;
  --color-gray-200: #E2E2E2;
  --color-gray-400: #A0A0A0;
  --color-gray-600: #6B6B6B;
  --color-gray-800: #333333;
  --color-black:    #0B0B0B;

  --fg-1: var(--color-blue-700);
  --fg-2: var(--color-gray-800);
  --fg-3: var(--color-gray-600);
  --fg-muted: var(--color-gray-400);
  --fg-on-dark: var(--color-white);
  --fg-accent: var(--color-orange-500);

  --bg-1: var(--color-white);
  --bg-2: var(--color-offwhite);
  --bg-3: var(--color-gray-50);
  --bg-dark: var(--color-blue-700);

  --border: var(--color-gray-200);
  --border-strong: var(--color-blue-300);

  --action: var(--color-orange-500);
  --action-hover: var(--color-orange-700);
  --link: var(--color-blue-700);
  --link-hover: var(--color-orange-500);

  --font-display: 'Montserrat', 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-quote:   'Lato', 'Open Sans', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(29, 60, 88, 0.06), 0 1px 1px rgba(29, 60, 88, 0.04);
  --shadow-md: 0 4px 12px rgba(29, 60, 88, 0.08), 0 1px 3px rgba(29, 60, 88, 0.05);
  --shadow-lg: 0 12px 32px rgba(29, 60, 88, 0.10), 0 2px 6px rgba(29, 60, 88, 0.06);
  --shadow-focus: 0 0 0 3px rgba(243, 146, 0, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
  --dur-slow: 360ms;

  --container: 1180px;
  --container-narrow: 760px;
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--fg-1);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--fg-1); font-weight: 700; }

a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease-out); }
a:hover { color: var(--link-hover); }

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

::selection { background: var(--color-orange-300); color: var(--color-blue-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--container-narrow); }

.overline {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-accent);
  margin: 0 0 12px;
  display: block;
}
.accent-line {
  width: 88px; height: 6px;
  background: var(--color-orange-500);
  border-radius: 3px;
  margin: 0 0 28px;
}
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-lead { font-size: 19px; color: var(--fg-2); max-width: 720px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600;
  padding: 13px 26px; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--dur) var(--ease-out);
  text-decoration: none;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--color-blue-700); color: var(--color-blue-700); background: transparent; }
.btn-outline:hover { background: var(--color-blue-700); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--color-blue-700); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; color: var(--fg-1); font-size: 18px; letter-spacing: -0.01em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--color-blue-700); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  letter-spacing: 0.02em;
}
.brand span small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--fg-accent); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--fg-2); padding: 8px 12px; border-radius: 6px; }
.nav-links a:hover { color: var(--fg-1); background: var(--bg-3); }
.nav-links a.is-cta { color: var(--action); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--fg-1); margin: 5px 0; transition: var(--dur); }

/* ---- Hero ---- */
.hero {
  background: var(--bg-2);
  background-image: radial-gradient(circle at 1px 1px, rgba(176,196,216,0.35) 1px, transparent 0);
  background-size: 28px 28px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: clamp(48px, 7vw, 92px) 0;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 20px; color: var(--fg-2); margin-bottom: 28px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-img { border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-img img { width: 100%; }

/* ---- Trust badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: 999px; background: var(--color-blue-100); color: var(--color-blue-700);
  border: 1px solid var(--border-strong);
}

/* ---- Cards ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card.accent-top { position: relative; }
.card.accent-top::before {
  content: ""; position: absolute; top: 0; left: 28px;
  width: 36px; height: 4px; background: var(--color-orange-500);
  border-radius: 0 0 3px 3px;
}
.card h3, .card h4 { margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.card .kpi-num { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--color-orange-500); line-height: 1; }

.card-dark { background: var(--bg-dark); color: rgba(255,255,255,0.85); border-color: transparent; }
.card-dark h3, .card-dark h4 { color: #fff; }

/* ---- Bullet list styling ---- */
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-orange-500); transform: rotate(45deg);
}

/* ---- Step / maturity model ---- */
.steps { display: grid; gap: 16px; }
.steps-7 { grid-template-columns: repeat(7, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 18px; box-shadow: var(--shadow-sm);
}
.step .num {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: #fff; background: var(--color-blue-700);
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step:nth-child(n) .num { background: linear-gradient(135deg, var(--color-blue-700), var(--color-blue-500)); }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--fg-3); }

/* ---- Split feature block ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.on-dark { background: var(--bg-dark); color: rgba(255,255,255,0.86); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .overline { color: var(--color-orange-300); }
.on-dark .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.86); }
.on-dark .card h3, .on-dark .card h4 { color: #fff; }

/* ---- KPI band ---- */
.kpi-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.kpi-band .big { font-family: var(--font-mono); font-size: clamp(40px, 6vw, 64px); font-weight: 700; color: var(--color-orange-500); line-height: 1; }
.kpi-band .lbl { font-family: var(--font-display); font-weight: 700; color: var(--fg-1); font-size: 20px; margin: 8px 0 6px; }
.kpi-band p { font-size: 15px; color: var(--fg-3); }

blockquote {
  font-family: var(--font-quote); font-style: italic;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.4; color: var(--fg-1);
  border-left: 4px solid var(--color-orange-500);
  padding: 8px 28px; margin: 0; max-width: 820px;
}

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.about-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.linkedin-card {
  display: flex; align-items: center; gap: 14px; margin-top: 18px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-1);
}
.linkedin-card img { width: 44px; height: 44px; border-radius: 8px; }

/* ---- FAQ ---- */
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-1); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-1);
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .icon { flex: none; width: 24px; height: 24px; position: relative; transition: transform var(--dur) var(--ease-out); }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--color-orange-500); border-radius: 2px; }
.faq-q .icon::before { top: 11px; left: 3px; width: 18px; height: 2px; }
.faq-q .icon::after { left: 11px; top: 3px; width: 2px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.faq-item.open .faq-q .icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq-a-inner { padding: 0 24px 20px; color: var(--fg-2); }

/* ---- CTA cards ---- */
.cta-final { background: var(--bg-2); }
.cta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }

/* ---- Contact / footer ---- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 64px 0 40px; }
.footer h3 { color: #fff; }
.footer a { color: var(--color-orange-300); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.footer .contact-line { margin-bottom: 6px; }
.footer .muted { color: rgba(255,255,255,0.5); font-size: 14px; font-style: italic; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; font-size: 14px; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Sub-page hero (compact) ---- */
.page-hero {
  background: var(--bg-2);
  background-image: radial-gradient(circle at 1px 1px, rgba(176,196,216,0.35) 1px, transparent 0);
  background-size: 28px 28px;
  padding: clamp(48px, 7vw, 80px) 0;
}
.page-hero .container { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero .lead { font-size: 20px; color: var(--fg-2); max-width: 640px; margin: 18px 0 0; }
.page-hero .hero-cta { margin-top: 26px; }
.page-hero-mark { width: 120px; height: 120px; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }

/* ---- Prose (legal pages) ---- */
.prose { max-width: var(--container-narrow); margin: 0 auto; }
.prose h3 { margin: 40px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { margin: 24px 0 8px; }
.prose p { color: var(--fg-2); }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 18px 0; background: var(--bg-3); border-radius: 0 8px 8px 0; }
.prose .divider { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---- Highlight (==text==) ---- */
.hl { background: linear-gradient(transparent 60%, var(--color-orange-300) 60%); font-weight: 600; color: var(--fg-1); padding: 0 2px; }

/* ---- Horizontal flow (attack chain) ---- */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; align-items: stretch; }
.flow .node { position: relative; background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); }
.flow .node .n { font-family: var(--font-mono); font-weight: 700; color: var(--color-orange-500); font-size: 14px; }
.flow .node h4 { font-size: 17px; margin: 8px 0 6px; }
.flow .node p { font-size: 14px; color: var(--fg-3); }
.flow .arrow { align-self: center; color: var(--color-blue-300); font-size: 26px; padding: 0 6px; }

/* ---- Compare pro/con ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .col { border-radius: 14px; padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.compare .col.bad { background: #FBEEEC; border-color: #E7C6C0; }
.compare .col.good { background: #EAF3EE; border-color: #C2DECF; }
.compare .col h3 { margin-bottom: 14px; }
.compare .col ul { list-style: none; margin: 0; padding: 0; }
.compare .col li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.compare .col.bad li::before { content: "×"; position: absolute; left: 0; top: -1px; color: var(--danger); font-weight: 700; font-size: 18px; }
.compare .col.good li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700; }

/* ---- Deck-style numbered slide sections ---- */
.deck-slide { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--border); position: relative; }
.deck-slide .slide-no { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--fg-accent); }
.deck-slide.dark { background: var(--bg-dark); color: rgba(255,255,255,0.86); border-bottom-color: rgba(255,255,255,0.12); }
.deck-slide.dark h1, .deck-slide.dark h2, .deck-slide.dark h3, .deck-slide.dark .slide-no { color: #fff; }
.deck-slide.dark .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.deck-slide.dark .card h3, .deck-slide.dark .card h4 { color: #fff; }
.big-stat { font-family: var(--font-mono); font-size: clamp(48px, 9vw, 96px); font-weight: 700; color: var(--color-orange-500); line-height: 1; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .steps-7 { grid-template-columns: repeat(4, 1fr); }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform var(--dur-slow) var(--ease-out); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .hero-grid, .split, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero-mark { order: -1; }
  .flow { grid-auto-flow: row; }
  .flow .arrow { transform: rotate(90deg); padding: 4px 0; justify-self: center; }
  .compare { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .about-photo { max-width: 320px; }
  .grid-3, .grid-4, .steps-7, .steps-5, .kpi-band, .cta-cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .kpi-band { grid-template-columns: repeat(3, 1fr); }
}
