/*
Theme Name: Unterkunft Uettingen
Theme URI: https://www.unterkunft-uettingen.de
Author: Meckelein
Description: Theme für Monteur- und Ferienwohnung Uettingen
Version: 1.0
*/

        /* --- CSS Variablen & Grundeinstellungen --- */
        :root {
            --gold: #b08d57;
            --gold-dark: #947547;
            --dark: #333333;
            --light: #f8f9fa;
            --white: #ffffff;
            --text: #444444;
            --nav-height: 80px;
            --whatsapp-color: #25D366; /* WhatsApp Farbe */
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
        body, .editor-styles-wrapper { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text); background-color: var(--white); }
        h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--dark); }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }
        
        /* Hilfsklassen */
        .btn-gold { 
            background: var(--gold); color: white; padding: 12px 25px; 
            border: none; border-radius: 5px; cursor: pointer; 
            font-weight: bold; display: inline-block; transition: 0.3s;
            text-align: center;
        }
        .btn-gold:hover { background: var(--gold-dark); }

        /* --- Navigation --- */
        nav {
            background: var(--white);
            padding: 0 5%;
            height: var(--nav-height);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .logo img { height: 60px; width: auto; vertical-align: middle; cursor: pointer; }
        .nav-links { display: flex; gap: 30px; }
        .nav-links a { font-weight: 500; font-size: 0.95rem; }
        .nav-links a:hover { color: var(--gold); }
        .menu-toggle { display: none; font-size: 1.8rem; color: var(--dark); cursor: pointer; }

        /* --- Sticky CTA Button --- */
        .sticky-cta {
            position: fixed;
            bottom: 25px;
            right: 25px;
            z-index: 1001;
            box-shadow: 0 4px 15px rgba(176, 141, 87, 0.4);
        }

        /* --- Hero Section (Startseite) --- */
		/* --- Hero Block Anpassungen --- */
		/* Wir nutzen jetzt den WP Cover Block, aber stylen die Icons darin */
		.hero-stats { 
			display: flex; 
			gap: 20px; 
			flex-wrap: wrap; 
			justify-content: center; 
			margin-top: 30px; /* Abstand zum Text darüber */
		}

		/* Design der Statistik-Kapseln beibehalten */
		.stat-item { 
			background: rgba(255,255,255,0.15); 
			padding: 12px 20px; 
			border-radius: 50px; 
			backdrop-filter: blur(5px); 
			font-weight: 500; 
			font-size: 0.9rem; 
			border: 1px solid rgba(255,255,255,0.3); 
			color: var(--white);
		}
		.stat-item i { color: var(--gold); margin-right: 8px; }

		/* Überschriften im Hero Block weiß erzwingen */
		.wp-block-cover h1, .wp-block-cover p {
			color: var(--white);
			text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
		}
        .hero h1 { font-size: 3rem; color: var(--white); margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
        .hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; }
        .hero-stats { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
        .stat-item { background: rgba(255,255,255,0.15); padding: 12px 20px; border-radius: 50px; backdrop-filter: blur(5px); font-weight: 500; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.3); }
        .stat-item i { color: var(--gold); margin-right: 8px; }

        /* --- Allgemeine Sektionen Styles --- */
        section { padding: 80px 10%; scroll-margin-top: 20px; }
        .section-bg-light { background: var(--light); }
        .section-title { text-align: center; margin-bottom: 50px; }
        .section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }
        .bar { width: 70px; height: 3px; background: var(--gold); margin: 0 auto; }

        /* --- Grids & Cards --- */
        .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
        .card { background: var(--white); padding: 35px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-bottom: 4px solid var(--gold); height: 100%; }
        .card h3 { margin-bottom: 20px; display: flex; align-items: center; }
        .card h3 i { color: var(--gold); margin-right: 12px; font-size: 1.2rem; }
        .card ul li { margin-bottom: 10px; padding-left: 20px; position: relative; }
        .card ul li::before { content: '•'; color: var(--gold); position: absolute; left: 0; font-weight: bold; }

        /* --- Galerie Platzhalter --- */
        .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
        .gallery-img { height: 220px; border-radius: 10px; overflow: hidden; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
        .gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .gallery-img:hover img { transform: scale(1.05); }
        .gallery-img span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; padding: 8px 15px; font-size: 0.9rem; }

        /* --- Verfügbarkeits-Leiste --- */
        .availability-check { background: var(--white); padding: 30px; border-radius: 15px; display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; align-items: flex-end; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-top: -50px; position: relative; z-index: 10; max-width: 900px; margin-left: auto; margin-right: auto; }
        .availability-check .form-group { flex: 1 1 150px; }
        .availability-check label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--dark); }
        .availability-check input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ddd; font-family: inherit; }

        /* --- Preistabelle --- */
        .price-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
        .price-table th, .price-table td { padding: 18px 25px; text-align: left; border-bottom: 1px solid #eee; }
        .price-table th { background: var(--gold); color: white; font-family: 'Playfair Display', serif; letter-spacing: 0.5px; }
        .price-table tr:last-child td { border-bottom: none; }

        /* --- Essen Sektion --- */
        .food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
        .food-content h3 { color: var(--gold-dark); margin: 25px 0 15px; font-family: 'Montserrat', sans-serif; font-weight: 600; }

        /* --- Footer --- */
        footer { background: var(--dark); color: #aaa; padding: 60px 10% 30px; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
        footer h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
        footer ul li { margin-bottom: 10px; }
        footer a:hover { color: var(--gold); }
        .copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

        /* --- MOBILE ANPASSUNGEN (Responsive Design) --- */
        @media (max-width: 768px) {
            .menu-toggle { display: block; }
            .nav-links {
                position: fixed;
                top: var(--nav-height);
                left: 0;
                width: 100%;
                background: var(--white);
                flex-direction: column;
                align-items: center;
                padding: 30px 0;
                border-top: 1px solid #eee;
                box-shadow: 0 10px 10px rgba(0,0,0,0.05);
                transform: translateY(-150%);
                transition: transform 0.3s ease-in-out;
                z-index: 999;
                gap: 20px;
            }
            .nav-links.active { transform: translateY(0); }
            .nav-links a { font-size: 1.1rem; display: block; padding: 10px; }
            .hero h1 { font-size: 2rem; }
            .hero-stats { gap: 10px; }
            .stat-item { padding: 10px 15px; font-size: 0.8rem; }
            section { padding: 60px 5%; }
            .section-title h2 { font-size: 2rem; }
            .availability-check { padding: 20px; margin-top: 20px; }
            .availability-check .btn-gold { width: 100%; }
            .food-grid { grid-template-columns: 1fr; gap: 30px; }
            .sticky-cta { bottom: 15px; right: 15px; padding: 10px 20px; font-size: 0.9rem; }
        }
/* --- WordPress Cover Block Fixes --- */

/* --- Hero Section & WordPress Cover Block --- */

/* Basis-Einstellungen */
.wp-block-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    isolation: isolate; /* WICHTIG: Erstellt Stapelkontext */
}

body.home .wp-block-cover {
    padding-top: var(--nav-height); 
}

/* EBENE 1 (Bild): Ganz unten */
.wp-block-cover__image-background, 
.wp-block-cover-image-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0 !important;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* EBENE 2 (Overlay): Über dem Bild */
.wp-block-cover__background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5 !important;
    background-color: #000000 !important; /* Schwarz erzwingen */
    opacity: 0.65 !important; /* Abdunklung */
}

/* EBENE 3 (Inhalt): Ganz oben */
.wp-block-cover__inner-container {
    z-index: 10 !important;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    color: #fff !important;
    position: relative;
}

/* Textfarbe im Hero fixieren */
.wp-block-cover h1, .wp-block-cover p, .hero h1, .hero p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8) !important;
    margin-top: 0;
    margin-bottom: 1rem;
}