:root {
  --bg1: #040208;
  --bg2: #0d0615;
  --bg3: #1a0d29;
  --purple: #a76bff;
  --purple2: #6d3ed6;
  --gold: #f2d39c;
  --gold2: #fff0cc;
  --text: #fff8ff;
  --muted: #dccceb;
  --line: rgba(242, 211, 156, 0.22);
  --card: rgba(14, 8, 25, 0.90);
  --field: rgba(255,255,255,0.06);
  --shadow: rgba(0,0,0,0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 16px 40px;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(167,107,255,0.22), transparent 0 20%),
    radial-gradient(circle at 80% 15%, rgba(242,211,156,0.12), transparent 0 18%),
    radial-gradient(circle at 50% 85%, rgba(109,62,214,0.20), transparent 0 24%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 45%, var(--bg3));
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.72) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(242,211,156,0.45) 1px, transparent 1.5px);
  background-size: 160px 160px, 240px 240px;
  background-position: 0 0, 60px 80px;
  opacity: 0.24;
  z-index: 0;
}

.site-header,
.site-footer,
.wrap {
  position: relative;
}

.site-header {
  padding-top: 18px;
  margin-bottom: 24px;
  z-index: 9999;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 9999;
  overflow: visible;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto 28px;
  z-index: 1;
}

.site-footer {
  margin-top: 26px;
  z-index: 1;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    var(--card);
  border: 1px solid rgba(242,211,156,0.14);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  text-align: center;
}

/* =========================
   HEADERBILD
========================= */

.site-header-image-link {
  display: block;
  text-decoration: none;
}

.site-header-picture {
  display: block;
  width: 100%;
}

.site-header-image {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  aspect-ratio: 1100 / 400;
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(242, 211, 156, 0.18);
  border-bottom: none;
  box-shadow:
    0 20px 55px rgba(0,0,0,0.35),
    0 0 26px rgba(167,107,255,0.14);
  object-fit: cover;
}

/* =========================
   MENÜ
========================= */

.main-nav {
  position: relative;
  z-index: 9999;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    rgba(14, 8, 25, 0.94);
  border: 1px solid rgba(242, 211, 156, 0.18);
  border-top: none;
  border-radius: 0 0 24px 24px;
  box-shadow:
    0 22px 55px rgba(0,0,0,0.32),
    0 0 18px rgba(167,107,255,0.10);
}

.menu,
.dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.menu-toggle:hover,
.menu-toggle:active {
  transform: none;
  filter: none;
  box-shadow: none;
}

.menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold2);
  border-radius: 999px;
  flex: 0 0 auto;
}

.menu-toggle-label {
  display: none;
}

.menu.level-1 {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.menu.level-1 > li {
  position: relative;
}

.menu-item-row {
  display: flex;
  align-items: stretch;
}

.menu.level-1 > li > a,
.menu-item-row > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  color: var(--gold2);
  text-decoration: none;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu.level-1 > li > a:hover,
.menu.level-1 > li:hover > a,
.menu-item-row > a:hover,
.menu.level-1 > li:hover .menu-item-row > a {
  background: rgba(167,107,255,0.12);
  color: #ffffff;
}

.submenu-toggle {
  display: none;
  min-width: 52px;
  min-height: 58px;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.05);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
}

.submenu-toggle:hover,
.submenu-toggle:active {
  transform: none;
  filter: none;
  box-shadow: none;
  background: rgba(167,107,255,0.12);
}

.has-dropdown > .menu-item-row > a::after {
  content: " ▾";
  font-size: 12px;
  margin-left: 6px;
  color: var(--gold);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    rgba(16, 10, 29, 0.98);
  border: 1px solid rgba(242, 211, 156, 0.18);
  border-radius: 0 0 18px 18px;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.36),
    0 0 20px rgba(167,107,255,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 10000;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 13px 16px;
  color: var(--text);
  text-decoration: none;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: rgba(167,107,255,0.12);
  color: #fff;
  padding-left: 20px;
}

/* =========================
   CONTENT CARD
========================= */

.card {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 26px 30px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    var(--card);
  border: 1px solid rgba(242, 211, 156, 0.18);
  box-shadow:
    0 30px 80px var(--shadow),
    0 0 40px rgba(167,107,255,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(242,211,156,0.14);
  pointer-events: none;
}

.card::after {
  content: "☾";
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff7e8;
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  box-shadow:
    0 0 18px rgba(242,211,156,0.28),
    0 0 26px rgba(167,107,255,0.16);
}

.card .ritual-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -80px;
  border-radius: 50%;
  border: 1px solid rgba(242,211,156,0.08);
  box-shadow:
    0 0 0 24px rgba(242,211,156,0.02),
    0 0 0 48px rgba(167,107,255,0.03);
  pointer-events: none;
}

h1 {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.5px;
  color: var(--gold2);
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(242,211,156,0.18),
    0 0 28px rgba(167,107,255,0.14);
}

.subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.2px;
}

.hidden {
  display: none !important;
}

#status {
  min-height: 20px;
  text-align: center;
  color: #dcc8f3;
  margin-bottom: 16px;
  font-size: 17px;
}

.starline {
  text-align: center;
  margin: 18px 0 16px;
  color: var(--gold);
  opacity: 0.95;
  letter-spacing: 8px;
  font-size: 18px;
  text-shadow: 0 0 14px rgba(242,211,156,0.16);
}

/* =========================
   BUTTONS
========================= */

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

button,
.button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242,211,156,0.24);
  padding: 15px 22px;
  font-weight: 700;
  font-size: 17px;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0.3px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, var(--purple), var(--purple2));
  box-shadow:
    0 16px 30px rgba(77, 36, 146, 0.42),
    0 0 24px rgba(167,107,255,0.28),
    inset 0 1px 0 rgba(255,255,255,0.12);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border-radius: 18px;
  transition: all 0.22s ease;
}

button:hover,
.button:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  box-shadow:
    0 20px 36px rgba(77, 36, 146, 0.48),
    0 0 34px rgba(167,107,255,0.32),
    0 0 18px rgba(242,211,156,0.14);
}

button:active,
.button:active {
  transform: translateY(1px) scale(0.995);
}

.button-text {
  position: relative;
  z-index: 3;
}

.shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,240,205,0.20) 50%,
    rgba(255,255,255,0.08) 60%,
    transparent 80%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.magic-button:hover .shine {
  animation: buttonShine 0.9s ease;
}

.star {
  position: absolute;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  color: rgba(255, 240, 205, 0.95);
  text-shadow:
    0 0 8px rgba(255, 240, 205, 0.45),
    0 0 16px rgba(167,107,255,0.22);
  font-size: 13px;
}

.star-1 { top: 28%; left: 8%; }
.star-2 { top: 62%; left: 20%; }
.star-3 { top: 30%; right: 16%; }
.star-4 { top: 64%; right: 8%; }

.magic-button:hover .star-1 { animation: flyStar1 1.1s ease-out forwards; }
.magic-button:hover .star-2 { animation: flyStar2 1.2s ease-out forwards; }
.magic-button:hover .star-3 { animation: flyStar3 1.1s ease-out forwards; }
.magic-button:hover .star-4 { animation: flyStar4 1.2s ease-out forwards; }

@keyframes buttonShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes flyStar1 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(90px, -24px) scale(1.25) rotate(30deg); }
}

@keyframes flyStar2 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(130px, -10px) scale(1.15) rotate(-25deg); }
}

@keyframes flyStar3 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-100px, -28px) scale(1.25) rotate(-30deg); }
}

@keyframes flyStar4 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-135px, -8px) scale(1.15) rotate(25deg); }
}

/* =========================
   FORM
========================= */

form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  position: relative;
}

input,
select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 17px;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  border: 1px solid rgba(242,211,156,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    var(--field);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 rgba(0,0,0,0);
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  border-color: rgba(242,211,156,0.36);
  box-shadow:
    0 0 0 3px rgba(167,107,255,0.10),
    0 0 20px rgba(167,107,255,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.07);
}

input::placeholder { color: #cbb0e7; }
option { color: #111; }

#bannerFallback {
  margin-top: 22px;
  display: none;
}

/* =========================
   RESULT BOX
========================= */

.box {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.035);
  border: 1px solid rgba(242,211,156,0.16);
  border-radius: 22px;
  padding: 28px 22px 22px;
  line-height: 1.75;
  font-size: 18px;
  color: #fff7fd;
  margin-top: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 24px rgba(167,107,255,0.10);
}

.box::before {
  content: "✦ ORAKELBOTSCHAFT ✦";
  position: absolute;
  top: -14px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  color: #201022;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  box-shadow: 0 0 18px rgba(242,211,156,0.22);
}

.result-text {
  font-size: 18px;
}

a {
  color: inherit;
}

/* =========================
   FOOTER
========================= */

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--gold2);
  font-size: 15px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  body {
    padding: 0 12px 22px;
  }

  .site-header {
    padding-top: 12px;
    margin-bottom: 16px;
  }

  .site-header-inner {
    max-width: 100%;
  }

  .site-header-image {
    border-radius: 18px 18px 0 0;
  }

  .main-nav {
    border-radius: 0 0 18px 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu.level-1 {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open .menu.level-1 {
    display: flex;
  }

  .menu-item-row {
    display: flex;
    align-items: stretch;
  }

  .menu.level-1 > li > a,
  .menu-item-row > a {
    flex: 1;
    justify-content: flex-start;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .menu.level-1 > li:last-child > a,
  .menu.level-1 > li:last-child .submenu-toggle {
    border-bottom: none;
  }

  .dropdown {
    position: static;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    box-shadow: none;
    background: rgba(255,255,255,0.02);
    z-index: auto;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.submenu-open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding: 12px 18px 12px 28px;
    font-size: 14px;
  }

  .card {
    padding: 30px 18px 22px;
    border-radius: 24px;
  }

  .card::after {
    display: none;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 16px;
  }

  #status {
    font-size: 16px;
  }

  .starline {
    letter-spacing: 5px;
    font-size: 16px;
  }

  .box,
  .result-text {
    font-size: 16px;
    padding: 24px 16px 18px;
    line-height: 1.65;
  }

  .card .ritual-ring {
    width: 160px;
    height: 160px;
    left: -60px;
    bottom: -60px;
  }

  button,
  .button,
  input,
  select {
    font-size: 16px;
  }
}