/* ================================= Google Fonts ================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&display=swap');

/* ================================= Farbpalette ================================= */
:root {
    --primary-color: #1EA546;
    --secondary-color: #F0B700;
    --tertiary-color: #4F6D54;
    --text-color: #3C3C3C;
    --bg-color: #F8F8F8;
    --header-bg-start: #fbfbfb;
    --header-bg-end: #f4f4f4;
    --footer-bg: #2c2b28;
    --footer-text: #fdf6e3;
}

/* ================================= Grundlegendes ================================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
	h1, h3 {
    font-family: 'Dancing Script', cursive;
	
}
}
a {
    text-decoration: none;
    color: inherit;
}

/* ================================= Header ================================= */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background: linear-gradient(to bottom, var(--header-bg-start), var(--header-bg-end));
    position: sticky;
    top: 0;
    z-index: 10;
    height: 170px;
    box-sizing: border-box;
    box-shadow: 0 4px 0 var(--secondary-color), 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
header.shrink {
    height: 100px;
    padding: 10px 30px;
}
.nav-menu-left, .nav-menu-right {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity 0.3s ease;
}
header.shrink .nav-menu-left, header.shrink .nav-menu-right {
    opacity: 0;
    pointer-events: none;
}
.logo-container {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 40px;
}
.logo {
    height: 130px;
    transition: height 0.3s ease;
}
header.shrink .logo {
    height: 80px;
}
.nav-menu-left a, .nav-menu-right a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
	font-family: 'Dancing Script', cursive; /* geschwungene Schrift bleibt */
    font-size: 1.7rem; /* hier die neue Größe */
    font-weight: 500; /* optional etwas leichter für geschwungene Schrift */
}
.nav-menu-left a:hover, .nav-menu-right a:hover,
.nav-menu-left a.active, .nav-menu-right a.active {
    border-bottom: 3px solid var(--secondary-color);
}

/* Hamburger Menü */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: var(--primary-color);
}

/* Mobiles Menü */
.nav-mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
}
.nav-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-mobile-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
}
.nav-mobile-menu.active {
    display: flex;
}

/* ================================= Main Content ================================= */
main.main-content, main.metzgerei-main-content, main.menu-tab {
    padding: 190px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
	
}
.main-content h1, .metzgerei-main-content h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.main-content p, .metzgerei-main-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Metzgerei Bilder */
.metzgerei-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
    margin-top: 40px;
}
.metzgerei-images img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ================================= Kontaktformular ================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.contact-form button:hover, .contact-form button:focus {
    opacity: 0.9;
    background-color: color-mix(in srgb, var(--primary-color) 90%, black);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ================================= Slideshow ================================= */
main.slideshow {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    height: calc(100vh - 170px);
}
.slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.slides .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 110%;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slides .slide.active {
    opacity: 1;
}
.slides .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.7); /* leicht transparent */
    padding: 25px 40px;
    font-family: 'Poppins', Arial, sans-serif; /* gleiche wie Unterseiten */
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    border-radius: 8px;
    text-align: center;
    line-height: 1.5;
    max-width: 85%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	h3 {
		font-size: 2.5rem;
	}
}

/* ================================= Tabs / PDF ================================= */
main.menu-tab {
    padding: 190px 20px 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-color);
}
main.menu-tab h1 {
    color: var(--primary-color);
    margin-bottom: 40px;
}
.menu-tab .tab-buttons .tab-button {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 25px;
    margin: 0 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}
.menu-tab .tab-buttons .tab-button.active,
.menu-tab .tab-buttons .tab-button:hover {
    border-bottom: 3px solid var(--secondary-color);
    color: var(--text-color);
}
.menu-tab iframe {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 1000px;
    border: 1px solid #ccc;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.menu-tab section {
    display: none;
    width: 100%;
    text-align: center;
}
.menu-tab section.active {
    display: block;
}
/* Optimierung für Bilder in den Speisekarte-Tabs */
.menu-image-responsive {
    width: 100%;          /* Nutzt die volle Breite des Containers */
    max-width: 1000px;    /* Verhindert, dass das Bild auf riesigen Monitoren unscharf wird */
    height: auto;         /* Behält das Seitenverhältnis bei (wichtig!) */
    display: block;
    margin: 0 auto 50px auto; /* Zentriert das Bild und hält Abstand nach unten */
    border-radius: 8px;   /* Passend zu deinem restlichen Design */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Gleicher Schatten wie beim iframe */
}

/* Spezielle Anpassung für Mobilgeräte */
@media (max-width: 768px) {
    .menu-image-responsive {
        width: 100%;      /* Bild nutzt auf dem Handy die volle Displaybreite */
        margin-bottom: 30px;
        border-radius: 4px; /* Etwas weniger Rundung auf kleinen Schirmen */
    }
}

/* ================================= Feierlichkeiten Layout ================================= */
.highlight-quote {
    background-color: #f7f7f7;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    text-align: center;
    border-radius: 5px;
}
.highlight-quote p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 15px;
}
a.button-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 600;
}
.button-wrapper {
    text-align: center;
    margin-top: 20px;
}
a.button-link:hover {
    background-color: var(--tertiary-color);
}
.highlight-quote a.button-link:hover {
    background-color: var(--tertiary-color);
}

/* ================================= Galerie ================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* ================================= Kalender ================================= */
.calendar-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.calendar-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}
.calendar-header button {
    background: none;
    border: none;
    color: var(--tertiary-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 15px;
    transition: color 0.2s;
    line-height: 1;
}
.calendar-header button:hover {
    color: var(--primary-color);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    padding: 10px;
}
.day-name {
    text-align: center;
    font-weight: 600;
    color: var(--tertiary-color);
    padding: 10px 5px;
    border-bottom: 2px solid var(--secondary-color);
}
.day {
    padding: 10px 5px;
    border: 1px solid #f0f0f0;
    min-height: 100px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    background-color: #fff;
    transition: background-color 0.2s;
    min-width: 0;
}
.day:hover {
    background-color: #fcfcfc;
}
.day.today {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 5px rgba(240, 183, 0, 0.5);
}
.day.inactive {
    color: #ccc;
    background-color: #f7f7f7;
    pointer-events: none;
}
.event {
    font-size: 0.8rem;
    font-weight: 400;
    padding: 3px 5px;
    border-radius: 4px;
    margin-top: 5px;
    line-height: 1.3;
    color: white;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    word-break: break-all;
}
.event.highlight {
    background-color: var(--primary-color);
}
.event.special-menu {
    background-color: var(--secondary-color);
    color: var(--text-color);
}
.event.closed {
    background-color: #e74c3c;
}
.day.has-events {
    cursor: pointer;
}
.day.has-events:hover {
    background-color: #eff5ff;
}
/* Kalender Heute-Button */
#today-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#today-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ================================= Pop-up / Modal für Events ================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content.event-modal, .modal {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content.event-modal, .modal-overlay.show .modal {
    transform: scale(1);
}
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    z-index: 10;
}
.close-button:hover {
    color: var(--primary-color);
}
.modal-header {
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
}
.modal-icon {
    font-size: 2rem;
    display: block;
    line-height: 1;
    color: var(--secondary-color);
    margin-bottom: 5px;
}
.modal-content.event-modal h3, .modal h3 {
    color: var(--primary-color);
    margin: 5px 0 0;
    font-size: 1.6rem;
}
.event-date {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tertiary-color);
    margin-bottom: 10px;
    display: block;
}
.event-details {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    background-color: #fcfcfc;
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #eee;
}
.event-details li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-color);
}
.modal-button {
    display: block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.modal-button:hover {
    background-color: #ffc83b;
}


.event-image-container {
    max-width: 100%;
    margin: 15px auto 0; 
    text-align: center; 
}

.event-image-container img {
    max-width: 100%; 
    height: auto;
    display: block; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

/* Styling für die Feature-Event Navigation (Pfeile im Pop-up) */
.modal-content.event-modal {
    position: relative; /* Wichtig für die Positionierung der Pfeile */
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-button:hover {
    background: rgba(0, 0, 0, 0.6);
}
.prev-button {
    left: 10px;
}
.next-button {
    right: 10px;
}

/* Styling für das Bild im Featured-Event Pop-up */
.modal-body a {
    display: block; /* Link muss Block sein, um das Bild zu umschließen */
    margin-bottom: 15px;
    text-decoration: none; /* Link-Unterstreichung entfernen */
    cursor: pointer;
}
.featured-event-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.featured-event-image:hover {
    opacity: 0.9;
}

/* =========================================================
   Cookie-Banner nur als kleine Leiste unten (Desktop + Mobil)
   ========================================================= */

/* Overlay-Grundlage */
.cookie-modal-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: transparent !important; /* kein grauer Hintergrund */
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 9999;
  padding: 0;
}

/* Sichtbar, wenn JS-Klasse "show" gesetzt wird */
.cookie-modal-overlay.show {
  display: flex;
}

/* Der eigentliche Cookie-Banner */
.cookie-modal {
  background-color: #fff;
  border-top: 3px solid var(--secondary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
  margin: 0 auto 10px;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Buttons */
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.cookie-buttons button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cookie-buttons button:hover {
  background-color: var(--tertiary-color);
}

/* =============== MOBIL =============== */
@media (max-width: 768px) {
  /* Kein Vollbild! */
  .cookie-modal-overlay {
    align-items: flex-end !important;
    background: transparent !important;
    height: auto !important;
  }

  .cookie-modal {
    width: 95%;
    margin-bottom: 8px;
    padding: 18px 16px;
    font-size: 0.95rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
  }
}

/* ================================= Footer ================================= */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 20px 30px;
	
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 20px;
}
.footer-section {
    flex: 1 1 220px;
    margin: 8px;
}
.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section a:hover {
    color: var(--secondary-color);
}
.footer-section p {
    color: #a9a9a9;
}
.footer-map {
    width: 100%;
    height: 300px;
    border: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    border-top: 1px solid var(--footer-text);
    padding-top: 10px;
}
footer img.social-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}
footer img.social-icon:hover {
    transform: scale(1.15);
}

/* ================================= Responsive ================================= */
@media (max-width: 768px) {
    header { height: 150px; }
    .logo { height: 100px; }
    header.shrink { height: 90px; }
    main.slideshow { height: calc(100vh - 150px); }
    .nav-menu-left, .nav-menu-right { display: none; }
    .hamburger { display: block; }
    .nav-mobile-menu { display: none; }
    .nav-mobile-menu.active { display: flex; }
    .menu-tab iframe { height: 60vh; }
    .metzgerei-images { grid-template-columns: 1fr; }
    .calendar-grid { font-size: 0.8rem; }
    .day { min-height: 70px; font-size: 1rem; padding: 5px; }
    .event { font-size: 0.7rem; padding: 2px; }
    .calendar-header h2 { font-size: 1.5rem; }
    .calendar-header button { font-size: 1.5rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
  .welcome-text {
        display: none;
    }
}
@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
}

/* ================================= Tabs Mobile 2x2 ================================= */
@media (max-width: 768px) {
    main.menu-tab .tab-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        max-width: 400px;
        margin: 0 auto 40px auto;
    }
    main.menu-tab .tab-buttons .tab-button {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 60px;
        font-weight: 600;
        font-size: 1rem;
        background-color: #fff;
        color: var(--text-color);
        border: 2px solid #eee;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }
    main.menu-tab .tab-buttons .tab-button.active,
    main.menu-tab .tab-buttons .tab-button:hover {
        background-color: var(--secondary-color);
        color: var(--text-color);
        border-color: var(--secondary-color);
        box-shadow: 0 4px 8px rgba(240,183,0,0.3);
    }
    main.menu-tab .tab-buttons .tab-button.active::after {
        content: none !important;
    }
}
@media (max-width: 480px) {
    main.menu-tab .tab-buttons {
        grid-template-columns: 1fr !important;
    }
    main.menu-tab .tab-buttons .tab-button {
        height: 50px;
        font-size: 0.95rem;
    }
}
