/* =========================================
   Variablen
   ========================================= */
:root {
  --font-ui: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  --text-color: #2f2f2f;
  --bg-color: #f3f1ee;

  /* FullCalendar */
  --fc-border-color: #ddd;
  --fc-event-bg-color: #A8C3A5;
  --fc-event-text-color: #1f1f1f;
  --fc-button-bg: #8FA58C;
  --fc-button-text-color: #fff;
  --fc-button-hover-bg: #768f78;
  --fc-button-hover-border: #6a7f6b;
}

/* =========================================
   Basis & Typografie
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-ui);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
}

/* Platz für fixe Navbar */
body { padding-top: 110px; }
@media (max-width: 640px) {
  body { padding-top: 90px; }
}

h1, h2, h3, h4, h5, h6,
.uk-heading-line > span {
  font-family: var(--font-heading);
  letter-spacing: .2px;
}

.uk-text-lead { font-weight: 400; line-height: 1.65; }

/* =========================================
   Footer Social Icons
   ========================================= */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

/* =========================================
   Navigation / Navbar / Dropdown
   ========================================= */
.nav {
  position: fixed;         /* bleibt beim Scrollen */
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,.95);
  padding: 1rem 0;
  z-index: 9999;
  border-bottom: 1px solid #ddd;
}

.custom-navbar { padding: 0 40px; }
.uk-navbar-container { padding: 8px 0; }

.logo-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.logo-wrapper img { transform: scale(0.4); transform-origin: center; }

.uk-navbar-dropdown {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
}
.uk-navbar-dropdown-nav > li > a {
  padding: 10px 47px;
  color: #333;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-weight: 500;
  transition: background-color .3s ease, color .3s ease;
}
.uk-navbar-dropdown-nav > li > a:hover {
  background: #f3f3f3;
  color: #111;
}

/* =========================================
   Hero Sektionen
   ========================================= */
.hero-height2 { height: 20vh; }
.hero-height  { height: 10vh; }
@media (min-width: 768px) { .hero-height { height: 30vh; } }

.hero-section {
  position: relative;
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero--events {
  background: url('assets/generell/Header.jpg') center/cover no-repeat;
}
.hero-overlay--dark {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 5rem;
  color: #fff;
}

@media (max-width: 768px) {
  .hero-section { min-height: 30vh !important; }
  .hero-content h1 { font-size: 1.8rem !important; }
  .hero-content p { font-size: 1.0rem !important; }
}

/* Startseiten-Hero im Stil der Events */
.hero-event {
  position: relative;
  width: 100%;
  min-height: 60vh;
  overflow: hidden;
}
.hero-event .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: translateZ(0);
}
.hero-event::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.35) 100%);
}
.hero-event .hero-overlay {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
  min-height: 40vh;
}
.hero-event .hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  margin: 0 0 .5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
}
.hero-event .hero-sub {
  font-family: var(--font-ui);
  color: #f3f3f3;
  opacity: .95;
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}
@media (min-width: 1024px) {
  .hero-event, .hero-event .hero-overlay { min-height: 50vh; }
}

/* =========================================
   Karten / Hover
   ========================================= */
.uk-card-default {
  border: 1px solid #eee;
  background: #fff;
}
.uk-card { margin-bottom: 20px; }
.uk-slider-items .uk-card { min-height: 160px; }

a.uk-link-toggle,
a.uk-link-toggle:hover,
a.uk-link-toggle:focus {
  color: inherit !important;
  text-decoration: none !important;
}
.uk-link-heading:hover,
.uk-link-toggle:hover .uk-link-heading {
  color: #413b2e !important;
}
.uk-link-toggle:hover .uk-card,
.uk-card.uk-card-hover:hover {
  box-shadow: 0 0 18px #7d746059;
  transform: translateY(-3px);
  transition: box-shadow .25s ease, transform .25s ease;
}

/* =========================================
   Buttons / Headings
   ========================================= */
.uk-heading-line span {
  color: #444;
  font-weight: 600;
  letter-spacing: 1px;
}

.uk-button,
.uk-accordion-title,
.uk-navbar-nav > li > a {
  font-family: var(--font-ui);
  font-weight: 500;
}

.uk-button-text { color: #666 !important; }

.uk-button-default {
  background-color: #969e9a;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 5px 10px;
}
.uk-button-default:hover { background-color: #567264; color: #fff; }

/* =========================================
   FullCalendar Theme
   ========================================= */
.fc .fc-col-header-cell-cushion { padding: 10px 8px; font-weight: 600; color: #444; }
.fc-daygrid-day-frame { padding: 6px; transition: background-color .2s ease; }
.fc-daygrid-day:hover { background-color: #f4f4f4; }

.fc-event {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  font-size: .85rem;
  padding: 4px 6px;
  background: var(--fc-event-bg-color);
  color: var(--fc-event-text-color);
  pointer-events: none;
  cursor: default;
}

.fc .fc-button {
  background-color: var(--fc-button-bg);
  color: var(--fc-button-text-color);
  border: none;
  border-radius: 5px;
  transition: background-color .3s ease, border-color .3s ease;
}
.fc .fc-button:hover {
  background-color: var(--fc-button-hover-bg);
  border-color: var(--fc-button-hover-border);
}

.fc .fc-day-today { background-color: #fef7e0; border: 1px solid #e8dcae; }

.fc-tooltip {
  background: #fff;
  color: #333;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

#event-calendar { position: relative; z-index: 1; margin-bottom: 80px; }


/* =========================================
   Bilder / Accordion
   ========================================= */
img { max-width: 100%; height: auto; }
.uk-accordion-title { font-size: 1.1rem; }
.uk-accordion-content { font-size: .95rem; }
[uk-scrollspy] { transition: all .5s ease-in-out; }

/* =========================================
   Footer
   ========================================= */
footer, .footer {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 2rem 1rem;
  text-align: center;
  color: #555;
  border-top: 1px solid #e0e0e0;
}

/* =========================================
   Kleine Produkt-Optik (falls genutzt)
   ========================================= */
.product-hero { background: #f5f5f5; padding: 60px 0; }
.product-title {
  font-size: 3rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
}
.highlight-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
.product-image { border-radius: 12px; object-fit: cover; width: 100%; height: auto; }

/* Handy-Galerie */
.scroll-gallery {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 16px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-gallery a { flex: 0 0 auto; scroll-snap-align: start; display: inline-block; }
.scroll-gallery img { height: 300px; border-radius: 10px; display: block; object-fit: cover; }

.uk-card h5 { font-family: var(--font-heading); font-weight: 600; }

/* =========================================
   Rezepte-Seite Styles
   ========================================= */
#rezepte-switcher > li { margin-bottom: 60px; }

.uk-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.uk-card h4 {
  font-weight: 600;
  margin-top: 1.2rem;
}

.uk-list-bullet li { margin-bottom: 5px; }

.uk-card img { transition: transform 0.3s ease; }
.uk-card img:hover { transform: scale(1.05); }

.recipe-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.recipe-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.uk-slider { margin-bottom: 40px; }

/* =========================================
   Team-Seite Styles
   ========================================= */
.team-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 30px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); }

.team-avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 9999px;
}
.team-name { font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 0.95rem; color: #666; margin-bottom: 12px; }
.team-description { margin-top: 15px; color: #444; line-height: 1.5; }
.pill {
  border-radius: 999px;
  background: #f3f3f3;
  padding: .2rem .7rem;
  display: inline-block;
  margin-right: 5px;
  font-size: 0.85rem;
}

/* =========================================
   Kontakt-Seite Styles
   ========================================= */
h1, h2, h3 { color: #2f2f2f; }

.contact-wrapper {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.uk-button-primary {
  background-color: #708f7f;
  border: none;
  border-radius: 30px;
  color: white;
  padding: 10px 25px;
}
.uk-button-primary:hover { background-color: #567264; color: white; }

.info-box {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

iframe { border-radius: 12px; }

/* Partner */
.partner-wrap { align-items: center; gap: 12px; }
.logo-partner { max-height: 42px; width: auto; opacity: .9; }
.partner-thumb { height: 330px; width: 100%; object-fit: cover; border-radius: 10px; }
@media (min-width: 960px) { .partner-thumb { height: 450px; } }

/* =========================================
   Adventskalender: Hintergrund nur Mobile
   (WICHTIG: nicht verschachteln!)
   ========================================= */
@media (max-width: 767px) {
  #advent-teaser {
    position: relative;
    overflow: hidden;
  }

  #advent-teaser::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/Adventskalender.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain; /* bei Bedarf: cover */
    opacity: 0.22;           /* Transparenz hier */
    pointer-events: none;
    z-index: 0;
  }

  #advent-teaser > .uk-container {
    position: relative;
    z-index: 1;
  }
}

/* =========================================
   Mobile Feintuning (bis 640px Breite)
   ========================================= */
@media (max-width: 640px) {

  .custom-navbar { padding: 0 10px; }

  .uk-navbar-left.uk-hidden img { height: 55px !important; }

  .hero-section { min-height: 30vh !important; }
  .hero-content h1 { font-size: 1.8rem !important; }
  .hero-content p { font-size: 0.95rem !important; }

  .uk-heading-line span { font-size: 1.4rem; }
  .uk-text-lead { font-size: 0.95rem; }

  .uk-section { padding-top: 40px; padding-bottom: 40px; }
  .uk-section-small { padding-top: 24px; padding-bottom: 24px; }

  #products .uk-card-media-top { height: 130px !important; }

  .uk-accordion-title { font-size: 1rem; }
  .uk-accordion-content { font-size: 0.9rem; }

  .footer h4 { font-size: 1rem; }
  .footer p,
  .uk-text-small { font-size: 0.85rem; }

  .footer-social { justify-content: center; }
}
