:root {
    --bg-color: #0B1120;
    --bg-secondary: #0F172A;
    --primary: #10B981;
    --primary-hover: #34D399;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Typography Elements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.2));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Nav (Glassmorphism) */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

#logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--primary);
}

.menu-container {
    display: flex;
    gap: 10px;
}

.MenuBar {
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.MenuBar:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.MenuBar.active {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.outline-btn {
    border: 1px solid var(--primary);
    color: var(--primary);
}

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

/* Sections Global */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
}

.page-section {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-out forwards;
}

#status {
    display: none;
}

#status.active {
    display: block;
}

/* hide other sections if status is active (handled mostly by JS but styling is good to have) */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #F8FAFC, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.glow-text {
    background: linear-gradient(135deg, #34D399 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Soften glow to make it more elegant */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Glass Card Global */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.cta-button {
    background: var(--primary);
    color: var(--bg-color);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
    z-index: 0;
    filter: blur(40px);
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 1;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Anleitung (Material Lists) */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.material-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.material-list {
    list-style: none;
}

.material-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.material-list li:last-child {
    border-bottom: none;
}

.material-list .price {
    color: var(--text-main);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.list-divider {
    font-weight: 700;
    color: var(--primary) !important;
    padding-top: 1.5rem !important;
    font-size: 1.1rem;
}

.total-cost-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.cost-highlight {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 900;
    display: block;
    margin-top: 0.5rem;
}

/* Videos */
.video-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 177.7%;
    /* 9:16 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.glass-table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary);
    padding: 1rem;
    text-align: left;
    font-family: var(--font-heading);
}

.glass-table td {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
    line-height: 1.8;
}

.glass-table td:first-child {
    width: 40%;
    min-width: 250px;
    text-align: center;
}

.img-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.glass-table img {
    max-width: 45%;
    /* Limits size so 2 can fit horizontally */
    min-width: 150px;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 8px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.glass-table img:hover {
    transform: scale(1.05);
}

.warning {
    color: #F59E0B;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

/* Status Section */
.status-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.status-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-date {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.status-description {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.status-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.team-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), #3B82F6);
    margin-bottom: 1.5rem;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
}

#davidimg {
    object-position: center 5px;
    /* David 20px weiter unten für bessere Zentrierung */
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }

    .menu-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    #header {
        height: auto;
        padding: 1rem 0;
    }

    body {
        padding-top: 140px;
    }

    main {
        padding: 1rem;
    }

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

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
    }

    .hero-img {
        max-width: 90%;
    }

    .status-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-table th,
    .glass-table td {
        padding: 1rem 0.5rem;
    }

    .glass-table img {
        max-width: 100%;
        margin: 4px 0;
    }

    .img-group {
        flex-direction: column;
    }

    .video-row {
        grid-template-columns: 1fr;
    }

    .material-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 500px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cost-highlight {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    body {
        padding-top: 160px;
    }

    /* Further adjust for mobile menu wrapping */
}