/* ============================================================
   ZENTRALE STYLESHEET SGN - 2026
   ============================================================ */

/* 1. FONTS & ROOT */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); /* <- Hier das / vor fonts entfernt */
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-display-v40-latin-italic.woff2') format('woff2'); /* <- Hier auch */
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2'); /* <- Und hier */
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --sgn-blue: #1A365D;
    --soft-clay: #B06145;
    --sand-bg: #F3ECE4;
    --gold-accent: #E0B05C;
    --white: #FFFFFF;
    --text-main: #333333;
    --header-height: 80px; 
}

/* 2. BASIS & TYPOGRAFIE */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--sand-bg);
    margin: 0; padding: 0;
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    color: var(--sgn-blue); 
    font-weight: 700;
}

/* Globaler Style für Labels, Buttons und Namen (Uppercase) */
.nav-links a, 
.btn-toggle-summary, 
.label, 
.member-name, 
.member-role, 
.trustee-name, 
.footer-links a,
.subtitle,
.location-label {
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
}

/* 3. LAYOUT KOMPONENTEN */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

header {
    background: var(--white);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 2000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--header-height);
}

nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { max-height: 55px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
    color: var(--sgn-blue);
    text-decoration: none;
    margin-left: 20px; font-size: 0.75rem;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--soft-clay); }

/* 4. SEKTIONEN & SCROLL-FIX */

section { 
    padding: 80px 0; 
    border-bottom: 1px solid rgba(176, 97, 69, 0.1);
}

/* Der Fix für den Sticky Header */
section[id] {
    scroll-margin-top: 120px; /* Puffer für Desktop */
}

.section-title { 
    font-size: 1.8rem; 
    margin-bottom: 30px; 
    text-align: center; 
    margin-top: 0; 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 2px; 
    background: var(--soft-clay); 
    margin: 10px auto; 
}

/* Höherer Puffer auf Mobile, wenn das Menü mehrzeilig wird */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 160px; 
    }
}
/* 5. HERO BEREICH */
.hero {
    position: relative; height: 400px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: var(--sgn-blue) url('hero-sgn.jpg') center/cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 54, 93, 0.4); z-index: 1;
}
.hero h1 {
    position: relative; z-index: 2; font-size: 3.8rem; font-style: italic;
    font-weight: 700; 
    color: var(--sand-bg); text-shadow: 2px 2px 15px rgba(0,0,0,0.5); margin: 0;
}

/* 6. PARTNER LOGOS & LOCATIONS */
.sun-partner-link { display: block; text-decoration: none; max-width: 450px; margin: 40px auto; }
.sun-partner-box {
    background: var(--white); padding: 40px; text-align: center;
    border: 1px solid rgba(224, 176, 92, 0.4);
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.05); transition: 0.3s ease;
}
.sun-partner-box:hover {
    transform: translateY(-5px); box-shadow: 0 15px 35px rgba(26, 54, 93, 0.1);
    border-color: var(--gold-accent);
}
.sun-logo-img { max-width: 100%; height: auto; max-height: 100px; display: block; margin: 0 auto; }

.partners-tier-1, .partners-tier-2 { display: flex; justify-content: center; align-items: flex-start; gap: 80px; margin-bottom: 50px; }
.partners-tier-2 { gap: 60px; flex-wrap: wrap; }

.partner-wrapper { text-align: center; display: flex; flex-direction: column; align-items: center; }
.partner-logo-link { display: inline-block; text-decoration: none; }
.partner-logo-img {
    width: auto; object-fit: contain; filter: grayscale(100%) opacity(70%);
    transition: 0.4s ease; display: block;
}
.partner-logo-link:hover .partner-logo-img { filter: grayscale(0%) opacity(100%); }
.logo-large { max-height: 85px; }
.logo-standard { max-height: 50px; }

.location-label {
    display: block; font-size: 0.65rem; color: var(--soft-clay);
    margin-top: 12px; letter-spacing: 1px; opacity: 0.8;
}

/* 7. GOVERNANCE BEREICH */
#governance {
    background-color: var(--sgn-blue); color: var(--white);
    border-bottom: none; text-align: center;
}
.gov-intro-text {
    max-width: 850px; margin: 0 auto 50px; text-align: center;
    color: var(--sand-bg); opacity: 0.9; line-height: 1.8; font-size: 1.05rem;
}
.gov-headline { font-size: 2.2rem; color: var(--gold-accent); font-style: italic; margin-bottom: 50px; }

.vorstand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; text-align: left; margin-bottom: 40px; }
.member-name { font-size: 1.3rem; margin-bottom: 5px; color: var(--white); }
.member-role { color: var(--soft-clay); font-size: 0.85rem; margin-bottom: 15px; display: block; }
.member-bio { font-size: 1.05rem; color: var(--sand-bg); opacity: 0.9; margin-bottom: 10px; }

.member-details { margin-top: 10px; text-align: left; }
.btn-toggle-summary {
    display: inline-block; border: 2px solid var(--soft-clay); color: var(--soft-clay); padding: 10px 22px;
    cursor: pointer; font-size: 0.8rem; transition: 0.3s; outline: none; list-style: none; text-decoration: none;
}
.btn-toggle-summary::-webkit-details-marker { display: none; }
.btn-toggle-summary:hover, details[open] > .btn-toggle-summary { background: var(--soft-clay); color: white; }

.expanded-bio { padding: 20px 0; font-size: 0.95rem; line-height: 1.6; color: var(--sand-bg); opacity: 0.9; }

.fold-out-content {
    background: rgba(255, 255, 255, 0.6); padding: 30px; margin-top: 25px; 
    border-left: 4px solid var(--soft-clay); text-align: left;
    color: var(--text-main); font-size: 1.05rem; line-height: 1.7;
}

.gov-divider { position: relative; height: 1px; background: rgba(255, 255, 255, 0.2); margin: 60px 0; width: 100%; }
.gov-divider::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 35px; height: 14px; background-color: var(--soft-clay); }

.kuratorium-rows { display: flex; flex-direction: column; gap: 50px; align-items: center; }
.trustee-row { display: flex; justify-content: center; gap: 60px; width: 100%; }
.trustee-item { flex: 0 1 280px; text-align: center; }
.trustee-name { font-size: 1.1rem; color: var(--white); margin-bottom: 5px; }
.trustee-bio { font-size: 0.85rem; color: var(--sand-bg); opacity: 0.7; line-height: 1.4; }

/* 8. KONTAKT BEREICH */
#kontakt { background-color: var(--sand-bg); padding: 80px 0 120px; border-bottom: none; }
.contact-box {
    background: var(--white); max-width: 550px; margin: 0 auto; padding: 50px; text-align: center;
    border: 1px solid var(--gold-accent); box-shadow: 0 15px 35px rgba(26, 54, 93, 0.05); position: relative;
}
.contact-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--sgn-blue); }
.contact-box h2 { font-size: 2.2rem; color: var(--sgn-blue); margin-top: 0; margin-bottom: 30px; font-style: italic; text-transform: none; letter-spacing: 0; }
.contact-details { font-size: 1.1rem; line-height: 1.8; color: var(--text-main); }
.contact-details strong { color: var(--soft-clay); display: block; margin-top: 30px; margin-bottom: 10px; font-size: 0.8rem; letter-spacing: 1.5px; font-family: 'Georgia', serif; text-transform: uppercase; font-weight: bold; }
.contact-details a { color: var(--sgn-blue); text-decoration: none; font-weight: bold; transition: 0.3s; }
.contact-details a:hover { color: var(--soft-clay); }

/* 9. FOOTER */
footer { background: var(--sgn-blue); color: white; padding: 50px 0; text-align: center; font-size: 0.8rem; }
.footer-links a { color: var(--gold-accent); margin: 0 10px; text-decoration: none; }

/* 10. LANGUAGE SWITCH */
.lang-switch {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px solid rgba(26, 54, 93, 0.2);
}
.lang-switch a {
    font-weight: bold;
    color: var(--soft-clay) !important;
    opacity: 0.8;
}
.lang-switch a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 11. RESPONSIVE (MOBILE ANSICHT) */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    header { height: auto; padding: 15px 0; }
    nav { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .nav-links a { margin: 5px 10px; font-size: 0.75rem; }
    .hero h1 { font-size: 2.2rem; padding: 0 10px; }
    .section-title { font-size: 1.5rem; }
    .vorstand-grid { grid-template-columns: 1fr; gap: 40px; }
    .partners-tier-1, .partners-tier-2 { flex-direction: column; gap: 40px; align-items: center; }
    .logo-large, .logo-standard { max-height: 45px; }
    .trustee-row { flex-direction: column; gap: 30px; }
    .trustee-item { flex: 1 1 auto; }
    .contact-box { padding: 30px 20px; }
    .contact-box h2 { font-size: 1.8rem; }
}

/* ============================================================
   12. UNTERSEITEN (Historie, Datenschutz, Impressum)
   ============================================================ */

/* Page Header (Standard für Datenschutz & Impressum) */
.page-header {
    padding: 60px 0 40px;
    background: transparent; /* Kein Verlauf */
    text-align: left;
}

/* Zusatz-Klasse für die Historie */
.page-header.with-gradient {
    padding: 80px 0 40px;
    background: linear-gradient(to bottom, var(--white), var(--sand-bg));
}
.page-header h1 { font-size: 3.2rem; margin: 0; line-height: 1.2; font-style: italic; font-weight: 700; }
.page-header .subtitle { 
    display: block; margin-bottom: 15px; color: var(--soft-clay); font-size: 0.85rem;
}

/* Layout: Main Text & Sidebar (Historie) */
.content-wrapper {
    display: grid; grid-template-columns: 1fr 350px; gap: 60px; padding: 40px 0 100px;
}
article p, .legal-content p, .legal-content li { 
    font-size: 1.1rem; margin-bottom: 30px; line-height: 1.8; 
}
article a, .legal-content a { 
    color: var(--sgn-blue); text-decoration: none; font-weight: bold; 
    border-bottom: 1px solid var(--soft-clay); transition: 0.3s; 
}
article a:hover, .legal-content a:hover { color: var(--soft-clay); }

/* Fact-Sheet Sidebar (Historie) */
.fact-sheet {
    background: var(--white); padding: 40px; border: 1px solid var(--gold-accent);
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.05); height: fit-content;
    position: sticky; top: 100px;
}
.fact-sheet::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--sgn-blue);
}
.fact-sheet h3 { 
    font-size: 1.6rem; border-bottom: 1px solid var(--sand-bg); 
    padding-bottom: 15px; margin-bottom: 30px; font-style: italic; 
    letter-spacing: 0; text-transform: none; 
}
.fact-item { margin-bottom: 25px; font-family: 'Georgia', serif; font-size: 0.95rem; line-height: 1.6; }
.fact-item .label { display: block; color: var(--soft-clay); font-size: 0.75rem; margin-bottom: 5px; }

.milestones { list-style: none; padding: 0; margin: 0; }
.milestones li { margin-bottom: 15px; padding-left: 20px; position: relative; border-left: 2px solid var(--gold-accent); }
.milestones li strong { display: block; color: var(--sgn-blue); font-size: 0.85rem; margin-bottom: 3px; }

/* Legal Content Box (Datenschutz & Impressum) */
.legal-content {
    background: var(--white); padding: 60px; border: 1px solid var(--gold-accent);
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.05); margin-bottom: 100px; position: relative;
}
.legal-content::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--sgn-blue);
}
.legal-content h2 { 
    font-size: 1.8rem; margin-top: 40px; margin-bottom: 20px; 
    border-bottom: 1px solid var(--sand-bg); padding-bottom: 10px; 
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { color: var(--soft-clay); font-size: 1rem; margin-top: 30px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; }

/* Mobile Anpassungen für die Unterseiten */
@media (max-width: 768px) {
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 2.2rem; }
    .content-wrapper { grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }
    .fact-sheet { position: static; padding: 30px 20px; box-shadow: 0 10px 20px rgba(26, 54, 93, 0.05); }
    .legal-content { padding: 40px 20px; }
}