/* Grundlegendes Reset & Variablen */
:root {
    --primary-color: #373f4d; /* Dunkelblau/Grau für Footer/Hintergründe */
    --text-dark: #373f4d;
    --text-light: #fff;
    --nav-color: #d1d1d1; /* Leichtes Grau für Links */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: var(--font-body); 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
    font-weight: 300; /* Generell dünnere, edlere Schrift */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* -------------------------------------
   HEADER & NAVIGATION 
-------------------------------------- */
.main-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
    text-align: center; 
    padding: 2.5rem 0; 
}

.logo-container img { 
    height: 140px; /* Großes Logo */
    margin-bottom: 2.5rem; 
}

.main-nav ul { 
    display: flex; justify-content: center; 
    gap: 4rem; 
}

.main-nav a {
    color: var(--nav-color);
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    font-weight: 600;
    text-transform: uppercase; 
    transition: color 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-light); }

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    position: absolute; right: 2rem; top: 2.5rem; z-index: 1000;
}
.mobile-menu-toggle span {
    display: block; width: 30px; height: 2px; background: white;
    margin-bottom: 6px; transition: transform 0.3s, opacity 0.3s;
}

/* -------------------------------------
   HERO & SLIDER
-------------------------------------- */
.hero-slider {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2rem;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1;
}
.slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); z-index: 2; 
}
.scroll-down { position: relative; z-index: 10; cursor: pointer; }

/* Standard Hero für Unterseiten */
.hero-inner {
    height: 60vh; position: relative;
    background-size: cover; background-position: center;
}

/* -------------------------------------
   REFERENZEN SECTION - ORIGINALGETREU GROSS
-------------------------------------- */
.referenzen-section { 
    max-width: 1440px; /* Deutlich breiterer Container wie im Original */
    margin: 6rem auto; 
    padding: 0 3rem; 
}

.section-header { 
    display: flex; justify-content: space-between; align-items: flex-start; 
    margin-bottom: 4rem; 
}
.header-text { max-width: 800px; } /* Darf breiter laufen */

.header-text h2 {
    font-family: var(--font-heading); 
    font-size: 3.5rem; /* Viel größer! */
    color: var(--primary-color); 
    margin-bottom: 1.5rem;
    font-weight: 400; /* Edler, nicht zu fett */
}

.header-text p { 
    font-size: 0.9rem; /* Etwas größer und besser lesbar */
    letter-spacing: 1.5px; 
    color: #666; 
    text-transform: uppercase; 
    line-height: 2; 
    font-weight: 300; /* Sehr feiner Schnitt */
}

.tassel-icon-container { margin-top: 2rem; }
.tassel-icon { height: 40px; }

.header-button { margin-top: 1rem; }
.btn-referenzen {
    background-color: #b8b8b8; /* Helleres Grau wie im Screenshot */
    color: white; 
    padding: 1rem 2.5rem; /* Größerer Button */
    border-radius: 30px; /* Schön abgerundet */
    font-size: 0.85rem; 
    font-weight: 400; 
    letter-spacing: 1px; 
    display: inline-block; 
    transition: background 0.3s;
}
.btn-referenzen:hover { background-color: var(--primary-color); }

.referenzen-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; 
}
.referenz-item img { width: 100%; height: 400px; object-fit: cover; border-radius: 2px; }

/* -------------------------------------
   FOOTER - ORIGINALGETREU GROSS
-------------------------------------- */
.main-footer { 
    background-color: var(--primary-color); 
    color: var(--text-light); 
    padding: 6rem 2rem 3rem; /* Mehr Luft nach oben und unten */
}
.footer-content {
    max-width: 1440px; /* Deutlich breiter */
    margin: 0 auto; 
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4rem; /* Mehr Abstand zwischen den Spalten */
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4rem;
}

/* Das Footer Logo ist im Original interessanterweise kleiner als oben */
.logo-column img { height: 110px; } 

.footer-column h4 { 
    font-family: var(--font-heading); 
    margin-bottom: 2rem; 
    font-size: 1.8rem; /* Viel größer, wie im Screenshot */
    font-weight: 400; 
    text-transform: lowercase; 
}
.footer-column ul li { 
    margin-bottom: 0.8rem; 
    font-size: 0.95rem; 
    font-weight: 300; /* Filigraner */
    letter-spacing: 0.5px;
}
.contact-column p { 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
    font-weight: 300; 
    line-height: 2; /* Höherer Zeilenabstand */
    letter-spacing: 0.5px;
}

.footer-bottom { 
    max-width: 1440px; margin: 2.5rem auto 0; 
    display: flex; justify-content: space-between; 
    font-size: 0.8rem; color: #a1a1a1; font-weight: 300;
}

/* -------------------------------------
   MOBILE OPTIMIERUNG
-------------------------------------- */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .logo-container img { height: 90px; }
    
    .main-nav {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(55, 63, 77, 0.98); 
        display: flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 99;
    }
    .main-nav.open { opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
    .main-nav a { font-size: 1.5rem; letter-spacing: 3px; }
    
    .mobile-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .referenzen-section { padding: 0 1.5rem; margin: 4rem auto; }
    .header-text h2 { font-size: 2.5rem; }
    .section-header { flex-direction: column; gap: 2rem; text-align: center; }
    .header-text { margin: 0 auto; }
    .header-button { margin: 0 auto; }
    
    .referenzen-grid { grid-template-columns: 1fr; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .logo-column img { height: 80px; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
}

/* -------------------------------------
   ÜBER UNS SEITE
-------------------------------------- */
.about-section {
    max-width: 1440px;
    margin: 6rem auto;
    padding: 0 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.about-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.5px;
    color: #444;
}

.about-content strong {
    font-weight: 600;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 3rem 0 1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Team Sektion mit Hintergrundbild */
.team-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Für den leichten Parallax Effekt */
    padding: 8rem 2rem;
    color: var(--text-light);
    text-align: center;
}

.team-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Dunkelt den Hintergrund ab */
    z-index: 1;
}

.team-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.team-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member img {
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.team-member p {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Mobile Optimierung für Über Uns */
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .team-grid { grid-template-columns: 1fr; }
    .about-content h2 { font-size: 2.5rem; }
    .team-title { font-size: 2.5rem; }
    .team-section { padding: 4rem 1.5rem; }
}

/* -------------------------------------
   PARTNER & REFERENZEN SEITE
-------------------------------------- */
.partner-section {
    max-width: 1440px;
    margin: 6rem auto 4rem auto;
    padding: 0 3rem;
}

.partner-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.partner-logos img {
    max-height: 100px; /* Begrenzt die Höhe der Logos, damit sie einheitlich wirken */
    max-width: 220px;
    object-fit: contain;
    filter: grayscale(100%); /* Elegantes Schwarz-Weiß... */
    opacity: 0.7;
    transition: all 0.4s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%); /* ...wird farbig beim Hovern */
    opacity: 1;
}

/* Mobile Optimierung für Partner */
@media (max-width: 768px) {
    .partner-section { padding: 0 1.5rem; margin: 4rem auto; }
    .partner-logos { justify-content: center; flex-direction: column; gap: 4rem; }
}

/* -------------------------------------
   NEWS SEITE
-------------------------------------- */
/* Damit der Header auf der News-Seite nicht über einem Bild liegt, 
   sondern auf dem weißen Hintergrund sichtbar ist */
/* Der weiße Einleitungsbereich */
.news-header-section {
    background-color: #fff;
    padding: 2rem 2rem 6rem 2rem;
    text-align: center;
}
.news-header-content {
    max-width: 800px;
    margin: 0 auto;
}
.news-header-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 400;
}
.news-header-content p {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: #666;
    text-transform: uppercase;
    line-height: 2;
    font-weight: 300;
    margin-top: 2rem;
}

/* Der dunkle Bereich mit dem Grid */
/* Der dunkle Bereich mit dem Grid */
/* Der dunkle Bereich mit dem Grid */
.news-feed-section {
    background-image: url('../img/news_bg.jpg') !important; 
    background-color: var(--primary-color) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    padding: 8rem 2rem !important; 
    margin-bottom: 0 !important; 
    display: flex;
    justify-content: center;
}

/* Tötet jeden unsichtbaren Abstand der Haupt-Box zum Footer ab */
main.news-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.news-grid {
    width: 100%;
    max-width: 1440px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 3rem;
    align-items: start; 
}

/* Die einzelne News-Karte */
.news-card {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 2.5rem;
    color: var(--text-dark);
}

.news-content h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #777;
    line-height: 1.8;
}

/* Mobile Optimierung für News */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .news-header-content h2 { font-size: 2.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-feed-section { padding: 4rem 1.5rem; }
}

/* ==========================================================================
   KLICKBARE REFERENZEN: GRAUES OVERLAY MIT LINK-ICON (OHNE TEXT)
   ========================================================================== */
.referenz-item-link {
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}

.referenz-item {
    position: relative;
    transition: transform 0.4s ease;
}

.referenz-item img {
    width: 100%; 
    height: 350px; /* Auf der Referenz-Seite ggf. 400px */
    object-fit: cover; 
    display: block;
}

/* Das neue graue Overlay */
.referenz-item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Der graue Hintergrund (an Screenshot angepasst) */
    background-color: rgba(180, 180, 180, 0.9); 
    
    /* Das Ketten-Icon als direkte Vektorgrafik (kein Upload nötig!) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 45px 45px; /* Größe des Icons */
    
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 0.3s ease;
}

/* Blendet den Titel-Text radikal aus */
.referenz-item-overlay h3 {
    display: none !important;
}

/* ==========================================================================
   DER HOVER-EFFEKT
   ========================================================================== */
.referenz-item-link:hover .referenz-item {
    transform: scale(1.02); /* Minimaler, sehr edler Zoom */
}

.referenz-item-link:hover .referenz-item-overlay {
    opacity: 1; /* Overlay blendet sanft ein */
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #373f4d;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    z-index: 9999;
    font-size: 0.9rem;
}
#cookie-banner button {
    background: #fff;
    color: #373f4d;
    border: none;
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
    cursor: pointer;
    font-weight: bold;
}