:root {
  --primary-color: #84d6e8;
  --secondary-color: #01172B;   /* war vorher #1a2432 */
  --background-color: #01172B;  /* war vorher #0a1520 */
  --accent-color: #ffffff;
  --text-color: #ffffff;
  --border-radius: 4px;
  --circuit-color: rgba(1, 31, 37, 0.15);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* ============================= */
/* Header & Navigation           */
/* ============================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background:
    url("pasbat.png") no-repeat 1rem center,  /* Logo */
    url("pattern.png") repeat-x 0 0,          /* Pattern */
    var(--secondary-color);
  background-size:
    5% 90px,   /* Logo */
    8% 90px,   /* Pattern */
    auto;
  background-position:
    2rem center,
    0 0,
    center;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
/* Hover/Active-Unterstrich */
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ============================= */
/* Circuit Background            */
/* ============================= */
.circuit-background {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 25% 25%, var(--circuit-color) 1px, transparent 1px) 0 0 / 50px 50px,
    radial-gradient(circle at 75% 75%, var(--circuit-color) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(45deg, transparent 48%, var(--circuit-color) 48%, var(--circuit-color) 52%, transparent 52%) 0 0 / 50px 50px;
  pointer-events: none;
  opacity: 0.2;
}

/* ============================= */
/* Hero Section (index.html)     */
/* ============================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: linear-gradient(135deg, var(--background-color) 0%, #01172B 100%);
}

.hero-content {
  max-width: 50%;
}
.hero-visual {
  position: relative;
  width: 40%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 400px;
  height: auto;
  max-width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 0 0 10px var(--primary-color);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* ============================= */
/* Buttons                       */
/* ============================= */
.btn {
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}
/* Hover-Effekt */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: var(--primary-color);
  transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
  transition: transform 0.6s;
  z-index: -1;
}
.btn:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) translateY(0);
}

.btn.primary {
  background: var(--primary-color);
  color: var(--background-color);
}
.btn.secondary {
  background: transparent;
  color: var(--primary-color);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-color);
}

/* ============================= */
/* Features-Grid (index.html)    */
/* ============================= */
#features {
  padding: 5rem 2rem;
  background: #01172B;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--secondary-color);
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(132, 214, 232, 0.2);
  transition: transform 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: shimmer 3s infinite;
}
.feature-card:hover {
  transform: translateY(-5px);
}

/* ============================= */
/* Footer (index.html)           */
/* ============================= */
footer {
  background: #1e1e1e;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  gap: 4rem;
}
.footer-links h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
}
.footer-logo img {
  height: auto;
  display: block;
  margin-bottom: 1rem;
  max-width: 120px; /* oder ein anderer Wert */
}

/* ============================= */
/* Animations                    */
/* ============================= */
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ============================= */
/* Responsive Design (index.html)*/
/* ============================= */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  header {
    background-size:
      8% 60px,
      100% 60px,
      auto;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ============================= */
/* Utility-Klassen               */
/* ============================= */
.hidden {
  display: none !important;
}
.pointer {
  cursor: pointer;
}
.bold {
  font-weight: bold;
}
.text-primary {
  color: var(--primary-color);
}
.no-list-style {
  list-style: none;
}
.ml-1 {
  margin-left: 1rem;
}
.pre-wrap {
  white-space: pre-wrap;
}
.fade-init {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

/* Logo-Container skaliert das Hintergrundbild korrekt */
nav .logo{
  width:auto;
  height:40px;              /* Desktop-Höhe */
  aspect-ratio: 1 / 1;      /* falls dein Logo quadratisch ist; sonst weglassen */
  background-size: contain; /* ganz anzeigen */
  background-repeat: no-repeat;
  background-position: center left;
}

/* Mobile etwas kleiner */
@media (max-width: 640px){
  nav .logo{ height:28px; }
}

/* --------- Mobile Rescue --------- */
@media (max-width: 900px){
  /* Header / Navbar */
  header nav{
    padding: 10px 12px;
    gap: 10px;
  }
  header nav ul{
    display:flex;
    flex-wrap: wrap;          /* Links umbrechen statt überlappen */
    gap: 10px 14px;
    justify-content: flex-end;
  }
  header nav a{
    font-size: .95rem;
    line-height: 1.2;
    padding: 6px 8px;
  }

  /* generelle Seitenränder */
  .section, main{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Überschriften etwas kleiner, damit nichts unter die Navi rutscht */
  h1{ font-size: clamp(1.6rem, 5vw, 2.2rem); }
  h2{ font-size: clamp(1.25rem, 4.4vw, 1.6rem); }

  /* „Warum PaSBaT?“ Block (#value) – sauberer Satzspiegel */
  #value{
    max-width: 900px;
    margin: 48px auto;
  }
  #value .bullet-list{
    margin: 0 auto;
    padding-left: 1.1rem;   /* Bullet-Indent */
    line-height: 1.55;
  }



  /* Buttons: zentriert, nice spacing; auf sehr schmal evtl. volle Breite */
  .btn, .btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding: 8px 14px;
    margin: 6px 4px;
    white-space: nowrap;
  }
  @media (max-width: 420px){
    .btn, .btn-secondary{ width:100%; max-width: 340px; }
  }

  /* Karten/Boxen (falls du Grid/Flex-Layouts hast) */
  .cards, .grid, .features{
    grid-template-columns: 1fr !important; /* einspaltig */
    gap: 16px !important;
  }

  /* Footer-Links nicht quetschen */
  footer .footer-bottom{
    padding: 16px;
    text-align: center;
  }
}

/* Bonus: der diagonale Button-Film, der dir reingegrätscht ist, bleibt aus */
#value .btn::before,
.cta-final .btn::before{ content: none !important; }

/* ===== Longform Pages (Mehrwert, Wie-PaSBaT-funktioniert) ===== */
.longform .container { max-width: 1100px; margin: 0 auto; padding: 0 16px 64px; }
.longform .section    { margin: 40px 0; }
.longform .note       { opacity: .85; font-size: .95rem; }

.longform .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px){ .longform .grid-2 { grid-template-columns: 1fr; } }

.longform details { border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  padding: 12px 16px; margin: 10px 0; background: rgba(255,255,255,.02); }
.longform details > summary { cursor: pointer; font-weight: 600; }

.longform .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: .75rem; }

/* etwas Luft unter der fixen Navi */
.longform .page-head { padding: 72px 0 8px; text-align: center; }

/* Demo-Abschnitt mittig halten */
.demo-info.demo-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Über-mich mittig halten */
.about.about-centered {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Warum-PaSBaT Abschnitt (zentriert + Button-Zeile) */
#value {
  max-width: 900px;
  margin: 64px auto;
  padding: 0 16px;
}
#value h2 {
  text-align: center;
  margin-bottom: 1rem;
}
#value .bullet-list {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}
#value .btn-row {
  display: flex;
  justify-content: center;
  margin-top: .75rem;
}

.longform .page-head h1 {
  text-align: center;
  font-weight: 800;
  font-size: clamp(34px, 3.2vw, 56px);
  line-height: 1.1;
  letter-spacing: .2px;
  text-shadow:
    0 0 18px rgba(132,214,232,.25),
    0 0 40px rgba(132,214,232,.18);
  margin: 0 0 .6rem 0;
}

/* "Warum PaSBaT?" auf der Startseite */
#value h2 {
  text-align: center;
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.12;
  letter-spacing: .2px;
  text-shadow:
    0 0 14px rgba(132,214,232,.22),
    0 0 32px rgba(132,214,232,.14);
  margin-bottom: 1rem;
}

/* Hauptüberschriften (Glow) auf der Startseite */
#demo > h2,
#features > h2,
#value > h2,
#about > h2 {
  text-align: center;
  font-weight: 800;
  font-size: clamp(28px, 2.6vw, 44px);
  line-height: 1.12;
  letter-spacing: .2px;
  text-shadow:
    0 0 14px rgba(132,214,232,.22),
    0 0 32px rgba(132,214,232,.14);
  margin-bottom: 1rem;
}

/* mehr Abstand zwischen Demo-Text und Button */
.demo-info.demo-centered .btn-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Buttons einheitlich (wie auf pasbatfunktion.html) */
.btn { position: relative; z-index: 2; }      /* immer über Deko */
.decor-shape { position: relative; z-index: 0; }

/* Sekundär-Variante kompatibel halten */
.btn.btn-secondary,
.btn.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/* === Einheitlicher Button-Stil überall (wie Bild 4) === */
a.btn, .btn, button.btn, input.btn {
  display: inline-block;
  background: #98dfea;            /* hellblau gefüllt */
  color: #0a1c2a;                 /* dunkler Text */
  border: 0;
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(152,223,234,.25), 0 6px 22px rgba(152,223,234,.18);
  transition: transform .08s ease, box-shadow .18s ease;
}

/* Hover/Active */
a.btn:hover, .btn:hover, button.btn:hover, input.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(152,223,234,.35), 0 10px 28px rgba(152,223,234,.24);
}
a.btn:active, .btn:active, button.btn:active, input.btn:active {
  transform: translateY(0);
}

/* Sekundär-Varianten angleichen (alle wie Primär) */
.btn.btn-secondary,
.btn.secondary {
  background: #98dfea !important;
  color: #0a1c2a !important;
  border: 0 !important;
}

/* Diagonaler Film / spezielle Deko AUS überall */
.btn::before { display: none !important; content: none !important; }

/* Falls irgendwo Sektionen Button-Farben überschreiben: neutralisieren */
#value .btn, .demo-info .btn, .cta .btn {
  background: #98dfea !important;
  color: #0a1c2a !important;
  border: 0 !important;
}
/* ===== MOBILE POLISH: HEADER + HERO + TYPO ===== */
@media (max-width: 900px) {
  /* Header/Navi: kleben + nicht überdecken */
  header, nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 19, 30, .96);
    backdrop-filter: blur(6px);
  }
  /* etwas Platz unter dem Header */
  body { padding-top: 64px; }

  /* Nav-Links flexibler, wrap + kleinere Schrift */
  header nav ul {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  header nav a {
    font-size: clamp(14px, 3.6vw, 18px);
    line-height: 1.2;
    padding: 6px 0;
  }

  /* Sprachkürzel (DE/EN/…) notfalls einklappen – falls sie eigene <li> haben,
     kannst du die gezielt mit .lang o.ä. ansprechen. */
  /* nav ul li.lang { display:none; } */

  /* ---------- HERO ---------- */
  /* Bild rechts auf Mobile ausblenden, damit nichts überlappt.
     Trifft gängige Klassennamen ab – nimm die, die bei dir passen. */
  .hero-image,
  .hero-illustration,
  .hero .right,
  .hero .figure,
  .hero img.hero,
  .hero .hero-art {
    display: none !important;
  }

  /* Hero-Container zentrieren */
  .hero,
  .hero-grid,
  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  /* Überschriften skalieren */
  h1.glow-heading {
    font-size: clamp(32px, 9.5vw, 48px);
    line-height: 1.12;
    margin-bottom: 8px;
  }
  h2.glow-heading {
    font-size: clamp(24px, 6.5vw, 36px);
    line-height: 1.18;
  }

  /* Fließtext lesbarer */
  .hero p,
  .section p {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.5;
  }

  /* CTA-Buttons: immer zentriert & mit Abstand zum Text */
  .hero .btn,
  .cta .btn,
  .btn-row .btn {
    display: inline-block;
    margin-top: 14px;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Deko-Dreiecke/Diagonalen ausblenden, damit nichts überlappt */
  .diagonal,
  .hero-diagonal,
  .ornament {
    display: none !important;
  }
}

/* Headline-Glow auch auf kleineren Screens gut skalieren (global) */
h1.glow-heading { font-size: clamp(36px, 7.5vw, 72px); line-height: 1.1; }

/* ========= Mobile polish: Header + Hero + Typo (append this at the very end) ========= */
@media (max-width: 900px) {
  /* Header/Navi: kleben, nicht überdecken, Links umbrechen */
  header, nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5,19,30,.96);
    backdrop-filter: blur(6px);
  }
  body { padding-top: 64px; }               /* Luft unter der fixen Navi */
  nav ul { display:flex !important; flex-wrap: wrap; gap: 10px 16px; }
  nav a  { font-size: clamp(14px, 3.6vw, 18px); line-height: 1.2; padding: 6px 0; }

  /* ---------- HERO ---------- */
  /* Bild rechts ausblenden, damit nichts gequetscht/überlappt */
  .hero-visual { display: none !important; }

  /* Inhalt zentrieren + komfortable Ränder */
  .hero {
    min-height: auto;
    padding: 92px 16px 32px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .hero-content { max-width: 100%; }

  /* Überschrift skalieren + Glow, Text gut lesbar */
  .hero h1 {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.12;
    text-shadow:
      0 0 18px rgba(132,214,232,.25),
      0 0 40px rgba(132,214,232,.18);
    margin-bottom: .25rem;
  }
  .hero p {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.5;
    margin: 0 auto 10px;
  }

  /* CTA: zentriert, auf schmalen Screens volle Breite */
  .cta-buttons { justify-content: center; gap: 10px; }
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    margin-top: 8px;
  }
}

/* Einheitlicher Button-Look (wie dein hellblauer „Demo starten“-Button) */
a.btn, .btn, button.btn, input.btn {
  display: inline-block;
  background: #98dfea;
  color: #0a1c2a;
  border: 0;
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(152,223,234,.25), 0 6px 22px rgba(152,223,234,.18);
  transition: transform .08s ease, box-shadow .18s ease;
}
a.btn:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(152,223,234,.35), 0 10px 28px rgba(152,223,234,.24); }
a.btn:active, .btn:active { transform: translateY(0); }
/* evtl. vorhandene diagonale Deko deaktivieren */
.btn::before { display:none !important; content:none !important; }
