/* ===== EVB-Fondsshop – Stylesheet ===== */

/* ===== Open Sans (lokal gehostet, DSGVO-konform) ===== */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
}

:root {
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --primary: #003060;      /* Dunkelblau */
    --secondary: #454545;
    --highlight: #444444;    /* Hover */
    --heading: #000000;
    --text: #333333;
    --border: #e2e2e2;
    --max-width: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--heading);
    font-weight: 600;
    line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--highlight); }

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--highlight); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Header ===== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo img { max-height: 60px; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.header-cta {
    padding: 11px 22px;
    font-size: .95rem;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    white-space: nowrap;
}
.phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}

/* ===== Hero ===== */
/* Gemeinsames Hintergrundbild für Hero + Kontaktbereich */
.hero-band {
    position: relative;
    background: #001b38 url('../images/evb-finance-hinter.jpg') center top/cover no-repeat;
    overflow: hidden;
}
.hero-band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,27,56,.82) 0%, rgba(0,48,96,.78) 100%);
    pointer-events: none;
}
.hero {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 110px 0 70px;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    color: #fff;
    font-size: 3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-text {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: rgba(255,255,255,.9);
}

/* ===== Kontakt / CTA ===== */
.contact-cta {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 20px 0 70px;
}
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 540px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}
.cta-box {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-name {
    color: var(--secondary);
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: .95rem;
    margin-top: -14px;
    margin-bottom: 22px;
}
.cta-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,.3);
    display: block;
}
.cta-box h2 {
    color: var(--primary);
    font-size: 1.9rem;
    margin-bottom: 24px;
}
.cta-box .btn { margin: 6px 0; }
.cta-or {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    color: var(--secondary);
    margin: 18px 0 6px;
    letter-spacing: 2px;
}
.cta-lead { color: var(--secondary); margin-bottom: 12px; }
.cta-note {
    font-size: .85rem;
    color: var(--secondary);
    margin-top: 22px;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}

/* ===== Vorteile ===== */
.benefits { padding: 70px 0; background: var(--bg); }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--heading);
}
.section-subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: var(--secondary);
    margin-top: 8px;
    margin-bottom: 50px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.benefit { text-align: center; padding: 0 10px; }
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--primary);
    margin-bottom: 20px;
}
.benefit h3 { font-size: 1.35rem; color: var(--primary); }

/* ===== Video ===== */
.video-section { padding: 20px 0 80px; background: var(--bg); }
.video-section .section-title { margin-bottom: 40px; }
.accent { color: var(--primary); }

.video-wrapper {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
/* Feste 16:9-Höhe erst, wenn das Video geladen ist */
.video-wrapper.video-loaded { aspect-ratio: 16 / 9; }
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-consent {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #001b38, #003060);
    color: #fff;
}
.video-consent-inner { max-width: 480px; }
.video-consent-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 14px;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}
.video-consent-text {
    font-size: .95rem;
    color: rgba(255,255,255,.9);
    margin-bottom: 22px;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}
.video-consent-text a { color: #fff; text-decoration: underline; }
.video-consent-remember {
    display: block;
    margin-top: 16px;
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
}

/* ===== Fondsshop CTA ===== */
.fondsshop-cta {
    background: #eceff3;               /* leicht grau */
    text-align: center;
    padding: 90px 20px;               /* mehr Abstand */
}
.fondsshop-cta-inner { max-width: 720px; margin: 0 auto; }
.fondsshop-cta h2 { color: var(--primary); font-size: 2.1rem; margin-bottom: 18px; }
.fondsshop-cta p {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 36px;
}

/* ===== Footer ===== */
.site-footer { background: var(--primary); color: rgba(255,255,255,.85); }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 55px 20px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.footer-col p { font-family: Arial, Helvetica, sans-serif; font-size: .95rem; }
.footer-col a { color: rgba(255,255,255,.85); }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: #001b38; padding: 18px 0; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
}
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }

/* ===== Rechtstext-Seiten ===== */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
}
.legal h1 { font-size: 2.2rem; margin-bottom: 24px; color: var(--primary); }
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; color: var(--primary); }
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }
.back-link { display: inline-block; margin-top: 30px; }

.cookie-settings-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}
.cookie-settings-box label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1rem;
}
#cookie-status { font-style: italic; color: var(--secondary); margin-bottom: 16px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .cta-grid { grid-template-columns: minmax(0, 560px); }
    .cta-photo img { height: auto; }   /* Foto unter der Box, natürliches Quadrat */
}
@media (max-width: 640px) {
    /* Header kompakt: Logo + Telefon in einer Zeile, Fondsshop-Button ausblenden */
    .header-inner { gap: 12px; }
    .header-cta { display: none; }
    .header-phone { font-size: 1rem; gap: 8px; }
    .phone-icon { width: 34px; height: 34px; }
    .logo img { max-height: 46px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.1rem; }
    .cta-box { padding: 28px 20px; }
    .cta-box h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.7rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
