/*
==========================================================================
== FARBEN ÄNDERN ==
Hier können Sie die Hauptfarben der gesamten Webseite anpassen.
==========================================================================
*/
:root {
  /* --- HAUPTFARBEN --- */
  --primary: #9333ea;
  --primary-light: #a855f7;
  --primary-rgb: 147, 51, 234;
  --background-rgb: 10, 10, 10;
  --background: #0a0a0a;
  --surface: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --border-color: rgba(255, 255, 255, 0.1);
  --glow-color: rgba(147, 51, 234, 0.5);

  /* --- LAYOUT VARIABLEN --- */
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --container-width: 960px;
  --header-height: 70px;
}

/* --- GRUNDLAGEN & RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.7;
  padding-top: var(--header-height);
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

/* --- AURORA HINTERGRUND-EFFEKT --- */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}
body::before {
    width: 60vw; height: 60vw; max-width: 500px; max-height: 500px;
    background: rgba(var(--primary-rgb), 0.15);
    top: 10%; left: -10%;
    animation: float 20s infinite ease-in-out alternate;
}
body::after {
    width: 50vw; height: 50vw; max-width: 400px; max-height: 400px;
    background: rgba(8, 145, 178, 0.15);
    bottom: 5%; right: -5%;
    animation: float 25s infinite ease-in-out alternate-reverse;
}
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 50px) rotate(180deg) scale(1.2); }
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }

/* --- LAYOUT & UTILITIES --- */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 4rem 0; }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 3rem; position: relative; }
.section-title::after {
  content: ""; position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%); width: 50px; height: 3px;
  background: var(--primary); border-radius: 2px;
}
.glass-effect {
  background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: var(--border-radius);
  padding: 40px; transition: var(--transition);
}
.glass-effect:hover { border-color: rgba(147, 51, 234, 0.7); box-shadow: 0 0 20px -5px var(--glow-color); }

/* --- HEADER / NAVBAR --- */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000;
  background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color);
}
header .nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.logo a { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.logo span { color: var(--primary); }
.nav-controls { display: flex; align-items: center; gap: 40px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--text-primary); margin: 5px 0; transition: var(--transition); border-radius: 3px; }

/* --- MOBILE & DESKTOP NAVIGATION --- */
.hamburger { display: block; cursor: pointer; z-index: 1002; }
.nav-controls nav {
  position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
  background-color: var(--background); transition: var(--transition); z-index: 1001;
  display: flex; align-items: center; justify-content: center;
}
.nav-controls nav.active { left: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-controls nav ul { list-style: none; padding: 0; flex-direction: column; display: flex; gap: 40px; font-size: 1.5rem; text-align: center; }
.nav-controls nav ul li a { font-weight: 500; color: var(--text-secondary); }
.nav-controls nav ul li a:hover { color: var(--primary); }
@media (min-width: 769px) {
  .hamburger { display: none; }
  .nav-controls nav { position: static; left: auto; width: auto; height: auto; background-color: transparent; display: block; transition: none; }
  .nav-controls nav ul { flex-direction: row; gap: 40px; font-size: 1rem; }
}

/* --- BUTTONS & FORMS --- */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; font-size: 0.95rem; }
.btn.primary { background-color: var(--primary); color: var(--text-primary); }
.btn.primary:hover { background-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 15px -8px var(--glow-color); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; font-family: inherit; font-size: 1rem; color: var(--text-primary); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); border-radius: var(--border-radius); transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow-color); }

/* --- ÖFFENTLICHE UNTERE NAVIGATION --- */
.public-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color); display: flex;
    justify-content: space-around; align-items: center; z-index: 999;
}
.public-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-secondary); font-size: 0.75rem; transition: var(--transition); }
.public-nav a i { font-size: 1.5rem; }
.public-nav a.active, .public-nav a:hover { color: var(--primary); transform: translateY(-3px); }

/* --- LADEANIMATION --- */
.loader-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 200px; width: 100%; animation: fadeInLoader 0.5s ease;
}
@keyframes fadeInLoader { from { opacity: 0; } to { opacity: 1; } }
.spinner {
    width: 40px; height: 40px; border: 4px solid var(--border-color);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Vollbild-Overlay für Ladeanimationen */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--background); z-index: 9999;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.5s ease;
}
.loader-overlay.show { display: flex; opacity: 1; }