/**
 * Dateiname: main.css
 * Beschreibung: Haupt-Stylesheet für Edge of Art
 * 
 * @version 2.1.0
 * @author Wilhelm Goertz
 * @date 2025-01-19
 * 
 * Änderungshistorie:
 * v2.1.0 - 2025-01-19 - DSGVO-Compliance: Footer-Link-Styles für Impressum/Datenschutz
 * v2.0.0 - 2025-01-19 - MAJOR: Providerwechsel, einheitliche Versionierung
 * v1.10.0 - 2025-01-09 - Feature-Updates
 * v1.9.3.2 - 2025-01-07 - Schatten und Rundung auf Bild
 * v1.9.3.1 - 2025-01-07 - Stärkerer Schatten, weißer Rand, Hover-Effekt
 * v1.9.3 - 2025-01-07 - Abgerundete Ecken (border-radius: 8px) und Schatten
 * v1.9.0 - 2025-01-06 - Spalten-System, alte data-layout Regeln entfernt
 * v1.8.1 - 2025-01-06 - Neues Layout 'image-left'
 * v1.8.0 - 2025-01-06 - Agenda dynamisch aus DB
 * v1.7.9 - 2025-01-06 - Lightbox-Funktionalität
 * v1.0 - 2025-01-05 - Initiale Version
 */

:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --gallery-bg: #2a2a2a;
    --text-light: #f5f5f5;
    --text-medium: #b0b0b0;
    --accent: #c9a961;
    --border: #2a2a2a;
    --frame-color: #6a6a6a;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --container-max: 1200px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text-light); background-color: var(--bg-dark); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.3; margin-bottom: var(--space-sm); }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
p { margin-bottom: var(--space-sm); color: var(--text-medium); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text-light); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-sm); }
.main-content { min-height: 80vh; }

.site-header { background-color: var(--bg-medium); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-wrapper { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) 0; }
/*.site-title { font-size: 1.5rem; color: var(--text-light); letter-spacing: 0.1em; font-family: var(--font-sans); font-weight: 400; } */
.site-title { font-size: 2rem; color: var(--accent); font-style: italic; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

.site-footer { background-color: var(--bg-medium); border-top: 1px solid var(--border); padding: var(--space-md) 0; margin-top: var(--space-xl); text-align: center; }
.site-footer p { color: var(--text-medium); font-size: 0.875rem; }
.site-footer a { transition: color var(--transition); }
.site-footer a:hover { color: var(--accent); }

.hero-section { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    animation: flyIn 1.5s ease-out;
}

@keyframes flyIn {
    0% {
        transform: translate(-150%, 50%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}
.hero-title { font-size: 4rem; color: var(--text-light); text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }
.hero-subtitle { font-size: 1.5rem; color: var(--accent); font-style: italic; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-section { padding: var(--space-xl) 0; }
.content-section.section-light { background-color: var(--bg-dark); }
.content-section.section-dark { background-color: var(--bg-medium); }
.section-title { font-size: 2.5rem; margin-bottom: var(--space-lg); color: var(--text-light); }
.section-content { max-width: 900px; }

/* Alternierende Ausstellungen */
.ausstellung-section.ausstellung-odd {
    background-color: #2d3340;
}

.ausstellung-section.ausstellung-even {
    background-color: #2e3a30;
}

/* KEINE schwarze Linie zwischen Sections einer Ausstellung */
.ausstellung-section {
    padding: var(--space-xl) 0;
    margin: 0;
}

/* Erste Section einer Ausstellung: Extra Padding oben */
.ausstellung-section.ausstellung-first {
    padding-top: calc(var(--space-xl) * 2);
}

/* Letzte Section einer Ausstellung: Extra Padding unten für Abstand */
.ausstellung-section.ausstellung-last {
    padding-bottom: calc(var(--space-xl) * 3);
}

/* Titel + Jahr nebeneinander - BÜNDIG */
.ausstellung-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    position: relative;
}

.ausstellung-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) 80%, transparent 100%);
}

.ausstellung-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.ausstellung-header .jahr {
    color: var(--accent);
    font-size: 1.5rem;
    margin-left: var(--space-md);
}

.split-layout { 
    display: grid; 
    gap: var(--space-md); 
    margin: 0;
}

.split-text { padding: 0; }
.split-image img { 
    width: 100%;
    height: auto;
    max-height: 33vh; 
    object-fit: contain; 
    display: block;
    border-radius: 12px;
    box-shadow: 
        0 0 24px 8px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-image img:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 4px 32px 10px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cv-table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); }
.cv-table th, .cv-table td { padding: var(--space-sm); text-align: left; border-bottom: 1px solid var(--border); }
.cv-table th { color: var(--accent); font-weight: 500; }
.cv-table td { color: var(--text-medium); }

/* Picture Gallery (für Ausstellung und Galerie) */
.picture-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: 0;
}

/* Galerie: Variable Spaltenanzahl */
.galerie-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.galerie-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.galerie-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Galerie: Beschreibung unter Überschrift */
.galerie-beschreibung {
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.galerie-beschreibung p {
    color: var(--text-medium);
    line-height: 1.8;
}

.picture-item {
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    margin: 0 auto;
    border: 8px solid var(--frame-color);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: var(--space-xs);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.picture-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs);
}

.picture-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-image img:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.picture-info {
    padding: var(--space-sm);
    width: 100%;
    text-align: center;
}

.picture-info h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.picture-info p {
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .split-layout, .split-layout.reverse { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    /* Galerie: Auf Mobile immer 1 Spalte */
    .galerie-columns-2,
    .galerie-columns-3,
    .galerie-columns-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Galerie: Auf Tablet max 2 Spalten */
    .galerie-columns-3,
    .galerie-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
