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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e27;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 80% 10%, #fff, transparent),
        radial-gradient(2px 2px at 90% 40%, #fff, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.3;
    animation: stars 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes stars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(120, 119, 198, 0.3);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #7877c6;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.nav-tabs {
    display: flex;
    gap: 10px;
}

.nav-tab-btn {
    padding: 10px 20px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    background: transparent;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.nav-tab-btn:hover {
    color: #7877c6;
    border-color: rgba(120, 119, 198, 0.6);
    background: rgba(120, 119, 198, 0.1);
}

.nav-tab-btn.active {
    color: #7877c6;
    border-color: #7877c6;
    background: rgba(120, 119, 198, 0.2);
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

/* Content Sections */
.content-section {
    display: none;
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.content-section.active {
    display: block;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: #7877c6;
    text-shadow: 
        0 0 20px rgba(120, 119, 198, 0.5),
        0 0 40px rgba(120, 119, 198, 0.3);
    letter-spacing: 8px;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 20px rgba(120, 119, 198, 0.5),
            0 0 40px rgba(120, 119, 198, 0.3);
    }
    to {
        text-shadow: 
            0 0 30px rgba(120, 119, 198, 0.8),
            0 0 60px rgba(120, 119, 198, 0.5),
            0 0 80px rgba(120, 119, 198, 0.3);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hero-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7877c6, transparent);
    margin: 30px auto;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    max-width: 600px;
    margin: 0 auto;
}

/* Info Container */
.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(120, 119, 198, 0.6);
    box-shadow: 0 10px 30px rgba(120, 119, 198, 0.2);
    background: rgba(26, 31, 58, 0.8);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #7877c6;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.info-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

.join-section {
    text-align: center;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 12px;
    padding: 50px 30px;
    backdrop-filter: blur(10px);
}

.join-section h2 {
    color: #7877c6;
    font-size: 2rem;
    margin-bottom: 20px;
}

.join-section p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Container für Anmeldeseite */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #7877c6;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #b0b0b0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #7877c6;
    border-bottom-color: #7877c6;
    font-weight: 600;
}

.tab-btn:hover {
    color: #7877c6;
}

/* Formulare */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d0d0d0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: rgba(10, 14, 39, 0.5);
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7877c6;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #7877c6 0%, #5a59a0 100%);
    color: white;
    border: 1px solid rgba(120, 119, 198, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(120, 119, 198, 0.5);
    background: linear-gradient(135deg, #8a89d6 0%, #6a69b0 100%);
}

.btn-secondary {
    background: rgba(26, 31, 58, 0.6);
    color: #d0d0d0;
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.btn-secondary:hover {
    background: rgba(26, 31, 58, 0.8);
    border-color: rgba(120, 119, 198, 0.5);
}

.btn-danger {
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
    width: auto;
}

.btn-danger:hover {
    background: #ff3838;
}

/* Messages */
.error-message {
    color: #ff4757;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #2ed573;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* App Container */
.app-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.app-header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    color: #667eea;
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #666;
    font-weight: 500;
}

.app-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Create Entry Section */
.create-entry-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.create-entry-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.entry-form {
    max-width: 600px;
}

/* Entries Section */
.entries-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.entries-container {
    display: grid;
    gap: 20px;
}

.entry-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.entry-author {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

.entry-date {
    color: #999;
    font-size: 0.85rem;
}

.entry-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }

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

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

    .auth-box {
        padding: 30px 20px;
    }

    .app-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .app-main {
        padding: 20px 15px;
    }

    .create-entry-section {
        padding: 20px;
    }
}

