/*
Theme Name: 34holidays
Version: 1.4
*/

/* ==========================================================================
   1. Basis & Layout
   ========================================================================= */
* {
    box-sizing: border-box;
}

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    margin: 0; 
    padding-top: 100px; 
    background: #f7f7f7; 
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 30px; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 95%;
}

/* ==========================================================================
   2. Header & Navigation (Fixiert)
   ========================================================================= */
.site-header {
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

/* JETZT BUCHEN Button im Header */
.nav-menu .menu-btn a {
    background-color: #d4af37 !important;
    color: #000 !important;
    padding: 8px 16px !important;
    border-radius: 5px;
    font-weight: bold !important;
}

/* ==========================================================================
   3. Hamburger (Mobile)
   ========================================================================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    margin-right: 20px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    width: 25px;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ==========================================================================
   4. Hero Section & DIE BUTTONS (WICHTIG)
   ========================================================================= */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: #fff; /* Falls sie außerhalb eines Containers steht */
    margin-bottom: 40px;
}

/* Wir nutzen hier sowohl .button-grid als auch .grid-3 als Fallback */
.button-grid, .grid-3 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Das Design der Action-Buttons */
.button-action, a.button {
    background-color: #d4af37 !important; /* Gold */
    color: #000 !important;              /* Schwarzer Text */
    padding: 15px 30px !important;
    text-decoration: none !important;    /* Unterstreichung weg */
    font-weight: bold !important;
    text-transform: uppercase;
    border-radius: 6px;
    display: inline-block;
    min-width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button-action:hover, a.button:hover {
    background-color: #000 !important;
    color: #d4af37 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ==========================================================================
   5. Grids & Bilder (Allgemein)
   ========================================================================= */
.grid-2 {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Bilder-Styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}



/* ==========================================================================
   6. Styling für das Beitragsbild oben auf der Seite
   ========================================================================= */
.page-hero-image {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 0.75rem; /* Entspricht 12px */
}

.page-hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Begrenzt die Höhe am Desktop */
    object-fit: cover; /* Schneidet das Bild perfekt zu */
    display: block;
}

/* Fallback für Slider-Container */
.slider-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto 2rem auto;
}


/* ==========================================================================
   7. Footer (Volle Breite)
   ========================================================================= */
.site-footer {
    background-color: #1a1a1a;
    width: 100%;
    margin-top: 50px;
    padding: 40px 0;
    color: #ffffff;
}

/* ==========================================================================
   8. Responsive (Handy & Kleinstgeräte)
   ========================================================================= */
/* Responsive Anpassung für Mobile */
@media (max-width: 768px) {
    .page-hero-image img {
        max-height: 300px; /* Etwas kleiner auf dem Handy */
    }
}
@media (max-width: 768px) {
    body { padding-top: 80px; }
    
    .menu-toggle { display: block; }

    .main-navigation {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px;
    }

    .main-navigation.is-open { display: block; }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Buttons auf Mobile untereinander */
    .button-grid, .grid-3 {
        flex-direction: column;
        align-items: center;
    }

    .button-action, a.button {
        width: 100%;
        max-width: 300px;
    }
}

/* Extrem schmale Geräte (z.B. 340px) */
@media (max-width: 340px) {
    .button-action, a.button {
        /* 0.8rem entspricht ca. 12.8px, ist aber flexibel */
        font-size: 0.8rem; 
        
        /* em beim Padding bewirkt, dass der Button proportional schrumpft */
        padding: 0.8em 1em !important; 
        
        min-width: 100%;
        letter-spacing: 0.5px; /* Etwas enger für schmale Displays */
    }
}

/* Extrem schmale Geräte (z.B. 340px) */
@media (max-width: 230px) {
    .button-action, a.button {
        /* 0.8rem entspricht ca. 12.8px, ist aber flexibel */
        font-size: 0.7rem; 
        
        /* em beim Padding bewirkt, dass der Button proportional schrumpft */
        padding: 0.6em 1em !important; 
        
        min-width: 100%;
        letter-spacing: 0.5px; /* Etwas enger für schmale Displays */
    }
}

