/*
Theme Name: Aiphory DSGVO Design
Version: 1.6
Description: DSGVO-konformes Theme (keine externen Ressourcen), aber modernes Aiphory Dark/Glow Design.
*/

/* -------- Base (DSGVO: system fonts only) -------- */
:root{
  --bg0:#07020d;
  --bg1:#0a0510;
  --card:#120c18;
  --border: rgba(124,58,237,.22); /* purple */
  --border2: rgba(249,115,22,.26); /* orange */
  --text:#cbd5e1;
  --muted:#94a3b8;
  --white:#ffffff;
  --glow1: rgba(124,58,237,.25);
  --glow2: rgba(249,115,22,.18);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --r-xl: 28px;
  --r-lg: 20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124,58,237,.18), transparent 55%),
              radial-gradient(1100px 700px at 85% 0%, rgba(249,115,22,.12), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{color: rgb(251,146,60)} /* orange-400-ish */

/* -------- Layout -------- */
.container{max-width:1160px; margin:0 auto; padding:0 18px}
.section{padding:92px 0}
.section.tight{padding:70px 0}

.glow{
  position:fixed;
  inset:-200px -200px auto -200px;
  height:520px;
  pointer-events:none;
  background:
    radial-gradient(closest-side, var(--glow1), transparent 70%),
    radial-gradient(closest-side, var(--glow2), transparent 72%);
  filter: blur(16px);
  opacity:.9;
  z-index:0;
}

/* -------- Nav (CSS-only burger) -------- */
.site-nav{
  position:fixed; top:0; left:0; right:0;
  z-index:50;
  border-bottom:1px solid var(--border);
  background: rgba(10,5,16,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner{height:78px; display:flex; align-items:center; justify-content:space-between; gap:16px}
.brand{display:flex; align-items:center; gap:12px}
.brand img{height:42px; width:auto; border-radius:14px; box-shadow: 0 12px 34px rgba(0,0,0,.45)}

.menu{display:flex; align-items:center; gap:26px; font-weight:600; font-size:14px; color: rgba(226,232,240,.92)}
.menu a{padding:10px 10px; border-radius:12px; transition: all .2s ease}
.menu a:hover{background: rgba(124,58,237,.10); border:1px solid rgba(124,58,237,.18)}
.menu a:focus{outline:2px solid rgba(249,115,22,.45); outline-offset:2px}

/* Burger toggle */
#nav-toggle{display:none}
.burger{
  display:none;
  width:46px; height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(18,12,24,.55);
  color: rgba(226,232,240,.95);
  align-items:center; justify-content:center;
}
.burger svg{width:26px; height:26px}
.burger:focus{outline:2px solid rgba(249,115,22,.45); outline-offset:2px}

/* Mobile panel */
.mobile-panel{
  display:none;
  border-top:1px solid var(--border);
}
.mobile-panel .panel-inner{
  padding:14px 18px 18px;
  display:flex; flex-direction:column; gap:10px;
}
.mobile-panel a{
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(124,58,237,.16);
  background: rgba(18,12,24,.45);
  font-weight:700;
}

/* Toggle logic */
#nav-toggle:checked ~ .mobile-panel{display:block}

/* Responsive */
@media (max-width: 860px){
  .menu{display:none}
  .burger{display:inline-flex}
}

/* -------- Hero -------- */
.hero{padding-top:138px; padding-bottom:64px; position:relative; z-index:1}
.hero h1{
  margin:0 0 18px;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height:1.02;
  letter-spacing:-0.02em;
  color: var(--white);
  font-weight: 850;
}
.gradient-text{
  background: linear-gradient(90deg, rgb(249,115,22), rgb(217,70,239), rgb(124,58,237));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p{
  margin:0 auto;
  max-width: 860px;
  font-size: 18px;
  line-height:1.7;
  color: var(--muted);
}
.hero .cta-row{margin-top:28px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 18px;
  border-radius:16px;
  font-weight:800;
  letter-spacing:.01em;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(124,58,237,.10); border-color: rgba(124,58,237,.24)}
.btn.secondary{background: rgba(249,115,22,.10); border-color: rgba(249,115,22,.25)}
.btn.secondary:hover{background: rgba(249,115,22,.14); border-color: rgba(249,115,22,.35)}

/* -------- Cards / Blog -------- */
.h2{
  margin:0 0 14px;
  font-size:34px;
  color: var(--white);
  letter-spacing:-0.01em;
}
.sub{margin:0 0 28px; color: var(--muted)}
.grid{display:grid; gap:18px; grid-template-columns: repeat(12, 1fr)}
.card{
  grid-column: span 4;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(18,12,24,.92), rgba(18,12,24,.80));
  border:1px solid var(--border);
  padding:22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(249,115,22,.32)}
.card .meta{display:flex; align-items:center; gap:10px; margin-bottom:10px; font-size:12px; color: rgba(148,163,184,.9)}
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:11px;
  color: rgb(251,146,60);
  background: rgba(249,115,22,.10);
  border:1px solid rgba(249,115,22,.18);
}
.card h3{margin:0 0 10px; color: var(--white); font-size:20px; line-height:1.25}
.card p{margin:0; color: rgba(148,163,184,.92); line-height:1.6}
.card .more{display:inline-flex; margin-top:14px; font-weight:800; color: rgb(251,146,60)}

@media (max-width: 980px){
  .card{grid-column: span 6}
}
@media (max-width: 640px){
  .card{grid-column: span 12}
}

/* -------- Pagination -------- */
.pagination{display:flex; gap:10px; justify-content:center; margin-top:26px}
.pagination .page-numbers{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(124,58,237,.18);
  background: rgba(18,12,24,.50);
  color: rgba(226,232,240,.92);
  font-weight:800;
}
.pagination .current{
  border-color: rgba(249,115,22,.35);
  background: rgba(249,115,22,.12);
}

/* -------- Footer -------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:40px 0;
  color: rgba(148,163,184,.85);
}
.site-footer .links{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.site-footer a{color: rgba(226,232,240,.92)}
.site-footer a:hover{color: rgb(251,146,60)}

/* --- Menu fixes (v1.9) --- */
.brand-spacer{width:52px; height:42px;} /* keeps spacing when no logo */
#nav-toggle{position:absolute; left:-9999px;} /* hide checkbox but keep accessible */
.burger{cursor:pointer;} /* ensure clickable */
.site-nav .menu a{color: rgba(226,232,240,.92);}
.site-nav .menu a:hover{color: rgb(251,146,60);}

/* --- Lab page accents v2.4 --- */
.lab-hero{
  position:relative;
  padding-top:140px;
  padding-bottom:70px;
}
.lab-hero::before{
  content:"";
  position:absolute;
  inset:-120px -60px auto -60px;
  height:520px;
  background:
    radial-gradient(closest-side, rgba(249,115,22,.22), transparent 70%),
    radial-gradient(closest-side, rgba(217,70,239,.18), transparent 72%),
    radial-gradient(closest-side, rgba(124,58,237,.22), transparent 70%);
  filter: blur(18px);
  opacity:.95;
  pointer-events:none;
}
.lab-hero .wrap{position:relative; z-index:1; text-align:center}
.pill-row{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:18px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid rgba(124,58,237,.22);
  background: rgba(18,12,24,.55);
  color: rgba(226,232,240,.92);
}
.pill i{width:8px; height:8px; border-radius:999px; display:inline-block; background: rgba(249,115,22,.75); box-shadow:0 0 0 6px rgba(249,115,22,.10)}
.card.gradient{
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(18,12,24,.92), rgba(18,12,24,.72)) padding-box,
    linear-gradient(90deg, rgba(249,115,22,.55), rgba(217,70,239,.45), rgba(124,58,237,.55)) border-box;
}
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}
@media (max-width: 980px){
  .split{grid-template-columns:1fr}
}
.kpi{
  display:flex; align-items:flex-start; gap:12px;
}
.kpi b{color:#fff}
.kpi .dot{
  width:12px; height:12px; border-radius:999px;
  margin-top:6px;
  background: rgba(249,115,22,.85);
  box-shadow:0 0 0 7px rgba(249,115,22,.12);
}
.timeline{display:grid; gap:14px}
.titem{
  display:flex; gap:12px; align-items:flex-start;
  padding:16px; border-radius:20px;
  border:1px solid rgba(124,58,237,.18);
  background: rgba(18,12,24,.45);
}
.titem .t-dot{
  width:10px; height:10px; border-radius:999px;
  margin-top:7px;
  background: rgba(217,70,239,.80);
  box-shadow:0 0 0 7px rgba(217,70,239,.10);
}
.titem h4{margin:0 0 6px; color:#fff; font-size:16px}
.titem p{margin:0; color: rgba(148,163,184,.92); line-height:1.6}
