/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
    /* Color Palette - Schwarz-Rot Design */
    --primary-gradient: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    --secondary-gradient: linear-gradient(135deg, #CC0000 0%, #8B0000 100%);
    --success-gradient: linear-gradient(135deg, #FF0000 0%, #AA0000 100%);
    --warning-gradient: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    
    /* Glasmorphism - Schwarz mit Rot */
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 0, 0, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(255, 0, 0, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fonts */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Background & Animations
   =================================== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #000000 0%, 
        #1a0000 25%, 
        #330000 50%, 
        #1a0000 75%, 
        #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-lg) 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Profile Section
   =================================== */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-md);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid rgba(255, 0, 0, 0.5);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
    transition: transform var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 0, 0, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-bio {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Links Container - VOLLE BREITE
   =================================== */
.links-container {
    width: calc(100vw - 4rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: var(--spacing-xl);
}

/* Tablet: 2 Kacheln - VOLLE BREITE */
@media (min-width: 768px) {
    .links-container {
        grid-template-columns: repeat(2, 1fr);
        width: calc(100vw - 6rem);
        gap: 2rem;
    }
}

/* Desktop: 3 Kacheln - VOLLE BREITE */
@media (min-width: 1200px) {
    .links-container {
        grid-template-columns: repeat(3, 1fr);
        width: calc(100vw - 8rem);
        gap: 2.5rem;
    }
}

/* ===================================
   Link Cards (Fancy Tiles)
   =================================== */
.link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #ffffff;
    transition: all var(--transition-normal);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.card-background-image {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.link-card:hover .card-background-image {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.2) 0%, 
        rgba(255, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.6);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* Stagger animation for cards */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   Link Card Content
   =================================== */
.link-icon-wrapper {
    position: absolute;
    top: clamp(0.75rem, 3%, 1.5rem);
    left: clamp(0.75rem, 3%, 1.5rem);
    flex-shrink: 0;
    width: clamp(56px, 15%, 80px);
    height: clamp(56px, 15%, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: clamp(10px, 20%, 16px);
    border: 3px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    z-index: 10;
}

.link-card:hover .link-icon-wrapper {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 0, 0, 0.4);
}

.link-icon {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.link-icon.fa {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(0.5rem, 2%, 1rem);
    padding-bottom: clamp(0.75rem, 3%, 1.5rem);
}

.link-title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.link-description {
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.link-arrow {
    position: absolute;
    bottom: clamp(0.75rem, 3%, 1.5rem);
    right: clamp(0.75rem, 3%, 1.5rem);
    font-size: clamp(1.25rem, 3vw, 2rem);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translate(5px, 5px);
}

/* ===================================
   Platform-Specific Colors
   =================================== */

/* Instagram - Pink/Orange Gradient */
.link-card[data-platform="instagram"] {
    background: linear-gradient(135deg,
        rgba(131, 58, 180, 0.8) 0%,
        rgba(253, 29, 29, 0.8) 50%,
        rgba(252, 176, 69, 0.8) 100%);
}

.link-card[data-platform="instagram"]:hover {
    background: linear-gradient(135deg,
        rgba(131, 58, 180, 1) 0%,
        rgba(253, 29, 29, 1) 50%,
        rgba(252, 176, 69, 1) 100%);
    box-shadow: 0 15px 50px rgba(253, 29, 29, 0.6);
}

/* TikTok - Black/Cyan/Pink */
.link-card[data-platform="tiktok"] {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(255, 0, 80, 0.6) 50%,
        rgba(0, 242, 234, 0.6) 100%);
}

.link-card[data-platform="tiktok"]:hover {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(255, 0, 80, 0.8) 50%,
        rgba(0, 242, 234, 0.8) 100%);
    box-shadow: 0 15px 50px rgba(0, 242, 234, 0.6);
}

/* Facebook - Blue */
.link-card[data-platform="facebook"] {
    background: linear-gradient(135deg,
        rgba(24, 119, 242, 0.8) 0%,
        rgba(10, 88, 202, 0.8) 100%);
}

.link-card[data-platform="facebook"]:hover {
    background: linear-gradient(135deg,
        rgba(24, 119, 242, 1) 0%,
        rgba(10, 88, 202, 1) 100%);
    box-shadow: 0 15px 50px rgba(24, 119, 242, 0.6);
}

/* X (Twitter) - Black/White */
.link-card[data-platform="x"] {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(29, 155, 240, 0.6) 100%);
}

.link-card[data-platform="x"]:hover {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(29, 155, 240, 0.8) 100%);
    box-shadow: 0 15px 50px rgba(29, 155, 240, 0.6);
}

/* Website - Black/Red (EVD Colors) */
.link-card[data-platform="website"] {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(255, 0, 0, 0.8) 100%);
}

.link-card[data-platform="website"]:hover {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(255, 0, 0, 1) 100%);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.6);
}

/* Tickets - Black/Red (EVD Colors) */
.link-card[data-platform="tickets"] {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(204, 0, 0, 0.8) 50%,
        rgba(255, 0, 0, 0.8) 100%);
}

.link-card[data-platform="tickets"]:hover {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(204, 0, 0, 1) 50%,
        rgba(255, 0, 0, 1) 100%);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.6);
}

/* ===================================
   QR Code Button (Floating)
   =================================== */
.qr-code-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 1000;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.qr-code-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(255, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.qr-code-button:active {
    transform: scale(0.95);
}

.qr-code-button i {
    font-size: 1.8rem;
    color: white;
}

.qr-code-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.qr-code-button:hover .qr-code-tooltip {
    opacity: 1;
}

/* ===================================
   Footer
   =================================== */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 6rem;
}

.footer p {
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.separator {
    opacity: 0.5;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-bio {
        font-size: 1rem;
    }
    
    .links-container {
        grid-template-columns: 1fr;
    }
    
    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .link-card {
        padding: var(--spacing-sm);
    }
    
    .link-icon-wrapper {
        width: 48px;
        height: 48px;
    }
}

/* ===================================
   Site Navigation
   =================================== */
.site-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.nav-button:hover {
    background: rgba(204, 0, 0, 0.2);
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.2);
}

.nav-button i {
    font-size: 1.1rem;
}

/* ===================================
   Accessibility & Print
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .background-gradient,
    .particles {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===================================
   Loading State
   =================================== */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
