/*
Theme Name: Onterion
Theme URI: https://onterion-ai.de
Author: Onterion AI
Description: Custom-Theme für Onterion AI — Apple-minimal × futuristisch. Ultraschnell, keine externen Assets, DSGVO-clean.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: onterion
*/

/* ================== Design Tokens ================== */
:root {
  --bg-deep: #04060C;
  --bg-dark: #070B16;
  --bg-dark-2: #0B1224;
  --bg-light: #FFFFFF;
  --bg-soft: #F6F8FC;
  --ink-dark: #0B1220;
  --ink-light: #EAEFF8;
  --slate: #4B5871;
  --slate-light: #93A1BC;
  --teal: #14B8A6;
  --cyan: #38BDF8;
  --violet: #8B5CF6;
  --grad: linear-gradient(120deg, #14B8A6 0%, #38BDF8 50%, #8B5CF6 100%);
  --glass: rgba(255, 255, 255, .055);
  --glass-border: rgba(255, 255, 255, .12);
  --card-border: #E6EAF2;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 50px rgba(11, 18, 32, .08);
  --shadow-deep: 0 30px 80px rgba(2, 6, 16, .55);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .26, .99);
}

/* ================== Base ================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-dark);
  background: var(--bg-light); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: #0D9488; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--ink-light); }
.section--dark h2, .section--dark h3 { color: #fff; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; background: #fff; padding: 10px 16px; z-index: 999; border-radius: 8px; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; color: var(--ink-dark); font-weight: 750; }
h2.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 24ch; }
.section-head { margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #0D9488; margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow { color: #2DD4BF; }
.lead { font-size: 1.18rem; color: var(--slate); max-width: 62ch; }
.section--dark .lead, .section--dark p { color: var(--slate-light); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ================== Buttons ================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  border: 1px solid transparent; cursor: pointer; will-change: transform;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04201C; box-shadow: 0 10px 30px rgba(20, 184, 166, .35); }
.btn-primary:hover { box-shadow: 0 16px 44px rgba(56, 189, 248, .45); color: #03110F; }
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink-dark); color: #fff; }
.btn-dark:hover { background: #1A2438; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ================== Header ================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 8, 16, .72); backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-color: rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 12px rgba(20,184,166,.5)); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(234, 239, 248, .82); font-weight: 600; font-size: .98rem; transition: color .2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .nav-cta a { color: #04201C; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header auf hellen Innenseiten bleibt dunkel lesbar durch Hero-Strip */

/* ================== Hero ================== */
.hero {
  position: relative; overflow: hidden; background: var(--bg-deep); color: #fff;
  padding: 190px 0 130px; isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -3; opacity: .55; }
.aurora-1 { width: 640px; height: 640px; background: #0E4D45; top: -240px; left: -160px; animation: drift1 26s ease-in-out infinite alternate; }
.aurora-2 { width: 560px; height: 560px; background: #15355E; top: -120px; right: -180px; animation: drift2 32s ease-in-out infinite alternate; }
.aurora-3 { width: 480px; height: 480px; background: #3B2A6E; bottom: -260px; left: 32%; animation: drift3 38s ease-in-out infinite alternate; opacity: .45; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(90px, 60px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-80px, 90px) scale(.95); } }
@keyframes drift3 { from { transform: translate(0,0); } to { transform: translate(70px, -70px) scale(1.12); } }

.hero-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass);
  backdrop-filter: blur(10px); font-size: .85rem; font-weight: 600; color: #C7D2E6; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; max-width: 17ch; margin-bottom: 22px; }
.hero .lead { color: #ABB8D0; font-size: 1.16rem; max-width: 54ch; margin-bottom: 34px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 44px; padding: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 9px; color: #8E9DB8; font-size: .92rem; font-weight: 600; }
.hero-trust svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

/* Hero Mock — Schichtplan-Cockpit */
.mock-scene { perspective: 1400px; }
.mock {
  background: linear-gradient(165deg, rgba(255,255,255,.085), rgba(255,255,255,.03));
  border: 1px solid var(--glass-border); border-radius: 24px; padding: 26px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-deep);
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mock-title { font-size: .95rem; font-weight: 700; color: #DCE5F5; }
.mock-status { font-size: .76rem; font-weight: 700; color: #2DD4BF; background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.3); padding: 4px 12px; border-radius: 999px; }
.mock-rows { display: grid; gap: 12px; }
.mock-row { display: grid; grid-template-columns: 86px 1fr 44px; gap: 14px; align-items: center; }
.mock-label { font-size: .8rem; color: #8E9DB8; font-weight: 600; }
.mock-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.mock-bar i { position: absolute; inset: 0; border-radius: 6px; background: var(--grad); transform-origin: left; transform: scaleX(var(--fill, .8)); animation: fill 1.4s var(--ease) both; }
.mock-row:nth-child(2) .mock-bar i { animation-delay: .15s; }
.mock-row:nth-child(3) .mock-bar i { animation-delay: .3s; }
.mock-row:nth-child(4) .mock-bar i { animation-delay: .45s; }
.mock-row:nth-child(5) .mock-bar i { animation-delay: .6s; }
@keyframes fill { from { transform: scaleX(0); } }
.mock-pct { font-size: .8rem; font-weight: 700; color: #C7D2E6; text-align: right; }
.mock-foot { display: flex; gap: 10px; margin-top: 22px; }
.chip { font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #ABB8D0; background: rgba(255,255,255,.04); }
.chip--ok { color: #2DD4BF; border-color: rgba(20,184,166,.35); background: rgba(20,184,166,.09); }

/* ================== Cards (hell) ================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 30px; position: relative; box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover { box-shadow: 0 28px 70px rgba(11, 18, 32, .13); border-color: #D5DEEC; }
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.card:hover::after { opacity: .85; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--slate); margin: 0; font-size: .99rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .94rem; }
.icon {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(56,189,248,.12));
  color: #0D9488; border: 1px solid rgba(20,184,166,.22);
}
.icon svg { width: 25px; height: 25px; }

/* Pain-Cards */
.pain { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-soft); }
.pain .x { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #FEF2F2; color: #EF4444; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; }
.pain b { display: block; margin-bottom: 3px; }
.pain span { color: var(--slate); font-size: .96rem; }

/* ================== Why (dark band) ================== */
.why-band { position: relative; overflow: hidden; }
.why-band .aurora { opacity: .35; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 38px; }
.checks li { display: flex; gap: 15px; align-items: flex-start; }
.checks .ok {
  flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(20,184,166,.45);
}
.checks .ok svg { width: 13px; height: 13px; color: #04201C; }
.checks b { display: block; color: #fff; margin-bottom: 2px; }
.checks span { color: var(--slate-light); font-size: .97rem; }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 52px; }
.stat {
  flex: 1; min-width: 200px; text-align: center; padding: 26px 18px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}
.stat b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: #8E9DB8; font-size: .9rem; font-weight: 600; }

/* ================== Branchen ================== */
.branch { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 20px 22px; font-weight: 700; color: var(--ink-dark); box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), box-shadow .3s; }
a.branch:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(11,18,32,.12); text-decoration: none; }
.branch .icon { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.branch .icon svg { width: 21px; height: 21px; }
.branch small { display: block; font-weight: 500; color: var(--slate); font-size: .85rem; }

/* ================== Prozess ================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-size: .95rem; font-weight: 800; letter-spacing: .02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ================== Über ================== */
.about-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 36px; align-items: center;
  background: var(--bg-dark); color: var(--ink-light); border-radius: 26px; padding: 46px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-deep);
}
.about-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #134E48; filter: blur(110px); top: -200px; right: -120px; opacity: .55; }
.about-photo {
  width: 140px; height: 140px; border-radius: 28px; position: relative; z-index: 1;
  background: var(--grad); color: #04201C; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; box-shadow: 0 16px 40px rgba(20,184,166,.4);
}
.about-card h2 { color: #fff; margin-bottom: 10px; font-size: 1.65rem; }
.about-card p { color: var(--slate-light); margin: 0; position: relative; z-index: 1; }
.about-card a { color: #2DD4BF; font-weight: 700; }

/* ================== FAQ ================== */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--card-border); border-radius: 16px; padding: 0 26px; margin-bottom: 14px; box-shadow: var(--shadow-soft); transition: border-color .25s; }
.faq details[open] { border-color: rgba(20,184,166,.45); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; padding: 21px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; color: #0D9488; font-size: 1.25rem; font-weight: 600; transition: transform .3s var(--ease), background .25s; }
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); background: rgba(20,184,166,.1); }
.faq details p { color: var(--slate); margin: 0 0 22px; }

/* ================== CTA-Band ================== */
.cta-band { position: relative; overflow: hidden; background: var(--bg-deep); color: #fff; text-align: center; padding: 120px 0; }
.cta-band .aurora-1 { left: 50%; top: -300px; transform: translateX(-80%); }
.cta-band .aurora-3 { left: 55%; bottom: -300px; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 24ch; margin: 0 auto .4em; }
.cta-band p { color: #ABB8D0; max-width: 52ch; margin: 0 auto 36px; font-size: 1.12rem; }

/* ================== Footer ================== */
.site-footer { background: #03050A; color: #8E9DB8; padding: 70px 0 36px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer p { font-size: .95rem; max-width: 36ch; }
.site-footer h4 { color: #DCE5F5; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #ABB8D0; font-size: .96rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }

/* ================== Innenseiten ================== */
.page-hero { background: var(--bg-deep); color: #fff; padding: 168px 0 76px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; margin: 0; }
.page-hero .aurora { opacity: .4; }
.prose { max-width: 800px; margin: 0 auto; padding: 84px 28px 30px; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .45em; }
.prose p { color: #2A3650; }
.prose ul, .prose ol { color: #2A3650; padding-left: 24px; display: grid; gap: 9px; }
.prose li::marker { color: #0D9488; font-weight: 700; }
.prose a { font-weight: 600; }
.prose .btn { margin: 10px 0; color: #04201C; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--card-border); padding: 12px 14px; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose blockquote { border-left: 3px solid var(--teal); margin: 1.4em 0; padding: 6px 0 6px 22px; color: var(--slate); }

/* ================== Reveal Animations ================== */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-d1.in { transition-delay: .08s; } .reveal-d2.in { transition-delay: .16s; }
.reveal-d3.in { transition-delay: .24s; } .reveal-d4.in { transition-delay: .32s; }
.reveal-d5.in { transition-delay: .4s; }

/* ================== Responsive ================== */
@media (max-width: 1020px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 56px; }
  .mock { transform: rotateY(0) rotateX(0); max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 78px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; text-align: center; padding: 38px 26px; }
  .about-photo { margin: 0 auto; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(4, 6, 12, .96); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 30px; font-size: 1.25rem;
    transform: translateY(-102%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .hero { padding: 150px 0 90px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
}

/* ================== Reduced Motion ================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .mock-bar i, .hero-badge .dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mock { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
