/* =====================================================
   Smart-Tec – statische Homepage
   Cookie-frei, plugin-frei, keine externen CDNs
   ===================================================== */

:root {
  --c-bg-dark: #00041B;
  --c-bg-dark-2: #050a2c;
  --c-primary: #30abf0;
  --c-primary-2: #1c31eb;
  --c-light: #ffffff;
  --c-light-60: rgba(255, 255, 255, 0.6);
  --c-light-20: rgba(255, 255, 255, 0.12);
  --c-text: #00041B;
  --c-text-muted: #4a5568;
  --c-section-light: #ffffff;
  --c-section-light-2: #f6f8fc;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(0, 4, 27, 0.06);
  --shadow-card-hover: 0 14px 38px rgba(0, 4, 27, 0.12);
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 8px 14px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 6px;
  z-index: 9999;
}

/* ------------------ Header ------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg-dark);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--c-light-20);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.header-logo img { width: 179px; height: auto; }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0; padding: 0;
}
.primary-nav a {
  color: var(--c-light);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.menu-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: none;
}

@media (max-width: 880px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ------------------ Off-Canvas Mobile Menu ------------------ */
.off-canvas {
  position: fixed; inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.off-canvas.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }

.off-canvas-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 4, 27, 0.55);
}

.off-canvas-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  color: var(--c-text);
  padding: 28px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -16px 0 40px rgba(0, 4, 27, 0.15);
}
.off-canvas.is-open .off-canvas-panel { transform: translateX(0); }

.off-canvas-header { display: flex; align-items: center; justify-content: space-between; }
.menu-close { background: transparent; border: 0; cursor: pointer; padding: 8px; }

.off-canvas-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.off-canvas-links a {
  display: block;
  padding: 14px 4px;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid #eef0f6;
}
.off-canvas-links a:hover { color: var(--c-primary); }

.off-canvas-cta { display: flex; flex-direction: column; gap: 10px; }

/* ------------------ Buttons ------------------ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(48, 171, 240, 0.35);
}
.btn-primary:hover { background: var(--c-primary-2); box-shadow: 0 10px 26px rgba(28, 49, 235, 0.4); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { background: #fff; color: var(--c-bg-dark); }

.btn-light {
  background: #fff;
  color: var(--c-bg-dark);
}
.btn-light:hover { background: var(--c-primary); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* ------------------ Hero ------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(48, 171, 240, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(28, 49, 235, 0.22), transparent 55%),
    linear-gradient(180deg, #00041B 0%, #050a2c 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero-particles canvas { width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 14vh, 160px);
  text-align: center;
  max-width: 920px;
}

.hero h1 { margin-bottom: 24px; }
.hero-sub {
  display: inline-block;
  color: var(--c-primary);
  font-weight: 500;
}
.hero p {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--c-light-60);
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 36px;
}

/* ------------------ Sections ------------------ */
.section { padding-block: clamp(70px, 9vw, 120px); }

.section-light {
  background: var(--c-section-light);
  color: var(--c-text);
}
.section-light + .section-light { background: var(--c-section-light-2); }

.section-dark {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(48, 171, 240, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(28, 49, 235, 0.18), transparent 55%),
    linear-gradient(180deg, #00041B 0%, #050a2c 100%);
  color: #fff;
}
.section-dark p { color: var(--c-light-60); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head p { font-size: 1.05rem; }

.section-divider {
  display: block;
  margin: 28px auto 0;
  width: 64px; height: 3px;
  background: var(--c-primary);
  border-radius: 3px;
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(48, 171, 240, 0.15);
  color: var(--c-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* ------------------ Grids ------------------ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ------------------ Cards (Leistungen) ------------------ */
.card {
  background: #fff;
  border: 1px solid #e9ecf3;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 28px; left: 28px;
  width: 36px; height: 4px;
  background: var(--c-primary);
  border-radius: 4px;
}
.card h3 { margin-top: 22px; }
.card p { margin-bottom: 0; color: var(--c-text-muted); }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-card-hover);
}

/* ------------------ Features (Vorteile) ------------------ */
.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-light-20);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: background .2s, border-color .2s, transform .2s;
}
.feature:hover {
  background: rgba(48, 171, 240, 0.08);
  border-color: var(--c-primary);
  transform: translateY(-4px);
}
.feature h3 { color: #fff; }
.feature p { margin-bottom: 0; }

/* ------------------ About ------------------ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { line-height: 1.05; }
.about-text p { color: var(--c-text-muted); font-size: 1.05rem; max-width: 480px; }

.about-team {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.about-team figure { margin: 0; text-align: center; }
.about-team img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 32px rgba(0, 4, 27, 0.15);
  border: 4px solid #fff;
}
.about-team figcaption {
  margin-top: 12px;
  font-weight: 600;
  color: var(--c-text);
}

@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-text p { margin-inline: auto; }
}

/* ------------------ Contact ------------------ */
.contact-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 18px; }
.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ------------------ Footer ------------------ */
.site-footer {
  background: #000211;
  color: #fff;
  padding-block: 40px 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-light-20);
}
.footer-top nav ul {
  display: flex; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.footer-top a { color: var(--c-light-60); font-size: 0.95rem; }
.footer-top a:hover { color: #fff; }

.dsgvo-badge { width: 107px; height: auto; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: var(--c-light-60);
  font-size: 0.9rem;
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 600px) {
  .footer-top, .footer-bottom { justify-content: center; text-align: center; }
}

/* ------------------ Reveal-On-Scroll ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ------------------ Highlight-Card (KI im Leistungen-Grid) ------------------ */
.card-highlight {
  background: linear-gradient(155deg, #ffffff 0%, #eaf6ff 100%);
  border-color: rgba(48, 171, 240, 0.45);
  position: relative;
  overflow: hidden;
}
.card-highlight::before {
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  width: 56px;
  height: 5px;
}
.card-highlight::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(48, 171, 240, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.card-highlight:hover { border-color: var(--c-primary-2); }

.card-tag {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 1;
}

/* ------------------ Section: KI ------------------ */
.section-ki {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(48, 171, 240, 0.18), transparent 60%),
    radial-gradient(ellipse at 15% 90%, rgba(28, 49, 235, 0.22), transparent 60%),
    linear-gradient(180deg, #060b2e 0%, #00041B 100%);
  color: #fff;
  padding-block: clamp(80px, 10vw, 130px);
  overflow: hidden;
  isolation: isolate;
}
.section-ki::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  z-index: -1;
}
.section-ki p { color: var(--c-light-60); }

.ki-intro {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.ki-intro h2 { color: #fff; margin-bottom: 18px; }
.ki-intro p { font-size: 1.1rem; }

.pill-glow {
  background: rgba(48, 171, 240, 0.15);
  color: var(--c-primary);
  border: 1px solid rgba(48, 171, 240, 0.35);
  box-shadow: 0 0 0 4px rgba(48, 171, 240, 0.08);
  margin-bottom: 22px;
}

.ki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.ki-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-light-20);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: background .2s, border-color .2s, transform .2s;
}
.ki-card:hover {
  background: rgba(48, 171, 240, 0.07);
  border-color: var(--c-primary);
  transform: translateY(-4px);
}
.ki-card h3 { color: #fff; margin-top: 14px; font-size: 1.15rem; }
.ki-card p { margin-bottom: 0; font-size: 0.96rem; }

.ki-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px rgba(48, 171, 240, 0.25);
}

.ki-cta { text-align: center; }
.ki-cta-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--c-light-60);
}

/* Legal page */
.legal { padding-block: 80px; max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; }
.legal p, .legal li { color: var(--c-text-muted); }
.legal a { color: var(--c-primary-2); text-decoration: underline; }
