/* 
 * Elli Reich Stiftung - Basis CSS
 * Sauber, modern, ohne externe Abhängigkeiten.
 */

/* Fonts */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat--v29-normal-100.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat--v29-italic-100.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display--v37-normal-400.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display--v37-italic-400.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7em;
    color: #515151;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: #515151;
    margin-bottom: 20px;
    line-height: 1.2em;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: #8b734b; /* Gold/Braun Ton aus dem Logo/Design */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ab926b;
}

ul {
    list-style: none;
}

ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

ol li {
    margin-bottom: 10px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
#top-header {
    background-color: #e9f0d7;
    padding: 10px 0;
    font-size: 14px;
    color: #515151;
}

#top-header a {
    color: #515151;
}

#top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header {
    background-color: #fff;
    height: 160px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 200px;
}

.logo a {
    display: block;
}

.logo img {
    height: 90px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: all 0.4s ease-in-out;
    image-rendering: -webkit-optimize-contrast; /* Schärfere Darstellung von SVGs in manchen Browsern */
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: #515151;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 16px;
}

nav ul li a:hover, nav ul li a.active {
    color: #8b734b;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 100;
}

/* Content Sections */
section {
    padding: 60px 0;
}

.section-bg-alt {
    background-color: #f7f7f7;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -30px;
    align-items: flex-start;
}

.col {
    flex: 1;
    padding: 0 30px;
    min-width: 300px;
}

.col img {
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.2);
    border-radius: 15px;
}

.text-center {
    text-align: center;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Formulare */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background-color: #eee;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
    color: #515151;
}

.form-group textarea {
    height: 150px;
}

.btn {
    background-color: #8b734b;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #515151;
}

.contact-card {
    text-align: center;
    margin-bottom: 40px;
}

.contact-card img {
    margin-bottom: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 15px;
}

.lightbox.active {
    display: flex;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: #fff;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.footer-nav {
    margin-bottom: 10px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
}

.footer-nav ul li {
    margin: 0 15px;
}

.mobile-menu-bar {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: auto;
        max-height: 50px;
        max-width: 200px; /* Begrenzung auf Mobilgeräten */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        margin-bottom: 40px;
    }
    
    nav {
        display: none;
    }

    #top-menu-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    #top-menu-nav.active ul {
        flex-direction: column;
    }

    #top-menu-nav.active ul li {
        margin: 10px 0;
    }

    .mobile-menu-bar {
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .mobile-menu-bar .select_page {
        margin-right: 15px;
        font-size: 16px;
        color: #515151;
        font-weight: 600;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #8b734b;
        margin: 5px 0;
        transition: 0.3s;
    }

    .mobile-menu-bar.active .hamburger span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-bar.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-bar.active .hamburger span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Scrolled Header */
#main-header.scrolled {
    height: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#main-header.scrolled .logo img {
    max-height: 64px;
}
