/* ===================================================================
   1. GRUNDEINSTELLUNGEN & SCHRIFTARTEN
   - Setzt grundlegende Styles für die gesamte Seite,
     lädt die Schriftarten und definiert Animationen.
   =================================================================== */

/* Allgemeiner Reset und Box-Modell */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basis für das HTML-Dokument */
html {
    height: 100%;
    scroll-behavior: smooth;
}

/* Basis-Styling für den Body */
body {
    background: #F1E4C1;
    font-family: 'source', monospace;
    color: #4055A9;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    animation: fadein 2s;
}

/* Einbinden der lokalen Schriftarten */
@font-face {
    font-family: 'ava';
    src: url('../fonts/ava.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'source';
    src: url('../fonts/SourceCodePro-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

/* Keyframe-Animation für das Einblenden der Seite */
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ===================================================================
   2. SEITENLAYOUT & STRUKTUR
   - Definiert die Hauptbereiche der Seite wie Header,
     Navigation, Inhalts-Container und den Footer.
   =================================================================== */

/* Header-Bereich */
.main-header {
    text-align: center;
    padding: 30px 0;
}

/* Logo mit Rollover-Effekt */
.logo-link {
    display: inline-block;
    width: 412px;
    height: 100px;
    background-image: url('../images/title.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* KORREKTUR 1: Verhindert das Skalieren des Hover-Bildes */
.logo-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/title_overlay.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(1); /* Stellt sicher, dass es nicht skaliert wird */
    transition: opacity 0.4s ease-in-out;
}

.logo-link:hover::after {
    opacity: 1;
}

/* Hauptnavigation */
.main-nav {
    width: 100%;
    margin-bottom: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav a {
    color: #4055A9;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 10px;
    transition: all 0.4s ease;
}

.main-nav a:hover, .main-nav a:focus {
    color: #FFBC00;
    background-color: rgba(29, 26, 50, 0.05);
    border-radius: 4px;
}

.main-nav a.active {
    color: #FFBC00;
    font-weight: bold;
}

/* Inhalts-Container (Standard und für die breitere Galerie) */
.content-container,
.content-container-gallery {
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1; /* Sorgt dafür, dass der Footer nach unten gedrückt wird */
}

.content-container {
    max-width: 800px;
}

.content-container-gallery {
    max-width: 1000px;
}

/* Footer-Bereich */
.main-footer {
    width: 100%;
    padding: 25px 20px;
    margin-top: 60px;
    background-color: #1D1A32;
    color: #F1E4C1;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-label {
    font-size: 14px;
    color: rgba(241, 228, 193, 0.7);
}

.footer-separator {
    color: rgba(241, 228, 193, 0.4);
}

.footer-content a {
    color: #F1E4C1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #FFBC00;
}


/* ===================================================================
   3. ALLGEMEINE TYPOGRAFIE & INHALTSELEMENTE
   =================================================================== */

/* Haupt-Überschriften */
.content-container h1,
.content-container-gallery h1 {
    font-size: 28px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 30px;
    color: #4055A9;
}

/* Unter-Überschriften */
.content-container h2 {
    font-size: 24px;
    text-align: center;
    letter-spacing: 3px;
    margin: 25px 0 30px 0;
    color: #4055A9;
}

/* Standard-Absätze */
.content-container p,
.content-container-gallery p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.sign-off {
    font-style: italic;
    font-size: 18px;
    text-align: left;
    margin-top: 40px;
}

.separator {
    border: none;
    height: 1px;
    background-color: rgba(64, 85, 169, 0.2);
    margin: 30px auto;
    width: 50%;
}


/* ===================================================================
   4. SEITENSPEZIFISCHE KOMPONENTEN
   =================================================================== */

/* --- Stile für große Banner-Bilder (z.B. auf "Über Mich") --- */
.banner-image-container {
    margin: 40px auto;
    /* KORREKTUR 3: Größe reduziert für ein besseres Erscheinungsbild */
    max-width: 800px; 
    width: 100%;
}

.banner-image-container img {
    /* KORREKTUR 3: Zuverlässige Zentrierung und responsive Größe */
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-image-container figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.about-image-container {
    margin: 40px auto;
    /* KORREKTUR 3: Größe reduziert für ein besseres Erscheinungsbild */
    max-width: 800px; 
    width: 100%;
}

.about-image-container img {
    /* KORREKTUR 3: Zuverlässige Zentrierung und responsive Größe */
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image-container figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* --- Stile für die Kontakt-Seite --- */
.intro-paths,
.contact-path,
.social-buttons,
.email-address-display {
    text-align: center;
}

.intro-paths {
    margin-top: 40px;
    font-style: italic;
    color: #666;
}

.contact-paths-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.contact-path {
    flex: 1;
    border: 1px solid rgba(64, 85, 169, 0.2);
    border-radius: 8px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-in-out;
}

.contact-path:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.path-icon, .contact-path h2, .contact-path p, .social-buttons {
    margin-bottom: 15px; /* Angepasster Abstand für ein besseres Layout */
}

/* NEUE REGEL für das Icon-Bild */
.path-icon img {
    height: 80px; /* HIER kannst du die Größe des Icons jederzeit anpassen */
    width: auto;  /* Sorgt dafür, dass das Seitenverhältnis korrekt bleibt */
}

.contact-path h2 { 
    font-size: 22px; 
    color: #4055A9; 
    letter-spacing: 2px;
}

.contact-path p { 
    font-size: 15px; 
    line-height: 1.6; 
    margin-bottom: 30px; 
}

.contact-button {
    display: inline-block;
    background-color: #4055A9;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #FFBC00;
    color: #1D1A32;
}

/* NEU: Stile für die "Cookie-freie Zone"-Box auf der Datenschutz-Seite */

.privacy-feature-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Abstand zwischen Bild und Text */
    max-width: 800px;
    margin: 40px auto; /* Zentriert die Box und schafft Abstand */
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(64, 85, 169, 0.1);
    border-radius: 8px;
	transition: background-color 0.3s ease;
}

.privacy-feature-box {
    flex: 1;
    border: 1px solid rgba(64, 85, 169, 0.2);
    border-radius: 8px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-in-out;
}

.privacy-feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.privacy-feature-box:hover {
    background-color: #FFBC00;
    color: #1D1A32;
}

.privacy-icon {
    height: 80px; /* Höhe des Icons, kann angepasst werden */
    width: auto;
    flex-shrink: 0; /* Verhindert, dass das Icon auf kleinen Screens schrumpft */
}

.privacy-slogan {
    font-size: 17px;
    font-style: italic;
    color: #1D1A32;
    line-height: 1.5;
    text-align: center; /* Richtet den Text linksbündig neben dem Icon aus */
    margin: 0 !important; /* Wichtig, um den Standard-Absatz-Abstand hier zu überschreiben */
}

/* Anpassung für kleinere Bildschirme */
@media (max-width: 500px) {
    .privacy-feature-box {
        flex-direction: column; /* Stapelt Icon und Text untereinander */
        text-align: center;
    }
    .privacy-slogan {
        text-align: center; /* Zentriert den Text unter dem Icon */
    }
}

.social-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.email-address-display { margin-top: 15px; font-size: 14px; color: #666; word-break: break-all; }
/* --- Stile für die Masonry-Bildergalerie --- */
.gallery-intro { text-align: center; max-width: 700px; margin: 0 auto 40px auto; }
.masonry-gallery { column-count: 3; column-gap: 20px; }
.gallery-item { margin: 0 0 20px 0; display: inline-block; width: 100%; break-inside: avoid; background: #ffffff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12); }
.gallery-item a { display: block; text-decoration: none; }
.gallery-item img { width: 100%; height: auto; display: block; cursor: pointer; transition: opacity 0.3s ease; }
.gallery-item a:hover img { opacity: 0.85; }
.item-info { padding: 15px 20px; }
.item-info h3 { margin: 0 0 5px 0; font-size: 18px; color: #1D1A32; }
.item-info p { margin: 0 0 15px 0; font-size: 14px; color: #666; line-height: 1.5; }
.item-info span { display: inline-block; padding: 5px 12px; border-radius: 15px; font-size: 12px; font-weight: bold; letter-spacing: 0.5px; }
.status-available { background-color: #e0f2e9; color: #2a7c4f; }
.status-sold { background-color: #fce1e1; color: #a32e2e; }
.status-request { background-color: #e1eafc; color: #2e5da3; }
.status-private { background-color: #f0e1fc; color: #6a2ea3; }

/* --- Stile für die 3-Bilder-Reihe auf der Startseite --- */
.image-row-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 60px 0; }
.image-row-container figure { width: calc(33.333% - 22px); margin: 0; text-align: center; }
.image-row-container img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.image-row-container figcaption { font-size: 14px; color: #666; margin-top: 10px; font-style: italic; }


/* ===================================================================
   5. HILFSKLASSEN & SONDERFUNKTIONEN
   =================================================================== */

.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: #4055A9; color: white; width: 50px; height: 50px; text-align: center; line-height: 50px; border-radius: 50%; text-decoration: none; font-size: 24px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); transition: all 0.3s ease; z-index: 100; }
.back-to-top:hover { background-color: #FFBC00; }


/* ===================================================================
   6. RESPONSIVE ANPASSUNGEN
   =================================================================== */

/* --- Für Tablets und kleinere Laptops --- */
@media (max-width: 900px) {
    .masonry-gallery {
        column-count: 2;
    }
}

/* --- Für Tablets und große Smartphones --- */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .logo-link {
        width: 300px;
        height: 73px;
    }
}

/* --- Für kleinere Tablets und große Smartphones --- */
@media (max-width: 650px) {
    /* KORREKTUR 2 & 4: Stellt sicher, dass diese Elemente erst auf kleineren Geräten umbrechen */
    .contact-paths-container,
    .image-row-container {
        flex-direction: column;
        align-items: center;
    }
    .image-row-container figure {
        width: 80%;
        max-width: 350px;
    }
}


/* --- Für Smartphones --- */
@media (max-width: 500px) {
    .masonry-gallery {
        column-count: 1;
    }
}