/* ============================================
   E.E.S.T. Foundation - Main Stylesheet
   ============================================ */

/* --- Self-hosted Fonts (no Google connection) --- */
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist.woff2') format('woff2');
    font-weight: 500 600;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/opensans.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --color-primary: #0187E7;
    --color-primary-hover: #0070c9;
    --color-orange: #F38314;
    --color-green: #008000;
    --color-black: #000000;
    --color-text: #666666;
    --color-text-dark: #333333;
    --color-bg-light: #FAF9F5;
    --color-bg-grey: #F9F9F9;
    --color-footer: #35494c;
    --color-footer-text: #cccccc;
    --color-white: #ffffff;
    --color-border: #eeeeee;

    --font-heading: 'Urbanist', Helvetica, Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --font-button: 'Poppins', sans-serif;

    --max-width: 1200px;
    --header-height: 80px;

    --radius-pill: 40px;
    --radius-card: 12px;

    --transition: 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-black);
    line-height: 1.2;
    font-weight: 500;
}

h1 { font-size: 72px; }
h2 { font-size: 45px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px;
}

.sub-heading {
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.green-divider {
    width: 60px;
    height: 2px;
    background: var(--color-green);
    margin-bottom: 28px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background: var(--color-bg-light);
}

.bg-white {
    background: var(--color-white);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-button);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-text {
    background: none;
    color: var(--color-primary);
    padding: 14px 16px;
    font-family: var(--font-button);
    font-size: 15px;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--color-primary-hover);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-col.reverse {
    direction: rtl;
}

.two-col.reverse > * {
    direction: ltr;
}

/* --- Image Styles --- */
.rounded-img {
    border-radius: var(--radius-card);
    overflow: hidden;
}

.rounded-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stretch image to fill text block height */
.section-stretch {
    align-items: stretch;
}

.stretch-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.stretch-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-logo {
    margin-right: auto;
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-desktop > li {
    position: relative;
}

.nav-desktop > li > a {
    font-family: var(--font-button);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 10px 16px;
    display: block;
    transition: color var(--transition);
}

.nav-desktop > li > a:hover,
.nav-desktop > li > a.active {
    color: #0086e6;
}

/* Active colors for "Was machen wir?" based on subpage */
.nav-desktop > li > a.active-blue,
.nav-desktop > li > a.active-blue:hover { color: #0086e6 !important; }
.nav-desktop > li > a.active-green,
.nav-desktop > li > a.active-green:hover { color: #46a244 !important; }
.nav-desktop > li > a.active-purple,
.nav-desktop > li > a.active-purple:hover { color: #7b2fcc !important; }

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.nav-desktop > li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-button);
    font-size: 14px;
    color: var(--color-text-dark);
    transition: all var(--transition);
}

.nav-dropdown a:hover {
    background: var(--color-bg-light);
}

/* Individual dropdown hover colors */
.nav-dropdown a[href="loewenpark.html"]:hover { color: #0086e6; }
.nav-dropdown a[href="umwelt-und-natur.html"]:hover { color: #46a244; }
.nav-dropdown a[href="international.html"]:hover { color: #7b2fcc; }

/* Dropdown Arrow */
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 999;
    padding: 100px 30px 30px;
    overflow-y: auto;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile a {
    display: block;
    font-family: var(--font-button);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:hover {
    color: var(--color-primary);
}

.nav-mobile .mobile-sub {
    padding-left: 20px;
}

.nav-mobile .mobile-sub a {
    font-size: 16px;
    color: var(--color-text);
}

.nav-mobile .btn {
    margin-top: 20px;
    display: block;
    text-align: center;
}

/* Spacer for fixed header */
.header-spacer {
    height: var(--header-height);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

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

.hero h1 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.hero h2 {
    color: var(--color-white);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
    font-size: 36px;
}

.hero h3 {
    color: var(--color-white);
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 40px;
    font-size: 24px;
}

.hero-subtitle {
    font-size: 34px !important;
    letter-spacing: 4px;
}

.hero-tagline {
    font-size: 22px !important;
    letter-spacing: 3.5px;
}

.hero .btn-group {
    justify-content: center;
}

/* Page Hero (for subpages) */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 60px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.page-hero-content h1 {
    margin-bottom: 8px;
}

.page-hero {
    display: flex;
    align-items: center;
}

.page-hero-split {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
}

.page-hero-split > a {
    align-self: center;
    margin-top: 36px;
}

.btn-hero-cta {
    padding: 16px 56px;
    font-size: 22px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ============================================
   CONTENT HERO (full-width image with text overlay)
   ============================================ */
.content-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.content-hero > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.content-hero-text {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    width: 100%;
}

.content-hero-text .container {
    max-width: var(--max-width);
}

.content-hero-text p {
    max-width: 600px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
    padding: 100px 0;
}

.content-section h2 {
    margin-bottom: 16px;
}

.content-section p {
    margin-bottom: 16px;
}

/* E.E.S.T. Blurbs (Education, Environment, Sport, Tolerance) */
.eest-blurbs {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}

.eest-blurb {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.eest-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    padding: 12px;
}

.eest-icon svg {
    width: 28px;
    height: 28px;
}

.eest-blurb h3 {
    color: var(--color-black);
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 6px;
}

.eest-blurb p {
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   TEAM SECTION (Wer sind wir?)
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 48px;
}

.team-member {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    color: var(--color-black);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 2px;
}

.team-info .team-role {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #0086e6;
    font-weight: 500;
    margin-bottom: 16px;
    display: block;
}

.team-info p {
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   DONATION SECTION
   ============================================ */
.btn-donate {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-top: 24px;
}

/* Donate select dropdowns */
.donate-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--transition);
}

.donate-select:focus,
.donate-select.has-selection {
    border-color: var(--color-orange);
    outline: none;
}

/* Project Selection Radio Buttons */
.donate-projects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.donate-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.donate-radio:hover {
    border-color: var(--color-orange);
}

.donate-radio input[type="radio"] {
    accent-color: var(--color-orange);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.donate-radio input[type="radio"]:checked + span {
    color: var(--color-orange);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-footer);
    color: #ffffff;
    padding: 36px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-logo img {
    width: 77%;
    height: auto;
    margin-bottom: 8px;
    margin-top: -33px;
    margin-left: -5px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-about p {
    max-width: 280px;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    margin-top: -15px;
}

.footer-legal {
    font-size: 13px;
    line-height: 1.8;
}

.footer-legal a {
    color: #999;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.4;
}

.footer-links a {
    display: block;
    font-size: 14px;
    line-height: 2.4;
    color: #999;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact p {
    font-size: 14px;
    line-height: 2.4;
    margin-bottom: 0;
}

.footer-contact a {
    color: #999;
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-contact .btn {
    margin-top: auto;
    position: relative;
    top: -10px;
}

.btn-footer-cta {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    padding: 10px 24px;
    font-size: 15px;
}

.btn-footer-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 24px 0 20px;
}

.footer-bottom-row {
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
    align-items: start;
}

.footer-bottom-row .footer-bank {
    grid-column: 2 / 4;
}

.footer-bottom-row .footer-legal {
    min-width: 0;
}

.footer-bottom-row h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-bank p {
    font-size: 13px;
    line-height: 1.8;
}

.footer-bottom {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-content {
    padding: 60px 0 100px;
}

.legal-content h1 {
    font-size: 48px;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
}

/* ============================================
   RESPONSIVE — Tablet (768px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .container {
        padding: 0 40px;
    }

    h1 { font-size: 56px; }
    h2 { font-size: 42px; }

    .two-col {
        gap: 40px;
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 { font-size: 56px; }
    .hero h2 { font-size: 30px; }
    .hero h3 { font-size: 20px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .team-grid {
        gap: 40px;
    }

    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-photo {
        margin: 0 auto;
    }
}

/* ============================================
   RESPONSIVE — Mobile (bis 767px)
   ============================================ */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    h3 { font-size: 22px; }

    .section-padding {
        padding: 60px 0;
    }

    .content-section {
        padding: 60px 0;
    }

    /* Header Mobile */
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Mobile */
    .hero {
        min-height: 60vh;
    }

    .hero h1 { font-size: 36px; }
    .hero h2 { font-size: 22px; }
    .hero h3 { font-size: 16px; }

    .hero .btn-group {
        flex-direction: column;
        align-items: center;
    }

    /* Page Hero Mobile */
    .page-hero {
        height: auto;
        min-height: 300px;
    }

    .page-hero-content {
        padding: 0 20px;
    }

    .page-hero-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .page-hero-split > a {
        margin-top: 0;
    }

    .btn-hero-cta {
        padding: 12px 32px;
        font-size: 16px;
    }

    .page-hero-content h1 {
        font-size: 32px;
    }

    /* Content Hero Mobile */
    .content-hero {
        min-height: 40vh;
    }

    .content-hero-text {
        padding: 40px 0;
    }

    /* Two Column → Stacked */
    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .two-col.reverse {
        direction: ltr;
    }

    /* EEST Blurbs */
    .eest-blurbs {
        gap: 24px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-member {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .footer-bottom-row .footer-bank {
        grid-column: auto;
        order: 2;
    }

    .footer-bottom-row .footer-legal {
        order: 3;
    }

    .footer-bottom-row > div:last-child {
        order: 1;
    }

    /* Buttons */
    .btn-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-text {
        width: auto;
    }
}
