/* ===== GLOBALE VARIABLEN ===== */
:root {
    --font-primary: 'Avenir Next', 'Avenir Book', sans-serif;
    --text-color: #FFFDD0; /* Cremeweiß */
    --text-color-secondary: #DABB7B; /* Alternatives Cremeweiß */
    --background-color: #8A8A8A;
    --primary-color: #C1A78E; /* Pastell-Braun */
    --secondary-color: #D3D3D3; /* Pastell-Grau */
    --dark-blue: #2d394b; /* aus der Vorlage (für Header) */
    --light-blue: #9cc9f5; /* aus der Vorlage (für Akzente) */
}

/* ===== RESET & BASE STILES ===== */
html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.15;
    box-sizing: border-box;
}

html *, html :after, html :before {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    background-color: initial;
    touch-action: manipulation;
}

img {
    border-style: none;
    vertical-align: middle;
}

/* ===== HEADER ===== */
header {
    background-color: var(--dark-blue); /* aus der Vorlage */
    padding: 10px 70px 10px 30px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
}

header nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
}

.main-nav li a {
    color: var(--light-blue); /* aus der Vorlage */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.main-nav li a:hover {
    opacity: 0.8;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    margin: 0;
}

/* ===== BUTTONS ===== */
.button, .btn {
    font-family: var(--font-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s, background-color 0.3s;
    display: inline-block;
}

.button.bluesky, .btn-bluesky {
    background-color: #0288D1;
    color: white;
}

.button.bluesky:hover, .btn-bluesky:hover {
    opacity: 0.9;
}

.button.in-depth, .btn-in-depth, .btn-metavers {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.button.in-depth:hover, .btn-in-depth:hover, .btn-metavers:hover {
    background-color: #C0C0C0;
}

/* ===== SECTIONS ===== */
.landing-section {
    width: 100%;
    min-height: 100vh;
    padding: 4rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.landing-section > div {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.landing-section h1,
.landing-section h2,
.landing-section p {
    color: var(--text-color);
    font-family: var(--font-primary);
}

.landing-section h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.landing-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.landing-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== VIDEO-HINTERGRUND (für Metavers) ===== */
#metavers {
    position: relative;
    background-color: #000; /* Fallback */
}

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

#metavers .landing-section > div {
    position: relative;
    z-index: 1;
}

/* ===== PORTFOLIO-GRID (für Platzhalter) ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: var(--text-color);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

/* ===== BLOG & VLOG POSTS ===== */
.blog-posts, .vlog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-post, .vlog-post {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.blog-post h3, .vlog-post h3 {
    color: var(--text-color);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE DESIGN (aus der Vorlage) ===== */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .landing-section {
        padding: 2rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}