/* 
   One UI 8.5 Inspired Design System
   Jerry's Tram Line 50 Website 
*/

:root {
    --one-yellow: #FFDD00;
    --one-bg: #000000;
    --one-card: #151515;
    --one-surface: #1c1c1c;
    --one-text: #FFFFFF;
    --one-text-muted: #A0A0A0;
    --one-border: rgba(255, 255, 255, 0.1);
    --one-radius: 28px;
    --one-radius-small: 16px;
    --one-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* One UI Bouncy Easing */
    --one-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.4s var(--one-easing);
}

body.light-mode {
    --one-bg: #F4F4F4;
    --one-card: #FFFFFF;
    --one-surface: #EBEBEB;
    --one-text: #000000;
    --one-text-muted: #666666;
    --one-border: rgba(0, 0, 0, 0.1);
    --one-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--one-bg);
    color: var(--one-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--one-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--one-surface);
    border-radius: 10px;
}

/* One UI Navigation Bar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--one-bg);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 0.5px solid var(--one-border);
    transition: var(--transition);
}

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

.logo img {
    height: 45px; /* Angemessene Größe für One UI Header */
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--one-yellow);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    background: var(--one-surface);
    padding: 8px 25px;
    border-radius: 100px;
    border: 0.5px solid var(--one-border);
}

nav ul li a {
    color: var(--one-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    opacity: 0.7;
}

nav ul li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 10px;
}

.greeting-text {
    font-size: 0.85rem;
    color: var(--one-text-muted);
    font-weight: 500;
    pointer-events: none; /* nicht anklickbar */
    user-select: none;
}

.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--one-yellow);
    background: var(--one-surface);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 221, 0, 0.3);
}

/* User Dropdown Menu (One UI Style) */
.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: var(--one-surface);
    min-width: 200px;
    border-radius: var(--one-radius-small);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--one-shadow);
    display: none; /* Initially hidden */
    flex-direction: column;
    padding: 10px;
    z-index: 2000;
    backdrop-filter: blur(20px);
    transform-origin: top right;
    animation: oneUiPopup 0.3s var(--one-easing);
}

@keyframes oneUiPopup {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.user-dropdown.active {
    display: flex;
}

.dropdown-item {
    color: var(--one-text);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--one-yellow);
}

.dropdown-item.logout {
    color: #ff4d4d;
    margin-top: 5px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

/* Hero Section - Full Background Parallax */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 8%;
    position: relative;
    /* Parallax Effekt durch fixed background */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('img/image.png') center/cover no-repeat fixed;
    color: var(--one-text);
}

.hero-content {
    z-index: 2;
}

#hero h1 {
    font-size: clamp(2rem, 10vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

#hero h1 span {
    color: var(--one-yellow);
}

#hero p {
    font-size: 1.2rem;
    color: var(--one-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--one-yellow);
    color: var(--one-bg);
    padding: 18px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 221, 0, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

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

/* FAQ Layout */
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
}

/* Community & Buttons */
.community-card {
    text-align: center;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--one-text);
    padding: 15px 35px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--one-yellow);
    color: var(--one-bg);
    transform: scale(1.05);
}

/* Content Cards (One UI Style) */
.card {
    background: var(--one-surface);
    padding: 35px;
    border-radius: var(--one-radius);
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--one-shadow);
    transition: var(--transition);
}

.card:hover {
    background: #252525;
    transform: translateY(-5px);
}

/* Route Section */
.route-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.route-list-container {
    height: 600px;
    background: var(--one-surface);
    border-radius: var(--one-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.route-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.route-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

.stop {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 15px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.stop:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.stop-indicator {
    width: 14px;
    height: 14px;
    background: transparent;
    border: 3px solid var(--one-yellow);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.stop:not(:last-child) .stop-indicator::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 38px;
    background: rgba(255, 221, 0, 0.2);
}

.stop-name {
    font-weight: 600;
    font-size: 1.05rem;
}

/* Gallery - Smooth rounded grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.gallery-item {
    aspect-ratio: 16/10;
    border-radius: var(--one-radius);
    overflow: hidden;
    background: var(--one-surface);
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Footer (One UI Bottom Bar feel) */
footer {
    padding: 60px 8%;
    background: var(--one-surface);
    border-radius: var(--one-radius) var(--one-radius) 0 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--one-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--one-yellow);
}

.copyright {
    font-size: 0.85rem;
    color: var(--one-text-muted);
    opacity: 0.6;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s var(--one-easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Badge System */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.badge-pill {
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid var(--one-border);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}

.profile-link {
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.profile-link:hover {
    color: var(--one-yellow);
}

/* Profile Header & Banner */
.profile-banner-container {
    width: 100%;
    height: 200px;
    background: var(--one-surface);
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    margin-bottom: -70px; /* Pull profile content up */
}

.profile-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.perso-id-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--one-border);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    color: var(--one-yellow);
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

.settings-banner-preview {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    background: var(--one-surface);
    border: 1px dashed var(--one-border);
}
/* Cropper Modal */
.cropper-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}

.cropper-modal-container {
    background: var(--one-bg);
    border: 1px solid var(--one-border);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.cropper-wrap-box {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* Cropper.js specific style limit */
.cropper-view-box,
.cropper-face {
    border-radius: 0; /* Standard, we can change to 50% for avatars dynamisch */
}

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

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--one-border);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--one-yellow);
    display: block;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--one-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Replaced foldable posts logic */

/* Settings Layout */
.settings-layout {
    display: flex;
    gap: 40px;
}

.settings-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.settings-main {
    flex: 1;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tab-btn {
    background: transparent;
    color: var(--one-text-muted);
    border: none;
    padding: 12px 15px;
    text-align: left;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--one-text);
}

.tab-btn.active {
    background: var(--one-yellow);
    color: var(--one-bg);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

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

/* Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--one-border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--one-yellow); }
input:checked + .slider:before { transform: translateX(24px); }

.accent-picker {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.color-circle.active {
    border-color: #fff;
    transform: scale(1.1);
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    background: rgba(255,255,255,0.03);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remove-device {
    color: #e74c3c;
    cursor: pointer;
    font-weight: 700;
}

.save-prompt {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--one-surface);
    border: 1px solid var(--one-yellow);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.4s var(--one-easing);
}

.save-prompt.active {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .settings-layout {
        flex-direction: column;
    }
    .settings-sidebar {
        width: 100%;
    }
}
/* Responsive */
@media (max-width: 900px) {
    .route-layout {
        grid-template-columns: 1fr;
    }
}

/* Auth Forms (Login/Register) */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--one-text-muted);
    margin-left: 10px;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    border-radius: var(--one-radius-small);
    color: var(--one-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--one-yellow);
    box-shadow: 0 0 15px rgba(255, 221, 0, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--one-text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--one-yellow);
    text-decoration: none;
    font-weight: 700;
}

/* Settings Switches */
.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 0.5px solid var(--one-border);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--one-surface);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--one-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--one-yellow);
}
/* Forum Styles */
.forum-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.post-composer {
    background: var(--one-card);
    border-radius: var(--one-radius);
    padding: 25px;
    border: 0.5px solid var(--one-border);
    margin-bottom: 30px;
}

.post-composer textarea {
    width: 100%;
    background: var(--one-surface);
    border: 1px solid var(--one-border);
    border-radius: var(--one-radius-small);
    color: var(--one-text);
    padding: 20px;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: var(--transition);
    min-height: 120px;
}

.post-composer textarea:focus {
    border-color: var(--one-yellow);
}

/* Forum Topic Styles */
.topic-card {
    background: var(--one-card);
    border-radius: var(--one-radius);
    border: 0.5px solid var(--one-border);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: oneUiPopup 0.5s var(--one-easing);
}

.topic-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: rgba(255,255,255,0.01);
    transition: background 0.2s;
}

.topic-header-row:hover {
    background: rgba(255,255,255,0.03);
}

.topic-main-info {
    flex: 1;
}

.topic-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--one-text);
}

.topic-meta {
    font-size: 0.85rem;
    color: var(--one-text-muted);
}

.topic-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 30px;
    font-size: 0.85rem;
    color: var(--one-text-muted);
}

.topic-last-post {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 200px;
}

.topic-last-post img {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    object-fit: cover;
}

.topic-last-post-info {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

/* Thread View */
.topic-thread-view {
    display: none;
    border-top: 1px solid var(--one-border);
    background: rgba(0,0,0,0.1);
}

.topic-card.expanded .topic-header-row {
    background: rgba(255,221,0,0.05);
}

.topic-card.expanded .topic-thread-view {
    display: block;
}

.post-row {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.post-row:last-child {
    border-bottom: none;
}

.post-author-col {
    width: 150px;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.post-author-col img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

.post-author-name {
    font-weight: 700;
    color: var(--one-text);
}

.post-author-rank {
    font-size: 0.75rem;
    color: var(--one-text-muted);
}

.post-content-col {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.post-content-top {
    font-size: 0.8rem;
    color: var(--one-text-muted);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.post-content-body {
    flex: 1;
    line-height: 1.6;
    font-size: 0.95rem;
    word-break: break-word;
}

.thread-reply-box {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--one-border);
}

.thread-reply-input-div textarea {
    width: 100%;
    background: var(--one-surface);
    border: 1px solid var(--one-border);
    border-radius: var(--one-radius-small);
    color: var(--one-text);
    padding: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
    outline: none;
    transition: var(--transition);
}

.thread-reply-input-div textarea:focus {
    border-color: var(--one-yellow);
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--one-radius-small);
    margin-top: 10px;
    border: 0.5px solid var(--one-border);
}

.post-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 0.5px solid var(--one-border);
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--one-text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.like-btn.liked {
    color: #ff4d4d;
}

.like-btn:hover {
    transform: scale(1.1);
}

/* Composer Enhancements */
.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

#image-preview-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: 15px;
    display: none;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.remove-img-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--one-bg);
}

/* Live Status Ticker */
.status-banner {
    width: 100%;
    padding: 12px 8%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    position: sticky;
    top: 85px;
    z-index: 99;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.status-indicator.green { background: #2ecc71; color: white; }
.status-indicator.yellow { background: #f1c40f; color: black; }
.status-indicator.red { background: #e74c3c; color: white; }

.status-text {
    opacity: 0.9;
    font-weight: 500;
}

/* Shoutbox / Strecken-Funk */
.shoutbox-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shout-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 15px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shout-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: oneUiPopup 0.3s var(--one-easing);
}

.shout-user {
    font-weight: 700;
    color: var(--one-yellow);
    margin-right: 8px;
}

.shout-time {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 5px;
}

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

.shout-input {
    flex: 1;
    background: var(--one-surface);
    border: 1px solid var(--one-border);
    padding: 10px 15px;
    border-radius: 100px;
    color: white;
    outline: none;
}

.shout-input:focus {
    border-color: var(--one-yellow);
}

/* Header Shout Ticker (Laufschrift) */
.header-shout-ticker {
    flex: 1;
    margin: 0 40px;
    height: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--one-text-muted);
}

.ticker-content b {
    color: var(--one-yellow);
    margin-right: 5px;
}

.ticker-content span {
    margin-right: 50px; /* Abstand zwischen Sprüchen */
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 800px) {
    .header-shout-ticker {
        display: none; 
    }
}

/* Vertical Settings Layout */
.settings-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.settings-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.settings-tabs {
    display: flex;
    flex-direction: column; /* Vertikal statt horizontal */
    gap: 8px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.tab-btn {
    text-align: left;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--one-text-muted);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.tab-btn.active {
    background: var(--one-surface);
    color: var(--one-yellow);
    border-color: var(--one-border);
    box-shadow: none;
}

.settings-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 800px) {
    .settings-layout {
        flex-direction: column;
        gap: 20px;
    }
    .settings-sidebar {
        width: 100%;
    }
    .settings-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .tab-btn {
        flex: none;
        white-space: nowrap;
    }
}

.tab-content {
    display: none;
    animation: oneUiPopup 0.4s var(--one-easing);
}

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

.danger-zone {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 0.5px solid rgba(255, 77, 77, 0.2);
}

.btn-danger {
    background: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 15px;
    border-radius: var(--one-radius-small);
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #ff4d4d;
    color: white;
}

/* Advanced Settings Styles */
.accent-picker {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-circle.active {
    border-color: white;
    transform: scale(1.1);
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.device-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remove-device {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

/* New Forum Features */
.forum-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.forum-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.forum-main {
    flex: 1;
    min-width: 0;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--one-text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.cat-btn.active {
    background: var(--one-surface);
    color: var(--one-yellow);
    border-color: var(--one-border);
}

.cat-icon {
    font-size: 1.2rem;
}

.post-title-row {
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
    display: block;
}

.post-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--one-border);
    color: var(--one-text-muted);
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-right: 8px;
}

.post-tag.tag-guide {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--one-border);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 18px;
    animation: oneUiPopup 0.3s var(--one-easing);
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--one-border);
}

.comment-body {
    flex: 1;
}

.comment-meta {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.comment-meta span {
    font-weight: 400;
    color: var(--one-text-muted);
    margin-left: 8px;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--one-text);
}

.comment-composer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.comment-input {
    flex: 1;
    background: var(--one-surface);
    border: 1px solid var(--one-border);
    padding: 10px 18px;
    border-radius: 100px;
    color: white;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.comment-input:focus {
    border-color: var(--one-yellow);
}

@media (max-width: 900px) {
    .forum-layout {
        flex-direction: column;
    }
    .forum-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    .category-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .cat-btn {
        flex: none;
        white-space: nowrap;
    }
}

/* Settings Device List Styles */
.device-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--one-border);
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    transition: var(--transition);
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.remove-device {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 100px;
    background: rgba(231, 76, 60, 0.1);
    transition: var(--transition);
}

.remove-device:hover {
    background: #e74c3c;
    color: white;
}

/* Premium Toast System */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 30px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
    border-left: 6px solid var(--one-yellow);
}

.toast.active { transform: translateX(0); }
.toast.success { border-left-color: #2ecc71; }
.toast.error { border-left-color: #e74c3c; }

/* Sticky Save Bar (Modern Settings) */
.save-prompt {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--one-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--one-border);
    padding: 12px 25px;
    border-radius: 100px; /* Pillen-Design */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.save-prompt.active {
    bottom: 30px; /* Schwebt über dem Rand */
}

.save-prompt p {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--one-text);
}

.save-prompt-actions {
    display: flex;
    gap: 15px;
}

#reset-settings-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--one-text-muted);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

#reset-settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Premium Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--one-card);
    border: 0.5px solid var(--one-border);
    border-radius: 32px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: white;
}

.modal-card .form-group label {
    font-size: 0.85rem;
    color: var(--one-text-muted);
    margin-bottom: 10px;
    display: block;
}

.modal-card input, .modal-card select, .modal-card textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--one-border);
    color: white;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    margin-bottom: 20px;
    font-family: inherit;
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Watermark styles */
.watermarked-image {
    position: relative;
    display: inline-block;
}

.watermarked-image::after {
    content: '© Tram Line 50';
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ---------------------------------------------------------
   MOBILE OPTIMIZATION (JERRY PRO PROFIS! 🚋)
   --------------------------------------------------------- */
@media (max-width: 900px) {
    header {
        padding: 1rem 4%;
        flex-direction: column;
        gap: 15px;
        position: relative; /* Nicht fixiert auf Kleingeräten für besseren Platz */
    }

    .logo img { height: 35px; }

    nav ul {
        width: 100%;
        overflow-x: auto;
        padding: 8px 15px;
        gap: 1rem;
        justify-content: flex-start;
        white-space: nowrap; /* Horizontale Navigation */
        -webkit-overflow-scrolling: touch;
    }

    .greeting-text { display: none; } /* Platz sparen */

    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1rem; }

    .route-layout, .faq-container, .settings-layout, .features-grid, .gallery-grid, .profile-stats-grid {
        grid-template-columns: 1fr !important; /* Alles untereinander */
    }

    .card { padding: 25px; }

    main { padding-top: 50px !important; }
    
    .forum-post-card {
        padding: 15px;
    }

    .user-dropdown {
        position: fixed;
        right: 15px;
        top: 130px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 2.2rem; }
    .btn-primary { width: 100%; text-align: center; }
    .community-buttons { flex-direction: column; }
    .community-buttons a { width: 100%; text-align: center; }
}
/* LIVE SUPPORT WIDGET (JERRY PRO PROFIS 🚋) */
.support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.support-button {
    width: 60px;
    height: 60px;
    background: var(--one-yellow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 221, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
    font-size: 24px;
    color: #000;
}

.support-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.support-window {
    width: 380px;
    height: 550px;
    background: var(--one-card);
    border-radius: 30px;
    border: 1px solid var(--one-border);
    box-shadow: var(--one-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    animation: slideInUp 0.4s var(--one-easing);
}

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

.support-window.active {
    display: flex;
}

.support-header {
    padding: 20px;
    background: var(--one-surface);
    border-bottom: 1px solid var(--one-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.support-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    position: relative;
}

.support-msg.user {
    align-self: flex-end;
    background: var(--one-yellow);
    color: #000;
    border-bottom-right-radius: 5px;
}

.support-msg.staff {
    align-self: flex-start;
    background: var(--one-surface);
    color: #fff;
    border-bottom-left-radius: 5px;
}

.support-msg .time {
    font-size: 0.7rem;
    opacity: 0.6;
    display: block;
    margin-top: 5px;
}

.support-input-area {
    padding: 15px;
    background: var(--one-surface);
    display: flex;
    gap: 10px;
}

.support-input-area input {
    flex: 1;
    background: var(--one-bg);
    border: 1px solid var(--one-border);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    outline: none;
}

/* STAFF SUPPORT DASHBOARD */
.staff-ticket-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-item {
    background: var(--one-bg);
    padding: 12px;
    border-radius: 15px;
    border: 1px solid var(--one-border);
    cursor: pointer;
    transition: var(--transition);
}

.ticket-item:hover {
    border-color: var(--one-yellow);
    transform: translateX(5px);
}

.ticket-item.active {
    background: rgba(255, 221, 0, 0.05);
    border-color: var(--one-yellow);
}

.ticket-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 10px;
}

.ticket-status.open { background: #2ecc71; color: #fff; }
.ticket-status.claimed { background: #3498db; color: #fff; }
