/* ============================================================
   SPProducts GmbH – Website
   Sauber nachgebaut (Umzug von Manus → All-inkl)
   ============================================================ */

/* ---------- Schrift: Outfit (lokal gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design-Tokens ---------- */
:root {
  --dark:        #0c121a;
  --dark-2:      #121b27;
  --dark-3:      #1a2534;
  --cream:       #f3f1ee;
  --cream-2:     #faf9f7;
  --white:       #ffffff;
  --accent:      #db684c;
  --accent-2:    #f48e74;
  --accent-soft: rgba(219, 104, 76, 0.08);

  --ink:         #1a2230;   /* Text auf hell */
  --ink-muted:   #5a6472;
  --on-dark:     #eef1f5;   /* Text auf dunkel */
  --on-dark-mut: #97a3b4;
  --line:        #e5e1db;
  --line-dark:   rgba(255,255,255,0.10);

  --radius:      16px;
  --radius-sm:   12px;
  --container:   1200px;
  --shadow:      0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-lg:   0 24px 60px rgba(16, 24, 40, 0.14);
  --ease:        cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--dark  { background: var(--dark);  color: var(--on-dark); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }

.overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-muted); font-size: 1.08rem; margin-top: 16px; }
.section--dark .section-head p { color: var(--on-dark-mut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(219,104,76,.3); }
.btn--primary:hover { background: #cf5b3f; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.section--dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: rgba(255,255,255,.08); border-color: var(--line-dark); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.16); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(16,24,40,.05);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.header__logo img { height: 30px; width: auto; transition: filter .3s; }
/* Logo hell/weiß solange Header transparent über dem dunklen Hero liegt */
.header:not(.scrolled) .header__logo img { filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 8px; font-size: 0.95rem; font-weight: 500;
  color: var(--ink); transition: color .2s, background .2s;
}
.header:not(.scrolled) .nav a { color: rgba(255,255,255,.86); }
.nav a:hover { color: var(--accent); }
.header:not(.scrolled) .nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn--ghost { padding: 10px 18px; }
.header:not(.scrolled) .header__cta .btn--ghost { border-color: rgba(255,255,255,.3); color:#fff; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border: none; background: transparent; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: .3s; }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
.header:not(.scrolled) .burger { color:#fff; } .header.scrolled .burger { color: var(--ink); }
body.nav-open .burger span:nth-child(1){ transform: rotate(45deg); top: 21px; }
body.nav-open .burger span:nth-child(2){ opacity: 0; }
body.nav-open .burger span:nth-child(3){ transform: rotate(-45deg); top: 21px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; background: var(--dark); color:#fff; overflow: hidden; }
.hero__intro { position: relative; z-index: 3; text-align: center; padding: 130px 24px 40px; max-width: 860px; margin: 0 auto; }
.hero__logo { height: 74px; width: auto; margin: 0 auto 30px; filter: brightness(0) invert(1); }
.hero__intro p { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: rgba(255,255,255,.82); margin: 0 auto; max-width: 680px; }
.hero__accent { display:block; color: var(--accent-2); font-weight: 600; margin-top: 8px; }

.hero__split { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.hero__half {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 60px 40px;
  overflow: hidden; transition: flex .4s;
}
.hero__half::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .5; transition: opacity .5s, transform 6s var(--ease);
}
.hero__half--ki::before   { background-image: url('../img/hero-ki.jpg'); }
.hero__half--ec::before   { background-image: url('../img/hero-ecommerce.jpg'); }
.hero__half::after {
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(12,18,26,.55), rgba(12,18,26,.82));
  transition: background .4s;
}
.hero__half:hover::before { opacity: .8; transform: scale(1.05); }
.hero__half:hover::after  { background: linear-gradient(180deg, rgba(12,18,26,.35), rgba(12,18,26,.7)); }
.hero__half-inner { position: relative; z-index: 2; max-width: 440px; text-align: center; }
.hero__half .icon-badge { margin: 0 auto 20px; }
.hero__half h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.hero__half p { color: rgba(255,255,255,.8); margin-bottom: 24px; }

.hero__scroll { position: relative; z-index: 3; display: flex; justify-content: center; padding: 20px 0 34px; }
.hero__mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.hero__mouse::after { content:""; position:absolute; top:8px; left:50%; width:4px; height:8px; background:#fff; border-radius:2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform: translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform: translate(-50%,12px);} 100%{opacity:0;} }

/* ---------- Icon-Badge ---------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.icon-badge svg { width: 26px; height: 26px; stroke-width: 1.8; }
.section--dark .icon-badge { background: rgba(255,255,255,.06); color: var(--accent-2); }

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

/* ---------- Karten ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 1.18rem; margin: 16px 0 8px; }
.card p { color: var(--ink-muted); font-size: 0.97rem; margin: 0; }

.card--dark { background: var(--dark-2); border-color: var(--line-dark); color: var(--on-dark); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-mut); }
.card--dark .card__list li { color: var(--on-dark-mut); }

.card__list { list-style: none; margin: 16px 0 0; padding: 0; }
.card__list li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 0.92rem; color: var(--ink-muted); }
.card__list li::before { content:""; position:absolute; left:2px; top:9px; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.card__link { display: inline-flex; align-items:center; gap:6px; margin-top: 16px; color: var(--accent-2); font-weight:600; font-size:.9rem; }
.card__link:hover { gap: 10px; }
.card__link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Promise (4 Versprechen) */
.promise .card { text-align: left; }

/* KI-Referenzen (bunte Kategorie-Karten mit Kennzahlen) */
.ref-card { background: var(--dark-2); border:1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s; }
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ref-card__cat { font-size: .72rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.ref-card h3 { color:#fff; font-size: 1.12rem; margin: 4px 0 10px; }
.ref-card p { color: var(--on-dark-mut); font-size: .92rem; }
.ref-card__stats { display:flex; gap: 26px; margin-top: 18px; padding-top:16px; border-top:1px solid var(--line-dark); }
.ref-card__stat .num { font-size: 1.5rem; font-weight: 700; color: var(--accent-2); line-height:1; }
.ref-card__stat .lbl { font-size: .78rem; color: var(--on-dark-mut); margin-top: 4px; }
.ic-tile { width:44px; height:44px; border-radius: 12px; display:flex; align-items:center; justify-content:center; color:#fff; margin-bottom: 14px; }
.ic-tile svg { width:22px; height:22px; }

/* Plattform-Logos */
.platforms { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: 36px; margin: 8px 0 40px; }
.platforms img { height: 34px; width:auto; object-fit: contain; opacity:.85; filter: grayscale(1); transition: .3s; }
.platforms img:hover { opacity:1; filter: none; }

/* E-Commerce Vorteile */
.ec-points { list-style:none; padding:0; margin: 0 0 28px; display:grid; gap:14px; }
.ec-points li { position:relative; padding-left: 34px; font-weight: 500; }
.ec-points li svg { position:absolute; left:0; top:2px; width:22px; height:22px; color: var(--accent); }

/* Projekte */
.tag { display:inline-block; font-size:.72rem; font-weight:600; padding:4px 10px; border-radius:999px; background: var(--accent-soft); color: var(--accent); margin: 2px 4px 2px 0; }
.section--dark .tag { background: rgba(255,255,255,.07); color: var(--on-dark-mut); }
.project-badge { font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color: var(--accent); font-weight:600; }
.project-metric { display:flex; align-items:baseline; gap:8px; margin: 14px 0; }
.project-metric .num { font-size: 1.7rem; font-weight:700; color: var(--accent-2); }
.project-metric .lbl { color: var(--on-dark-mut); font-size:.9rem; }
.subhead { text-align:center; font-size:1.1rem; font-weight:600; color: var(--accent); letter-spacing:.05em; margin: 52px 0 24px; }

/* Blog-Teaser */
.blog-card { display:grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--dark-2); border:1px solid var(--line-dark); border-radius: var(--radius); overflow:hidden; }
.blog-card__body { padding: 40px; }
.blog-card__side { background: linear-gradient(135deg, #1a2534, #0c121a); display:flex; align-items:center; justify-content:center; padding: 30px; }
.blog-card__side .badge-big { text-align:center; }
.blog-card__side .badge-big span { display:block; }
.blog-card__side .badge-big .k { font-size:.8rem; letter-spacing:.16em; color: var(--accent-2); text-transform:uppercase; }
.blog-card__side .badge-big .b { font-size:1.5rem; font-weight:700; color:#fff; margin-top:6px; }
.blog-card h3 { color:#fff; font-size:1.5rem; margin: 14px 0; }
.blog-card p { color: var(--on-dark-mut); }
.blog-card__meta { display:flex; gap:18px; color: var(--on-dark-mut); font-size:.85rem; margin-top: 18px; }

/* CTA */
.cta { text-align:center; background: linear-gradient(160deg, #131c28, #0c121a); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color:#fff; }
.cta p { color: var(--on-dark-mut); max-width: 560px; margin: 16px auto 32px; font-size:1.08rem; }
.cta__buttons { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta__note { color: var(--on-dark-mut); font-size:.86rem; margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { background: #080d14; color: var(--on-dark-mut); padding: 64px 0 30px; }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 30px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer__claim { max-width: 360px; font-size:.95rem; }
.footer__contact { margin-top: 18px; font-size:.92rem; line-height:1.9; }
.footer__contact a:hover { color: var(--accent-2); }
.footer h4 { color:#fff; font-size:.85rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom: 16px; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer li { margin-bottom: 10px; }
.footer li a:hover { color: var(--accent-2); }
.footer__bottom { border-top:1px solid var(--line-dark); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; }
.footer__social { display:flex; gap:12px; }
.footer__social a { width:36px; height:36px; border:1px solid var(--line-dark); border-radius:8px; display:flex; align-items:center; justify-content:center; transition:.2s; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- Reveal-Animation (Progressive Enhancement) ---------- */
/* Ohne JS oder bei JS-Fehler ist alles sichtbar; erst mit .js wird animiert. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rechtsseiten / Artikel ---------- */
.page-hero { background: var(--dark); color:#fff; padding: 130px 0 60px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .meta { color: var(--on-dark-mut); margin-top: 12px; }
.prose { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p { color: #333c49; margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); font-weight:500; }
.prose a:hover { text-decoration: underline; }
.prose table { width:100%; border-collapse: collapse; margin: 20px 0; font-size:.95rem; }
.prose th, .prose td { text-align:left; padding: 12px 14px; border-bottom:1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cream); font-weight:600; }
.back-link { display:inline-flex; align-items:center; gap:8px; color: var(--accent); font-weight:600; margin-bottom: 20px; white-space: nowrap; }
.back-link:hover { gap: 12px; }
.back-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__side { order: -1; min-height: 160px; }
}
@media (max-width: 820px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(10,15,22,.98); backdrop-filter: blur(12px); padding: 16px; gap: 4px;
    transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
  }
  body.nav-open .nav { transform: none; display: flex; }
  body.nav-open { overflow: hidden; }
  .nav a { color:#fff !important; padding: 14px; font-size: 1.05rem; }
  .hero__split { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .footer__grid { grid-template-columns: 1fr; }
  .ref-card__stats { gap: 18px; }
  .prose table, .prose thead, .prose tbody, .prose th, .prose td, .prose tr { display:block; }
  .prose th { display:none; }
  .prose td { border:none; padding: 4px 0; }
  .prose tr { border-bottom:1px solid var(--line); padding: 12px 0; }
}
