:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f3ff;
    --accent-secondary: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Spline Background */
.spline-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Or 100vw */
    height: 100vh;
    z-index: -1;
    overflow: hidden; /* CRITICAL: Cut off the logo */
    background: #000;
}

spline-viewer {
    width: 130%; /* Increased to hide watermark */
    height: 130%; 
    margin-left: -15%; /* Adjust centering */
    margin-top: -15%; 
}

/* Mobile 3D adjustments */
@media (max-width: 768px) {
    spline-viewer {
        /* Make the scene visually 'smaller' or 'zoomed out' so "Aurora Studios" fits */
        /* Web Component supports zoom attribute but transform scale is more reliable for pure CSS */
        transform: scale(0.6); 
    }
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: flex-end; /* Align to bottom */
    padding-bottom: 5rem; /* Space from bottom */
    position: relative;
    z-index: 10;
}

.hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Fixed Positioning Change */
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* Background Blending Fix */
/* Adds a black gradient at the top to hide any gray edges of the 3D scene */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh; /* Cover top area */
    background: linear-gradient(to bottom, #000 0%, transparent 100%);
    z-index: -1; /* Behind content but in front of spline if careful, or adjust z-index of spline */
    pointer-events: none;
}

/* Ensure spline container background is black to fallback */
.spline-container {
    background: #000;
}

/* Buttons */
.primary-btn, .secondary-btn {
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.primary-btn {
    background: white;
    color: black;
}

.primary-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}




/* Starry Background Animation */
/* Starry Background Animation */
@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Generate stars using box-shadow for performance */
.stars {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        10vw 10vh #fff, 20vw 20vh #fff, 30vw 5vh #fff, 40vw 30vh #fff, 
        50vw 80vh #fff, 60vw 10vh #fff, 70vw 50vh #fff, 80vw 20vh #fff,
        90vw 90vh #fff, 15vw 60vh #fff, 25vw 90vh #fff, 35vw 40vh #fff,
        45vw 10vh #fff, 55vw 50vh #fff, 65vw 80vh #fff, 75vw 10vh #fff,
        85vw 30vh #fff, 95vw 70vh #fff, 5vw 30vh #fff, 12vw 85vh #fff;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

.stars::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        5vw 5vh #fff, 15vw 15vh #fff, 25vw 25vh #fff, 35vw 35vh #fff,
        45vw 45vh #fff, 55vw 55vh #fff, 65vw 65vh #fff, 75vw 75vh #fff,
        85vw 85vh #fff, 95vw 95vh #fff, 10vw 90vh #fff, 20vw 80vh #fff,
        30vw 70vh #fff, 40vw 60vh #fff, 50vw 50vh #fff, 60vw 40vh #fff,
        70vw 30vh #fff, 80vw 20vh #fff, 90vw 10vh #fff, 60vw 5vh #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out reverse;
}

.stars-2 {
    width: 3px;
    height: 3px;
    box-shadow: 
        12vw 12vh #fff, 34vw 56vh #fff, 78vw 23vh #fff, 45vw 89vh #fff;
    animation: twinkle 5s infinite ease-in-out 1s;
    opacity: 0.7;
}

/* Subpage Layout & Background Restoration */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000; /* Changed to pure black as requested */
    z-index: -2;
}

.page-content {
    /* Dramatically increased top padding as requested ("tief alles") */
    padding-top: 250px; 
    min-height: 100vh;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.01); /* Reduced opacity for more 'liquid' feel */
    backdrop-filter: blur(30px); /* Increased blur */
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* More subtle border */
    border-radius: 30px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.glass-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white; /* Pure white */
    background: none;
    -webkit-text-fill-color: white;
}

.glass-panel h3 {
    margin-bottom: 0.5rem;
    color: white; /* Pure white */
}

.glass-panel p {
    color: white; /* Pure white */
    line-height: 1.6;
}

/* Liquid Glass Bubble */
.liquid-bubble {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px; 
    padding: 2rem 3rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.liquid-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}

.liquid-bubble p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white; /* Changed to pure white */
}

/* Reference Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ref-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.ref-img-container {
    width: 100%;
    height: 450px; /* Increased for portrait (Hochformat) */
    overflow: hidden;
}

.ref-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Show top of website */
    transition: transform 0.5s ease;
}

.ref-card:hover .ref-img {
    transform: scale(1.05);
}

.ref-content {
    padding: 1.5rem;
}

.ref-content h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.ref-content p {
    font-size: 0.9rem;
    color: white; /* Changed to pure white */
}

/* Mobile Responsiveness (Restored) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
        width: 90%;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }

    .glass-panel h1 {
        font-size: 2rem;
    }

    .services-section {
        padding: 4rem 0;
    }
    
    .services-section h2 {
        font-size: 2rem;
    }
}

/* Services Section - Content below fold */
.services-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, #000 30%); /* Fade into black */
    backdrop-filter: blur(10px); /* Slight blur to make text readable over 3D bg if it scrolls */
    min-height: 100vh;
}

.services-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Login & Register Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.auth-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.auth-form-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-align: center;
}

.auth-form-wrapper p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form-wrapper a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-form-wrapper a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    color: black;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #51cf66;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .auth-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .auth-form-wrapper h1 {
        font-size: 1.75rem;
    }
}

/* Admin */
.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.admin-subtitle {
    color: rgba(255,255,255,0.7);
}

.admin-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.9rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: middle;
}

.admin-table th {
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.2px;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.admin-pill {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.4rem;
    border: 1px solid rgba(255,255,255,0.12);
}

.admin-pill-admin {
    color: #00f3ff;
    border-color: rgba(0, 243, 255, 0.35);
    background: rgba(0, 243, 255, 0.08);
}

.admin-pill-user {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.06);
}

.admin-pill-me {
    color: #bd00ff;
    border-color: rgba(189, 0, 255, 0.35);
    background: rgba(189, 0, 255, 0.08);
}

.admin-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-inline-form {
    display: inline;
}

.admin-btn {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: white;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.admin-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
}

.admin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.admin-btn-secondary:hover {
    border-color: rgba(0, 243, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.18);
}

.admin-btn-danger {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 0, 0, 0.08);
}

.admin-btn-danger:hover {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.18);
}

/* Admin Checkbox */
.admin-checkbox-form {
    display: inline-block;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.admin-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-color);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.25s ease;
}

.admin-checkbox:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.admin-checkbox:hover:not(:disabled) {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}

.admin-checkbox:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-checkbox-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}