/* ============================================
   FONTS
   ============================================ */

@font-face {
  font-family: "Nerko One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/NerkoOne-Regular.woff2') format('woff2');
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/Nunito-Variable.woff2') format('woff2');
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/Nunito-Italic.woff2') format('woff2');
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
  font-family: "Nunito", sans-serif;
  background-color: var(--color-light);
}

h1, h2, h3 {
  font-family: "Nerko One", cursive;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem !important;
  margin-top: 2rem !important;
  color: var(--color-dark);
}

/* ============================================
   NAV BUBBLE
   ============================================ */

.nav-bubble {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 0.35rem 0.5rem;
  gap: 0;
}

.nav-bubble-item {
  position: relative;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: var(--transition-fast);

  &:hover, &.active {
    background: rgba(255, 122, 0, 0.08);
  }

  &.nav-bubble-lang:hover {
    background: none;
  }
}

.nav-bubble-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.nav-bubble-arrow {
  width: 10px;
  height: 6px;
  color: var(--color-dark);
  opacity: 0.5;
  transition: var(--transition-fast);
}

.nav-bubble-dropdown:hover .nav-bubble-arrow {
  opacity: 1;
}

.nav-bubble-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-bubble-divider {
  width: 1px;
  height: 1.2rem;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.nav-bubble-lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem 0.45rem 1.5rem;
}

.nav-bubble-lang-item {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark);
  opacity: 0.35;
  text-decoration: none;
  transition: var(--transition-fast);

  &:hover {
    opacity: 0.7;
  }

  &.active {
    opacity: 1;
    color: var(--color-orange);
  }
}

.nav-bubble-lang-sep {
  color: var(--color-dark);
  opacity: 0.2;
  font-size: 0.75rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-teal-light) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem 1rem;

  @media (min-width: 768px) {
    padding: 4rem 3rem;
  }
}

/* Gradient Text for H1 */
.h1-gradient {
  display: inline;
  background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: var(--filter-text-shadow);
}

/* Search Input */
.search-input {
  background-color: white;
  transition: var(--transition-fast);

  &:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px var(--shadow-orange);
  }
}

/* Search Button */
.btn-search {
  transition: var(--transition-fast);
  white-space: nowrap;

  &:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange-hover);
  }

  &:active {
    transform: translateY(0);
  }
}

/* ============================================
   HEADER STYLES
   ============================================ */

header {
  background-color: transparent;
  transition: var(--transition-default);

  &.scrolled {
    background-color: var(--color-light);
    box-shadow: var(--shadow-md);
  }
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.nav-item {
  position: relative;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-xl);
  transition: var(--transition-default);
  background-color: var(--bg-nav-item);
  box-shadow: var(--shadow-sm);
  cursor: pointer;

  /* Button */
  & button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--color-dark);
  }

  /* Hover State */
  &:hover {
    background-color: var(--bg-nav-item-hover);
    box-shadow: var(--shadow-md);

    /* Show dropdown on hover */
    & .dropdown {
      opacity: 1;
      visibility: visible;
    }
  }

  /* Active State */
  &.active {
    background-color: var(--bg-nav-item-active);
    color: var(--color-orange);
    font-weight: 600;
  }
}

/* ============================================
   DROPDOWN STYLES
   ============================================ */

.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  min-width: 14rem;
  background-color: var(--bg-dropdown);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
  z-index: 40;
  border: 1px solid var(--border-dropdown);

  /* Arrow */
  &::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 1.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--bg-dropdown-arrow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-dropdown);
    border-left: 1px solid var(--border-dropdown);
  }
}

.dropdown-content {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-dropdown-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-dropdown-item);
  transition: var(--transition-fast);

  /* Hover */
  &:hover {
    background-color: var(--bg-dropdown-item-hover);
    color: var(--color-orange);
  }

  /* Last Item */
  &:last-child {
    border-bottom: none;
  }

  /* Active */
  &.active {
    background-color: var(--bg-dropdown-item-active);
    color: var(--color-orange);
    font-weight: 600;
  }
}

/* ============================================
   CATEGORY COVER
   ============================================ */

.category-cover img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* ============================================
   INTRO BLOCK
   ============================================ */
.intro-text {
   font-size: 1.25rem;
   line-height: 1.45;
   color: var(--color-dark);
   margin-bottom: 1rem;
   font-weight: 600;
}

/* ============================================
   GALLERY BLOCK
   ============================================ */

figure.gallery h2 {
  margin-top: 0 !important;
}

figure.gallery > ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

figure.gallery > ul li a img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-default);
  width: 100%;
  display: block;

  &:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
}

.gallery-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.5;
}

/* ============================================
   AFFILIATE PRODUCTS
   ============================================ */

.affiliate-products {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-teal-light) 100%);
  border-radius: var(--radius-xl);
}

.affiliate-label {
  font-family: "Nerko One", cursive;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

@media (max-width: 640px) {
  .affiliate-products {
    padding: 1rem;
    position: relative;
    overflow: hidden;
  }

  .affiliate-products::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 100%;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    background: linear-gradient(to right, transparent 0%, var(--color-teal-light) 70%);
    pointer-events: none;
    z-index: 1;
  }

  .affiliate-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    padding-bottom: 0.5rem;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  .affiliate-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

.affiliate-card-link {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-default);
  height: 100%;

  &:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
  }
}

.affiliate-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;

  & img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
  }
}

.affiliate-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.affiliate-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--color-dark);
}

.affiliate-card-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.affiliate-card-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-orange);
  margin-top: auto;
}

.affiliate-card-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-orange);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.affiliate-disclaimer {
  font-size: 0.7rem;
  color: #888;
  margin: 0;
}

/* ============================================
   FOOTER WAVE TRENNER
   ============================================ */

.footer-wave {
  margin-top: 4rem;
  line-height: 0;

  & svg {
    width: 100%;
    height: 60px;
    display: block;
  }
}

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

.footer {
  background: #EDEEF0;
  color: var(--color-dark);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(45, 52, 54, 0.55);
  line-height: 1.6;
}

.footer-heading {
  font-family: "Nerko One", cursive;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  & a {
    font-size: 0.85rem;
    color: rgba(45, 52, 54, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;

    &:hover {
      color: var(--color-orange);
    }
  }
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-teal);
  color: white;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(45, 52, 54, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(45, 52, 54, 0.35);
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz etc.)
   ============================================ */

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  display: inline-block;
  background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: var(--filter-text-shadow);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.legal-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(45, 52, 54, 0.8);

  & h2 {
    font-family: "Nunito", sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    color: var(--color-dark) !important;
    margin-top: 2rem !important;
    margin-bottom: 0.5rem;
  }

  & h2:first-child {
    margin-top: 0.25rem !important;
  }

  & h3 {
    font-family: "Nunito", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: none !important;
    color: var(--color-dark) !important;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
  }

  & p {
    margin-bottom: 1rem;
  }

  & ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;

    & li {
      margin-bottom: 0.1rem;

      & p { margin-bottom: 0; }
    }
  }

  & ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;

    & li {
      margin-bottom: 0.1rem;

      & p { margin-bottom: 0; }
    }
  }

  & a {
    color: var(--color-orange);
    text-decoration: underline;
    text-underline-offset: 3px;

    &:hover {
      opacity: 0.8;
    }
  }

  & strong {
    font-weight: 700;
    color: var(--color-dark);
  }

  & hr {
    border: none;
    border-top: 1px solid rgba(45, 52, 54, 0.1);
    margin: 2rem 0;
  }
}

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

/* Nav Bubble auf Mobile erzwingen (Fallback für Tailwind hidden) */
@media (max-width: 767px) {
  nav.nav-bubble {
    display: none !important;
  }
}

/* Hamburger Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.5rem;
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition-default);
  transform-origin: center;
}

.mobile-menu-btn.open .mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .mobile-menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open .mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sprachumschalter Mobile */
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 0.75rem;
}

.mobile-lang-item {
  color: rgba(45, 52, 54, 0.4);
  text-decoration: none;
  transition: var(--transition-fast);

  &.active {
    color: var(--color-orange);
  }
}

.mobile-lang-sep {
  color: rgba(45, 52, 54, 0.2);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 40;
  padding-top: 5rem;
  overflow-y: auto;

  &.open {
    display: block;
  }
}

.mobile-menu-inner {
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 1.5rem;
}

.mobile-menu-heading {
  font-family: "Nerko One", cursive;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(45, 52, 54, 0.4);
  margin-bottom: 0.75rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 52, 54, 0.06);
  transition: var(--transition-fast);

  &:hover {
    color: var(--color-orange);
    padding-left: 0.25rem;
  }
}

body.menu-open {
  overflow: hidden;
}
