* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Header */
header {
    background: #7b3f00;
    color: white;
    padding: 20px;
    text-align: center;
}

/* ===============================
   Intro mit Text-Umfluss
================================= */

.intro {
    background: white;
    padding: 30px;
    line-height: 1.7;
}

.intro-float-image {
    float: right;
    width: 40%;
    max-width: 400px;
    margin: 0 0 20px 25px;
    border-radius: 12px;
}

/* Clearfix, damit Section korrekt Höhe bekommt */
.intro::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 768px) {
    .intro-float-image {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

/* ===============================
   3er Bilderreihe
================================= */

.image-row {
    display: flex;
    gap: 15px;
    margin: 20px 0;

    width: 100%;          /* exakt so breit wie die Textbox */
    max-width: 900px;      /* niemals breiter */
	
	/*box-sizing: border-box;*/
}

.image-row img {
    flex: 1;
    max-width: 100%;      /* verhindert Überbreite */
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
	
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-row img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
        max-width: 100%;
    }

    .image-row img {
        height: 220px;
        max-height: none;
    }
}

/* ===============================
   Öffnungszeiten Box
================================= */

.opening-hours {
    background: linear-gradient(135deg, #fff8f2, #ffffff);
    border: 2px solid #7b3f00;
    border-radius: 14px;
    padding: 20px;
    margin: 25px 0;
    max-width: 420px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.opening-hours h3 {
    margin-bottom: 12px;
    color: #7b3f00;
}

.opening-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.opening-hours li:last-child {
    border-bottom: none;
}



/* Events */
.events {
    padding: 30px;
}

.event-card {
    background: white;
    padding: 8px;
    margin-bottom: 8px;
    border-left: 5px solid #7b3f00;
    border-radius: 6px;
    position: relative;   /* wichtig für absolute Position */
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .intro {
        flex-direction: column;
    }
}

.past-event {
    opacity: 0.7;
    background: #f5f5f5;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

.badge-live {
    background: #e6f6ec;
    color: #1e7e34;
}

.badge-yesterday {
    background: #fff4e5;
    color: #a65c00;
}

/* =========================================
   GLAS COOKIE LAYER
========================================= */

.cookie-layer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-layer.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ================= Desktop Version ================= */

.cookie-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    padding: 35px;
    border-radius: 18px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);

    transform: scale(1);
    transition: transform 0.4s ease;
}

.cookie-layer.hidden .cookie-box {
    transform: scale(0.95);
}

.cookie-box p {
    font-size: 18px;
    color: #333;
}

.cookie-box button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    background: #7b3f00;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cookie-box button:hover {
    background: #5e2f00;
    transform: translateY(-2px);
}

/* ===============================
   Hervorhebung nächstes Event
================================= */

.highlight-event {
    border: 2px solid #7b3f00;
    background: linear-gradient(135deg, #fff8f2, #ffffff);
    box-shadow: 0 10px 25px rgba(123, 63, 0, 0.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.highlight-event h3::before {
    content: "⭐ Nächstes Event: ";
    color: #7b3f00;
}

/* ===============================
   Sticky nächstes Event
================================= */

.next-event-sticky {
    position: sticky;
    top: 0;
    z-index: 10;

    background: linear-gradient(135deg, #7b3f00, #a0522d);
    color: white;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.next-event-sticky h3 {
    margin-bottom: 5px;
}

.countdown {
    margin-top: 8px;
    font-weight: bold;
    font-size: 16px;
}

.hidden {
    display: none;
}

/* ===============================
   in eigenen Kalender einfügen
================================= */
.calendar-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;

    background: #7b3f00;
    color: white;
    border: none;
    border-radius: 50%;

    width: 40px;
    height: 40px;

    font-size: 18px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
}

.calendar-btn:hover {
    background: #5e2f00;
    transform: scale(1.1);
}

.next-event-sticky button {
    display: inline-block;
}

/* ================= Mobile Bottom Slide ================= */

@media (max-width: 768px) {

    .cookie-layer {
        align-items: flex-end;
    }

    .cookie-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 25px;

        transform: translateY(0);
        transition: transform 0.4s ease;
    }

    .cookie-layer.hidden .cookie-box {
        transform: translateY(100%);
    }
}


.archive-year {
    margin-top: 20px;
}

.archive-year h3 {
    cursor: pointer;
    background: #eee;
    padding: 10px;
    border-radius: 6px;
    user-select: none;
}

.archive-year-content {
    display: none;
    margin-top: 10px;
}

.archive-year.open .archive-year-content {
    display: block;
}

/* ===============================
   Floating Share Button
================================= */

.fab-share {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;

    width: 60px;
    height: 60px;

    border-radius: 50%;
    border: none;

    background: #7b3f00;
    color: white;

    font-size: 26px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.fab-share:hover {
    background: #5e2f00;
    transform: translateY(-4px);
}

/* Mobile etwas größer für Touch */
@media (max-width: 768px) {
    .fab-share {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}

/* Hinweisbox bleibt wie zuvor */
.share-hint {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: #fff8f2;
    border: 2px solid #7b3f00;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 260px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.hidden {
    display: none;
}

/* ===============================
   Scroll Animation
================================= */

.fab-share {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fab-hidden {
    transform: translateY(120px);
    opacity: 0;
}

/* ===============================
   Pulsieren beim ersten Besuch
================================= */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.fab-pulse {
    animation: pulse 0.8s ease-in-out 3;
}
