/* GRUNDEINSTELLUNGEN */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* TYPOGRAPHIE */
h1, h2, h3 {
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* NAVIGATION */
header {
    padding: 2rem 0;
    position: absolute; /* Macht den Header transparent über dem Bild */
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo {
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: #777;
    border-bottom: 1px solid #777;
}

/* HERO SECTION MIT SLIDESHOW */
.hero {
    height: 90vh; /* 90% der Bildschirmhöhe */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Wichtig, damit nichts übersteht */
}

/* Der Container für die Bilder */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Liegt ganz hinten */
}

/* Die einzelnen Bilder */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bilder füllen den Bereich, ohne verzerrt zu werden */
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 1.5s ease-in-out; /* Weicher Übergang von 1.5 Sekunden */
}

/* Nur das Bild mit der Klasse "active" ist sichtbar */
.hero-slide.active {
    opacity: 1;
}

/* Dunkler Schleier über den Bildern für Lesbarkeit des Textes */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); /* Etwas dunkler für besseren Kontrast */
    z-index: 1; /* Liegt über den Bildern, aber unter dem Text */
}

/* Der Text-Inhalt */
.hero-content {
    position: relative;
    z-index: 2; /* Liegt ganz vorne */
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff;
    color: #fff;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.2); /* Leichter Hintergrund für den Button */
}

.btn:hover {
    background: #fff;
    color: #000;
}
/* SEKTIONEN ALLGEMEIN */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.8rem;
    letter-spacing: 4px;
}

/* GALERIE GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Automatische Spalten */
    gap: 40px;
}

.card {
    text-align: center;
}

.img-wrapper {
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom Effekt beim Hover */
.img-wrapper:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    font-family: 'Playfair Display', serif; /* Serifenschrift für Details */
}

/* ÜBER MICH (Zweispaltig) */
.bg-light {
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
}

/* FOOTER */
.footer-section {
    text-align: center;
    background: #222;
    color: #fff;
}

.email-link {
    font-size: 1.5rem;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.email-link:hover {
    color: #aaa;
    border-color: #aaa;
}

.footer-links a {
    font-size: 0.8rem;
    color: #888;
    margin: 0 10px;
}

/* RESPONSIVE (Handy-Anpassung) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-container { flex-direction: column; gap: 20px; }
    nav ul { gap: 15px; font-size: 0.8rem; }
}
/* --- STYLES FÜR DEN NEUEN INHALT --- */

/* Philosophie Text */
.intro-text {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: #000;
    border-left: 4px solid #333;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Biografie Bereich */
.biography-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.biography-section h3 {
    text-align: center;
    margin-bottom: 30px;
}

.bio-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.bio-content p {
    margin-bottom: 1.5rem;
    text-align: justify; /* Blocksatz für langen Text sieht buch-artig aus */
}

/* Ausstellungs-Liste */
.exhibition-list {
    max-width: 900px;
    margin: 0 auto;
}

.exhibition-item {
    display: grid;
    grid-template-columns: 150px 1fr; /* Links Datum, Rechts Inhalt */
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.ex-date {
    font-weight: 700;
    color: #888;
    font-family: 'Montserrat', sans-serif;
}

.ex-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Bilder innerhalb der Ausstellung (Otto F. Scharr) */
.exhibition-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.exhibition-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.exhibition-images figcaption {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Handy Anpassung für Ausstellungen */
@media (max-width: 768px) {
    .exhibition-item {
        grid-template-columns: 1fr; /* Untereinander auf Handy */
        gap: 10px;
    }
    
    .exhibition-images {
        grid-template-columns: 1fr;
    }
}
/* MEDIEN IN AUSSTELLUNGEN - VERKLEINERT */

.ex-media {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    text-align: center; /* Zentriert Bild und Video */
}

.ex-media img {
    max-width: 390px; /* HIER: Bild wird nie breiter als 400 Pixel */
    width: 100%; /* Auf kleinen Handys schrumpft es trotzdem mit */
    height: auto;
    display: inline-block; /* Damit das Zentrieren funktioniert */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ex-media video {
    max-width: 400px; /* Video darf etwas breiter sein */
    width: 100%;
    border-radius: 2px;
}

.ex-media figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    text-align: center; /* Text unter dem Bild zentriert */
}