/* ── shared.css – Gemeinsame Styles für alle Unterseiten ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:  #050a2e;
  --blue-mid:   #0d1b6e;
  --pink:       #ff2d78;
  --orange:     #ff6b35;
  --violet:     #7c3aed;
  --cyan:       #00c6ff;
  --green:      #4ade80;
  --white:      #ffffff;
  --white-80:   rgba(255,255,255,0.80);
  --white-15:   rgba(255,255,255,0.15);
  --white-08:   rgba(255,255,255,0.08);
  --card-bg:    rgba(255,255,255,0.06);
  --border:     rgba(255,255,255,0.12);
  --font-main:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  /* Per-page accent (override in <style>) */
  --accent-a:   var(--pink);
  --accent-b:   var(--orange);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--blue-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Mesh Background ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(124,58,237,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(255,45,120,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 75% 80%, rgba(255,107,53,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 75%, rgba(0,198,255,0.18) 0%, transparent 55%),
    var(--blue-deep);
  animation: meshMove 18s ease-in-out infinite alternate;
}
@keyframes meshMove {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(15deg) brightness(1.05); }
  100% { filter: hue-rotate(-10deg) brightness(0.95); }
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed; inset: 0; z-index: -1; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Cursor Glow ── */
.cursor-glow {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,45,120,0.07) 0%, transparent 70%);
  position: fixed; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease, top 0.15s ease;
  z-index: 999; border-radius: 50%;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(5,10,46,0.55);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: var(--font-main); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--white-80); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 0.6rem 1.4rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white) !important; font-weight: 600 !important; font-size: 0.88rem !important;
  box-shadow: 0 4px 20px rgba(255,45,120,0.35);
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: white; font-size: 1.5rem; }

/* ── Section Utilities ── */
.section-pad { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.section-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-a); margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem;
}
.section-sub { color: var(--white-80); font-size: 1.05rem; max-width: 580px; line-height: 1.7; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bg-card { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Buttons ── */
.btn-primary {
  padding: 0.9rem 2rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; display: inline-block;
  box-shadow: 0 8px 30px rgba(255,45,120,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,45,120,0.45); }
.btn-ghost {
  padding: 0.9rem 2rem; border-radius: 50px;
  border: 1.5px solid var(--border); color: var(--white);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  backdrop-filter: blur(10px); background: var(--white-08);
  transition: background 0.2s, transform 0.2s; display: inline-block;
}
.btn-ghost:hover { background: var(--white-15); transform: translateY(-2px); }

/* ── Tags ── */
.tag { padding: 0.25rem 0.7rem; border-radius: 50px; background: var(--white-08); border: 1px solid var(--border); font-size: 0.72rem; color: var(--white-80); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* ── Page Hero ── */
.page-hero { padding: 9rem 2rem 5rem; position: relative; overflow: hidden; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--white-80); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--white-80); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }
.page-hero-icon {
  font-size: 3.5rem; margin-bottom: 1.2rem; display: block;
  width: 80px; height: 80px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,45,120,0.2), rgba(255,107,53,0.2));
  border: 1px solid rgba(255,45,120,0.25);
  display: flex; align-items: center; justify-content: center;
}
.page-hero-title {
  font-family: var(--font-main); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.3rem;
}
.page-hero-desc { font-size: 1.1rem; color: var(--white-80); max-width: 600px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Highlights Grid ── */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.highlight-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.8rem; transition: transform 0.3s, border-color 0.3s;
}
.highlight-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.22); }
.h-icon { font-size: 2rem; margin-bottom: 1rem; }
.highlight-card h3 { font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.highlight-card p { font-size: 0.88rem; color: var(--white-80); line-height: 1.65; }

/* ── Included Features ── */
.included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.included-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.2rem; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; transition: border-color 0.2s;
}
.included-item:hover { border-color: rgba(255,255,255,0.22); }
.included-check {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; color: var(--green);
}
.included-item h4 { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.included-item p { font-size: 0.82rem; color: var(--white-80); line-height: 1.6; }

/* ── Tech Grid ── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.tech-pill {
  padding: 0.5rem 1.2rem; border-radius: 50px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 500; color: var(--white-80);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tech-pill:hover { background: rgba(255,255,255,0.13); color: var(--white); border-color: rgba(255,255,255,0.22); }

/* ── Use Cases ── */
.usecases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.usecase-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.8rem; transition: transform 0.3s;
}
.usecase-card:hover { transform: translateY(-4px); }
.uc-tag {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600; margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--accent-a);
}
.usecase-card h3 { font-family: var(--font-main); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.usecase-card p { font-size: 0.85rem; color: var(--white-80); line-height: 1.65; }

/* ── CTA Section ── */
.cta-section {
  padding: 6rem 2rem; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,45,120,0.07), rgba(0,198,255,0.07));
  border-top: 1px solid var(--border);
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-section h2 {
  font-family: var(--font-main); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem;
}
.cta-section p { color: var(--white-80); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Legal Pages ── */
.legal-page { padding: 9rem 2rem 5rem; }
.legal-content { max-width: 800px; }
.legal-page h1 {
  font-family: var(--font-main); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.legal-updated { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-bottom: 3rem; }
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 {
  font-family: var(--font-main); font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
}
.legal-section h3 { font-family: var(--font-main); font-size: 1rem; font-weight: 600; margin: 1.2rem 0 0.5rem; color: var(--white-80); }
.legal-section p { font-size: 0.9rem; color: var(--white-80); line-height: 1.8; margin-bottom: 0.7rem; }
.legal-section ul { list-style: none; padding: 0; }
.legal-section ul li { font-size: 0.9rem; color: var(--white-80); line-height: 1.8; padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem; }
.legal-section ul li::before { content: '→'; color: var(--accent-a); position: absolute; left: 0; }
.legal-section a { color: var(--cyan); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem; margin: 1rem 0;
}
.legal-box p { margin: 0; }

/* ── Footer ── */
footer {
  padding: 3rem 2rem; border-top: 1px solid var(--border);
  background: rgba(5,10,46,0.6); backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-main); font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--white-80); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── Theme Toggle Button ── */
@keyframes iconSpin {
  0%   { transform: scale(1)    rotate(0deg); opacity: 1; }
  40%  { transform: scale(0.3)  rotate(150deg); opacity: 0; }
  60%  { transform: scale(0.3)  rotate(210deg); opacity: 0; }
  100% { transform: scale(1)    rotate(360deg); opacity: 1; }
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white-08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.theme-toggle:hover {
  background: var(--white-15);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(255,45,120,0.3);
}
.toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: block;
  transition: opacity 0.15s;
}
.theme-toggle.spinning .toggle-icon {
  animation: iconSpin 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Sonne im Dark Mode gelb hervorheben */
html:not(.light) .toggle-icon {
  color: #ffd93d;
  text-shadow: 0 0 8px rgba(255,217,61,0.7);
}

/* ── Light Theme ── */
html.light {
  --card-bg:   rgba(0,0,0,0.04);
  --border:    rgba(0,0,0,0.10);
  --white:     #1a1a2e;
  --white-80:  #475569;
  --white-15:  rgba(0,0,0,0.12);
  --white-08:  rgba(0,0,0,0.05);
  --accent-a:  #0057b8;
  --accent-b:  #00897b;
}
html.light body {
  background: #f0f4f8;
  color: #1a1a2e;
}
html.light .mesh-bg {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0,87,184,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(0,137,123,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 75% 80%, rgba(0,100,200,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 75%, rgba(0,150,220,0.05) 0%, transparent 55%),
    #f0f4f8;
  animation: none;
}
html.light .cursor-glow {
  background: radial-gradient(circle, rgba(0,87,184,0.05) 0%, transparent 70%);
}
html.light nav {
  background: rgba(255,255,255,0.88);
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light .nav-logo {
  background: linear-gradient(135deg, #1a1a2e, #0057b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .nav-links a { color: #475569; }
html.light .nav-links a:hover { color: #1a1a2e; }
html.light .nav-cta {
  background: linear-gradient(135deg, #0057b8, #00897b) !important;
  box-shadow: 0 4px 20px rgba(0,87,184,0.25) !important;
  color: #fff !important;
}
html.light .menu-toggle { color: #1a1a2e; }
html.light .nav-links.open {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light .theme-toggle {
  border-color: rgba(0,0,0,0.13);
  background: rgba(0,0,0,0.04);
}
html.light .theme-toggle:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 0 14px rgba(0,87,184,0.2);
}
html.light .section-sub { color: #475569; }
html.light .btn-ghost {
  border-color: rgba(0,0,0,0.15);
  color: #1a1a2e;
  background: rgba(0,0,0,0.04);
}
html.light .btn-ghost:hover { background: rgba(0,0,0,0.08); }
html.light .tag {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
  color: #475569;
}
html.light .bg-card {
  background: rgba(0,0,0,0.02);
  border-top-color: rgba(0,0,0,0.08);
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light .highlight-card:hover { border-color: rgba(0,0,0,0.20); }
html.light .included-item:hover  { border-color: rgba(0,0,0,0.20); }
html.light .tech-pill {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
  color: #475569;
}
html.light .tech-pill:hover {
  background: rgba(0,0,0,0.10);
  color: #1a1a2e;
  border-color: rgba(0,0,0,0.20);
}
html.light .uc-tag {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.10);
}
html.light .usecase-card p { color: #475569; }
html.light .cta-section {
  background: linear-gradient(135deg, rgba(0,87,184,0.06), rgba(0,137,123,0.06));
  border-top-color: rgba(0,0,0,0.08);
}
html.light .cta-section p { color: #475569; }
html.light .breadcrumb       { color: #475569; }
html.light .breadcrumb a     { color: #475569; }
html.light .breadcrumb a:hover { color: #1a1a2e; }
html.light .breadcrumb span  { color: rgba(0,0,0,0.30); }
html.light .page-hero-desc   { color: #475569; }
html.light .page-hero-icon {
  background: linear-gradient(135deg, rgba(0,87,184,0.12), rgba(0,137,123,0.12));
  border-color: rgba(0,87,184,0.20);
}
html.light .highlight-card p  { color: #475569; }
html.light .included-item p   { color: #475569; }
html.light .included-check {
  background: rgba(0,137,123,0.10);
  border-color: rgba(0,137,123,0.25);
  color: #00897b;
}
html.light .legal-updated     { color: rgba(0,0,0,0.35); }
html.light .legal-section h2  { border-bottom-color: rgba(0,0,0,0.10); }
html.light .legal-section h3  { color: #475569; }
html.light .legal-section p   { color: #475569; }
html.light .legal-section ul li { color: #475569; }
html.light .legal-section a   { color: #0057b8; }
html.light .legal-box {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
html.light footer {
  background: rgba(240,244,248,0.95);
  border-top-color: rgba(0,0,0,0.08);
}
html.light .footer-logo {
  background: linear-gradient(135deg, #1a1a2e, #0057b8);
  -webkit-background-clip: text;
  background-clip: text;
}
html.light .footer-links a    { color: #475569; }
html.light .footer-links a:hover { color: #1a1a2e; }
html.light .footer-copy       { color: rgba(0,0,0,0.35); }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(5,10,46,0.96); padding: 2rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px); z-index: 99; gap: 1.2rem;
  }
  .menu-toggle { display: block; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .section-pad { padding: 3.5rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 3.5rem; }
}
