/* =========================================
   VARIABLES & RESET
========================================= */
:root {
  --bg: #0b0c10;
  --panel: #14151a;
  --muted: #a8a8b3;
  --text: #e7e7ea;
  --line: #23242b;
  --primary: #0b6cff;
  --primary-2: #7cc0ff;
  --radius: 14px;

  /* Header: Fallback-Werte (JS aus base.html setzt --header-offset dynamisch) */
  --nav-h: 84px; /* Desktop-Fallback */
  --nav-gap: 12px; /* Puffer */
  --header-offset: 96px; /* pauschaler Fallback, wird überschrieben */
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.mt {
  margin-top: 32px;
}

/* Inhalt unter den Header schieben + Anker-Korrektur (mit Fallback) */
body,
main {
  padding-top: var(--header-offset, calc(var(--nav-h) + var(--nav-gap)));
}
[id] {
  scroll-margin-top: calc(
    var(--header-offset, calc(var(--nav-h) + var(--nav-gap))) + 8px
  );
}

/* Mobile-Fallback-Höhen */
@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
    --nav-gap: 8px;
  }
}

/* =========================================
   FIXED, ROUNDED NAV BAR
========================================= */
:root {
  --nav-height: 72px; /* sichtbare Leiste */
  --nav-radius: 18px;
}

/* Header fixieren – Bar liegt in .nav-row */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px;
  background: transparent;
  border-bottom: 0;
}

/* Die runde Bar */
.nav-row {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 16, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--nav-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  padding: 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 40px;
  width: auto;
}
.brand-text {
  font-weight: 700;
}

.nav .links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav .links > a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1;
}
.nav .links > a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Kontakt-CTA in der Navi */
.nav .links .btn {
  margin-left: 6px;
  padding: 10px 14px;
}
.nav .links .btn-primary {
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #3390ff 50%,
    var(--primary) 100%
  );
  background-size: 160% 160%;
  border: 1px solid rgba(124, 192, 255, 0.55);
  box-shadow: 0 6px 18px rgba(11, 108, 255, 0.25);
  transition: background-position 0.4s ease, box-shadow 0.2s ease,
    transform 0.15s ease;
}
.nav .links .btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(11, 108, 255, 0.35),
    0 0 0 3px rgba(124, 192, 255, 0.25) inset;
}
.nav .links .btn-primary:active {
  transform: translateY(0);
}

.links a.active {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 10px;
}

/* Mobile Menü */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
}
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav .links {
    position: absolute;
    right: 24px;
    top: calc(var(--nav-height) + 16px);
    background: rgba(15, 16, 20, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  }
  .nav .links.open {
    display: flex;
  }
  .nav .links > a {
    width: 100%;
    padding: 12px 14px;
  }
}

/* Globale Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s,
    transform 0.15s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #3a3f4a;
}
.btn-primary {
  color: #fff;
  border: 1px solid rgba(124, 192, 255, 0.55);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #3390ff 50%,
    var(--primary) 100%
  );
  background-size: 160% 160%;
  box-shadow: 0 8px 24px rgba(11, 108, 255, 0.28);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 108, 255, 0.35),
    0 0 0 3px rgba(124, 192, 255, 0.22) inset;
}
.btn-outline {
  border-color: #4b4f5a;
}
.btn-outline:hover {
  border-color: #6b7280;
  background: rgba(255, 255, 255, 0.06);
}

/* Main-Flex für Sticky Footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

/* =========================================
   BACKGROUND ANIMATION
========================================= */
.bg-anim {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(120deg, #0b0c10, #0e1219, #0b0c10);
  overflow-x: hidden;
}
.bg-anim::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    120deg,
    rgba(12, 29, 58, 0.35) 0%,
    rgba(8, 74, 140, 0.35) 35%,
    rgba(11, 108, 255, 0.35) 50%,
    rgba(124, 192, 255, 0.35) 65%,
    rgba(12, 29, 58, 0.35) 100%
  );
  background-size: 200% 200%;
  filter: blur(18px);
  animation: gradientShift 22s ease-in-out infinite;
  pointer-events: none;
}
.bg-anim::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/static/images/synapsen_transparent.png") center/contain
    no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bg-anim::before {
    animation: none;
  }
}

/* =========================================
   HERO
========================================= */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, #0f1014 0%, #0b0c10 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 12px;
}
.hero p {
  color: var(--muted);
  margin: 0 0 22px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   GENERIC CARDS / GRIDS
========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #2a2c35;
}
.card-ico {
  font-size: 26px;
  margin-bottom: 8px;
}
.page-title {
  font-size: 32px;
  margin: 20px 0;
}
.section-title {
  font-size: 22px;
  margin: 6px 0 12px;
}
.muted {
  color: var(--muted);
}
.bullets {
  margin: 0;
  padding-left: 18px;
}
.bullets li {
  margin: 6px 0;
}

/* =========================================
   PRICING
========================================= */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-card .price-head {
  background: #101116;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  font-weight: 700;
}
.price-card .price-body {
  padding: 16px;
}
.price-card ul {
  margin: 0 0 14px 18px;
}
.price-card.featured {
  border-color: var(--primary);
}

/* =========================================
   LISTS
========================================= */
.list {
  display: grid;
  gap: 10px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.list-title {
  font-weight: 600;
}
.list-meta {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   FORMS & FLASHES
========================================= */
.form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}
.form-row {
  display: grid;
  gap: 6px;
}
input,
textarea {
  background: #0f1014;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
}
.flash-wrap {
  margin: 14px 0;
}
.flash {
  padding: 10px;
  border-radius: 10px;
}
.flash.success {
  background: #0c3e1e;
}
.flash.error {
  background: #402027;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  margin-top: auto;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  background: #0f1014;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  padding: 20px;
}
.foot-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-list li {
  margin: 6px 0;
}
.link {
  background: none;
  border: none;
  color: var(--primary-2);
  cursor: pointer;
  text-decoration: underline;
}
.foot-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

/* =========================================
   COOKIE CONSENT
========================================= */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1f1f23;
  color: #e8e8ea;
  z-index: 9999;
  border-top: 1px solid #2a2a2f;
  padding: 16px;
}
.cc-banner.hidden {
  display: none;
}
.cc-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cc-text a {
  color: var(--primary-2);
  text-decoration: underline;
}
.cc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #3a3a41;
  background: transparent;
  color: #e8e8ea;
  cursor: pointer;
}
.cc-btn.cc-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.cc-modal.hidden {
  display: none;
}
.cc-modal-card {
  width: min(720px, 92vw);
  background: #1b1b1f;
  color: #e8e8ea;
  border: 1px solid #2a2a2f;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.cc-modal-head,
.cc-modal-foot {
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2f;
}
.cc-modal-foot {
  border-top: 1px solid #2a2a2f;
  border-bottom: 0;
  text-align: right;
}
.cc-modal-body {
  padding: 8px 20px 20px;
  display: grid;
  gap: 14px;
}
.cc-close {
  background: transparent;
  color: #9da3af;
  font-size: 24px;
  border: none;
  cursor: pointer;
}
.cc-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}
.cc-title {
  font-weight: 600;
}
.cc-desc {
  color: #a8a8b3;
  font-size: 14px;
}
.cc-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch .slider {
  position: absolute;
  inset: 0;
  background: #3a3a41;
  border-radius: 26px;
  transition: 0.2s;
}
.cc-switch .slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #d1d5db;
  border-radius: 50%;
  transition: 0.2s;
}
.cc-switch input:checked + .slider {
  background: var(--primary);
}
.cc-switch input:checked + .slider:before {
  transform: translateX(22px);
}
.cc-switch.disabled .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================
   HELPERS & MISC
========================================= */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.text-center {
  text-align: center;
}
.center-block {
  text-align: center;
  max-width: 900px;
  margin: 24px auto;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 22px;
}
.section h1,
.section h2 {
  text-align: left;
  font-weight: 800;
  margin: 0 0 14px;
}
.section h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
}
.section h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem);
}

.cta-note {
  margin-top: 10px;
  opacity: 0.85;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================
   WHY SECTION
========================================= */
.why-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}
.why-section h1 {
  font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-card {
  background: #121212;
  border: 1px solid #2b2b2b;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  border-color: #3b3b3b;
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.why-card h3 {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.why-card p {
  color: #ccc;
  line-height: 1.55;
  margin: 0;
}

/* =========================================
   LEISTUNGEN – MODELLE (ohne Bild-Cropping)
========================================= */
.modelle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .modelle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .modelle-grid {
    grid-template-columns: 1fr;
  }
}

.model-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #2a2c35;
}

/* gleich hoher Bildbereich, keine Beschneidung */
.model-thumb {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1014;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
  .model-thumb {
    height: 200px;
  }
}
.model-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Textbereich */
.model-body {
  padding: 16px 16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.model-body h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}
.model-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* =========================================
   FAQ
========================================= */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
}
.faq h2 {
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.faq-list {
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #121212;
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
.faq-item summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(2px);
  opacity: 0.8;
}
.faq-item[open] summary::before {
  content: "▼";
}
.faq-item p {
  color: #c9c9c9;
  margin: 10px 0 0;
  line-height: 1.55;
}
