/* Theme variables */
:root{
  --header-offset: 88px;

  /* Common */
  --radius: 22px;
  --ring: 0 0 0 5px rgba(34,211,238,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.42);

  /* Dark (default) */
  --bg0:#050816;
  --bg1:#0b1226;
  --card:rgba(15,23,42,.62);
  --card2:rgba(2,6,23,.38);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(148,163,184,.18);
  --a:#22d3ee;
  --b:#1d4ed8;
  --gradA: rgba(34,211,238,.35);
  --gradB: rgba(29,78,216,.35);
  --gradC: rgba(99,102,241,.18);

  /* Continuous page background (dark default) */
  --page-bg: radial-gradient(1200px 600px at 20% 0%, rgba(56,189,248,0.18) 0%, rgba(56,189,248,0.08) 45%, rgba(56,189,248,0) 78%),
    radial-gradient(900px 500px at 100% 20%, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0.08) 42%, rgba(59,130,246,0) 76%),
    linear-gradient(180deg, #0b1220 0%, #091021 40%, #070d18 100%);
}
html,body{height:100%;}


html{scroll-padding-top: var(--header-offset);}
section[id]{scroll-margin-top: var(--header-offset);}

@media (max-width: 940px){
  :root{--header-offset: 80px;}
}

/* Light theme */
html[data-theme="light"]{
  --bg0:#f2f7ff;
  --bg1:#e9f0ff;
  --card:rgba(255,255,255,.92);
  --card2:rgba(255,255,255,.82);
  --text:#0b1220;
  --muted:#334155;
  --line:rgba(15,23,42,.12);
  --a:#0277bd;
  --b:#1d4ed8;
  --gradA: rgba(2,119,189,.18);
  --gradB: rgba(29,78,216,.14);
  --gradC: rgba(99,102,241,.10);
  --shadow: 0 16px 44px rgba(2,6,23,.10);
  --ring: 0 0 0 5px rgba(2,119,189,.18);

  /* Continuous page background (light) */
  --page-bg: radial-gradient(1200px 600px at 20% 0%, rgba(56,189,248,0.18) 0%, rgba(56,189,248,0.08) 48%, rgba(56,189,248,0) 80%),
    radial-gradient(900px 500px at 100% 20%, rgba(59,130,246,0.16) 0%, rgba(59,130,246,0.07) 45%, rgba(59,130,246,0) 80%),
    linear-gradient(180deg, #f4f8ff 0%, #eef5ff 45%, #f1f5ff 75%, #f3f6ff 100%);
}


*{box-sizing:border-box}
html{scroll-behavior:smooth; background: var(--bg0);}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  /* Keep body solid and paint the real background on a fixed layer.
     This prevents visible hard "bands" between sections when scrolling. */
  background: var(--bg0);
  position:relative;
  isolation:isolate;
  line-height:1.55;
}

/* Fixed full-viewport background layer to avoid visible banding/edges between sections */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background: var(--page-bg);
  transform: translateZ(0);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background: var(--page-bg);
  transform: translateZ(0);
}
main{flex:1 0 auto;}
footer{flex-shrink:0;}


a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%; height:auto}
.container{width:min(1140px, 92vw); margin:0 auto}
.muted{color:var(--muted)}

.skip-link{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{left:12px; top:12px; width:auto; height:auto; padding:10px 12px; background:#0b1226; border:1px solid var(--line); border-radius:14px; z-index:9999}

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg0) 70%, transparent);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:14px;
}

/* ✅ Logo-only (no text) */
.brand{display:flex; align-items:center; gap:0}
.brand img{max-height:44px;width:auto;height:44px;border-radius:0;display:block;object-fit:contain}

.navlinks{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.navlinks a{
  font-weight:750;
  font-size:14px;
  padding:8px 10px;
  border-radius:14px;
  color:rgba(229,231,235,.92);
  border:1px solid transparent;
}
.navlinks a:hover{border-color:rgba(148,163,184,.18); background:rgba(15,23,42,.35)}
.navlinks a:focus-visible{outline:none; box-shadow: var(--ring)}


.cta svg{width: 20px; height:20px; display:block; flex:0 0 auto}

.hero{padding:62px 0 40px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:26px;
  align-items:start;
}

/* ✅ Headline not split awkwardly */
.hero h1{
  margin:0 0 10px;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height:1.04;
  letter-spacing:-.8px;
  text-wrap: balance;
}

.hero p{
  margin:12px 0 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
}

/* ✅ Badges stay in one line as long as there's space */
.badges{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.badge{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.48);
  color: var(--text);
  font-size: 13px;
  font-weight:750;
  white-space:nowrap;
}

.card{
  border:1px solid rgba(148,163,184,.20);
  background: var(--card);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.hero-card{
  position:relative;
  overflow:hidden;
  padding:20px;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(650px 260px at 20% 0%, rgba(34,211,238,.22), transparent 60%),
              radial-gradient(650px 260px at 90% 20%, rgba(29,78,216,.22), transparent 60%);
  pointer-events:none;
}
.hero-card > *{position:relative}

.kpi{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:12px;
}
.kpi .box{
  border:1px solid rgba(148,163,184,.18);
  background: var(--card2);
  border-radius: 18px;
  padding:14px;
}
.kpi .num{font-size:22px; font-weight:950; letter-spacing:-.3px}
.kpi .lbl{color:var(--muted); font-size:12px; margin-top:2px}

section{padding:40px 0}

.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; margin-bottom:18px;
}
.section-title h2{margin:0; font-size: 28px; letter-spacing:-.35px}
.section-title p{margin:0; color:var(--muted); max-width: 70ch; font-size: 14px}

/* ✅ Move subtitle under heading on small screens to avoid weird right-side label */
.section-title.stack{flex-direction:column; align-items:flex-start}

.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.grid-4{display:grid; grid-template-columns:repeat(2, 1fr); gap:16px}

.service{position:relative; overflow:hidden}
.service:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(420px 220px at 20% 0%, rgba(34,211,238,.14), transparent 65%),
              radial-gradient(420px 220px at 90% 20%, rgba(29,78,216,.14), transparent 65%);
  opacity:.9;
  pointer-events:none;
}
.service > *{position:relative}
.service h3{margin:0 0 8px; font-size:16px; display:flex; gap:10px; align-items:center}
.service p{margin:0; color: color-mix(in srgb, var(--text) 92%, transparent); font-size:14px}
.service .tag{
  display:inline-flex;
  margin-top:12px;
  font-size:12px;
  color: var(--text);
  border:1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.30);
  border-radius:999px;
  padding:6px 10px;
  font-weight:750;
}

.icon{
  width:28px; height:28px;
  border-radius:12px;
  display:inline-grid; place-items:center;
  background: rgba(2,6,23,.35);
  border:1px solid rgba(148,163,184,.20);
}
.icon svg{width:16px; height:16px}

.list{margin:0; padding-left:18px; color: rgba(229,231,235,.88)}
.list li{margin:8px 0}

.callout{
  display:flex; gap:14px; align-items:flex-start;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid rgba(148,163,184,.20);
  background: rgba(2,6,23,.34);
}

.contact-grid{display:grid; grid-template-columns: .9fr 1.1fr; gap:18px}
.label{font-size:13px; color:var(--muted); margin-bottom:6px}
.input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.20);
  background: rgba(2,6,23,.38);
  color: var(--text);
  outline:none;
}
textarea{min-height:125px; resize:vertical}
.input:focus, textarea:focus{border-color: rgba(34,211,238,.55); box-shadow: var(--ring)}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
small.note{color:var(--muted); display:block; margin-top:10px; font-size:12px}

button{font:inherit; cursor:pointer}
button.cta{border:none}

footer{
  border-top:1px solid rgba(148,163,184,.18);
  padding:16px 0 18px;
  color: rgba(229,231,235,.82);
}
.footer-grid{
  display:flex; gap:12px;
  align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
hr.sep{border:0; border-top:1px solid rgba(148,163,184,.18); margin:18px 0}

@media (max-width: 940px){
  .hero-grid{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2, 1fr)}
  .contact-grid{grid-template-columns:1fr}
  .brand img{max-height:44px;width:auto;height:44px;border-radius:0;display:block;object-fit:contain}
}
@media (max-width: 520px){
  .grid-4{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
}



/* --- Anchor offset for sticky header (v7) --- */
:root{--header-offset: 88px;}
html{scroll-padding-top: var(--header-offset);}
section[id]{scroll-margin-top: var(--header-offset);}
@media (max-width: 940px){:root{--header-offset: 80px;}}

/* Theme toggle */
.theme-toggle:hover{opacity:.95}
.theme-toggle:focus-visible{outline:none; box-shadow: var(--ring)}
.theme-toggle svg{width:18px; height:18px}

/* Larger services cards */
.service{padding:22px}
.service h3{font-size:17px}
.service p{font-size:14.5px}

/* Logo readability in light theme */
html[data-theme="light"] .brand img{
  filter: invert(1) brightness(.25) contrast(1.25);
  opacity:.95;
}

/* Light theme component tweaks */
html[data-theme="light"] .chip{
  background: rgba(2,132,199,.08);
  border-color: rgba(2,132,199,.18);
  color: rgba(11,18,32,.92);
}
html[data-theme="light"] .btn.secondary{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.14);
  color: rgba(11,18,32,.92);
}
html[data-theme="light"] .card, 
html[data-theme="light"] .service,
html[data-theme="light"] .panel,
html[data-theme="light"] .form,
html[data-theme="light"] .contact-card{
  box-shadow: var(--shadow);
}
html[data-theme="light"] .theme-toggle{
  border-color: rgba(15,23,42,.14);
}

/* Theme toggle (pill with label) */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  height:42px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.35);
  color: var(--text);
  line-height:1;
}
.theme-toggle__icon{display:inline-flex}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle__text{font-size:13px; font-weight:700; letter-spacing:.02em; opacity:.92}
html[data-theme="light"] .theme-toggle{
  background: rgba(255,255,255,.72);
  color: rgba(11,18,32,.9);
}
.theme-toggle:hover{opacity:.96}
.theme-toggle:focus-visible{outline:none; box-shadow: var(--ring)}
@media (max-width: 520px){
  .theme-toggle{padding:10px; width:42px; justify-content:center}
  .theme-toggle__text{display:none}
}

/* CTA arrow clarity */
.cta svg{width:18px;height:18px}
@media (max-width: 520px){
  .cta svg{display:none}
}

html[data-theme="light"] .service p,
html[data-theme="light"] .service .meta{
  color: var(--muted);
}
html[data-theme="light"] .service h3,
html[data-theme="light"] .section-title h2{
  color: var(--text);
}

/* Toggle icon polish */
.theme-toggle svg{
  stroke: currentColor;
}
html[data-theme="light"] .theme-toggle{
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

/* CTA button - cleaner gradient + crisp edges */
.cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:16px;
  font-weight:800;
  letter-spacing:.01em;
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a) 85%, white 0%), color-mix(in srgb, var(--b) 85%, white 0%));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 30px rgba(2,6,23,.22);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}
.cta::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(120px 60px at 20% 20%, rgba(255,255,255,.30), transparent 60%);
  opacity:.55;
  pointer-events:none;
}
.cta:hover{ transform: translateY(-1px); box-shadow: 0 18px 38px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12) inset; }
.cta:active{transform: translateY(0);}
.cta.cta-secondary:active{transform: translateY(0);}

html[data-theme="light"] .cta{
  background: linear-gradient(180deg, rgba(215,240,255,.95) 0%, rgba(155,210,255,.95) 100%);
  color: rgba(11,18,32,.95);
  border-color: rgba(45,125,255,.35);
  box-shadow: 0 10px 26px rgba(20,40,80,.12);
}
.cta svg{width:18px;height:18px}

html[data-theme="light"] .chip{
  background: rgba(2,119,189,.08);
  border-color: rgba(2,119,189,.18);
  color: rgba(11,18,32,.92);
}

html[data-theme="light"] .nav a{
  color: rgba(11,18,32,.78);
}
html[data-theme="light"] .nav a:hover{
  color: rgba(11,18,32,.92);
}

html[data-theme="light"] .hero .lead,
html[data-theme="light"] .hero p{
  color: rgba(11,18,32,.68);
}

/* v12: Light theme – blue-tinted surfaces + blue icons */
html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .service,
html[data-theme="light"] .form,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .tagline,
html[data-theme="light"] .box{
  background: linear-gradient(180deg, rgba(2,119,189,.10), rgba(255,255,255,.88));
  border-color: rgba(2,119,189,.14);
}

html[data-theme="light"] .service .icon,
html[data-theme="light"] .card .icon,
html[data-theme="light"] .panel .icon,
html[data-theme="light"] .contact-card .icon{
  background: rgba(2,119,189,.12);
  border-color: rgba(2,119,189,.18);
  color: rgba(2,119,189,1);
}

html[data-theme="light"] .service svg,
html[data-theme="light"] .card svg,
html[data-theme="light"] .panel svg{
  stroke: rgba(2,119,189,1);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{
  background: rgba(2,119,189,.06);
  border-color: rgba(2,119,189,.18);
  color: var(--text);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{
  color: rgba(11,18,32,.55);
}

/* Über uns Bullet-Listen lesbar */
html[data-theme="light"] .bullets,
html[data-theme="light"] .bullets li{
  color: rgba(11,18,32,.74);
}
html[data-theme="light"] .bullets li::marker{
  color: rgba(2,119,189,1);
}

/* Footer Links lesbar */
html[data-theme="light"] footer a,
html[data-theme="light"] .footer a{
  color: rgba(11,18,32,.68) !important;
}
html[data-theme="light"] footer a:hover,
html[data-theme="light"] .footer a:hover{
  color: rgba(11,18,32,.92) !important;
  text-decoration: underline;
}

html[data-theme="light"] footer,
html[data-theme="light"] .footer{
  color: rgba(11,18,32,.62);
}

/* v13: eliminate remaining grey surfaces in light theme */
html[data-theme="light"] .pill,
html[data-theme="light"] .tag,
html[data-theme="light"] .badge,
html[data-theme="light"] .meta-pill,
html[data-theme="light"] .service .tag,
html[data-theme="light"] .service .pill,
html[data-theme="light"] .about .feature,
html[data-theme="light"] .about .feature-card,
html[data-theme="light"] .about .feature-box,
html[data-theme="light"] .about .strip,
html[data-theme="light"] .seo,
html[data-theme="light"] .seo-bar,
html[data-theme="light"] .notice,
html[data-theme="light"] .callout{
  background: linear-gradient(180deg, rgba(2,119,189,.16), rgba(255,255,255,.86)) !important;
  border-color: rgba(2,119,189,.18) !important;
  color: rgba(11,18,32,.92) !important;
}

/* Tags/Badges slightly stronger blue so they don't look grey */
html[data-theme="light"] .tag,
html[data-theme="light"] .pill,
html[data-theme="light"] .badge{
  background: rgba(2,119,189,.12) !important;
  border: 1px solid rgba(2,119,189,.22) !important;
}

/* Blue icons inside those grey boxes */
html[data-theme="light"] .about .feature svg,
html[data-theme="light"] .about .feature .icon,
html[data-theme="light"] .seo svg,
html[data-theme="light"] .seo .icon{
  color: rgba(2,119,189,1) !important;
  stroke: rgba(2,119,189,1) !important;
}

/* v13: About bullets readability (override any low-opacity styles) */
html[data-theme="light"] .about ul,
html[data-theme="light"] .about li,
html[data-theme="light"] .about .bullets,
html[data-theme="light"] .about .bullets li,
html[data-theme="light"] .about .cols li,
html[data-theme="light"] .about .cols ul li{
  color: rgba(11,18,32,.74) !important;
  opacity: 1 !important;
}
html[data-theme="light"] .about li::marker,
html[data-theme="light"] .about .bullets li::marker{
  color: rgba(2,119,189,1) !important;
}

/* v13: hide empty hint row (backend hint removed) */
.hint:empty{display:none !important;}

/* v14: Force visibility for 'Über uns' bullet text (light) - catch-all */
html[data-theme="light"] #about ul,
html[data-theme="light"] #about li,
html[data-theme="light"] #about .cols ul li,
html[data-theme="light"] #about .cols li,
html[data-theme="light"] #about .about-grid ul li,
html[data-theme="light"] #about .about-grid li,
html[data-theme="light"] #about .two-col ul li,
html[data-theme="light"] #about .two-col li,
html[data-theme="light"] #about .grid ul li,
html[data-theme="light"] #about .grid li,
html[data-theme="light"] #about .card ul li,
html[data-theme="light"] #about .card li{
  color: rgba(11,18,32,.74) !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
html[data-theme="light"] #about li::marker,
html[data-theme="light"] #about ul li::marker{
  color: rgba(2,119,189,1) !important;
  opacity: 1 !important;
}
/* Some lists may be inside elements with reduced opacity; cancel that for the list container */
html[data-theme="light"] #about .cols,
html[data-theme="light"] #about .about-grid,
html[data-theme="light"] #about .two-col{
  opacity: 1 !important;
}

/* v14: Primary button crisp on light theme */
html[data-theme="light"] .btn.primary{
  border-color: rgba(2,6,23,.08);
  box-shadow: 0 14px 30px rgba(2,6,23,.14);
}

/* v15: Force About bullets visible (light) - using detected section id */
html[data-theme="light"] #ueber-uns ul,
html[data-theme="light"] #ueber-uns ol,
html[data-theme="light"] #ueber-uns li{
  color: rgba(11,18,32,.78) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}
html[data-theme="light"] #ueber-uns ul li::marker,
html[data-theme="light"] #ueber-uns ol li::marker{
  color: rgba(2,119,189,1) !important;
  opacity: 1 !important;
}
/* In case the list lives in a faded column wrapper */
html[data-theme="light"] #ueber-uns .col,
html[data-theme="light"] #ueber-uns .cols,
html[data-theme="light"] #ueber-uns .column,
html[data-theme="light"] #ueber-uns .columns,
html[data-theme="light"] #ueber-uns .grid,
html[data-theme="light"] #ueber-uns .two-col,
html[data-theme="light"] #ueber-uns .card,
html[data-theme="light"] #ueber-uns .content{
  opacity: 1 !important;
}

/* v15: If any generic low-contrast list styling exists, neutralize in light mode */
html[data-theme="light"] .bullets,
html[data-theme="light"] .bullets *,
html[data-theme="light"] .checklist,
html[data-theme="light"] .checklist *{
  opacity: 1 !important;
}

html[data-theme="light"] #ueber-uns .about-card li,
html[data-theme="light"] #ueber-uns .about-card ul{
  color: rgba(11,18,32,.78) !important;
  opacity: 1 !important;
}


/* Smooth anchor scrolling: account for fixed header */
html{ scroll-behavior:smooth; scroll-padding-top: 96px; }

/* Hero CTA row */
.hero-ctas{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}


/* About feature grid: stack on smaller screens */
@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

.light .cta{color:var(--text);} 


/* About callout typography aligned to service cards */
.callout-top h3{margin:0 0 4px; font-size:18px; font-weight:900; letter-spacing:-0.01em}
.callout-top p{margin:0; font-size:13px; color:var(--muted)}


.cta .icon svg{width:18px;height:18px;display:block}


/* Footer (inline legal links) */
.footer-inline{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  max-width:1200px;
  margin:0 auto;
  box-sizing:border-box;
  padding:12px 22px;
  font-size:0.95rem;
}
.footer-inline .footer-brand{
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}
.footer-inline .footer-link{
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-inline .footer-link:hover{
  color: var(--text);
  text-decoration: underline;
}
.footer-inline .footer-link::before{
  content: "|";
  margin: 0 10px 0 6px;
  color: var(--text-muted);
}



/* Legal pages */
.legal-list{
  margin: 0.6rem 0 1rem 1.2rem;
}
.legal-list li{
  margin: 0.25rem 0;
}

