/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors */
    --primary-color: #4a4a4a;
    --text-dark: #2b2b2b;
    --text-light: #5a5a5a;
    --text-muted: #7a7a7a;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-alt: #f5f5f5;
    --border-color: #e5e5e5;
    --link-color: #3899ec;

    /* Typography - Damion for headings, Avenir for body */
    --font-heading: 'Damion', cursive;
    --font-body: 'avenir-lt-w01_35-light1475496', 'avenir-lt-w05_35-light', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3.5rem;
    --spacing-xxl: 5rem;

    /* Layout */
    --container-width: 1400px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 300;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* ===================================
   Layout
   =================================== */
.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
    font-size: 56px;
}

.centered-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content p {
    font-size: 20px;
    line-height: 1.7;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

/* ===================================
   Navigation - Narrower, Transparent
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: var(--spacing-xs) 0;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    justify-content: center;
}

.nav-link {
    padding: var(--spacing-xs);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--link-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* ===================================
   Hero - Logo Top-Left with Slogan Below
   =================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-image: url('assets/banner.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 45px;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    z-index: 1;
}

.hero-logo {
    text-align: left;
}

.hero-logo img {
    width: 600px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-slogan {
    font-family: var(--font-body);
    font-style: normal;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--bg-alt);
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===================================
   Content Images - Parallax Effect
   =================================== */
.content-text p {
    font-size: 20px;
    line-height: 1.7;
}

.content-image {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 500px;
    background-size: 130%;
    background-position: center center;
    background-repeat: no-repeat;
}

.content-image img {
    display: none;
}

/* ===================================
   Finanzen - Image Left (1/3), Content Right (2/3)
   =================================== */
.finanzen-layout {
    grid-template-columns: 1fr 2fr;
}

.finanzen-content p {
    font-size: 20px;
    line-height: 1.7;
}

.bank-info {
    padding: 0;
    margin: var(--spacing-md) 0;
}

.bank-info p {
    margin-bottom: var(--spacing-sm);
}

.btn-download {
    display: inline-block;
    background-color: var(--link-color);
    color: var(--bg-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    font-weight: 400;
    transition: opacity var(--transition-fast);
}

.btn-download:hover {
    opacity: 0.9;
}

.twint-text {
    font-style: italic;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.qr-code-container {
    text-align: left;
    margin: var(--spacing-lg) 0;
}

.qr-code-image {
    max-width: 200px;
    margin: 0;
    border-radius: 4px;
}

/* ===================================
   Kontakt
   =================================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 800px;
}

.contact-block h3 {
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 400;
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.contact-block p {
    line-height: 1.7;
}

.email-link {
    color: var(--link-color);
    font-weight: 400;
}

.map-container {
    border-radius: 4px;
    overflow: hidden;
    height: 600px;
}

#map {
    width: 100%;
    height: 100%;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-content p {
    color: var(--bg-white);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-links a {
    color: var(--bg-white);
}

.footer-links span {
    color: var(--bg-white);
    opacity: 0.5;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 968px) {

    .two-column,
    .finanzen-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .content-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--spacing-xs) 0;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .nav-menu {
        position: fixed;
        top: 45px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        margin-top: 45px;
        padding: var(--spacing-md);
    }

    .hero-slogan {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

@media (max-width: 480px) {
    .qr-code-image {
        max-width: 100%;
    }

    .hero-logo img {
        width: 100%;
    }
}