/* Moderne CSS Reset & Custom Properties */
:root {
    --bg-color: #111111;
    --text-color: #f4f4f5;
    --accent-color: #d90429;
    --card-bg: #1c1c1c;
    --font-main: system-ui, -apple-system, sans-serif;
    /* Responsive Spacing: Schrumpft auf Handys auf 1.5rem, wächst auf Desktops auf 3rem */
    --spacing: clamp(1.5rem, 5vw, 3rem); 
    --texture-bg: url('texture-onkelz-subtle.webp') repeat;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-color) var(--texture-bg);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    /* Verhindert horizontales Scrollen bei überbreiten Elementen */
    overflow-x: hidden; 
    width: 100%;
}

/* Layout Utilities */
.container {
    width: min(100% - 2rem, 1200px); /* 100% Breite minus 1rem Rand auf jeder Seite */
    margin-inline: auto;
    padding-block: var(--spacing);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(17,17,17,0.5), rgba(17,17,17,0.9)), url('hero-bg-frankfurt-onkelz.webp') center/cover;
    padding: 2rem 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.hero-logo-img {
    max-width: 100%; /* Verhindert, dass das Logo aus dem Screen bricht */
    width: clamp(250px, 80vw, 1900px); /* Skaliert fließend zwischen 250px und 500px */
    height: auto;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(217, 4, 41, 0.4));
}

.hero .subtitle {
    font-style: italic;
    opacity: 0.8;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    padding: 0 1rem;
}

/* Typografie */
h2 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* --- DIREKTIVEN-BEREICH --- */
.directive-section {
    padding-block: var(--spacing);
    border-bottom: 2px solid #333;
}

.directive-header {
    text-align: center;
    margin-bottom: var(--spacing);
}

.directive-header h2 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    filter: drop-shadow(0 0 10px rgba(217, 4, 41, 0.4));
}

.bento-bureaucracy {
    display: grid;
    /* Das Geheimnis für Mobile: min(100%, 300px) verhindert Container-Breakouts */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    align-items: start;
}

.bureau-card {
    background: var(--card-bg) var(--texture-bg);
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.bureau-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.bureau-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    display: inline-block;
}

.band-order blockquote {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.stamped-foa {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: bold;
    color: #fff;
    background: var(--accent-color);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 5;
    filter: blur(0.5px) contrast(150%);
    opacity: 0.9;
}

.summary-list {
    padding-left: 1.2rem;
}

.summary-list li {
    list-style: square;
    margin-bottom: 0.5rem;
}

.summary-list li::marker {
    color: var(--accent-color);
}

.btn-pdf-download {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    margin-block: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
    width: 100%; /* Button nimmt auf Mobile die volle Breite ein */
    max-width: 300px;
}

.btn-pdf-download:hover {
    background: #a90320;
    transform: translateY(-2px);
}

.whatsapp-context-thumbnail {
    margin-top: 1.5rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
}

.whatsapp-context-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
    transition: border-color 0.3s ease;
}

/* --- MEDIEN-GALERIE --- */
.gallery-desc {
    margin-bottom: 2rem;
    color: #888;
}

.bento-grid {
    display: grid;
    /* Gleicher Trick für die Galerie: 100% Breite auf Mobile, ab 250px dann mehrspaltig */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
}

.media-card {
    background: var(--card-bg) var(--texture-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    position: relative;
    will-change: transform; 
}

/* Hover-Effekte auf Touch-Geräten (Hover) sicherstellen */
@media (hover: hover) {
    .media-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 2;
    }
    .media-card:hover img,
    .media-card:hover video {
        filter: grayscale(0%) contrast(100%) brightness(100%);
    }
}

.media-card img,
.media-card video {
    width: 100%;
    height: clamp(200px, 40vw, 300px); /* Höhe passt sich an die Bildschirmgröße an */
    object-fit: cover;
    display: block;
    filter: grayscale(20%) contrast(110%) brightness(90%);
    transition: filter 0.3s ease;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #000;
    margin-top: var(--spacing);
    border-top: 1px solid #333;
}

/* Micro-Interactions: Scroll Reveal */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .card:hover, .bureau-card:hover, .media-card:hover {
        transform: none;
    }
}
/* --- PAGINATION (LOAD MORE) --- */
.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: #b80322;
    transform: translateY(-3px);
}

/* Interaktiver Cursor für die Galerie-Karten */
.media-card {
    cursor: pointer;
}

/* --- NATIVE LIGHTBOX (<dialog>) --- */
.lightbox {
    margin: auto; /* Zentriert den Dialog nativ */
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    overflow: visible;
}

/* Das abgedunkelte Overlay hinter dem Dialog */
.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px); /* Moderner Glassmorphism-Effekt */
}

.lightbox-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-inner img,
.lightbox-inner video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

.btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--accent-color);
}
/* --- LIGHTBOX NAVIGATION --- */
.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    /* Verhindert, dass der Text markiert wird beim schnellen Klicken */
    user-select: none; 
}

.btn-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.btn-prev { left: 15px; }
.btn-next { right: 15px; }

/* Responsive Anpassung für Mobile */
@media (max-width: 768px) {
    .btn-nav {
        font-size: 1.5rem;
        padding: 0.6rem 0.8rem;
    }
    .btn-prev { left: 5px; }
    .btn-next { right: 5px; }
    
    .btn-close {
        top: -35px;
        right: 5px;
    }
}