#player-comparison .glass {
    /* revert to original neutral glass look for this section */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#player-comparison .card::after {
    /* disable the new gradient edge for this section */
    content: none !important;
}

.header-mobile {
    display: block;
}

.header-desktop {
    display: none;
}

@media (min-width: 1024px) {

    /* lg */
    .header-mobile {
        display: none !important;
    }

    .header-desktop {
        display: flex !important;
    }
}

.video-thumb-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.15));
}

.video-thumb-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 9999px;
    font-weight: 700;
    padding: 4px 8px;
    line-height: 1;
}

html {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

h2 {
    line-height: 1.3 !important;
    padding-bottom: 0.15em;
    overflow: visible;
}

span.bg-clip-text.text-transparent {
    display: inline-block;
    height: 4rem;
}

h2.inline-flex {
    align-items: baseline;
}

h2.inline-flex .icon-buildings-mask,
h2.inline-flex .icon-scale-mask,
h2.inline-flex .icon-stats-mask {
    transform: translateY(0.5em);
}

.glass {
    /* Modern frosted look */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%),
        radial-gradient(120% 120% at 0% 0%, rgba(16, 185, 129, 0.08), transparent 40%),
        radial-gradient(120% 120% at 100% 0%, rgba(99, 102, 241, 0.08), transparent 45%),
        radial-gradient(140% 140% at 100% 100%, rgba(236, 72, 153, 0.06), transparent 55%);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Anti-blur for elements that animate with transform */
button,
select,
.card,
.moment-filter,
.like-btn,
.copy-coords,
.timeline-card,
.modal-nav,
.modal-thumbnail,
#mobileMenuToggle,
#refreshData svg,
#chartType,
h3[data-chart="playtime"],
.player-checkbox-label,
.category-btn {
    backface-visibility: hidden;
    will-change: transform;
}

/* === PLAYER COMPARISON STYLES === */

.player-checkbox-label {
    transition: all 0.3s ease;
    position: relative;
}

.player-checkbox-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.player-checkbox:checked+div .checkbox-indicator {
    background-color: #f59e0b;
    border-color: #f59e0b;
    position: relative;
}

.player-checkbox:checked+div .checkbox-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    border-color: #f59e0b;
    color: #fbbf24;
}

.specific-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.specific-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.specific-option.selected {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.specific-option input[type="radio"] {
    accent-color: #f59e0b;
}

#comparison-results {
    animation: fadeInUp 0.5s ease;
}

/* Chart Container Sizing */
#comparison-results .chart-container {
    position: relative;
    height: 100%;
    min-height: 350px;
}

#comparison-results .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e2e8f0);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #f97316);
}

.rank-other {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* === SUGGESTION LIST STYLES === */
.suggestions-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    backdrop-filter: blur(10px);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
    color: white;
    font-size: 14px;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.specific-sub-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.specific-sub-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
}

.specific-sub-option.selected {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

.specific-sub-option input[type="radio"] {
    accent-color: #f59e0b;
}

/* === MOBILE HEADER STYLES === */

@media (max-width: 1023px) {
    .sticky.top-0.z-50.glass {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
        backdrop-filter: blur(25px);
    }

    #mobileControls {
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    #mobileControls.show {
        max-height: 200px;
        opacity: 1;
    }

    #mobileMenuToggle svg {
        transition: transform 0.3s ease;
    }

    #mobileMenuToggle.active svg {
        transform: rotate(90deg);
    }

    /* Mobile select styling */
    #chartTypeMobile {
        appearance: none;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="rgb(255,255,255)"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 9l-7 7-7-7"/></svg>');
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 1rem;
        padding-right: 2rem;
    }
}

/* Mobile-first responsive header */
@media (max-width: 640px) {
    header .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #mobileControls {
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.75rem;
    }

    #refreshDataMobile {
        min-width: 4rem;
        text-align: center;
    }
}

/* Enhanced glass effect for mobile */
@media (max-width: 1023px) {
    header.sticky {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Logo scaling for mobile */
@media (max-width: 640px) {
    header .w-10.h-10 {
        width: 2.25rem;
        height: 2.25rem;
    }

    header h1 {
        font-size: 1rem;
        line-height: 1.25;
    }

    header p {
        font-size: 0.75rem;
    }
}

/* Touch targets for mobile */
@media (max-width: 1023px) {

    button,
    select {
        min-height: 44px;
        min-width: 44px;
    }

    #mobileMenuToggle {
        padding: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #refreshDataMobile {
        padding: 0.5rem 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for mobile controls */
    #mobileControls select,
    #mobileControls button {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    /* Improve mobile menu button animation */
    #mobileMenuToggle {
        transition: all 0.3s ease;
    }

    #mobileMenuToggle:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateZ(0) translateY(-1px);
    }

    #mobileMenuToggle:active {
        transform: translateZ(0) translateY(1px);
    }
}

/* Enhanced header responsivity */
@media (max-width: 768px) {
    header {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-section h2 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* keep icons visible on smaller screens */
}

@media (max-width: 420px) {
    .bg-clip-text.text-transparent {
        display: inline-block;
        height: 2.2rem;
    }
}

/* Better select styling for all screen sizes */
select {
    background-size: 1rem 1rem;
    background-position: right 0.75rem center;
}

@media (max-width: 1023px) {
    select {
        background-size: 0.875rem 0.875rem;
        background-position: right 0.5rem center;
    }
}

/* Improved glass effect hierarchy */
header.sticky {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1023px) {
    header.sticky {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}

/* Smooth transitions for mobile navigation */
#mobileControls {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    overflow: hidden;
}

#mobileControls.show {
    transform: scaleY(1);
}

#mobileControls:not(.show) {
    transform: scaleY(0);
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Ensure consistent styling across all breakpoints */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Animation improvements */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobileControls.show {
    animation: slideInFromTop 0.4s ease-out;
}

/* Better visual feedback for interactions */
button:active,
select:active {
    transform: translateZ(0) translateY(1px);
}

@media (hover: hover) {
    button:hover {
        transform: translateZ(0) translateY(-1px);
    }

    select:hover {
        transform: translateZ(0) translateY(-1px);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus-visible,
select:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Improve select dropdown appearance */
select {
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="rgb(255,255,255)"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.backdrop-blur-md {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Diagramm-Loading Animation */
.chart-loading {
    transition: opacity 0.3s ease;
}

/* Verbesserte Hover-Effekte für Cards */
.card {
    border-radius: 1.25rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.card:hover {
    transform: translateZ(0) translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
    z-index: 2;
}

/* Animate Chart Titles */
.card h3 {
    transition: all 0.3s ease;
}

.card:hover h3 {
    transform: translateZ(0) translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chart Title Animation */
h3[data-chart="playtime"] {
    transition: all 0.3s ease;
}

h3[data-chart="playtime"]:hover {
    transform: translateZ(0) translateY(-1px);
}

h3[data-chart="playtime"] .stat-icon {
    transition: all 0.3s ease;
}

h3[data-chart="playtime"]:hover .stat-icon {
    transform: translateZ(0) translateY(-1px);
    background: rgba(16, 185, 129, 0.3);
}

/* Select Dropdown Styling */
select {
    transition: all 0.3s ease;
}

select:hover {
    transform: translateZ(0) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

select:focus {
    transform: translateZ(0) translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Gradient Refresh Button */
#refreshData {
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

#refreshData::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

#refreshData:hover::before {
    left: 100%;
}

#refreshData svg {
    transition: transform 0.3s ease;
}

#refreshData:hover svg {
    transform: translateZ(0) rotate(180deg);
}

/* Select Styling */
#chartType {
    transition: all 0.3s ease;
    position: relative;
}

#chartType:hover,
#chartType:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
    transform: translateZ(0) translateY(-1px);
}

#chartType:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Glowing effect for select */
#chartType {
    transition: all 0.3s ease;
}

/* Pulse animation for refresh button */
@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

#refreshData:active {
    animation: pulse-green 0.3s ease-out;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
}

.player-card {
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--player-color, #ef4444);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-40px) translateX(-5px);
        opacity: 1;
    }

    75% {
        transform: translateY(-20px) translateX(-10px);
        opacity: 0.6;
    }
}

/* === NEUE COMMUNITY ANIMATIONEN === */

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOutScale {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes slideInTimeline {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

/* === COMMUNITY CARD STYLES === */

.build-card {
    position: relative;
    overflow: hidden;
}

.build-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.1), rgba(254, 180, 123, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.build-card:hover::before {
    opacity: 1;
}

.moment-card {
    position: relative;
    overflow: hidden;
}

.moment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(219, 39, 119, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.moment-card:hover::before {
    opacity: 1;
}

.timeline-card {
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.timeline-card:hover::before {
    opacity: 1;
}

.location-category {
    position: relative;
    overflow: hidden;
}

.location-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.location-category:hover::before {
    opacity: 1;
}

/* === MOMENT FILTER STYLES === */

.moment-filter {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.moment-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.moment-filter.active {
    background: rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* === LIKE BUTTON STYLES === */

.like-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.like-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateZ(0) translateY(-1px);
}

/* === COPY COORDS BUTTON === */

.copy-coords {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.copy-coords:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateZ(0) translateY(-1px);
}

/* === TIMELINE SPECIFIC STYLES === */

.timeline-event {
    transition: all 0.3s ease;
}

.timeline-event:hover .timeline-card {
    transform: translateZ(0) translateY(-2px);
}

.timeline-node svg {
    transform: translateY(1px);
}

.timeline-node svg[data-icon="server_start"] {
    transform: translateY(2px);
}

.timeline-node svg[data-icon="server_close"] {
    transform: translateY(2px);
}

.timeline-node svg[data-icon="major_build"] {
    transform: translateY(1.5px);
}

.timeline-node svg[data-icon="community_event"] {
    transform: translateY(2px);
}

.timeline-node svg[data-icon="milestone"] {
    transform: translateY(1.5px);
}

.timeline-node svg[data-icon="update"] {
    transform: translateY(2px);
}

.timeline-node svg[data-icon="celebration"] {
    transform: translateY(1.5px);
}

.timeline-node svg[data-icon="other"] {
    transform: translateY(0);
}

/* Timeline responsiveness */
@media (max-width: 768px) {
    .timeline-event {
        flex-direction: column !important;
        text-align: center !important;
    }

    .timeline-event .w-5\/12 {
        width: 100% !important;
    }

    .timeline-event .timeline-card {
        margin: 0 !important;
    }

    .timeline-event .absolute.left-1\/2 {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin: 1rem auto !important;
    }
}

/* === RESPONSIVE GRID IMPROVEMENTS === */

@media (max-width: 640px) {

    .build-card,
    .moment-card,
    .location-category {
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3.xl\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* === TEXT UTILITIES === */

.timeline-title-limit {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 55%;
    word-wrap: break-word;
    hyphens: auto;
}

.timeline-title-limit.text-right {
    margin-left: auto;
}

.timeline-title-limit.text-left {
    margin-right: auto;
}

/* Mobile: Volle Breite und kein Line-Clamping */
@media (max-width: 768px) {
    .timeline-title-limit {
        max-width: 100%;
        overflow: visible;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
    }

    .timeline-title-limit.text-right,
    .timeline-title-limit.text-left {
        margin-left: 0;
        margin-right: 0;
    }
}

.timeline-title-clamp {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 55%;
    word-wrap: break-word;
    hyphens: auto;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* === LOADING STATES === */

.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === ENHANCED HOVER EFFECTS === */

.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateZ(0) translateY(-10px);
}

/* === SCROLL ANIMATIONS === */

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #000 100%);
    position: relative;
    overflow: hidden;
}

/* === STRONGER LOOK FOR ALL "card glass" ELEMENTS === */
.card.glass {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.45)),
        radial-gradient(120% 120% at 0% 0%, rgba(16, 185, 129, 0.12), transparent 38%),
        radial-gradient(120% 120% at 100% 0%, rgba(99, 102, 241, 0.12), transparent 40%),
        radial-gradient(140% 140% at 100% 100%, rgba(236, 72, 153, 0.10), transparent 48%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -30px 80px rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(16px) saturate(130%);
}

.card.glass::after {
    /* bolder gradient edge */
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.65),
            rgba(99, 102, 241, 0.65),
            rgba(236, 72, 153, 0.65));
    opacity: 0.75;
}

.card.glass:hover::after {
    opacity: 1;
}

.card.glass:hover {
    transform: translateZ(0) translateY(-6px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    margin: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.chart-container canvas {
    position: relative;
    z-index: 2;
}

/* === YouTube Video Card === */
.video-card {
    overflow: hidden;
}

.video-play {
    width: 84px;
    height: 84px;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .75));
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 8px rgba(255, 255, 255, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.video-play .triangle {
    margin-left: 4px;
    width: 0;
    height: 0;
    border-left: 18px solid #ef4444;
    /* red-500 */
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.video-card button:hover .video-play {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 10px rgba(239, 68, 68, .25);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1024px) {
    .chart-container {
        height: 280px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 260px;
        padding: 18px;
    }
}

/* === MODAL STYLES === */
.fixed.active {
    opacity: 1 !important;
}

.fixed.active .bg-gradient-to-br {
    transform: scale(1) !important;
}

/* Modal scrollbar styling */
.overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Button hover improvements */
button:hover {
    transform: translateZ(0) translateY(-1px);
}

/* Heart animation for likes */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1323 0%, #0f172a 50%, #111827 100%);
    background-size: 200% 200%;
    animation: bg-pan 8s ease-in-out infinite;
    z-index: 9999;
    transition: opacity 0.35s ease;
    overflow: hidden;
}

.page-loader::before,
.page-loader::after {
    content: "";
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.35;
    animation: float-slow 12s ease-in-out infinite alternate;
}

.page-loader::before {
    top: -20vmax;
    left: -10vmax;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0) 60%);
}

.page-loader::after {
    bottom: -25vmax;
    right: -15vmax;
    background: radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0) 60%);
    animation-delay: .6s;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.page-loader .loader-box {
    display: contents;
}

.loader-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateY(10px);
    animation: pop-in .6s ease forwards;
}

.loader-brand {
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    position: relative;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(16, 185, 129, 0.15);
}

.loader-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(16, 185, 129, 0.45));
    z-index: 3;
}

.loader-brand .ring {
    position: absolute;
    inset: -6px;
    border-radius: 9999px;
    background: conic-gradient(from 0deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.7) 25%, rgba(16, 185, 129, 0) 50%, rgba(59, 130, 246, 0.7) 75%, rgba(59, 130, 246, 0) 100%);
    mask: radial-gradient(circle at center, transparent 66px, black 68px);
    -webkit-mask: radial-gradient(circle at center, transparent 66px, black 68px);
    filter: blur(0.3px) drop-shadow(0 0 16px rgba(16, 185, 129, 0.45));
}

.loader-brand .ring.ring-1 {
    animation: spin 10s linear infinite;
}

.loader-brand .ring.ring-2 {
    inset: -12px;
    opacity: .7;
    animation: spin 8s linear infinite reverse;
    filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.4));
}

.loader-title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: .02em;
    background: linear-gradient(90deg, #a7f3d0, #93c5fd, #fcd34d);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 2.4s ease-in-out infinite;
}

.page-loader .spinner {
    display: none;
}

.page-loader .text {
    color: rgba(255, 255, 255, 0.85);
    font-size: .9rem;
    letter-spacing: .02em;
}

.loader-progress {
    width: 240px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.25);
}

.loader-progress .bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 1), rgba(59, 130, 246, 1), rgba(234, 179, 8, 1));
    background-size: 200% 100%;
    animation: progress-flow 1.6s ease-in-out infinite;
}

@keyframes bg-pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes progress-flow {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }

    60% {
        width: 85%;
        background-position: 100% 50%;
    }

    100% {
        width: 100%;
        background-position: 200% 50%;
    }
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-20px, -20px) scale(1.05);
    }
}

/* === TIMELINE MODAL STYLES === */

.timeline-navigation-info {
    animation: fadeInUp 0.3s ease-out;
}

.timeline-navigation-info .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.timeline-navigation-info .btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.timeline-navigation-info .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline-event-type {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* === ADMIN TIMELINE IMAGE STYLES === */

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gap-2 {
    gap: 0.5rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.top-1 {
    top: 0.25rem;
}

.right-1 {
    right: 0.25rem;
}

.bottom-1 {
    bottom: 0.25rem;
}

.left-1 {
    left: 0.25rem;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-600 {
    background-color: #dc2626;
}

.text-white {
    color: white;
}

.rounded-full {
    border-radius: 9999px;
}

.text-xs {
    font-size: 0.75rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.rounded {
    border-radius: 0.25rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.bg-black\/70 {
    background-color: rgba(0, 0, 0, 0.7);
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

/* === TIMELINE IMAGE STYLES === */

.timeline-card .timeline-event-image {
    position: absolute !important;
    width: 40% !important;
    height: 100% !important;
    top: 0 !important;
    border-radius: 0.5rem;
    overflow: hidden;
    z-index: 10;
}

.timeline-card .timeline-event-image.timeline-left {
    left: 0 !important;
}

.timeline-card .timeline-event-image.timeline-right {
    right: 0 !important;
}

.timeline-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.timeline-event-image img:hover {
    transform: scale(1.05);
}

/* Mobile timeline images - hide on desktop */
[id^="mobile-image-"] {
    display: block !important;
}

/* Desktop images - show only on desktop */
[id^="desktop-image-"] {
    display: none !important;
}

@media (min-width: 768px) {
    [id^="mobile-image-"] {
        display: none !important;
    }

    [id^="desktop-image-"] {
        display: block !important;
    }
}

/* Special CSS - CC Coin / SVG */
.cc-coin {
    display: inline-block;
    width: 32px;
    height: 32px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='gold' stroke='%23B8860B' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='11' fill='%23FFEC8B' stroke='%23DAA520' stroke-width='1.5'/%3E%3Cellipse cx='12' cy='10' rx='5' ry='3' fill='%23fff' opacity='.3'/%3E%3Ctext x='16' y='20' font-size='9' font-family='Arial' fill='%234A3200' font-weight='bold' text-anchor='middle'%3ECC%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Seitenmenü */
.section-navigation {
    position: fixed !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 887 !important;
}

.nav-toggle {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #1f2937, #111827) !important;
    border: 2px solid #10b981 !important;
    border-radius: 0 24px 24px 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    user-select: none !important;
    position: relative !important;
    z-index: 888 !important;
    opacity: 0.4;
}

.nav-toggle:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    transform: scale(1.05) !important;
}

#navToggle.active {
    border-radius: 0 !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    border-right: 0 !important;
    opacity: 1;
}

.hamburger {
    width: 18px !important;
    height: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.hamburger span {
    width: 100% !important;
    height: 2px !important;
    background: #10b981 !important;
    transition: all 0.3s ease !important;
}

.nav-toggle:hover .hamburger span {
    background: white !important;
}

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
    background: white !important;
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0 !important;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
    background: white !important;
}

.nav-menu {
    position: absolute !important;
    left: 48px !important;
    top: 50% !important;
    width: 180px !important;
    background: rgba(17, 24, 39, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 0 15px 15px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transform: translate(-100%, -50%) !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    max-height: calc(100vh - 32px) !important;
}

.section-navigation.open .nav-menu {
    transform: translate(0, -50%) !important;
    opacity: 1 !important;
}

.nav-header {
    display: none !important;
}

.nav-content {
    padding: 8px 8px !important;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 12px !important;
    margin: 3px 0 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.25s ease !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.nav-link:hover {
    color: white !important;
    background: rgba(16, 185, 129, 0.2) !important;
    transform: translateX(5px) !important;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2)) !important;
    color: #10b981 !important;
    border-left: 4px solid #10b981 !important;
    font-weight: 600 !important;
}

.nav-icon {
    margin-right: 12px !important;
    font-size: 16px !important;
    width: 22px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-text {
    flex: 1 !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .section-navigation {
        left: 8px !important;
        top: 50% !important;
        display: none;
    }

    .nav-menu {
        left: 52px !important;
        width: min(74vw, 240px) !important;
        border-radius: 12px !important;
        max-height: calc(100vh - 24px) !important;
        overflow-y: auto !important;
    }

    .nav-link {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
}

/* --- Banner slider --- */
.banner-slider {
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    height: 20rem;
}

.banner-slider .swiper-wrapper {
    border-radius: 1.5rem;
}

.banner-inset {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 -30px 60px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.banner-caption {
    z-index: 2;
}

.banner-slider .swiper-pagination {
    z-index: 2;
}

.banner-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    filter: brightness(0.90) contrast(1.08) saturate(0.8);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mySwiper .swiper-slide {
    transform: translateZ(0);
}

.mySwiper .swiper-slide img {
    will-change: opacity, transform;
}

.banner-slider:hover .banner-slide-img {
    transform: translateZ(0) scale(1.008);
}

.banner-slider:hover .banner-inset {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        inset 0 24px 72px rgba(0, 0, 0, 0.38),
        inset 0 -32px 72px rgba(0, 0, 0, 0.38);
}

@media (min-width: 1024px) {
    .banner-slider {
        height: 22rem;
    }
}

@media (max-width: 640px) {
    .banner-slider {
        height: 14rem;
        border-radius: 1rem;
    }

    .banner-slider .swiper-wrapper {
        border-radius: 1rem;
    }

    .banner-caption {
        padding: 12px 14px !important;
    }

    .banner-title {
        font-size: 1.125rem !important;
        line-height: 1.25 !important;
    }

    .banner-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.35 !important;
        opacity: 0.9;
    }

    .banner-gradient {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.7) 100%);
    }

    .banner-slide-img {
        filter: brightness(0.94) contrast(1.04) saturate(0.9);
    }
}

/* Ensure captions sit over the image and not outside on mobile */
.banner-slider {
    position: relative;
}

.banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* === SECTION TRANSITION BLENDING - Deaktiviert === */
/*:root {
    --section-fade-size: 72px;
}

body {
    background-color: #0b1323;
    background-image:
        linear-gradient(180deg, #0b1323 0%, #0f172a 35%, #111827 65%, #0b1323 100%);
    background-attachment: fixed;
}

section {
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 1) var(--section-fade-size),
            rgba(0, 0, 0, 1) calc(100% - var(--section-fade-size)),
            rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0,
            rgba(0, 0, 0, 1) var(--section-fade-size),
            rgba(0, 0, 0, 1) calc(100% - var(--section-fade-size)),
            rgba(0, 0, 0, 0) 100%);
}

.no-blend,
.hero-section {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

@media (max-width: 640px) {
    :root {
        --section-fade-size: 44px;
    }
}*/

.icon-calendar-mask {
    -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <rect x="4" y="10" width="56" height="50" rx="6" fill="none" stroke="white" stroke-width="4"/>\
  <rect x="4" y="10" width="56" height="14" rx="6" fill="white"/>\
  <line x1="20" y1="4" x2="20" y2="14" stroke="white" stroke-width="4" stroke-linecap="round"/>\
  <line x1="44" y1="4" x2="44" y2="14" stroke="white" stroke-width="4" stroke-linecap="round"/>\
  <circle cx="20" cy="32" r="3" fill="white"/>\
  <circle cx="32" cy="32" r="3" fill="white"/>\
  <circle cx="44" cy="32" r="3" fill="white"/>\
  <circle cx="20" cy="44" r="3" fill="white"/>\
  <circle cx="32" cy="44" r="3" fill="white"/>\
  <circle cx="44" cy="44" r="3" fill="white"/>\
</svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <rect x="4" y="10" width="56" height="50" rx="6" fill="none" stroke="white" stroke-width="4"/>\
  <rect x="4" y="10" width="56" height="14" rx="6" fill="white"/>\
  <line x1="20" y1="4" x2="20" y2="14" stroke="white" stroke-width="4" stroke-linecap="round"/>\
  <line x1="44" y1="4" x2="44" y2="14" stroke="white" stroke-width="4" stroke-linecap="round"/>\
  <circle cx="20" cy="32" r="3" fill="white"/>\
  <circle cx="32" cy="32" r="3" fill="white"/>\
  <circle cx="44" cy="32" r="3" fill="white"/>\
  <circle cx="20" cy="44" r="3" fill="white"/>\
  <circle cx="32" cy="44" r="3" fill="white"/>\
  <circle cx="44" cy="44" r="3" fill="white"/>\
</svg>') center / contain no-repeat;
}

.icon-buildings-mask {
    -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <rect x="4" y="52" width="56" height="2" rx="1" fill="white"/>\
  <rect x="6" y="26" width="16" height="26" rx="2" fill="white"/>\
  <g fill="black">\
    <rect x="9" y="30" width="4" height="4" rx="0.5"/>\
    <rect x="15" y="30" width="4" height="4" rx="0.5"/>\
    <rect x="9" y="36" width="4" height="4" rx="0.5"/>\
    <rect x="15" y="36" width="4" height="4" rx="0.5"/>\
    <rect x="9" y="42" width="4" height="4" rx="0.5"/>\
    <rect x="15" y="42" width="4" height="4" rx="0.5"/>\
  </g>\
  <rect x="31" y="8" width="2" height="6" rx="1" fill="white"/>\
  <rect x="26" y="12" width="12" height="40" rx="2" fill="white"/>\
  <g fill="black">\
    <rect x="30" y="18" width="4" height="3" rx="0.5"/>\
    <rect x="30" y="24" width="4" height="3" rx="0.5"/>\
    <rect x="30" y="30" width="4" height="3" rx="0.5"/>\
    <rect x="30" y="36" width="4" height="3" rx="0.5"/>\
  </g>\
  <rect x="44" y="20" width="14" height="32" rx="2" fill="white"/>\
  <g fill="black">\
    <rect x="46" y="24" width="4" height="4" rx="0.5"/>\
    <rect x="52" y="24" width="4" height="4" rx="0.5"/>\
    <path d="M51 52a5 5 0 0 0 5-5v-5a5 5 0 0 0-10 0v5a5 5 0 0 0 5 5z"/>\
  </g>\
</svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <rect x="4" y="52" width="56" height="2" rx="1" fill="white"/>\
  <rect x="6" y="26" width="16" height="26" rx="2" fill="white"/>\
  <g fill="black">\
    <rect x="9" y="30" width="4" height="4" rx="0.5"/>\
    <rect x="15" y="30" width="4" height="4" rx="0.5"/>\
    <rect x="9" y="36" width="4" height="4" rx="0.5"/>\
    <rect x="15" y="36" width="4" height="4" rx="0.5"/>\
    <rect x="9" y="42" width="4" height="4" rx="0.5"/>\
    <rect x="15" y="42" width="4" height="4" rx="0.5"/>\
  </g>\
  <rect x="31" y="8" width="2" height="6" rx="1" fill="white"/>\
  <rect x="26" y="12" width="12" height="40" rx="2" fill="white"/>\
  <g fill="black">\
    <rect x="30" y="18" width="4" height="3" rx="0.5"/>\
    <rect x="30" y="24" width="4" height="3" rx="0.5"/>\
    <rect x="30" y="30" width="4" height="3" rx="0.5"/>\
    <rect x="30" y="36" width="4" height="3" rx="0.5"/>\
  </g>\
  <rect x="44" y="20" width="14" height="32" rx="2" fill="white"/>\
  <g fill="black">\
    <rect x="46" y="24" width="4" height="4" rx="0.5"/>\
    <rect x="52" y="24" width="4" height="4" rx="0.5"/>\
    <path d="M51 52a5 5 0 0 0 5-5v-5a5 5 0 0 0-10 0v5a5 5 0 0 0 5 5z"/>\
  </g>\
</svg>') center / contain no-repeat;
}

.icon-scale-mask {
    -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <rect x="20" y="56" width="24" height="4" rx="2" fill="white"/>\
  <rect x="30" y="16" width="4" height="44" rx="2" fill="white"/>\
  <rect x="16" y="16" width="32" height="4" rx="2" fill="white"/>\
  <circle cx="32" cy="18" r="3" fill="white"/>\
  <line x1="20" y1="20" x2="20" y2="28" stroke="white" stroke-width="2"/>\
  <line x1="44" y1="20" x2="44" y2="28" stroke="white" stroke-width="2"/>\
  <path d="M12 28h16c0 8-8 14-8 14s-8-6-8-14z" fill="white"/>\
  <path d="M36 28h16c0 8-8 14-8 14s-8-6-8-14z" fill="white"/>\
</svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <rect x="20" y="56" width="24" height="4" rx="2" fill="white"/>\
  <rect x="30" y="16" width="4" height="44" rx="2" fill="white"/>\
  <rect x="16" y="16" width="32" height="4" rx="2" fill="white"/>\
  <circle cx="32" cy="18" r="3" fill="white"/>\
  <line x1="20" y1="20" x2="20" y2="28" stroke="white" stroke-width="2"/>\
  <line x1="44" y1="20" x2="44" y2="28" stroke="white" stroke-width="2"/>\
  <path d="M12 28h16c0 8-8 14-8 14s-8-6-8-14z" fill="white"/>\
  <path d="M36 28h16c0 8-8 14-8 14s-8-6-8-14z" fill="white"/>\
</svg>') center / contain no-repeat;
}

/* Detailed Stats */
.icon-stats-mask {
    -webkit-mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <line x1="10" y1="10" x2="10" y2="54" stroke="white" stroke-width="3"/>\
  <line x1="10" y1="54" x2="54" y2="54" stroke="white" stroke-width="3"/>\
  <polyline points="16,46 26,34 36,42 46,20 54,28" fill="none" stroke="white" stroke-width="3"/>\
  <circle cx="16" cy="46" r="3" fill="white"/>\
  <circle cx="26" cy="34" r="3" fill="white"/>\
  <circle cx="36" cy="42" r="3" fill="white"/>\
  <circle cx="46" cy="20" r="3" fill="white"/>\
  <circle cx="54" cy="28" r="3" fill="white"/>\
  <circle cx="10" cy="54" r="3" fill="white"/>\
</svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\
  <line x1="10" y1="10" x2="10" y2="54" stroke="white" stroke-width="3"/>\
  <line x1="10" y1="54" x2="54" y2="54" stroke="white" stroke-width="3"/>\
  <polyline points="16,46 26,34 36,42 46,20 54,28" fill="none" stroke="white" stroke-width="3"/>\
  <circle cx="16" cy="46" r="3" fill="white"/>\
  <circle cx="26" cy="34" r="3" fill="white"/>\
  <circle cx="36" cy="42" r="3" fill="white"/>\
  <circle cx="46" cy="20" r="3" fill="white"/>\
  <circle cx="54" cy="28" r="3" fill="white"/>\
  <circle cx="10" cy="54" r="3" fill="white"/>\
</svg>') center / contain no-repeat;
}

/* Detailed stats section background handled inline to match Base-Statistik */

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    /* border thickness */
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(99, 102, 241, 0.25));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover::after {
    opacity: 1;
}

/* Player card color accent using inline --player-color */
.player-card {
    border-color: rgba(255, 255, 255, 0.14);
    border-top: 3px solid var(--player-color);
}

.player-card:hover {
    box-shadow: 0 10px 30px color-mix(in srgb, var(--player-color) 28%, rgba(0, 0, 0, 0.5));
}