/* ===========================
   Basis & Reset
   =========================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.65;
}

/* Links allgemein */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Kleine Helfer */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  background: #e5e7eb;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
  background: radial-gradient(circle at top left, #2563eb, #111827);
  color: #f9fafb;
  padding: 0.6rem 1rem 0.8rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background-blend-mode: multiply;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Brand / Logo */

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #111827;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.site-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.site-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Navigation */

nav {
  margin-top: 0.2rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-list a {
  position: relative;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.35);
  transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde68a, #f97316);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.nav-list a:hover {
  background: rgba(15, 23, 42, 0.68);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.4);
  text-decoration: none;
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list a.active {
  background: #facc15;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.4);
}

.nav-list a.active::after {
  background: transparent;
}

/* Mobile Anpassungen Header */

@media (max-width: 640px) {
  .site-title {
    font-size: 1.25rem;
  }
  .site-subtitle {
    font-size: 0.8rem;
  }
}

/* ===========================
   Layout Hauptbereich
   =========================== */

main {
  max-width: 1100px;
  margin: 1.6rem auto 2.6rem;
  padding: 0 1rem;
}

/* ===========================
   Hero Bereich & Slider
   =========================== */

.hero {
  background: #f9fafb;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  margin-bottom: 1.6rem;
  overflow: hidden;
  position: relative;
}

/* Badge */

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Slider Wrapper */

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: -1.5rem -1.75rem 0.75rem;
}

.hero-slides {
  display: flex;
  width: 300%;
  animation: heroSlide 21s infinite;
}

.hero-slide {
  width: 100%;
  padding: 1.6rem 1.9rem 1.9rem;
}

/* Slide Farben */

.hero-slide:nth-child(1) {
  background: radial-gradient(circle at top left, #1d4ed8, #0f172a);
  color: #e5e7eb;
}

.hero-slide:nth-child(2) {
  background: radial-gradient(circle at top left, #15803d, #022c22);
  color: #ecfdf3;
}

.hero-slide:nth-child(3) {
  background: radial-gradient(circle at top left, #c2410c, #7c2d12);
  color: #fff7ed;
}

/* Slide Text */

.hero-slide h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem 0;
}

.hero-slide p {
  margin: 0.2rem 0;
}

/* Slider Dots */

.hero-dots {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 1.7rem 0.8rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.4);
}

.hero-dot:nth-child(1) {
  animation: heroDots 21s infinite;
}
.hero-dot:nth-child(2) {
  animation: heroDots 21s infinite 7s;
}
.hero-dot:nth-child(3) {
  animation: heroDots 21s infinite 14s;
}

/* Slider Animation */

@keyframes heroSlide {
  0%, 27%   { transform: translateX(0%); }
  33%, 60%  { transform: translateX(-100%); }
  66%, 93%  { transform: translateX(-200%); }
  100%      { transform: translateX(0%); }
}

@keyframes heroDots {
  0%, 27%   { background: #facc15; transform: scale(1.1); }
  33%, 100% { background: rgba(249, 250, 251, 0.4); transform: scale(1); }
}

/* Meta Info unter Hero */

.hero .meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===========================
   Allgemeine Sektionen
   =========================== */

.section {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.3rem;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.6s forwards;
}

.section:nth-of-type(1) { animation-delay: 0.05s; }
.section:nth-of-type(2) { animation-delay: 0.10s; }
.section:nth-of-type(3) { animation-delay: 0.15s; }
.section:nth-of-type(4) { animation-delay: 0.20s; }
.section:nth-of-type(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.section h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

/* ===========================
   Layout-Grids
   =========================== */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.6rem;
}

@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Listen & Text
   =========================== */

ul {
  padding-left: 1.15rem;
  margin-top: 0.25rem;
}

li + li {
  margin-top: 0.2rem;
}

/* Info Boxen */

.info-box {
  border-left: 4px solid #facc15;
  padding-left: 0.8rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  background: #fffbeb;
  border-radius: 0 10px 10px 0;
}

/* Kleine Meta-Texte */

.meta {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.45rem;
}

/* ===========================
   Buttons & Interaktionen
   =========================== */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #f9fafb;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.45);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(30, 64, 175, 0.55);
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
  background: #f3f4f6;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.3);
}

/* ===========================
   Galerie
   =========================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.85);
  transition: transform 0.25s, filter 0.25s;
}

.gallery-item span {
  position: absolute;
  left: 0.6rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.78);
  color: #f9fafb;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

/* ===========================
   Zeitleiste (Timeline)
   =========================== */

.timeline {
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
  margin-left: 0.25rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 0.1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
}

/* ===========================
   Spendometer
   =========================== */

.spendo {
  margin-top: 0.5rem;
}

.spendo-bar {
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.spendo-fill {
  height: 100%;
  width: 46%; /* anpassbar */
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.spendo-text {
  font-size: 0.85rem;
}

/* ===========================
   Newsletter & News
   =========================== */

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  flex: 1 1 190px;
  font-size: 0.9rem;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.news-list {
  display: grid;
  gap: 0.75rem;
}

.news-item {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

/* ===========================
   Partner & Marken
   =========================== */

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
}

/* ===========================
   Unterstützer & Logos
   =========================== */

.supporter-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}

.supporter-logo {
  border-radius: 10px;
  background: #f9fafb;
  border: 1px dashed #d4d4d8;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.supporter-logo:hover {
  transform: translateY(-2px);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* ===========================
   Karten / Embed
   =========================== */

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* ===========================
   QR-Code Bereich
   =========================== */

.qr-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.qr-box img {
  width: 120px;
  height: 120px;
  background: #e5e7eb;
  border-radius: 12px;
  object-fit: contain;
}

/* ===========================
   Öffnungsstatus
   =========================== */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e5e7eb;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e; /* wird durch JS angepasst */
}

/* ===========================
   Produkt / Katalog-Grid
   =========================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.product-card {
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
  transition: transform 0.12s, box-shadow 0.12s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.18);
}

/* ===========================
   Shop-Teaser & Zufallsgimmick
   =========================== */

.shop-note {
  font-size: 0.85rem;
  opacity: 0.95;
  margin-top: 0.4rem;
}

.random-box {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px dashed #d4d4d8;
  font-size: 0.9rem;
}

.random-output {
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ===========================
   Footer
   =========================== */

footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1rem 0.7rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

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

/* ===========================
   Responsiveness Extras
   =========================== */

@media (max-width: 600px) {
  .hero-slide h1 {
    font-size: 1.5rem;
  }
  main {
    margin-top: 1.1rem;
  }
  .hero {
    padding: 1.2rem 1.2rem 1.4rem;
  }
  .section {
    padding: 1.05rem 1.2rem;
  }
}
