/* /css/details.css */
/* Optional: Sanftes Gleiten zum Formular */
html {
    scroll-behavior: smooth;
}

.detail-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000000;
    overflow-x: hidden;
}

/* Header-Bereich für die Detailseiten */
.hero-section-small {
    text-align: center;
    padding: 100px 20px 140px 20px; /* Deutlich mehr Platz nach unten */
    background-color: #000000;
    border-bottom: 2px solid #c5835d;
    position: relative;
}

.hero-section-small h1 {
    font-family: 'Georgia', serif;
    color: #f9f5f0;
    font-size: 2.5rem;
    margin: 0;
}

.subtitle-gold {
    color: #c5835d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Das Grid-Layout - Optimiert für Stabilität */
.detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto; /* Zentriert ohne Hochrutschen */
    padding: 60px 20px 100px 20px; /* Abstand nach oben und unten */
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

/* Die Info-Karten links */
.content-card {
    background: #f9f5f0;
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 4px;
    color: #2c2c2c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 6px solid #c5835d;
    /* Verhindert, dass die Karte oben "ausbricht" */
    overflow: hidden; 
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px); /* Hebt die Karte leicht an wie in style.css */
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); /* Verstärkt den Schatten */
}

.content-card h2 {
    font-family: 'Georgia', serif;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-card h3 {
    color: #c5835d;
    margin-top: 25px;
}

.quick-facts {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 15px;
    background: rgba(197, 131, 93, 0.1);
    border-radius: 4px;
    margin-bottom: 25px;
}

/* Die Küchen-Liste zweispaltig */
.kitchen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.kitchen-grid ul {
    padding-left: 20px;
}

.kitchen-grid li {
    margin-bottom: 5px;
}

/* Preistabelle */
.apt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.apt-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.apt-table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #c5835d;
}

/* Die Buchungsspalte rechts - Sticky Effekt */
.booking-card {
    background: #1a1a1a;
    color: #f9f5f0;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #c5835d;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 10;
}

.booking-card h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Formular Styling */
.contact-form label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #c5835d;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #262626;
    border: 1px solid #444;
    color: #fff;
    border-radius: 2px;
    box-sizing: border-box;
}

.date-row {
    display: flex;
    gap: 10px;
}

.date-row div {
    flex: 1;
}

.small-note {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

/* Footer-Sicherung */
footer {
    position: relative;
    z-index: 20; 
    clear: both;
}


.price-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.price-list {
    line-height: 1.8;
    padding-left: 20px;
}


.btn-sm {
    transition: all 0.3s ease !important;
}

.btn-sm:hover {
    background-color: #000000 !important; /* Hintergrund wird schwarz */
    color: #c5835d !important;            /* Schrift wird gold/kupfer */
    border: 2px solid #c5835d;           /* Rahmen bleibt/wird kupfer */
    transform: scale(1.05);               /* Button wird minimal größer */
}

.btn-mobile-jump {
    display: none;
}


.content-card a {
    color: #c5835d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: #000000;
}

/* --- MOBILE OPTIMIERUNG FÜR EG.PHP & OG.PHP --- */

@media (max-width: 1000px) {
    /* Das Haupt-Grid auf eine Spalte umstellen */
    .detail-grid {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 20px;
    }

    /* Das große Hauptbild oben anpassen */
    .detail-page > div[style*="height: 400px"] {
        height: 250px !important; /* Weniger Höhe auf Mobile */
        margin: 0 10px 20px !important;
        width: auto !important;
    }

    /* Hero-Text verkleinern */
    .hero-section-small {
        padding: 60px 20px 80px 20px !important;
    }

    .hero-section-small h1 {
        font-size: 1.8rem !important;
    }

    /* Info-Karten: Padding reduzieren damit Text nicht gequetscht wird */
    .content-card {
        padding: 20px !important;
        border-left: 4px solid #c5835d !important;
    }

    /* Quick Facts untereinander stapeln */
    .quick-facts {
        flex-direction: column !important;
        gap: 10px;
        text-align: center;
    }

    /* Die Küchen-Liste: Von 2 Spalten auf 1 Spalte */
    .kitchen-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    /* Preistabelle: Schriftgröße leicht anpassen, damit Preise nicht umbrechen */
    .apt-table td {
        padding: 8px 4px !important;
        font-size: 0.9rem;
    }

    /* Buchungskarte: Sticky-Effekt aufheben */
    .booking-card {
        position: static !important;
        margin-top: 30px;
        box-shadow: none !important;
    }
	
}

@media (max-width: 850px) 
{
    .price-details-grid {
        grid-template-columns: 1fr !important; /* Untereinander auf Mobile */
        gap: 20px;
    }

    /* Tabelle lesbar machen */
    .apt-table thead th {
        padding: 10px !important;
        font-size: 0.9rem;
    }

    .apt-table td {
        padding: 10px 5px !important;
        font-size: 0.85rem;
    }

    /* CTA Button volle Breite auf kleinen Handys */
    .btn-sm {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
    }
}


/* 2. Nur auf Mobilgeräten (unter 768px) anzeigen */
@media screen and (max-width: 768px) {
    .btn-mobile-jump {
        display: block; /* Sichtbar machen */
        width: 100%;    /* Volle Breite auf dem Handy */
        margin-top: 20px;
        padding: 15px;
        background-color: #c5835d; /* Dein Orange/Kupfer */
        color: #ffffff !important; /* Text explizit weiß, niemals blau */
        text-align: center;
        text-decoration: none;
        font-weight: bold;
        border-radius: 4px;
        box-sizing: border-box;
        transition: background-color 0.3s ease;
    }

    .btn-mobile-jump:hover, .btn-mobile-jump:active {
        background-color: #a66a4a; /* Etwas dunkleres Orange bei Berührung */
        color: #ffffff !important;
    }
}



    /* Datumsfelder im Formular: Falls nebeneinander zu eng, untereinander */
    @media (max-width: 480px) {
        .date-row {
            flex-direction: column !important;
        }
    }