/* ------------------- */
/* Reset & Grundstile  */
/* ------------------- */
:root {
    --background-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #c9b48c; /* Dezenter Goldton */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ------------------- */
/* Globaler Header     */
/* ------------------- */
.site-header {
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--accent-color);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    border: 1px solid rgba(240, 240, 240, 0.2);
    padding: 0.25rem;
    border-radius: 50px;
}

.lang-switch a {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

/* ------------------- */
/* Hero Section        */
/* ------------------- */
/* Alte Hero-Klasse (kann für Unterseiten weiterverwendet werden) */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
    padding: 0 2rem;
}

/* Neue immersive Hero-Section für die Startseite */
.hero-immersive {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Inhalt nach rechts schieben */
    padding: 2rem;
    position: relative; /* Für die Positionierung des Scroll-Indikators */
    background-image: linear-gradient(to right, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.9) 50%), url('images/gallery/pic1.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive Schriftgröße */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 0.75rem 2rem;
    border-radius: 50px; /* Vollständig abgerundete Ecken */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover,
.hero-cta:focus {
    background-color: var(--accent-color);
    color: var(--background-color);
    outline: none;
}

/* Allgemeiner Button-Stil */
.button-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.button-primary:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* ------------------- */
/* Scroll-Indikator    */
/* ------------------- */
.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    opacity: 0.7;
}

.scroll-down-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 0.5; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ------------------- */
/* Globaler Footer     */
/* ------------------- */
.site-footer {
    background-color: #1a1a1a; /* Etwas heller als der Haupt-Hintergrund */
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.6);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Für mobile Ansichten */
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Responsive Anpassungen für Header/Footer */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 1rem; }
    .footer-container { flex-direction: column; }
}

/* ------------------- */
/* Allgemeine Sektionen*/
/* ------------------- */
.page-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ------------------- */
/* Bento Grid Section  */
/* ------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    grid-template-areas:
        "large large small-1"
        "large large small-2";
}

.bento-item {
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.item-large { grid-area: large; }
.item-small-1 { grid-area: small-1; }
.item-small-2 { grid-area: small-2; }

/* ------------------- */
/* About Preview       */
/* ------------------- */
.about-preview-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-preview-image {
    flex: 1;
    max-width: 450px;
    overflow: hidden;
    border-radius: 8px;
}

.about-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-preview-text {
    flex: 1;
}

.about-preview-text .section-title {
    text-align: left;
}

.about-preview-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* ------------------- */
/* Responsive für neue Sektionen */
/* ------------------- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "large"
            "small-1"
            "small-2";
    }

    .about-preview-container {
        flex-direction: column;
        text-align: center;
    }
    .about-preview-text .section-title {
        text-align: center;
    }
}

/* ------------------- */
/* Galerie Seite       */
/* ------------------- */
.gallery-section {
    padding: 8rem 2rem 4rem; /* Oben mehr Platz für den Header */
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    /* Responsive Spalten: füllt den Platz, aber jede Spalte ist mind. 300px breit */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4; /* Sorgt für einheitliche Proportionen */
    background-color: #1a1a1a; /* Platzhalter-Farbe während Bild lädt */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ------------------- */
/* Lightbox            */
/* ------------------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    animation: fade-in 0.4s ease;
}

.lightbox-overlay.fade-out {
    animation: fade-out 0.4s ease forwards;
}

.lightbox-content {
    position: relative;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh; /* Höhe des Bildes begrenzen */
    object-fit: contain;
}

.lightbox-meta {
    color: var(--text-color);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ------------------- */
/* "Über mich" Seite   */
/* ------------------- */
.about-me-section {
    padding-top: 8rem;
}

.about-me-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-Spalten-Raster für Flexibilität */
    align-items: center;
    gap: 2rem;
}

.about-me-image {
    grid-column: 7 / 12;
    grid-row: 1 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.about-me-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-me-text {
    grid-column: 2 / 7;
    grid-row: 1 / 2;
    z-index: 2; /* Stellt sicher, dass der Text über dem Zitat liegt */
}

.about-me-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-me-text h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-me-text p {
    opacity: 0.8;
    line-height: 1.8;
}

.about-me-quote {
    grid-column: 1 / 7; /* Geändert: Positioniert das Zitat links vom Bild */
    grid-row: 2 / 3;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.2;
    color: rgba(240, 240, 240, 0.2); /* Etwas sichtbarer gemacht */
    z-index: 1;
    text-align: right;
    align-self: start; /* Richtet das Zitat am oberen Rand seiner Grid-Zelle aus */
    padding-right: 2rem; /* Abstand zum Text darüber */
}

.about-me-quote p {
    margin-bottom: 1rem;
}

.about-me-quote footer {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.7;
}

/* Responsive für "Über mich" Seite */
@media (max-width: 900px) {
    .about-me-grid {
        grid-template-columns: 1fr; /* Einspaltiges Layout */
    }
    .about-me-image,
    .about-me-text,
    .about-me-quote {
        grid-column: 1 / -1; /* Jedes Element nimmt die volle Breite ein */
        grid-row: auto; /* Automatische Reihenfolge */
        text-align: center;
    }
    .about-me-text .section-title,
    .about-me-text h3 {
        text-align: center;
    }
    .about-me-quote {
        padding: 2rem 0;
        font-size: 2rem;
        color: rgba(240, 240, 240, 0.5); /* Auf Mobilgeräten etwas sichtbarer */
    }
}

/* ------------------- */
/* Kontakt Seite       */
/* ------------------- */
.contact-section {
    padding-top: 8rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Rechte Spalte etwas breiter */
    gap: 4rem;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info p {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: #161616;
    border: 1px solid #333;
    color: var(--text-color);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
    /* Optional: Custom Checkbox Styling */
    appearance: none;
    -webkit-appearance: none;
    width: 1.2em;
    height: 1.2em;
    background-color: #161616;
    border: 1px solid #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.form-group-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-group-checkbox label {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
    cursor: pointer;
}

/* Responsive für Kontakt Seite */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-info .section-title {
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
}

/* ------------------- */
/* Legal Pages (Impressum, Datenschutz) */
/* ------------------- */
.legal-page-section {
    padding-top: 8rem;
    max-width: 800px; /* Begrenzt die Breite für bessere Lesbarkeit */
}

.legal-page-section .section-title {
    text-align: left;
    margin-bottom: 3rem;
}

.legal-page-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page-section p {
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 1rem;
}