/* ---------------------------------------------------------
   CSS VARIABLEN
--------------------------------------------------------- */
:root {
    /* Grundfarben */
    --color-gold: #a57c00;
    --color-white: #ffffff;
    --color-black: #111111;
    --color-dark-gray: #222222;
    --color-gray: #444444;
    --color-light-bg: #fffefa;
    --color-offwhite: #fdfcfb;

    /* Buttons */
    --color-button-bg: #222222;
    --color-button-bg-hover: #444444;
    --color-button-text: var(--color-white);

    /* Inputs */
    --color-input-border: #ccc;
    --color-input-border-focus: var(--color-gold);
    --color-input-bg: var(--color-light-bg);
    --color-input-bg-focus: #fffdf5;
    --color-input-shadow: rgba(0,0,0,0.05);
}

/* ---------------------------------------------------------
   SITE WRAPPER
--------------------------------------------------------- */
.site-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(196, 134, 0, 0.5);
}

@media (max-width: 768px) {
    .site-wrapper {
        margin: 1rem;
        padding: 1rem;
    }
}

/* ---------------------------------------------------------
   TYPOGRAFIE
--------------------------------------------------------- */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--color-offwhite);
    color: var(--color-dark-gray);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: var(--color-black);
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

h1 { font-size: 2.6rem; margin-bottom: 1.2rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

.grid-item p:first-letter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    float: left;
    margin-right: 0.3rem;
    line-height: 1;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
header {
    background: var(--color-black);
    padding: 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        45deg,
        rgba(245,200,66,0.03),
        rgba(245,200,66,0.03) 2px,
        transparent 2px,
        transparent 8px
    );
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gold);
}

/* Navigation */
header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

header nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--color-gold);
}

header nav ul li a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0%;
    background: var(--color-gold);
    transition: width 0.3s ease;
    margin-top: 4px;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* Hamburger-Menu */
.burger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-white);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

@media (max-width: 768px) {
    header {
        overflow: visible;
    }
    
    header nav ul {
        display: none; /* versteckt */
        flex-direction: column;
        gap: 1rem;
        background: var(--color-black);
        position: absolute;
        top: 4.5rem; /* unterhalb des Headers */
        right: 1rem;
        width: 200px;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        z-index: 1000;
    }

    header nav ul.open {
        display: flex;
    }

    .burger-menu {
        display: block;
    }
}

/* ---------------------------------------------------------
   HERO SECTION
--------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(180deg, var(--color-light-bg) 0%, #f7f4f0 100%);
    border-bottom: 1px solid #e3e3e3;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 50%;
    width: 180%;
    height: 100%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        45deg,
        rgba(245,200,66,0.03),
        rgba(245,200,66,0.03) 2px,
        transparent 2px,
        transparent 8px
    );
    pointer-events: none;
}

/* Logos & Hover */
.hero .hero-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero .hero-logos img.certified {
    width: 340px;
    max-width: 90%;
    transition: transform 0.4s ease, filter 0.4s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-radius: 12px;
}

.hero .hero-logos img.certified:hover {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.logo-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-container .community-logo {
    width: 240px;
    max-width: 45%;
    transition: transform 0.4s ease, filter 0.4s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    border-radius: 12px;
}

.logo-container .community-logo:hover {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* ---------------------------------------------------------
   GRID CONTENT
--------------------------------------------------------- */
.grid-content { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem;
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: auto;
}

.grid-item {
    background: var(--color-light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid root(--color-gray);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    position: relative;
}

.grid-item::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    opacity: 0.8;
}

.grid-item:hover { 
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    background: #fff8ec;
}

.grid-item ul li::before {
    content: "•";
    color: var(--color-gold);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.grid-item.fade-in {
    opacity: 1;
    transform: translateY(0); 
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    margin-top: 2rem;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 0.95rem;
    position: relative;
    text-align: left;
}

footer a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-gold);
}

footer a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0%;
    background: var(--color-gold);
    transition: width 0.3s ease;
    margin-top: 4px;
}

footer a:hover,
footer a.active { color: var(--color-gold); }
footer a:hover::after,
footer a.active::after { width: 100%; }

/* ---------------------------------------------------------
   TEXT-LINK
--------------------------------------------------------- */
.text-link {
    color: var(--color-gray);
    text-decoration: none;
    font-style: italic;
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0%;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.text-link:hover { color: var(--color-gold); }
.text-link:hover::after { width: 100%; }

/* ---------------------------------------------------------
   CONTACT FORM
--------------------------------------------------------- */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-input-border);
    background: var(--color-input-bg);
    box-shadow: 0 2px 6px var(--color-input-shadow);
    transition: all 0.4s ease;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-input-border-focus);
    box-shadow: 0 0 12px rgba(245,200,66,0.25);
    background: var(--color-input-bg-focus);
}

.contact-form button {
    grid-column: 2 / 3;
    padding: 1rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-button-bg), var(--color-button-bg-hover));
    color: var(--color-button-text);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.contact-form button:hover {
    background: linear-gradient(135deg, var(--color-button-bg-hover), var(--color-button-bg));
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   RESPONSIVE & MOBILE ADJUSTMENTS
--------------------------------------------------------- */
@media (max-width: 1100px) { h1 { font-size: 2.2rem; } }
@media (max-width: 800px) { .grid-content { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .hero { padding: 3rem 1rem; } }
