@font-face {
  font-family: 'Comic Sans';
  src: url(/fonts/comic-sans.woff);
}

@font-face {
  font-family: Montserrat;
  src: url(/fonts/Montserrat-Regular.woff2);
}

@font-face {
  font-family: 'Pacifio';
  src: url(/fonts/Pacifico-Regular.woff2);
}

:root {
  --primary: rgb(162, 76, 255);
  --primary-border: rgb(0, 0, 0);
  --secondary: rgb(255, 125, 0);
  --akzent: rgb(255, 200, 0);
}

html[data-theme='dark'] {
    --body-bg-color: #0B1020;
    --body-bg-image: 
        radial-gradient(at 0% 0%, hsla(253, 60%, 25%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(280, 70%, 30%, 0.5) 0px, transparent 50%);
    --text-color: white;
    --text-grey: grey;
    --header-bg: rgba(255, 255, 255, 0.05);
    --header-border: 1px solid rgba(255, 255, 255, 0.3);
    --card-bg: rgba(30, 35, 55, 0.4);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] {
    --body-bg-color: #f0f2f5;
    --body-bg-image: none;
    --text-color: #1c1e21;
    --text-grey: #606770;
    --header-bg: rgba(255, 255, 255, 0.7);
    --header-border: 1px solid rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --card-border: 1px solid #dddfe2;
}


* {
  font-family: Montserrat, Helvetica, sans-serif;
  color: var(--text-color);
}

h1 {
  font-size: 4rem !important;
  font-weight: bolder;
}

h2 {
  font-size: 2.5rem !important;
  font-weight: bolder;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Comic Sans', Helvetica, sans-serif;
  color: var(--text-color);
}

body {
    background-color: var(--body-bg-color);
    background-image: var(--body-bg-image);
    background-attachment: fixed; 
}

/* Starry Background Effect */
#star-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1; /* Place canvas behind everything */
        pointer-events: none; /* Allow clicks to pass through */
      }

.star {
    position: absolute;
    background-color: gold; /* Farbe zu Gelb geändert */
    border-radius: 50%;
    animation-name: twinkle;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* Optional: Fügt einen schönen Leuchteffekt hinzu */
    box-shadow: 0 0 6px gold;
}


@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


main {
  width: 80%;
  margin: 0 auto;
  padding: 3rem;
  margin-top: 6rem !important;
}

@media (max-width: 600px) {
  main {
    margin-top: 12rem !important;
  }
}

@media (min-width: 1000px) {
  main {
    margin-top: 8rem !important;
  }
}

@media (min-width: 1200px) {
  main {
    margin-top: 8rem !important;
    width: 80vw !important;
  }
}

/* Animation für das Einblenden von Elementen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wendet die Einblend-Animation auf den Hauptinhalt an */
main {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Interaktion für die Karten */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Sanfter Übergang */
}

.card:hover {
    transform: translateY(-8px); /* Bewegt die Karte nach oben */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Fügt einen Schatten hinzu */
}

.text-white {
  color: var(--text-color) !important;
}

img {
  max-width: 100%;
}

.rainbow-button {
  position: relative;
  background-color: #f0f0f0;
  color: #333;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: transform 0.3s ease;
  z-index: 1;
  font-weight: 700;
  text-decoration: none;
}

.rainbow-button:hover {
  transform: translateY(-5px) scale(1.08);
}

.rainbow-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg,
      red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  /* Mask only the border */
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 2px;
}

.rainbow-button:hover::before {
  animation: rainbowBorder 3s linear infinite;
  opacity: 1;
}

@keyframes rainbowBorder {
  0% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.horizontal-center {
  position: absolute;
  left: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* Add smooth transition to all buttons */
.btn {
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-5px);
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary-border) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.nav-link {
  color: var(--primary) !important;
  font-weight: bold;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: white !important;
  background-color: var(--primary);
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-grey {
  color: var(--text-grey);
}

.bg-secondary {
  background-color: var(--secondary);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: #333;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  border-color: #333;
}

.bg-dark {
  background-color: rgb(40, 40, 40) !important;
}

header {
  background: var(--header-bg);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--header-border);
  padding: 1rem;
  margin-top: 1rem;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 90vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999; 
  /* ADD THIS LINE for smooth animation */
  transition: all 0.4s ease-in-out;
}

/* NEW STYLES for the scrolled state */
header.scrolled {
  margin-top: 0;
  padding: 0.5rem 1rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

header.scrolled .navHome {
    font-size: 1.8rem;
    transition: font-size 0.4s ease-in-out;
}


input[type=range]::-webkit-slider-thumb {
  background: var(--primary);
  width: 2rem;
  height: 1rem;
}
@media (min-width: 1200px) {
  header {
    width: 65vw;
  }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border: var(--card-border);
    border-radius: 16px; 
}

.container-glass {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7.7px);
  -webkit-backdrop-filter: blur(7.7px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333; 
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary); 
}

input:checked + .slider:before {
    transform: translateX(26px); 
}

.v-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navHome {
  font-family: 'Pacifio', 'Comic Sans' !important; /* Fails, falls back to Comic Sans */
  /* ADD THIS LINE for smooth animation */
  transition: font-size 0.4s ease-in-out;
}

/* Button Shine Effect */
.btn, .rainbow-button {
    position: relative;
    overflow: hidden;
}

.btn::before,
.rainbow-button::after { /* Use ::after for rainbow-button to avoid conflict with its border */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 1; /* Renders on top of the button content */
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: translateX(-160%) skewX(-25deg);
    transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none; /* Ensure the shine layer doesn't block clicks */
}

.btn:hover::before,
.rainbow-button:hover::after {
    transform: translateX(270%) skewX(-25deg);
}

/* --- Cursor Shine Effect --- */
#cursor-shine {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  /* Original Fallback Gradient (will be overridden by theme-specific blocks) */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 65%
  );
}

/* Style adjustment for dark theme to use the primary color */
html[data-theme='dark'] #cursor-shine {
    opacity: 0.15; /* Slightly increased visibility */
    /* Use the primary color (purple: 162, 76, 255) in the gradient */
    background: radial-gradient(
      circle at center,
      rgba(162, 76, 255, 0.6) 0%, /* Brighter primary color in the center */
      rgba(162, 76, 255, 0) 65%
    );
}

/* Style adjustment for light theme */
html[data-theme='light'] #cursor-shine {
    opacity: 0.15;
    /* Use a very light, subtle version of the primary color */
    background: radial-gradient(
      circle at center,
      rgba(162, 76, 255, 0.2) 0%, /* Light primary color */
      rgba(162, 76, 255, 0) 65%
    );
}

/* Optional: Hide the shine on touch devices (where there's no cursor) */
@media (hover: none) and (pointer: coarse) {
    #cursor-shine {
        display: none;
    }
}

/* --- NEW ANIMATIONS --- */

/* 1. Page Load Fade-in */
body {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
body.loaded {
    opacity: 1;
}

/* 2. Floating animation for elements like Kurt */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.anim-float {
  animation: float 4s ease-in-out infinite;
}

/* 3. Enhanced Nav Link Hover Effect */
.nav-pills .nav-link {
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    border-radius: 8px; /* Add rounded corners for better active state */
}

.nav-pills .nav-link:not(.active):hover {
    transform: translateY(-3px);
    color: var(--akzent) !important;
}

/* 4. Character Reveal Title Animation */
.page-title-animate .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) skewY(10deg) scale(0.8);
    animation: revealChar 0.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0) skewY(0) scale(1);
    }
}


/* 5. Scroll-triggered fade-in animation */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 6. Interactive Icon Animation */
.icon-interact {
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.icon-interact:hover {
    transform: scale(1.2) rotate(-15deg);
}

/* 7. Accordion Styles for FAQ */
.faq-item {
    transition: margin 0.4s ease-out;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem; /* Add padding for better click area */
    border-radius: 16px; /* Match card radius */
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0; /* Reset margin from default h3 */
    font-size: 1.25rem !important; /* Adjust font size */
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    transition: transform 0.4s ease-out;
    margin-left: 1rem;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out, padding 0.5s ease-out;
    padding: 0 1.5rem; /* Horizontal padding */
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if answers are longer */
    opacity: 1;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem; /* Full padding when open */
}

/* Make the whole container glass when active */
.faq-item.active {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--card-border);
    border-radius: 16px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

