/* ======= BASIS ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #0f1014;
  color: #f0f0f0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ======= HEADER ======= */
.header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(20, 22, 30, 0.9);
  padding: 10px 40px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  border-radius: 8px;
}

.logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #7B83EB;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #0078D4;
}

/* ======= HERO ======= */
.hero {
  height: 90vh;
  background: url('../images/hero.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #7B83EB;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  background: linear-gradient(90deg, #0078D4, #7B83EB);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(123, 131, 235, 0.6);
}

/* ======= SECTIONS ======= */
.section {
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.section.alt {
  background-color: #14161e;
}

.section img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 120, 212, 0.3);
}

.section h2 {
  color: #0078D4;
  margin-bottom: 15px;
}

.section p {
  max-width: 700px;
  margin: 0 auto;
  color: #ccc;
}

.contact .btn {
  margin-top: 30px;
}

/* ======= FOOTER ======= */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #0c0d10;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.footer a {
  color: #7B83EB;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
/* ======= KONTAKT FORMULAR ======= */
.kontakt-form {
  max-width: 700px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #14161e;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 120, 212, 0.2);
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #7B83EB;
}

input[type="text"],
input[type="email"],
textarea {
  background-color: #0f1014;
  border: 1px solid #2a2d36;
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  border-color: #0078D4;
  outline: none;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}

.checkbox-group label {
  color: #ccc;
  font-weight: normal;
}

textarea#sonstiges_text {
  display: none;
  margin-top: 10px;
}

#sonstiges-checkbox:checked ~ #sonstiges_text {
  display: block;
}

button.btn {
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

.success {
  color: #4caf50;
  text-align: center;
  margin-top: 10px;
}

.error {
  color: #ff5252;
  text-align: center;
  margin-top: 10px;
}
/* ======= LEGAL PAGES ======= */
.legal h1 {
  color: #7B83EB;
  margin-bottom: 10px;
}
.legal p { color: #ccc; }

.legal-card {
  background: #14161e;
  border: 1px solid #2a2d36;
  border-radius: 16px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 0 14px rgba(0, 120, 212, 0.12);
}
.legal-card h2 {
  color: #0078D4;
  margin-bottom: 8px;
}
.legal a { color: #7B83EB; text-decoration: none; }
.legal a:hover { text-decoration: underline; }

.legal-updated {
  margin-top: 10px;
  color: #9aa0a6;
  font-size: 0.9rem;
}
/* ======= FAQ PAGE ======= */
.faq-category {
  background: #14161e;
  border-radius: 18px;
  padding: 25px;
  margin: 25px 0;
  border: 1px solid #2a2d36;
  box-shadow: 0 0 15px rgba(0, 120, 212, 0.1);
}

.faq-category h2 {
  color: #0078D4;
  margin-bottom: 10px;
}

details {
  background: #0f1014;
  border-radius: 12px;
  margin: 12px 0;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

details:hover {
  background: rgba(255,255,255,0.05);
}

details summary {
  font-weight: 600;
  color: #7B83EB;
  list-style: none;
}

details p {
  margin-top: 10px;
  color: #ccc;
}

details[open] summary {
  color: #0078D4;
}
/* ======= FAQ SEARCH ======= */
.faq-search {
  max-width: 600px;
  margin: 20px auto 40px;
  text-align: center;
}

.faq-search input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2a2d36;
  background-color: #0f1014;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-search input:focus {
  border-color: #0078D4;
  box-shadow: 0 0 8px rgba(0,120,212,0.3);
  outline: none;
}
/* ======= FAQ FADE EFFECT ======= */
details {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.fade-in {
  opacity: 1;
  transform: scale(1);
}

.faq-category.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}
/* ======= FAQ CONTROLS ======= */
.faq-controls {
  text-align: center;
  margin-bottom: 25px;
}

.faq-controls .btn.small {
  background-color: #14161e;
  border: 1px solid #2a2d36;
  color: #7B83EB;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.faq-controls .btn.small:hover {
  background-color: #0078D4;
  color: #fff;
  box-shadow: 0 0 8px rgba(0,120,212,0.4);
}

/* ======= FAQ ICONS ======= */
summary {
  position: relative;
  padding-right: 25px;
}

.faq-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 12px;
  height: 12px;
  border-right: 2px solid #7B83EB;
  border-bottom: 2px solid #7B83EB;
  transform-origin: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  rotate: 45deg;
}

details[open] .faq-icon {
  transform: translateY(-50%) rotate(225deg);
  border-color: #0078D4;
}

/* Fade-Effekt bleibt aktiv */
.fade-out {
  opacity: 0;
  transform: scale(0.97);
}
.fade-in {
  opacity: 1;
  transform: scale(1);
}
/* ======= SCROLL TO TOP BUTTON ======= */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0078D4, #7B83EB);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0,120,212,0.4);
  cursor: pointer;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999;
}

#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  box-shadow: 0 0 20px rgba(0,120,212,0.6);
  transform: scale(1.1);
}
.features li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.steps li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.example-box {
    background: rgba(123, 131, 235, 0.1);
    border: 1px solid rgba(123, 131, 235, 0.3);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    transition: transform 0.2s ease, background 0.3s ease;
}

.example-box:hover {
    transform: translateY(-3px);
    background: rgba(123, 131, 235, 0.15);
}

.highlight {
    background: linear-gradient(135deg, rgba(123, 131, 235, 0.15), rgba(123, 131, 235, 0.05));
    border-top: 1px solid rgba(123, 131, 235, 0.2);
    border-bottom: 1px solid rgba(123, 131, 235, 0.2);
}
/* --- Fix: Abstand am Seitenende --- */
.section.contact {
    padding-bottom: 5rem; /* mehr Platz über Footer */
    margin-bottom: 3rem;
}

/* Optional: Falls Buttons generell zu nah am unteren Rand kleben */
.section .btn {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.section.contact {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.section.contact .content {
    position: relative;
    z-index: 1;
}

.section.contact .btn {
    position: relative; /* war evtl. vorher absolute */
    display: inline-block;
    margin-top: 1.5rem;
    z-index: 2;
}
#organisation-field, #sonstiges-textfeld {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

select, input, textarea {
    background-color: #1b1b1b;
    color: #fff;
    border: 1px solid rgba(123, 131, 235, 0.3);
    border-radius: 8px;
    padding: 0.7rem;
    width: 100%;
}
/* ========== HEADER / NAVIGATION ========== */
.header {
    background-color: #0f0f10;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    max-width: 1200px;
    margin: auto;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #9ca9ff;
    font-weight: 600;
    font-size: 1.1rem;
}
.logo img {
    height: 42px;
    margin-right: 8px;
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav ul li {
    margin: 0 1rem;
}
.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav ul li a:hover {
    color: #7b83eb;
}

/* Burger Icon */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}
.burger div {
    background-color: #fff;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #111;
        flex-direction: column;
        width: 100%;
        display: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    .nav ul.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    .burger {
        display: flex;
    }

    /* Animation beim Öffnen */
    .burger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active div:nth-child(2) {
        opacity: 0;
    }
    .burger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
