/* ========== KRITISCHES CSS FÜR SOFORTIGE DARSTELLUNG ========== */
/* Globale Scroll-Verhinderung */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Basis Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Basis Heading-Styles - ohne Duplikate */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* App Download Buttons im Hero */
.app-download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    width: 100%;
}

.app-download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.android-btn {
    background: linear-gradient(135deg, #3ddc84, #2bb673);
    color: white;
}

.android-btn:hover {
    background: linear-gradient(135deg, #2bb673, #1e8e5a);
    color: white;
}

.ios-btn {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
}

.ios-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    color: white;
}

.app-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

.apple-logo {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Macht das Logo weiß */
}

.apple-badge {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    display: block;
}

.apple-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* iOS Button ohne Hintergrund für Badge */
.ios-btn.app-download-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: auto !important;
}

.ios-btn.app-download-btn:hover {
    background: transparent !important;
    transform: translateY(-2px);
}

.app-info {
    text-align: left;
}

.app-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.app-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* Kritische Hero-Styles für sofortige Darstellung */
.hero {
    padding: 80px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* SPEZIFISCHE BUTTON-STYLES - Jeder Button separat */
/* Hero Action Buttons */
.hero-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    background: transparent;
    color: white;
}

/* CTA Section Buttons */
.cta-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    background: transparent;
    color: white;
}

/* Safety Section Buttons */
.safety-cta .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    min-width: 160px;
    background: transparent;
    color: #667eea;
}

/* Button Focus States für Accessibility */
.hero-actions .btn-primary:focus,
.hero-actions .btn-outline:focus,
.cta-actions .btn-primary:focus,
.cta-actions .btn-outline:focus,
.safety-cta .btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Button Active States */
.hero-actions .btn-primary:active,
.hero-actions .btn-outline:active,
.cta-actions .btn-primary:active,
.cta-actions .btn-outline:active,
.safety-cta .btn-outline:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ========== SECTIONS ========== */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.about {
    padding: 80px 0;
}

.cta-section {
    padding: 80px 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.footer {
    padding: 60px 0 30px;
    background: #2d3748;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== COMMUNITY PREVIEW STYLES ========== */
.community-preview {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    margin: 0 auto;
}

.preview-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.preview-posts {
    padding: 20px;
    background: #f8f9fa;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-post {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideInUp 0.6s ease-out;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.post-user span {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.preview-post p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 14px;
}

.post-reactions {
    display: flex;
    gap: 8px;
    font-size: 16px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ========== SAFETY SECTION ========== */
.safety {
    padding: 80px 0;
    background: #f8f9fa;
}

.safety-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.safety-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.safety-text {
    flex: 1;
}

.safety-text-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.safety-text-centered h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.safety-text-centered p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #666;
}

.safety-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.safety-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.safety-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.safety-feature h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
}

.safety-feature p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.safety-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.safety-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.safety-graphic {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.shield-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #666;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.value-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.value-item span:last-child {
    font-weight: 600;
    color: #333;
}

/* ========== CTA SECTION ========== */
.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.8;
}

/* ========== FOOTER ========== */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #a0aec0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 18px;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Landing Page Navigation - VEREINFACHT */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navigation Container - 2-SPALTEN LAYOUT */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto; /* Logo links, alles andere rechts */
    align-items: center;
    height: 70px;
    gap: 60px; /* Mehr Abstand zwischen Logo und rechten Elementen */
}

/* Brand/Logo - Links */
.nav-brand {
    justify-self: start; /* Links ausrichten */
    min-width: 150px; /* Mehr Platz für das Logo */
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

/* Landing Page Logo Styles */
.nav-brand .nav-logo {
    max-width: 150px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-brand h1 {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 700;
    background-size: 200% 100%;
    animation: rainbow-shift 3s ease-in-out infinite;
    margin: 0;
    white-space: nowrap;
    display: none; /* Verstecke den Text, da das Logo angezeigt wird */
}

@keyframes rainbow-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Right side container */
.nav-right-container {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end; /* Rechts ausrichten */
    margin-left: auto; /* Zusätzliche Sicherheit für Rechtsausrichtung */
}

/* Auth Buttons Container - Rechts */
.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Navigation Button Styles - SPEZIFISCH */
.nav-btn-signin,
.nav-btn-join {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    box-sizing: border-box;
}

/* Sign In Button */
.nav-btn-signin {
    color: #667eea !important;
    border: 2px solid #667eea !important;
    background: transparent !important;
}

.nav-btn-signin:hover {
    color: white !important;
    background: #667eea !important;
    transform: translateY(-1px);
}

/* Join Button */
.nav-btn-join {
    color: white;
    background: var(--primary-gradient);
    border: 2px solid transparent; /* Gleiche Border-Breite wie signin */
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-btn-join:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Language Selector - Im rechten Container */
.language-selector-landing {
    position: relative;
    flex-shrink: 0;
}

.language-selector-landing select {
    padding: 8px 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    min-height: 36px;
    min-width: 60px;
}

.language-selector-landing select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.language-selector-landing select:hover {
    border-color: #667eea;
}

/* Hamburger Menu - Standardmäßig versteckt */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
    gap: 3px;
    flex-shrink: 0;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: none; /* Standardmäßig versteckt auf Landing Page */
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.user-info span {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-info small {
    color: #666;
    font-size: 11px;
    margin-top: 2px;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 4px 0;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 13px;
}

.user-dropdown a:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Loading Screen für Redirect - OPTIMIERT */
.redirect-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.redirect-loading.show {
    opacity: 1;
    visibility: visible;
}

.redirect-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-message {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

/* Live Community Preview - Duplikate entfernt */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    /* Verhindere horizontales Scrollen - VERSTÄRKT */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    .navbar {
        width: 100% !important;
        overflow: hidden !important;
        max-width: 100vw !important;
    }
    /* Hero Layout für mobile Geräte - Preview unter dem Text */
    .hero-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .hero-content {
        order: 1;
        flex: none;
        width: 100%;
    }
    
    .hero-image {
        order: 2;
        flex: none;
        width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Navigation für mobile Geräte - Flexbox statt Grid */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Buttons nach links ausrichten */
        padding: 0 12px;
        height: 80px;
        gap: 6px;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    
    /* Brand bleibt links - aber kleiner */
    .nav-brand {
        flex-shrink: 0;
        min-width: 80px; /* Kleinere Mindestbreite */
        max-width: 120px; /* Maximale Breite begrenzen */
    }
    
    .nav-brand .nav-logo {
        max-width: 130px;
        max-height: 55px;
    }
    
    .nav-brand h1 {
        font-size: 18px;
        display: none; /* Verstecke den Text, da das Logo angezeigt wird */
    }
    
    /* Auth Buttons weiter nach links */
    .auth-buttons {
        flex: 1;
        justify-content: flex-start; /* Links ausrichten statt center */
        gap: 6px;
        margin-left: 15px; /* Zusätzlicher Abstand vom Logo */
    }
    
    /* Right side container für mobile */
    .nav-right-container {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto; /* Rechts ausrichten */
        flex-shrink: 0;
    }
    
    /* Language Selector rechts */
    .language-selector-landing {
        flex-shrink: 0;
    }
    
    /* Spezielle Optimierung für mittlere mobile Bildschirme (z.B. Google Pixel 8a) */
    .nav-btn-signin,
    .nav-btn-join {
        padding: 3px 6px;
        font-size: 10px;
        min-height: 26px;
        max-width: 115px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
   /* .nav-btn-join {
        text-wrap: wrap;
    }*/
    
    /* Mobile Button Optimierungen */
    .hero-actions .btn-primary,
    .hero-actions .btn-outline,
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 40px;
        min-width: 100px;
        border-radius: 8px;
    }
    
    .hero-actions {
        gap: 16px;
        justify-content: center;
    }
    
    .cta-actions {
        gap: 16px;
    }
    
    .safety-cta {
        gap: 16px;
        justify-content: center;
    }
    
    .safety-cta .btn-outline {
        min-width: 120px;
        padding: 10px 18px;
        font-size: 13px;
        min-height: 40px;
    }
    .hero {
        padding: 160px 0 80px;
    }
    
    /* Hamburger Menu anzeigen */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 6px;
        min-width: var(--mobile-touch-target);
        min-height: var(--mobile-touch-target);
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
        background: #333;
        border-radius: 1px;
        transition: all 0.3s ease;
        margin: 1px 0;
    }
    
    /* Language Selector optimieren */
    .language-selector-landing select {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .community-preview {
        max-width: 100%;
        margin: 0 16px;
        border-radius: 16px;
    }

    .preview-header {
        padding: 16px;
        font-size: 1rem;
    }

    .preview-posts {
        padding: 16px;
        gap: 12px;
    }

    .loading-preview {
        padding: 40px 16px;
    }

    .empty-preview {
        padding: 40px 16px;
    }

    .empty-preview-icon {
        font-size: 40px;
    }

    .preview-post {
        padding: 14px;
        border-radius: 10px;
    }

    .post-user {
        gap: 10px;
        margin-bottom: 10px;
    }

    .post-user .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .post-user span {
        font-size: 13px;
    }

    .preview-post p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .post-reactions {
        font-size: 14px;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .community-preview {
        margin: 0 12px;
    }

    .preview-posts {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .nav-container {
        padding: 0 8px;
        height: 70px;
        gap: 4px;
    }
    
    .nav-brand .nav-logo {
        max-width: 110px;
        max-height: 50px;
    }
    
    .nav-brand h1 {
        font-size: 16px;
        display: none; /* Verstecke den Text, da das Logo angezeigt wird */
    }
    
    /* Hamburger Menu für kleine Bildschirme */
    .hamburger {
        width: 36px;
        height: 36px;
        padding: 5px;
    }
    
    .hamburger span {
        width: 18px;
        height: 2px;
        margin: 1px 0;
    }
    
    /* Auth Buttons für kleine Bildschirme */
    .auth-buttons {
        gap: 4px;
    }
    
    .nav-btn-signin,
    .nav-btn-join {
        padding: 4px 8px;
        font-size: 11px;
        min-height: 28px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-btn-join {
     max-width: 125px;

    }
    
    
    /* Right side container für kleine Bildschirme */
    .nav-right-container {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .language-selector-landing {
        position: relative;
        flex-shrink: 0;
        transform: scale(0.75);
        margin-left: -10px;
    }
    
    .language-selector-landing select {
        padding: 3px 5px;
        font-size: 10px;
        min-height: 24px;
        min-width: 38px;
    }
    
    /* Mobile Menu für kleine Bildschirme */
    .nav-link {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    /* Kleine Bildschirme Button Optimierungen */
    .hero-actions .btn-primary,
    .hero-actions .btn-outline,
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 36px;
        min-width: 80px;
        border-radius: 6px;
    }
    
    .hero-actions {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    
    .safety-cta {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    
    .safety-cta .btn-outline {
        min-width: 100px;
        padding: 8px 14px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* Sehr kleine Bildschirme - 375px und kleiner */
@media (max-width: 375px) {
    /* Right side container für sehr kleine Bildschirme */
    .nav-right-container {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .language-selector-landing {
        transform: scale(0.7);
        margin-left: -12px;
    }
    
    .language-selector-landing select {
        padding: 2px 4px;
        font-size: 9px;
        min-height: 20px;
        min-width: 32px;
    }
}

/* Sehr kleine Bildschirme - Alternative Layout */
@media (max-width: 360px) {
    .hero {
        padding: 120px 0 40px;
    }
    
    .hero-container {
        gap: 25px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .nav-container {
        padding: 0 4px;
        gap: 2px;
    }
    
    .nav-brand .nav-logo {
        max-width: 100px;
        max-height: 45px;
    }
    
    .nav-brand h1 {
        font-size: 12px;
        display: none; /* Verstecke den Text, da das Logo angezeigt wird */
    }
    
    .auth-buttons {
        gap: 3px;
    }
    
    .nav-btn-signin,
    .nav-btn-join {
        padding: 3px 6px;
        font-size: 10px;
        min-height: 24px;
        max-width: 65px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-btn-join {
        text-wrap: wrap;
    }    
    
    /* Right side container für 360px Bildschirme */
    .nav-right-container {
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .language-selector-landing select {
        padding: 3px 4px;
        font-size: 10px;
        min-height: 24px;
        min-width: 36px;
    }
    
    .hamburger {
        width: 28px;
        height: 28px;
        padding: 3px;
    }
    
    .hamburger span {
        width: 16px;
        height: 2px;
    }
    
    /* Sehr kleine Bildschirme Button Optimierungen */
    .hero-actions .btn-primary,
    .hero-actions .btn-outline,
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 32px;
        min-width: 60px;
        border-radius: 4px;
    }
    
    .hero-actions {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .safety-cta {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .safety-cta .btn-outline {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }

    .redirect-message {
        font-size: 14px;
        padding: 0 20px;
    }

    .redirect-spinner {
        width: 32px;
        height: 32px;
    }

    .redirect-loading {
        padding: 20px;
    }

    .community-preview {
        margin: 0 8px;
        border-radius: 12px;
    }

    .preview-header {
        padding: 12px;
        font-size: 0.9rem;
    }

    .preview-posts {
        padding: 12px;
        gap: 10px;
    }

    .loading-preview {
        padding: 30px 12px;
    }

    .loading-preview .spinner {
        width: 28px;
        height: 28px;
    }

    .empty-preview {
        padding: 30px 12px;
    }

    .empty-preview-icon {
        font-size: 36px;
    }

    .preview-post {
        padding: 12px;
        border-radius: 8px;
    }

    .post-user .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .post-user span {
        font-size: 12px;
    }

    .preview-post p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .post-reactions {
        font-size: 12px;
        gap: 4px;
    }
}

/* Landscape Mode Optimierung */
@media (max-width: 768px) and (orientation: landscape) {
    .community-preview {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .preview-post {
        animation: none;
    }

    .loading-preview .spinner,
    .redirect-spinner {
        animation: none;
    }
}

/* Touch Target Optimierungen für mobile Geräte */
@media (max-width: 768px) {
    /* Buttons und interaktive Elemente */
    .hero-actions .btn-primary,
    .hero-actions .btn-outline,
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        min-height: 40px;
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    /* Language Selector */
    .language-selector-landing select {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Hamburger Menu */
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .hamburger span {
        height: 3px;
        margin: 4px 0;
    }
    
    /* Button Hover-Effekte für Touch-Geräte deaktivieren */
    .hero-actions .btn-primary:hover,
    .hero-actions .btn-outline:hover,
    .cta-actions .btn-primary:hover,
    .cta-actions .btn-outline:hover,
    .safety-cta .btn-outline:hover {
        transform: none;
    }
}















