/* normalize 1rem to 10px */
html {
  font-size: 62.5%;
}

/* Variablen und Basisfarben */
:root {
  /* dark theme: */
  /* --bg: #121212;
  --bgSecondary: #1f1f1f;
  --bg3: #f1020233;
  --fontPrimary: #e0e0e0;
  --fontAccent: #69b8a7;
  --fontAccentHover: #96f1de;
  --accent: #4caf50;
  --accentSecondary: #00ffff; */

  --bg: #ebfc95;
  --bgSecondary: #70ffd6;
  --bg3: #f1020233;
  --fontPrimary: #260038;
  --fontAccent: #6d00a1;
  --fontAccentHover: #f200ff;
  --accent: #ff620d;
  --accentSecondary: #00ffff;
}

/* Basis-Reset und Schrift */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--fontPrimary);
  font-family: var(--font-family);
  font-size: 1.6rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

/* Header & Navigation */
header {
  background-color: var(--bgSecondary);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.logo {
  color: var(--fontPrimary);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  transition: color 0.3s ease;
}
.logo:hover {
  color: var(--accent);
}

/* Hide burger on desktop */
.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--fontPrimary);
}

/* nav */
nav {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.menu, .submenu {
  list-style: none;
}

.menu {
  display: flex;
  position: relative;
  justify-content: right;
}

.menu li {
  padding: 1rem 2rem;
  position: relative;
}

.menu li a {
  /* display: block; */ 
  color: var(--fontPrimary);
  text-decoration: none;
  font-size: larger;
  transition: color 0.3s ease;
}

.menu li a:hover,
.menu li a.active,
.menu li a[aria-current="page"] {
  color: var(--accent);
}

.submenu {
  /* hide submenu initially */
  display: none;  
  position: absolute;
  top: 100%;
  right: 0%;
  min-width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  border-radius: 0.5rem;
  background: var(--bgSecondary);
}

/* animate submenu show on large screens */
@media (min-width: 768px) {
  li:hover > .submenu {
    display: block;
    animation: fadeIn 0.5s ease;
  }
}

/* Define effect for fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submenu li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.menu li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.menu li:hover::after {
  width: 100%;
}


.submenu .submenu {
  top: 0;
  left: 100%;
  min-width: max-content;
}

/* Burger and nav small screens */
@media (max-width: 768px) {
  /* Show burger on mobile */
  .burger {
    display: block;
    /* rotate burger to default position animated */
    transition: 0.3s;
  }

  /* rotate burger when active */
  .burger.active {
    transform: rotate(90deg);
    transition: 0.3s;
  }

  /* Hide nav initially on small screens */
  nav {
    display: none;
    animation: fadeIn 0.5s ease;
    position: absolute;
    top: 6rem; /* below header */
    inset-inline-end: 1rem;
    background-color: var(--bgSecondary);
    border-radius: 0.5rem;
    padding: 1rem;
    /* width: 150px; */
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
  }

  /* Show nav when active */
  nav.show {
    display: flex;
  }

  nav a {
    margin: 0.5rem 0;
  }

  .menu {
    flex-direction: column;
  }

  .menu li::after {
    left: auto;
    right: 0;
  }

  .submenu {
    /* position: relative; */
    top: 0%;
    right: 100%;
  }

  .submenu .submenu {
    left: auto;
    right: 100%;
  }
}

/* Hero Section */
.hero {
  /* einfacher hero */
  /* background: linear-gradient(135deg, #4caf50, #81c784); */

  background-color: var(--accentSecondary);
  background-image: url("../picture/webp/color.webp");
  background-size: cover;
  color: var(--bg);
  padding: 12rem 2rem 8rem;
  text-align: center;
  /* use text-shadow infront of coloful hero to improve readability */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  user-select: none;
  box-shadow: inset 0 0 50px rgba(255 255 255 / 0.2);
}


/* Allgemeine Section Styles */
.section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 4rem 2rem;
  background-color: var(--bgSecondary);
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* Card Grid für Features */
.card-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.card {
  background-color: var(--bg);
  padding: 2rem 8rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.8);
  font-weight: 600;
  text-align: center;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px var(--accent);
}

.text-center {
  text-align: center;
}

.text-attention {
  text-transform: uppercase;
  font-size: x-large;
  color: var(--fontAccent);
  animation: glow 1s ease-in-out infinite alternate;
}
@keyframes glow {
  from {
    text-shadow: 0 0 30px var(--fontAccentHover), 0 0 40px var(--fontAccentHover), 0 0 60px var(--fontAccentHover);
  }
  to {
    text-shadow: 0 0 20px var(--accentSecondary), 0 0 30px var(--accentSecondary), 0 0 50px var(--accentSecondary);
  }
}



/* Section two columns -> picture and text */
.section-2col {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem auto;
  padding: 2rem 2rem;
  flex-wrap: wrap;
}

.section-2col.reverse {
  flex-direction: row-reverse;
}

.image-container, .text-container {
  flex: 1 1 50%;
  max-width: 60rem;
  padding: 2rem;
}

.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  width: 70%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 4px 8px 0.6 var(--accent);
}

.text-container h2 {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section-2col {
    padding: 2rem 0;
  }
  .section-2col, .section-2col.reverse {
    flex-direction: column;
  }

  .image-container, .text-container {
    flex: 1, 1, 100%;
    max-width: 100%;
  }
}

/* content section with affiliate links */
.content-section h2, p {
  margin-bottom: 3rem;
}

.content-section li {
  list-style: none;
}

/* link */
.link {
  text-decoration: none;
  color: var(--fontAccent);
  font-size: 2rem;
}
/* affiliate */
.affiliate-link {
  transition: 0.3s ease;
}

.affiliate-link:hover {
  color: var(--fontAccentHover);
}


/* Footer */
footer {
  background-color: var(--bgSecondary);
  text-align: center;
  padding: 4rem 1rem;
  margin-top: auto;
  color: var(--fontPrimary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

footer p {
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  justify-content: center;

}

.social-icon {
  margin: 0 1rem;
  color: var(--fontPrimary);
  transition: 0.4s ease;
}

.social-icon:hover {
  color: var(--accent);
  transform: rotate(20deg) scale(1.2);
}

/* Formulare (contact.html) */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  font-weight: 600;
  user-select: none;
}

form input,
form textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
}