/* ==========================================================================
   CSS Variablen (für einfache Wartung)
   ========================================================================== */
:root {
    --color-primary: #9c7a47;
    --color-primary-light: #c7a26d;
    --color-primary-lighter: #e0cba1;
    --color-bg-main: #f4e1b1;
    --color-bg-section: #f9f2e3;
    --color-text: #4a4a4a;
    --color-text-dark: #333;
    --color-white: #ffffff;
    --color-whatsapp: #25D366;
    --color-phone: #007bff;
    --color-email: #6c757d;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Schriften
   ========================================================================== */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* ==========================================================================
   Basis-Styles
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-main);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    width: 100%;
    height: 75px;
    background: rgba(250, 240, 220, 0.85);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: -75px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

#header-banner {
    width: 100%;
    overflow: hidden;
}

#header-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

.site-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    padding: 6px 12px;
    background-color: transparent;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

nav ul li a:hover {
    background-color: rgba(139, 110, 59, 0.9);
}

.burger {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 3em;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    display: none;
}

#main-nav {
    display: block;
}

#main-nav.open {
    display: block;
}

#main-nav ul {
    flex-direction: row;
    padding: 0;
}

#main-nav ul li {
    margin: 0;
    text-align: center;
    padding: 0;
}

/* ==========================================================================
   Sections (Allgemein)
   ========================================================================== */
section {
    padding: 40px;
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
    background-color: var(--color-bg-section);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

section h2 {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 20px;
}

section h3 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin: 25px 0 15px 0;
}

.sub-headline {
    font-size: 21px;
    line-height: 1.0;
    font-weight: bold;
    color: var(--color-text);
}

/* ==========================================================================
   Sections Layout (Text + Bild)
   ========================================================================== */
#CampoFuturo,
#projekt,
#basic_facts,
#lage,
#grundstueckserwerb,
#kontakt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    position: relative;
    overflow: hidden;
}

#CampoFuturo {
    align-items: stretch;
    min-height: 400px;
}

/* Hintergrund-Logo für alle Sections */
#CampoFuturo::before,
#projekt::before,
#basic_facts::before,
#lage::before,
#grundstueckserwerb::before,
#kontakt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background-image: url("../bilderpgy/allgemein/cf-logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    z-index: 0;
}

#CampoFuturo .text-container,
#projekt .text-container,
#basic_facts .text-container,
#lage .text-container,
#grundstueckserwerb .text-container,
#kontakt .text-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 45%;
    margin-right: 40px;
    position: relative;
    z-index: 1;
}

#CampoFuturo img,
#projekt img,
#basic_facts img,
#lage img,
#grundstueckserwerb img,
#kontakt img {
    width: 50%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Feature-Liste mit Icons (Basic Facts)
   ========================================================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.feature-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--color-primary);
    margin-top: 2px;
}

/* ==========================================================================
   Distanz-Liste (Lage)
   ========================================================================== */
.distance-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.distance-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(156, 122, 71, 0.2);
}

.distance-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Kontakt-Liste
   ========================================================================== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.contact-icon.whatsapp {
    background-color: var(--color-whatsapp);
}

.contact-icon.phone {
    background-color: var(--color-phone);
}

.contact-icon.email {
    background-color: var(--color-email);
}

.contact-text {
    font-size: 16px;
    color: var(--color-text-dark);
    font-family: Arial, sans-serif;
}

.contact-icon:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 15px;
    padding: 20px;
    max-width: 100%;
}

.gallery-item {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-title {
    padding: 12px 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    text-align: center;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 2000;
    flex-wrap: wrap;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-buttons button {
    margin-left: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

#accept-cookies {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

#reject-cookies {
    background-color: var(--color-primary-lighter);
    color: var(--color-text);
}

.cookie-buttons button:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--color-bg-section);
    color: var(--color-text);
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-top: 1px solid #d2b78d;
}

footer a {
    color: var(--color-primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design - Tablet (max 900px)
   ========================================================================== */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #CampoFuturo,
    #projekt,
    #basic_facts,
    #lage,
    #grundstueckserwerb,
    #kontakt {
        flex-direction: column;
    }
    
    #CampoFuturo .text-container,
    #projekt .text-container,
    #basic_facts .text-container,
    #lage .text-container,
    #grundstueckserwerb .text-container,
    #kontakt .text-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    #CampoFuturo img,
    #projekt img,
    #basic_facts img,
    #lage img,
    #grundstueckserwerb img,
    #kontakt img {
        width: 100%;
        height: 300px;
    }
}

/* ==========================================================================
   Responsive Design - Mobile (max 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    header {
        height: auto;
        padding: 10px 0;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .site-title {
        font-size: 1.4em;
    }
    
    .burger {
        display: block;
    }
    
    #main-nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(74, 74, 74, 0.95);
        z-index: 999;
    }
    
    #main-nav.open {
        display: block;
    }
    
    #main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    #main-nav ul li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
    
    section {
        padding: 20px;
        margin: 10px;
    }
    
    section h2 {
        font-size: 1.6em;
    }
    
    .sub-headline {
        font-size: 18px;
    }
    
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        margin-top: 10px;
    }
    
    .cookie-buttons button {
        margin: 5px;
    }
}
