/* ===============================
   GENERAL
   =============================== */
body {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
  font-family: Arial, sans-serif;
}

.tab-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

/* ===============================
   STICKY AREA (HEADER + TABS)
   =============================== */
.sticky-area {
  background: #f5f5f5;
  overflow: visible;
}

/* ===============================
   HEADER
   =============================== */
.site-header {
  text-align: center;
  padding: 20px 12px 16px;
  margin-bottom: 8px;
  background: linear-gradient(
    180deg,
    rgba(133,25,25,0.15),
    rgba(133,25,25,0)
  );
  border-radius: 14px;
  transition: padding 0.25s ease;
}

.site-header h1 {
  margin: 0;
  font-family: "Creepster", cursive;
  color: #851919;
  font-size: 2.2rem;
}

/* ===============================
   TABS
   =============================== */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 12px 18px;
  flex-shrink: 0;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  background: #851919;
  border-radius: 12px;
  font-size: 1rem;
  user-select: none;
  font-family: "Creepster", cursive;
  white-space: nowrap;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* ACTIVE TAB – heller, aber gleiche Farbwelt */
.tab.active {
  background: #A33A3A;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  position: relative;
}

/* Verbindung zum Content */
.tab.active::after {
  content: "";
  position: absolute;
  left: 15%;
  bottom: -6px;
  width: 70%;
  height: 6px;
  background: #A33A3A;
  border-radius: 0 0 6px 6px;
}

/* ===============================
   CONTENT
   =============================== */
.tab-content {
  display: none;
  background: #fff;
  padding: 20px;
  margin-top: 10px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.tab-content.active {
  display: block;
}

/* ===============================
   HEADLINES – ORIGINAL WIEDERHERGESTELLT
   =============================== */
h1 {
  color: #851919;
  font-family: "Creepster", cursive;
  margin-top: 0;
}

h2 {
  color: #3C403F;
  margin-top: 10px;
}

/* ===============================
   RESPONSIVE MEDIA
   =============================== */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   MOBILE OPTIMIERUNG
   =============================== */
@media (max-width: 480px) {

  /* Sticky Header */
  .sticky-area {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-bottom: 10px; /* Platz für Schatten & Marker */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }

  /* Tabs untereinander */
  .tabs {
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
  }

  .tab {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
  }

  /* Active Tab Mobile-sicher */
  .tab.active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  }

  .tab.active::after {
    bottom: -4px;
    height: 4px;
  }

  .tab-content {
    padding: 14px;
  }
}

.mein-bild {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
}

/* ⭐ Feedback Stars ⭐ */
.feedback-section {
  margin-top: 20px;
}

.star-rating {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
}

.star-rating .star:hover,
.star-rating .star.selected,
.star-rating .star.hovered {
  color: gold;
}

textarea#feedback-text {
  width: 100%;
  min-height: 80px;
  margin-top: 10px;
  padding: 6px;
  font-size: 1rem;
  border: 1px solid #ccc;
}

#feedback-submit {
  margin-top: 10px;
  padding: 10px 16px;
  background: #851919;
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

#feedback-result {
  margin-top: 12px;
  font-weight: bold;
}

.feedback-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  background: #f9f9f9;
}

.feedback-stars {
  color: gold;
  font-size: 1.2rem;
}

.feedback-text {
  margin-top: 5px;
}

.recipe-box {
  margin-top: 15px;
  padding: 15px;
  border-radius: 10px;
  background: #f4f4f4;
  border: 1px solid #ccc;
  scroll-margin-top: 120px;
}

#recipe-select {
  padding: 8px;
  font-size: 1rem;
  margin-top: 10px;
}


.recipe-box iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 10px;
  background: white;
}

.recipe-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #851919;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
