/* --- RESET & VARIABLES --- */
:root {
    --cream: #F4EDD5;
    --cream-dark: #e6dec3;
    --red: #BC1818;
    --red-dark: #960f0f;
    --green: #115136;
    --dark: #1F1D2A;
    --white: #ffffff;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-hand: 'Caveat', cursive;
    
    --border-thick: 3px solid var(--dark);
    --shadow-hard: 5px 5px 0px var(--dark);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--cream);
    color: var(--dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-heading); text-transform: uppercase; font-weight: 700; line-height: 1.1; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; position: relative; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.highlight-red { color: var(--red); }
.text-cream { color: var(--cream); }
.bg-dark { background-color: var(--dark); color: var(--cream); }
.bg-cream { background-color: var(--cream); }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: var(--border-thick);
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-hard);
    transition: all 0.2s;
    cursor: pointer;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0px var(--dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--dark); }

.btn-primary { background: var(--red); color: var(--white); border-color: var(--dark); }
.btn-outline { background: transparent; border-color: var(--dark); }
.btn-block { width: 100%; text-align: center; }

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: rgba(244, 237, 213, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid rgba(31, 29, 42, 0.1);
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.logo-wrapper {
    width: 60px; height: 60px;
    display: block;
    transition: transform 0.3s;
}
.logo-wrapper:hover { transform: rotate(5deg) scale(1.05); }
.logo-img { width: 100%; height: auto; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--font-heading); font-size: 1.1rem; position: relative; }
.nav-links a:not(.nav-btn)::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px;
    background: var(--red); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-btn {
    background: var(--red); color: white;
    padding: 8px 15px; border-radius: 4px;
    transform: rotate(2deg);
}

/* --- HERO --- */
.hero {
    min-height: 90vh;
    display: flex; align-items: center; position: relative;
    padding-top: 80px; overflow: hidden;
}

.hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/img1.jpg') no-repeat center center/cover;
    opacity: 0.15; z-index: -1; filter: sepia(0.3);
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding-bottom: 50px;}

.badge-stamp {
    display: inline-block;
    font-family: var(--font-hand);
    color: var(--white);
    background: var(--red);
    padding: 5px 15px;
    font-size: 1.5rem;
    transform: rotate(-2deg);
    margin-bottom: 10px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    border: 2px solid var(--dark);
}

.hero-title {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    color: var(--dark);
    margin-bottom: 20px;
}
.text-stroke {
    color: transparent; -webkit-text-stroke: 2px var(--red); position: relative; display: inline-block;
}
.text-stroke::before {
    content: 'PARTY'; position: absolute; top: 5px; left: 5px;
    color: var(--red); opacity: 0.3; -webkit-text-stroke: 0; z-index: -1;
}

.hero-sub {
    font-size: 1.5rem; font-weight: 700; max-width: 500px; margin-bottom: 40px;
    background: var(--cream); display: inline-block; padding: 10px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
}

.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }

/* --- ABOUT --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.image-stack { position: relative; width: 100%; max-width: 450px; }
.main-img {
    border: var(--border-thick); border-radius: var(--radius);
    position: relative; z-index: 2; transform: rotate(2deg);
}
.polaroid {
    position: absolute; top: -20px; left: -20px;
    width: 100%; height: 100%; background: var(--white);
    border: 1px solid #ccc; z-index: 1; transform: rotate(-4deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.sticker-handwritten {
    position: absolute; bottom: -20px; right: -30px;
    background: var(--green); color: white;
    font-family: var(--font-hand); font-size: 2rem;
    padding: 10px 20px; border-radius: 50% 50% 0 50%;
    z-index: 3; transform: rotate(-10deg);
    white-space: nowrap; /* Prevent wrapping */
}

.section-title { font-size: 3rem; margin-bottom: 20px; }
.lead { font-size: 1.25rem; font-weight: bold; margin-bottom: 20px; }

.stats-row { display: flex; gap: 40px; margin-top: 40px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-heading); font-size: 3rem; color: var(--red); line-height: 1; }
.stat-desc { font-family: var(--font-hand); font-size: 1.2rem; }

/* --- MENU --- */
.divider-top-jagged {
    height: 40px; background: var(--cream);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
    margin-bottom: 40px;
}
.text-outline { -webkit-text-stroke: 1px var(--cream); color: transparent; }

.menu-single-focus {
    max-width: 600px;
    margin: 0 auto 60px;
}

.menu-card {
    background: var(--cream); color: var(--dark);
    padding: 40px; border: 2px dashed var(--dark);
    position: relative; transition: transform 0.3s;
}
.menu-card:hover { transform: translateY(-5px); }

.card-icon-svg { width: 60px; height: 60px; margin-bottom: 15px; }
.card-icon-svg svg { width: 100%; height: 100%; }

.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.check-list li::before {
    content: '✔'; position: absolute; left: 0; color: var(--red); font-weight: bold;
}

.info-banner {
    background: var(--white);
    color: var(--dark);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 700px;      /* Slightly wider looks better when centered */
    margin: 40px auto 0;  /* 40px top margin, auto left/right to center */
    border-left: 10px solid var(--green);
    box-shadow: var(--shadow-hard); /* Optional: adds consistency with your buttons */
}

/* --- GALLERY (Pinterest Style) --- */
.gallery-masonry {
    /* Wir nutzen Columns statt Grid */
    column-count: 3; 
    column-gap: 15px;
}

.gal-item {
    /* Verhindert, dass Bilder zwischen Spalten zerrissen werden */
    break-inside: avoid; 
    margin-bottom: 15px; /* Abstand nach unten */
}

.gal-item img {
    width: 100%;
    height: auto; /* Wichtig: Automatische Höhe für Aspect Ratio */
    display: block;
    border-radius: 4px;
    border: 2px solid var(--dark);
    transition: filter 0.3s;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1); /* Optional: Passt gut zum Style */
}

.gal-item:hover img { 
    filter: contrast(1.1) saturate(1.2); 
}

/* Responsive: 2 Spalten auf Tablets, 1 auf Handy */
@media (max-width: 900px) {
    .gallery-masonry {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .gallery-masonry {
        column-count: 1;
    }
}

/* --- DATES --- */
.date-box {
    background: var(--white); border: var(--border-thick);
    padding: 30px; box-shadow: 10px 10px 0 #ddd;
    text-align: center; max-width: 600px; margin: 0 auto;
    transform: rotate(1deg);
}
.date-list { list-style: none; margin-top: 20px; text-align: left; }
.date-list li { padding: 10px 0; border-bottom: 1px dotted #ccc; font-size: 1.1rem; }
.date-badge {
    background: var(--dark); color: white; padding: 2px 8px;
    font-family: var(--font-heading); margin-right: 10px;
}

/* --- CONTACT FORM --- */
.contact-paper {
    background: var(--white); padding: 50px;
    border: 1px solid #ccc; box-shadow: 0 0 30px rgba(0,0,0,0.1);
    display: grid; grid-template-columns: 2fr 1fr; gap: 50px;
    background-image: linear-gradient(#eee 1px, transparent 1px);
    background-size: 100% 30px;
}

.paper-header { grid-column: span 2; margin-bottom: 20px; background: var(--white); display: inline-block; padding: 10px; }

.brutalist-form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group.full { grid-column: span 2; }

label { font-weight: bold; background: var(--white); display: inline-block; margin-bottom: 5px; }
input, textarea {
    width: 100%; padding: 15px; border: 2px solid var(--dark);
    background: rgba(255,255,255,0.9); font-family: var(--font-body); font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 4px 4px 0 rgba(188, 24, 24, 0.2); }

.checkbox-container { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-container input { display: none; }
.checkmark {
    width: 20px; height: 20px; border: 2px solid var(--dark); display: inline-block; position: relative; background: white;
    flex-shrink: 0; /* Don't shrink on mobile */
}
.checkbox-container input:checked ~ .checkmark::after {
    content: '✔'; position: absolute; left: 1px; top: -5px; color: var(--red); font-weight: bold;
}
.text-small { font-size: 0.9rem; }

.contact-direct {
    background: var(--cream); padding: 30px; border: 2px solid var(--dark);
    height: fit-content; transform: rotate(2deg);
    overflow: hidden; /* prevents spill */
}
.phone-link, .mail-link { display: block; margin-top: 10px; font-weight: bold; font-size: 1.1rem; word-break: break-all; }

/* --- FOOTER --- */
.footer { background: var(--dark); color: #888; padding: 40px 0; margin-top: 80px; }
.footer-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.legal-links a { margin-left: 20px; color: #ccc; }
.legal-links a:hover { color: var(--white); text-decoration: underline; }

/* --- LEGAL PAGE SPECIFIC --- */
.legal-content { max-width: 800px; padding-top: 120px; padding-bottom: 80px; }
.legal-content h1 { margin-bottom: 40px; border-bottom: 3px solid var(--red); display: inline-block; }
.legal-content h3 { margin-top: 30px; color: var(--red); }
.legal-content p, .legal-content ul { margin-bottom: 15px; font-size: 1.1rem; }
.legal-content ul { padding-left: 20px; list-style: square; }
.dynamic-text-block {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- MOBILE & RESPONSIVE FIXES --- */
@media (max-width: 900px) {
    /* Layout stacking */
    .grid-2, .contact-paper, .form-grid { grid-template-columns: 1fr; }
    .input-group.full { grid-column: span 1; }
    .paper-header { grid-column: span 1; }
    
    /* Gallery grid */
    .gal-item.big { grid-column: span 1; }
    
    /* Hero Adjustments */
    .hero { padding-top: 100px; }
    .hero-title { 
        font-size: 4.5rem;   /* Increased from 3.5rem */
        line-height: 0.9;   /* Tighter line-height keeps the big text cohesive */
        margin-bottom: 15px; /* Reduce gap between title and sub slightly */
    }
    .hero-sub {
        font-size: 1rem;   /* Decreased from global 1.5rem */
        line-height: 1.4;    /* Better readability for smaller text */
        max-width: 100%;     /* Ensure it uses available width if needed */
        padding: 8px 15px;   /* Slightly reduce padding on mobile */
    }
    .hero-content { padding-left: 20px; padding-right: 20px; }
    
    /* Menu Visibility Fix */
    .navbar .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--cream); /* Solid BG */
        flex-direction: column; padding: 20px;
        border-bottom: var(--border-thick);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; 
    }
    .navbar .nav-links.active { display: flex; }
    
    /* Burger Menu */
    .burger { display: block; width: 30px; cursor: pointer; }
    .burger span { display: block; height: 3px; background: var(--dark); margin: 6px 0; }
    
    /* Form Fixes */
    .contact-paper { padding: 25px; gap: 30px; }
    .contact-direct {
        transform: rotate(0deg);
        margin-top: 20px;
        width: 100%;
    }
    
    /* Text Shadow Effect Fix for Mobile */
    .text-stroke::before { top: 3px; left: 4px; }

    /* Sticker Fit Fix */
    .image-stack { margin-bottom: 30px; }
    .sticker-handwritten {
        right: -5px; /* Pull it in */
        bottom: -15px;
        font-size: 1.5rem;
        transform: rotate(-5deg);
    }
    
    /* Footer Stack */
    .footer-flex { flex-direction: column; text-align: center; }
    .legal-links a { margin: 0 10px; display: inline-block; margin-top: 10px;}
}

@media (min-width: 901px) { .burger { display: none; } }