/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Template: twentytwentyfour
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website.
Tags: one-column,custom-colors,custom-menu,custom-logo,editor-style,featured-images,full-site-editing
Version: 1.0.0
*/

/* --- Allgemeine & Basis-Stile --- */

/* Block-Theme Limit aufheben (volle Breite) */
.alignfull {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
}

/* Slideshow Hintergrund-Bereich */
section.content-plan {
	background: #912B21 url('https://fleischerei-martin.tuomi.eu/wp-content/uploads/2026/07/BG_Mittagstisch_v01.jpg') no-repeat center center / cover;
	color: #fff;
	padding: 1.25rem 0;
	position: relative;
    box-sizing: border-box;
}

/* Swiper Container */
.swiper-container {
    margin: 0 !important;
    padding: 0 0.625rem;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
}

/* Basis-Stile für jeden Tag (Karte) */
section.content-plan .day {
	position: relative;
	text-align: center;
	box-sizing: border-box;
	color: #fff;
	transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    padding: 0.625rem;
    margin: 0 0.625rem 0.625rem 0.625rem !important;
}

/* Titel des Tages (z.B. Mo, 15. Juni) */
section.content-plan .day .title {
	height: 2.8125rem;
	position: relative;
	font-weight: 600 !important;
	font-size: 1.25rem !important;
    text-align: center;
    padding-bottom: 0.625rem;
    color: #fff;
}
section.content-plan .day .title span  {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
}

/* Gericht-Container (.dish) - Allgemeine Stile */
section.content-plan .day .dish {
	position: relative;
	overflow: hidden;
    background: #111111A1;
	border-radius: 0.5rem;
    margin: 0 0.75rem 0.75rem 0.75rem;
}

/* Bild innerhalb des Gerichts - Allgemeine Stile */
section.content-plan .day .dish .image {
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	box-shadow: 0px 0.3125rem 0.625rem rgba(0,0,0,0.5);
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
}

/* H3-Titel (Text unter Bild für nicht-aktive Tage auf Desktop) */
section.content-plan .day h3 {
	position: relative;
	display: block;
	width: 100%;
	padding-right: 5px;
    padding-left: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
	font-weight: 400 !important;
	font-size: 1rem !important;
	line-height: 1.2;
	margin-bottom: 0;
	text-shadow: 0px 0px 0.625rem #000;
    color: #fff;
    margin-top: 0.625rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

/* Preis-Badge - Allgemeine Stile */
section.content-plan .day span.price {
	position: absolute;
	top: 0;
	right: 0;
    z-index: 3;
    color: #fff;
    transition: background 0.3s ease;
    /* Standard-Hintergrund für nicht-aktive Tage */
	background: #3F5A49;
	padding: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	border-radius: 0 0 0 0.375rem;
}

/* Preis-Badge für den AKTIVEN Tag - Gilt GLOBAL für Desktop und Mobile */
section.content-plan .day.active span.price {
    background: #DE925A !important;
    color: #111111 !important;
}

/* Fehlertext */
.content-plan p {
    color: #fff;
    text-align: center;
    padding: 1.25rem;
}

/* Navigationspfeile ausblenden (immer) */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

/* --- Desktop-Stile (min-width: 769px) --- */
@media (min-width: 769px) {
    .swiper-wrapper {
        justify-content: center !important;
    }

    /* Einzelner Tag (Karte) - Desktop-Breite */
    section.content-plan .day {
        width: 13.4375rem;
    }

    /* Aktiver Tag (heute) - Desktop */
    section.content-plan .day.active {
        border-radius: 1.25rem !important;
        width: 16.875rem !important;
        border: 1px solid #fff !important;
    }

    /* Gericht-Container (.dish) - Desktop-Höhe */
    section.content-plan .day .dish {
        height: 12.75rem !important;
        min-height: 12.75rem !important;
    }

    /* Bild innerhalb des Gerichts - Desktop-Höhe */
    section.content-plan .day .dish .image {
        height: 8.5rem !important;
        min-height: 8.5rem !important;
        margin-bottom: 0.625rem;
    }

    /* Aktiver Tag Overlay-Effekt (Desktop) */
    section.content-plan .day.active .dish .image {
        height: 100% !important;
        position: absolute;
        margin-bottom: 0;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1;
    }
    section.content-plan .day.active h3 {
        position: absolute;
        bottom: 0;
        left: 0;
        box-sizing: border-box;
        padding: 2.5rem 0.625rem 0.9375rem 0.625rem;
        font-weight: 600 !important;
        font-size: 1.25rem !important;
        line-height: 1.1;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
        text-shadow: 0 0 0.625rem #000;
        z-index: 2;
        margin: 0;
        color: #fff !important;
    }
    section.content-plan .day.active .title {
        color: #fff !important;
    }

    /* Inaktive Slides (ausgegraut) - Desktop */
    section.content-plan .day.inactive .title,
    section.content-plan .day.inactive h3 {
        color: #999;
    }
    section.content-plan .day.inactive span.price {
        color: #888;
        background: #445c5e;
    }
    section.content-plan .day.inactive .dish .image::after {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1;
    }
}


/* --- Mobile-Stile (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Swiper-Container: Padding für etwas Abstand zum Rand */
    .swiper-container {
        padding: 0 0.9375rem !important;
    }

    /* Jeder Tag-Slide füllt die Breite (Swiper-Slide übernimmt automatisch) */
    section.content-plan .day,
    section.content-plan .day.active {
        width: 100% !important;
        max-width: 25rem !important;
        margin: 0 auto !important;
        padding: 0.625rem 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Datum über der Karte */
    section.content-plan .day .title {
        margin-bottom: 1.125rem !important;
    }

    /* Tageskarte – die Gerichte werden untereinander gezeigt */
    section.content-plan .day .dish {
		max-width: 23.75rem;
        height: 15rem !important;
        min-height: auto !important;
        border-radius: 0.75rem;
		width: 90%;
    }

    /* Bild – füllt die gesamte dish-box aus */
    section.content-plan .day .dish .image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Titel des Gerichts – unten über dem Bild (Mobile Overlay) */
    section.content-plan .day .dish h3 {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1.25rem 0.75rem 0.75rem 0.75rem !important;
        margin: 0 !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        color: #fff !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
        text-shadow: 1px 1px 0.1875rem rgba(0,0,0,0.7);
        z-index: 2;
        pointer-events: none;
    }

    /* Preis-Badge – immer oben rechts auf dem Bild (Mobile) */
    section.content-plan .day .dish span.price {
        padding: 0.375rem 0.625rem !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        border-radius: 0 0 0 0.5rem;
    }

    /* Inaktive / zukünftige Tage – Bild abdunkeln (Mobile) */
    section.content-plan .day.inactive .dish .image::after,
    section.content-plan .day.future .dish .image::after {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.45);
        z-index: 1;
    }
}