/* --- 1. GLOBALE VARIABLEN & RESET --- */
:root {
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #f5f5f7;
    --accent: #ff4757;
    --text-muted: #666;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sketchy-font {
    font-family: 'Permanent Marker', cursive;
    color: var(--accent);
    margin-left: 4px;
}

/* --- 2. HEADER & NAVIGATION (STICKY) --- */
.main-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--black);
    letter-spacing: -1px;
}

.top-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.nav-item > a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-item > a:hover {
    color: var(--accent);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    border: 1px solid #eee;
}

.dropdown-content a {
    color: var(--black);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--gray);
    color: var(--accent);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- 3. GALERIE & KARTEN --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.art-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.art-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.image-wrapper {
    background: var(--gray);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.art-info {
    padding: 15px;
    text-align: center;
}

.art-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.art-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- 3.1 KATEGORIE-BOXEN (NEU) --- */
.category-row {
    margin: 30px 0;
}

.cat-box {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--gray);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.cat-box:hover {
    background-color: var(--white);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* --- 4. DETAILSEITE (LÖWE etc.) --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin: 40px 0;
}

.image-display {
    background: var(--gray);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.image-display img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.btn-stack {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.btn-full {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-black { background: var(--black); color: white; }
.btn-black:hover { background: var(--accent); }
.btn-outline { background: var(--gray); color: var(--black); }

/* --- 5. FOOTER --- */
.main-footer {
    background: #f9f9f9;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-links h4, .footer-legal h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #999;
}

/* --- 5.1 WERBUNG STYLING --- */
.ad-section-footer {
    margin: 40px auto;
    max-width: 728px;
}

.ad-placeholder {
    transition: background 0.3s;
}

.ad-placeholder:hover {
    background: #f0f0f0 !important;
}

/* --- Ende 5.1 --- */

/* --- 6. MOBILE OPTIMIERUNG --- */
@media (max-width: 850px) {
    .detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .container-nav { flex-direction: column; }
    .top-nav { margin-top: 20px; flex-wrap: wrap; justify-content: center; }
    .nav-item { margin: 5px 10px; }
}

/* --- 7. DRUCK-EINSTELLUNGEN (OPTIMIERT) --- */
@media print {
    .no-print, 
    .main-header, 
    .main-footer, 
    .btn-stack, 
    .action-sidebar, 
    nav,
    .image-display div,
    .image-display h1,
    .image-display p {
        display: none !important;
    }

    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: white;
    }

    .container, 
    .detail-layout, 
    .image-display {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    .image-display img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }
}