/* ===== Fahrschule Rain – Neon Theme (Cyan / Pink) ===== */

:root {
  --cyan: #18e7ff;
  --pink: #ff1f9c;
  --purple: #a33cff;
  --bg: #07070f;
  --bg-2: #0d0d1c;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef1ff;
  --muted: #9aa0bd;
  --radius: 16px;
  --grad: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* dezenter Neon-Schimmer im Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60vw 60vw at 12% 8%, rgba(255, 31, 156, 0.16), transparent 60%),
    radial-gradient(55vw 55vw at 88% 22%, rgba(24, 231, 255, 0.14), transparent 60%),
    radial-gradient(60vw 60vw at 50% 105%, rgba(163, 60, 255, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 3rem); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 22px rgba(255, 31, 156, 0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(24, 231, 255, 0.5); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(24, 231, 255, 0.1); box-shadow: 0 0 24px rgba(24, 231, 255, 0.35); }

.btn--small { padding: 0.5rem 1.15rem; font-size: 0.9rem; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(24, 231, 255, 0.06);
  margin-bottom: 1rem;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 15, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 7, 15, 0.92);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.nav__brand img { height: 52px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover,
.nav__links a.is-active { color: var(--cyan); }
.nav__links a.btn { color: #fff; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.25s, opacity 0.2s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 5rem 0 6rem; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero__stats b {
  display: block;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span { font-size: 0.85rem; color: var(--muted); }

.hero__logo img {
  filter: drop-shadow(0 0 40px rgba(24, 231, 255, 0.45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.2; }
.lead { color: var(--muted); margin-top: 0.9rem; }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.card,
.klasse,
.member,
.preis {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover,
.klasse:hover,
.member:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 231, 255, 0.55);
  box-shadow: 0 14px 40px rgba(24, 231, 255, 0.12);
}
.card h3, .klasse h3, .member h3, .preis h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p, .klasse p, .member p { color: var(--muted); font-size: 0.95rem; }

.card__icon {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.klasse__sub {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.7rem;
}

/* ===== Preise ===== */
.preise { align-items: start; }
.preis { text-align: center; position: relative; }
.preis__tag { color: var(--muted); font-size: 0.88rem; }
.preis__price {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.8rem 0 1.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.preis ul { list-style: none; text-align: left; margin-bottom: 1.6rem; }
.preis li {
  padding: 0.5rem 0 0.5rem 1.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  position: relative;
}
.preis li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.preis li.off { color: #5c6180; text-decoration: line-through; }
.preis li.off::before { content: "✕"; color: #5c6180; }

.preis--best {
  border-color: var(--pink);
  box-shadow: 0 0 45px rgba(255, 31, 156, 0.2);
  transform: scale(1.04);
}
.preis__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  padding: 0.3rem 1.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.preis__extra {
  margin-top: 3.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.preis__extra h3 { margin-bottom: 1.2rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 0.8rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--cyan); text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.12em; }
.table td:last-child, .table th:last-child { text-align: right; font-weight: 700; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.hint { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }

/* ===== Team ===== */
.member { text-align: center; }
.member__avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 25px rgba(163, 60, 255, 0.4);
}
.member__role {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}
.member--join { border-style: dashed; }
.member--join .btn { margin-top: 1rem; }

/* ===== FAQ ===== */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--cyan); }
.faq p { color: var(--muted); margin-top: 0.8rem; font-size: 0.95rem; }

/* ===== Kontakt ===== */
.kontakt { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.6rem; }

.form, .infos {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form label { display: block; margin-bottom: 1.1rem; font-size: 0.88rem; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(24, 231, 255, 0.15);
}
.form input.is-error, .form textarea.is-error { border-color: var(--pink); }
.form__status { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.4rem; color: var(--cyan); }
.form__status.is-error { color: var(--pink); }

.infos h3 { margin-bottom: 1.2rem; }
.infos__list { list-style: none; }
.infos__list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.infos__list b { display: block; color: var(--cyan); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.infos__list span { color: var(--muted); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 3rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo { height: 70px; width: auto; margin-bottom: 1rem; }
.footer p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.7rem; }
.footer h4 { margin-bottom: 0.9rem; color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__inner a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.2rem 0; transition: color 0.2s; }
.footer__inner a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; text-align: center; }
.footer__bottom p { color: #6a7090; font-size: 0.83rem; margin: 0; }

/* ===== Scroll to top ===== */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 40;
}
.totop.is-visible { opacity: 1; pointer-events: auto; }
.totop:hover { transform: translateY(-4px); }

/* ===== Scroll-Animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .kontakt { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.2rem 1.5rem 1.8rem;
    background: rgba(7, 7, 15, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }

  .hero { padding: 3rem 0 4rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo { order: -1; max-width: 420px; margin-inline: auto; }
  .hero__stats { gap: 1.8rem; }

  .preis--best { transform: none; }
}

@media (max-width: 620px) {
  .container, .container--narrow { width: min(100% - 2rem, 100%); }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .table { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
