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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #87CEEB 100%);
    min-height: 100vh;
}

/* Header */
.header-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Login Box im Header */
.login-box {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-fields {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #87CEEB;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.remember-box input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-password {
    font-size: 12px;
    color: #0066cc;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    padding: 8px 20px;
    background: #87CEEB;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    align-self: center;
}

.login-btn:hover {
    background: #6BB6D6;
}

/* Welcome Box (eingeloggt) */
.welcome-box {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.welcome-text {
    font-size: 16px;
    color: #003366;
    margin-bottom: 8px;
    font-weight: bold;
}

.logout-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    text-decoration: underline;
}

.error-message {
    color: #cc0000;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 5px;
    background: #ffe6e6;
    border-radius: 4px;
}

/* Navigation mit UL/LI Support */
.navigation {
    background: #003366;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
    color: #FFD700;
}

.hamburger-btn:focus {
    outline: none;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links li a {
    color: #87CEEB;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: #004080;
    color: white;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Mehr Abstand im ausgeloggten Bereich */
body:not(.logged-in) .main-container {
    margin-top: 60px;
}

.content-wrapper {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    width: 100%;
    min-height: 500px; /* Mindesthöhe für den weißen Container */
}

/* Clearfix für gefloatete Elemente */
.content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Welcome Section */
.welcome-section {
    float: left;
    width: 48%;
    padding-right: 20px;
}

.welcome-section h1 {
    color: #003366;
    font-size: 28px;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.benefits-list li:before {
    content: "•";
    color: #87CEEB;
    font-size: 24px;
    position: absolute;
    left: 0;
}

/* Register Section */
.register-section {
    float: right;
    width: 48%;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #87CEEB;
}

.register-section h2 {
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.error-box {
    background: #ffe6e6;
    border: 1px solid #cc0000;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-box p {
    color: #cc0000;
    font-size: 14px;
    margin: 5px 0;
}

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

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #87CEEB;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="file"] {
    padding: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
}

.checkbox-group label {
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-group a {
    color: #0066cc;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 12px;
    background: #FFD700;
    color: #003366;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Logged in content */
.logged-in-content {
    padding: 20px 0;
}

.logged-in-content h1 {
    color: #003366;
    margin-bottom: 30px;
}

.logged-in-content p {
    color: #666;
    font-size: 16px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: #f8f9fa;
    border: 2px solid #87CEEB;
    border-radius: 8px;
    padding: 20px;
}

.dashboard-card h2 {
    color: #003366;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Schnellaktionen */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #87CEEB;
    border-radius: 6px;
    text-decoration: none;
    color: #003366;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #87CEEB;
    color: white;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.action-btn span:last-child {
    font-size: 13px;
    text-align: center;
}

/* Aktivitäten */
.activities {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
}

.activity-icon {
    font-size: 24px;
    min-width: 30px;
}

.activity-content {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.activity-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border: 1px solid #87CEEB;
    border-radius: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 13px;
}

/* Online Status Styles */
.online-status {
    position: relative;
    display: inline-block;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10B981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.online-indicator.offline {
    background-color: #9CA3AF;
}

.user-card .online-status .online-indicator {
    width: 14px;
    height: 14px;
    bottom: 5px;
    right: 5px;
}

/* Message Notification Banner */
.message-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #87CEEB;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    max-width: 500px;
    width: 90%;
    text-align: center;
    font-weight: 500;
}

.message-notification a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* FOOTER STYLES - Desktop zuerst */
.site-footer {
    background: #003366;
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #87CEEB;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer-copyright {
    color: #87CEEB;
    font-size: 13px;
    opacity: 0.8;
}

/* Legal Pages Styling */
.legal-page {
    line-height: 1.8;
}

.legal-page h1 {
    color: #003366;
    margin-bottom: 30px;
    font-size: 28px;
}

.legal-page h2 {
    color: #003366;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #87CEEB;
    padding-bottom: 8px;
}

.legal-page h3 {
    color: #004080;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.legal-page p {
    margin-bottom: 15px;
    color: #333;
}

.legal-page ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-page ul li {
    margin-bottom: 8px;
    color: #333;
}

.legal-page a {
    color: #0066cc;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-update {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-style: italic;
}

/* Tablet (max 768px) */
@media (max-width: 768px) {
    /* Header */
    .header-image {
        max-height: 120px;
        height: auto;
        object-fit: contain;
    }
    
    .login-box {
        position: static;
        transform: none;
        margin: 10px;
        padding: 12px;
        width: calc(100% - 20px);
    }
    
    .login-fields {
        flex-direction: column;
        gap: 8px;
    }
    
    .login-field {
        width: 100%;
    }
    
    .login-box input[type="email"],
    .login-box input[type="password"] {
        width: 100%;
        font-size: 16px;
    }
    
    .login-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .remember-box {
        font-size: 13px;
    }
    
    /* Welcome Box */
    .welcome-box {
        position: static;
        transform: none;
        margin: 10px;
        text-align: center;
        padding: 10px 15px;
        width: calc(100% - 20px);
    }
    
    .welcome-text {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .logout-link {
        font-size: 12px;
        display: inline-block;
        margin-top: 5px;
    }
    
    /* Navigation mit Hamburger Menu */
    .navigation {
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }
    
    .hamburger-btn {
        display: block !important;
        position: absolute;
        top: 10px;
        right: 10px;
        transform: none;
        z-index: 1002;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        background: #003366;
        padding-top: 0;
    }
    
    .nav-links.open {
        max-height: 500px;
        padding-top: 50px;
        padding-bottom: 10px;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links li a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Main Container */
    .main-container {
        padding: 15px 10px;
        margin: 15px auto;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    /* Login/Register Sections */
    .welcome-section,
    .register-section {
        float: none;
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .register-section {
        padding: 20px;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .benefits-list li {
        font-size: 14px;
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card h2 {
        font-size: 16px;
    }
    
    /* Quick Actions */
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .action-btn {
        padding: 12px 8px;
    }
    
    .action-icon {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .action-btn span:last-child {
        font-size: 11px;
    }
    
    /* Activities */
    .activities {
        max-height: 300px;
    }
    
    .activity-item {
        padding: 10px;
        gap: 10px;
    }
    
    .activity-icon {
        font-size: 20px;
    }
    
    .activity-content {
        font-size: 13px;
    }
    
    .activity-time {
        font-size: 11px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }

    /* Mobile Footer */
    .site-footer {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 5px 10px;
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .legal-page h1 {
        font-size: 24px;
    }
    
    .legal-page h2 {
        font-size: 18px;
    }

    /* Message Notification */
    .message-notification {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .header-image {
        max-height: 80px;
        height: auto;
        object-fit: contain;
    }
    
    .login-box {
        margin: 8px;
        padding: 10px;
        width: calc(100% - 16px);
    }
    
    .login-box input[type="email"],
    .login-box input[type="password"] {
        padding: 10px;
        font-size: 16px;
    }
    
    .login-btn {
        padding: 10px;
        font-size: 15px;
    }
    
    .remember-box,
    .forgot-password {
        font-size: 12px;
    }
    
    .welcome-box {
        margin: 8px;
        padding: 8px 12px;
        width: calc(100% - 16px);
    }
    
    .welcome-text {
        font-size: 12px;
    }
    
    .logout-link {
        font-size: 11px;
    }
    
    .hamburger-btn {
        font-size: 26px;
        padding: 8px 12px;
    }
    
    .nav-links li a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .main-container {
        padding: 10px 5px;
    }
    
    .content-wrapper {
        padding: 15px 10px;
    }
    
    .content-wrapper h1 {
        font-size: 20px;
    }
    
    .dashboard-card h2 {
        font-size: 15px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .action-icon {
        font-size: 24px;
    }
    
    .action-btn span:last-child {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        margin: 0;
    }

    .message-notification {
        padding: 10px 15px;
        font-size: 13px;
    }
}
/* Community Stats Box für ausgeloggte Besucher */
.community-stats-box {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
/* Community Stats Box für ausgeloggte Besucher - GRÖSSERE VERSION */
.community-stats-box {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.community-stats-box h3 {
    color: #003366;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.stat-mini {
    background: white;
    border-radius: 12px;
    padding: 35px 18px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-mini:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-mini-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.stat-mini-number {
    font-size: 48px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-mini-label {
    font-size: 15px;
    color: #666;
    font-weight: 600;
    word-wrap: break-word;
    hyphens: auto;
}

.community-stats-box > p {
    text-align: center;
    color: #003366;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive für Mobile */
@media (max-width: 768px) {
    .community-stats-box {
        padding: 30px 20px;
    }
    
    .community-stats-box h3 {
        font-size: 24px;
    }
    
    .stats-grid-mini {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-mini {
        padding: 25px 20px;
    }
    
    .stat-mini-icon {
        font-size: 44px;
    }
    
    .stat-mini-number {
        font-size: 36px;
    }
    
    .stat-mini-label {
        font-size: 16px;
    }
}
