/* ==========================================================================
   SOLVEIG LÜCKERATH - TORFBRUCH v12
   Zentrale Stylesheet für alle Seiten
   ========================================================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5F5F5F;
    --text-color: #666666;
    --border-color: #c0c0c0;
    --hover-color: #045944;
    --bg-white: #ffffff;
    --content-width: 1000px;
    --line-width: 900px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Trebuchet MS', Georgia, Tahoma, Verdana, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    letter-spacing: 1.2px;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Wrapper - für 900px Inhaltsbreite */
.content-wrapper {
    max-width: var(--line-width);
    margin: 0 auto;
}

/* Header */
.header {
    padding: 3rem 0;
}

.header .container {
    position: relative;
}

.header-content {
    max-width: var(--line-width);
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-align: right;
}

.site-subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
    text-align: right;
}

.site-description {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
    text-align: right;
    margin-bottom: 2rem;
}

/* Separator Line nach Header */
.header-separator {
    max-width: var(--line-width);
    margin: 0 auto;
    border-bottom: 1px dashed var(--primary-color);
}

/* Navigation */
.nav {
    background-color: var(--bg-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-content {
    max-width: var(--line-width);
    margin: 0 auto;
}

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

.nav-right {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--hover-color);
    border-bottom: 2px solid var(--hover-color);
}

/* Separator Line nach Navigation */
.nav-separator {
    max-width: var(--line-width);
    margin: 1rem auto 0;
    border-bottom: 1px dashed var(--primary-color);
}

/* Main Content */
.main {
    padding: 3rem 0;
}

/* Überschriften - alle rechtsbündig mit 900px Container */
h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--primary-color);
    text-align: right;
}

h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 2px;
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--primary-color);
    text-align: right;
}

/* Gallery Sections */
.gallery-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
}

.gallery-section:last-of-type {
    border-bottom: none;
}

/* Sections die direkt vor einem Top-Separator kommen: kein padding-bottom */
.section-before-separator {
    padding-bottom: 0;
}

.gallery-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* FAZ-Galerie: 3 + 3 Layout */
.gallery-grid-faz {
    grid-template-columns: repeat(3, 1fr);
}

/* Musen: 4 nebeneinander */
.gallery-grid-musen {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Keramik: 2 Zeilen à 4, letzte Zeile 3 zentriert */
.gallery-grid-keramik {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 66.67%; /* Bilder um 1/3 kleiner */
    margin-left: auto;
    margin-right: auto;
}

/* Alle Items: je 6 Spalten breit (24/4 = 6, ergibt 4 Items pro Zeile) */
.gallery-grid-keramik .gallery-item {
    grid-column: span 6;
}

/* Spacer für Zentrierung der letzten Zeile: 3 Spalten breit */
/* 3 Items à 6 Spalten = 18 Spalten belegt, 6 Spalten übrig → 3 pro Seite */
.keramik-spacer {
    grid-column: span 3;
}

/* Zeichnungen: 4 Spalten */
.gallery-grid-zeichnungen {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    display: block;
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* Single Image */
.single-image {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.single-image img {
    width: 100%;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Info Text - zentriert */
.info-text {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.info-text p {
    margin-bottom: 0.5rem;
}

/* Section Separator - Trennlinie innerhalb einer Section */
.section-separator {
    border-top: 1px dashed var(--primary-color);
    margin-bottom: 2rem;
}

/* Entferne H2-Border für Sections die einen Top-Separator haben */
.section-with-top-separator h2 {
    border-bottom: none;
    padding-bottom: 0;
}

/* Quote Section */
.quote-section {
    text-align: right;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 3px solid var(--primary-color);
    background-color: #fafafa;
}

.quote-section blockquote {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.quote-section cite {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-style: normal;
}

/* Info Section */
.info-section {
    padding: 2rem 0;
}

/* Donation Info - zentriert */
.donation-info {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-separator {
    max-width: var(--line-width);
    margin: 0 auto 2rem;
    border-top: 1px dashed var(--primary-color);
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--hover-color);
}

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

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
}

/* Timeline (für Vita) */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline h2:first-child {
    margin-top: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: calc(100% - 2rem);
    background: var(--primary-color);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-sizing: border-box;
}

.timeline-year {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.timeline-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Kontaktformular */
.contact-form {
    background-color: #fafafa;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    max-width: 450px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    font-family: inherit;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--hover-color);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-color);
}

.contact-info {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--hover-color);
    text-decoration: none;
}

/* Vita Text - linksbündig unter h1 */
.vita-intro {
    text-align: left;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-grid-faz {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid-musen {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid-keramik {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .nav-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-grid-zeichnungen {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        grid-template-columns: 80px 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .gallery-grid-faz,
    .gallery-grid-musen,
    .gallery-grid-keramik,
    .gallery-grid-zeichnungen {
        grid-template-columns: 1fr;
    }
}
