/* =========================================
   GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================= */
:root {
    --text-main: #1a1a1a;        
    --text-muted: #4a4a4a;        
    --white: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; 
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Legt den Container komplett in den Hintergrund */
    
    background: linear-gradient(135deg, 
        #fdfbfb, #ebedee, /* Hell / Neutral */
        #ffecd2, #fcb69f, /* Warm / Pfirsich */
        #cfd9df, #e2ebf0, /* Kühl / Blau-Grau */
        #e0c3fc, #8ec5fc  /* Kreativ / Lila-Blau */
    );
    background-size: 400% 400%;
    /* Permanente, weiche Animation */
    animation: gradientMove 15s ease infinite alternate; 
}

/* Scroll-Snapping */
.scroll-snap-container {
    height: 100vh;
    overflow: hidden;
}

/* =========================================
   TYPOGRAFIE & BUTTONS
   ========================================= */
h1, h2, h3 { font-weight: 300; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--text-main);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 30px; 
}

.btn:hover {
    background-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--white);
}

/* =========================================
   KOPFZEILE & NAVIGATION (Immer oben!)
   ========================================= */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Ein moderner Glas-Effekt (Frosted Glass), damit der Farbverlauf durchscheint */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    transition: padding 0.3s ease;
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    color: var(--text-main);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 4px;
}

/* =========================================
   PRÄSENTATIONS-SLIDES
   ========================================= */
.presentation-slide {
    height: 100vh; 
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.slide-content {
    max-width: 800px;
    /* Leichtes Einblenden von unten für Text (wird durch JS getriggert) */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.presentation-slide.is-visible .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.massive-title {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.presentation-slide h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.presentation-slide p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Der hüpfende Pfeil auf Slide 1 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(20%);
    font-size: 2rem;
    animation: bounce 3s infinite;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Integrierter Footer auf dem letzten Slide */
.slide-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}


/* =========================================
   MOBILE ANPASSUNG (Responsive Design)
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    
    .massive-title { font-size: 2.5rem; }
    .presentation-slide h2 { font-size: 2rem; }
    .presentation-slide p { font-size: 1rem; }
}

/* =========================================
   ABOUT TEASER & FOOTER
   ========================================= */
.about-teaser {
    text-align: center;
    padding: 6rem 20px;
    background-color: var(--white);
    border-top: 1px solid #eaeaea;
}

.about-teaser h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-teaser p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-muted);
}

.site-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-top: 1px solid #eaeaea;
    color: #999;
    font-size: 0.85rem;
}

/* =========================================
   MOBILE ANPASSUNG (Responsive Design)
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   LIGHTBOX POP-UP (Für hochauflösende Bilder)
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fast schwarzer, leicht transparenter Hintergrund */
    z-index: 1000; /* Liegt über allen anderen Elementen */
    display: none; /* Ist unsichtbar, bis JavaScript es auf 'flex' setzt */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Die "Active" Klasse wird später durch JavaScript hinzugefügt */
.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh; /* Darf maximal 80% der Bildschirmhöhe einnehmen */
    object-fit: contain; /* Bild wird komplett angezeigt, nichts wird abgeschnitten */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 4rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Anpassung für Handys (damit es auf kleinen Displays gut aussieht) */
@media (max-width: 600px) {
    .insta-grid {
        gap: 2px;
    }
    .artwork-title {
        font-size: 0.9rem;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 3rem;
    }
}


/* =========================================
   GALERIE SHOWCASE 
   ========================================= */
.gallery-slide-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    flex-wrap: wrap; /* Falls es auf Mobile zu eng wird */
}

.gallery-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 650px;
    
    /* Leichter Zoom-Effekt beim Einscrollen */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

.presentation-slide.is-visible .gallery-showcase-item {
    opacity: 1;
    transform: scale(1);
}

.gallery-showcase-img {
    max-height: 80%; 
    width: 100%;
    object-fit: contain; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 6px; 
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-showcase-img:hover {
    transform: scale(1.03); /* Leichter Hover-Effekt, um Klickbarkeit zu zeigen */
}

.gallery-details {
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
    font-weight: 400;
}

/* Mobile Anpassung für das Grid */
@media (max-width: 768px) {
    .gallery-slide-grid {
        flex-direction: column;
        gap: 15px;
    }
    .gallery-showcase-img {
        max-height: 25vh; /* Auf Handys noch kleiner, damit 2 übereinander passen */
    }
}

/* =========================================
   FLIESSENDER HINTERGRUND FÜR STATISCHE SEITEN
   ========================================= */

.fluid-background {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Der Hintergrund wird hier automatisch durch body { background: ... } animiert */
    animation: gradientMove 15s ease infinite alternate; 
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.page-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px 20px; /* Oben Platz wegen des fixed Headers */
    width: 100%;
}

/* =========================================
   DER GLAS-LOOK (GLASSMORPHISM)
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    width: 100%;
    max-width: 1000px;
    
    /* Sanftes Einblenden beim Laden */
    animation: fadeInSlideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* =========================================
   ABOUT SEITE SPEZIFISCH
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.about-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-text h3 {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-actions {
    margin-top: 2rem;
}

/* =========================================
   KONTAKT SEITE SPEZIFISCH
   ========================================= */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.info-block p {
    font-size: 1.1rem;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.contact-link:hover {
    border-bottom-color: var(--text-main);
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

/* Angepasstes Formular für den Glas-Look */
.glass-form .form-group {
    margin-bottom: 1.5rem;
}

.glass-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.glass-form input,
.glass-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5); /* Leicht transparent */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.glass-form input:focus,
.glass-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Simpler Footer für diese Seiten */
.simple-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   RESPONSIVE FÜR GLAS-SEITEN
   ========================================= */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .glass-panel {
        padding: 2rem;
        margin-top: 20px;
    }
}

/* =========================================
    STARTSEITE: KARTEN-LAYOUT (CTA GRID)
   ========================================= */
.slide-content-wide {
    max-width: 1000px; /* Gibt den zwei Karten nebeneinander genug Platz */
    width: 100%;
}

.cta-grid {
    display: grid;
    /* Macht automatisch 2 Spalten auf dem PC und 1 Spalte auf dem Handy */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.cta-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    
    /* Inhalt der Karte zentrieren */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.55);
}

.cta-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cta-card p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    flex-grow: 1; /* Schiebt den Button immer sauber ans untere Ende */
}

/* * =========================================
 * AUSGELAGERTE STYLES AUS DEN HTML-DATEIEN
 * =========================================
 */

/* --- GLOBALE ANIMATIONEN --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER & ADMIN-LINK (Ersatz für onmouseover) --- */
.admin-link {
    color: var(--text-muted);
    opacity: 0.2;
    text-decoration: none;
    font-size: 0.7rem;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}

/* --- GALERIE (vorher in galerie.html) --- */
html, body {
    height: 100%;
    margin: 0;
}

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto !important;
    overflow-y: auto !important;
}

main {
    flex: 1; /* Drückt den Footer nach unten */
}

#image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* NEUE KLASSE: Zentriert das Bild und den Text vertikal im Grid-Block */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Zentriert Inhalte horizontal */
    text-align: center;   /* Sorgt dafür, dass auch der Text zentriert steht */
}

/* ANGEPASST: max-width statt width 100%, damit Bilder zentriert werden und nicht erzwingend groß gezogen werden */
.grid-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer; /* Zeigt an, dass das Bild klickbar ist (Lightbox) */
}

.grid-img:hover {
    transform: scale(1.02);
}

.grid-info {
    margin-top: 15px; /* Etwas Platz zwischen Bild und Text */
}

.grid-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.grid-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- GÄSTEBUCH (vorher in gaestebuch.html) --- */
.guestbook-entries {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.entry-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

/* --- ADMIN BEREICH (vorher in admin.html) --- */
.admin-section { 
    display: none; 
}

.admin-section.active { 
    display: block; 
    animation: fadeIn 0.5s ease; 
}

.upload-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--text-muted);
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-image-card {
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.admin-image-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.btn-delete {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.btn-delete:hover {
    background-color: #ff1a1a;
}

.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn 0.5s ease; }

.upload-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--text-muted);
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-image-card {
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.admin-image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.btn-danger { background-color: #d32f2f; color: white; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; text-transform: uppercase; }
.btn-danger:hover { background-color: #b71c1c; }
.logout-btn { float: right; font-size: 0.8rem; padding: 8px 15px; }