* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #512377;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #fff;
}
.link-style {
        color: #ffffff;
        text-decoration: none;
        font-weight: bold;
    }

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #51066e;
    perspective: 1000px;
}

.grid-container {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(84, 21, 192, 0.3) 49px,
            rgba(124, 58, 237, 0.3) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(124, 58, 237, 0.3) 49px,
            rgba(124, 58, 237, 0.3) 50px
        );
    animation: gridMove 5s linear infinite;
    transform: rotateX(60deg);
    transform-origin: center center;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, #0a0a1a 70%);
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.glow-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(58, 0, 112, 0.6) 0%, transparent 70%);
    top: -10%;
    left: 20%;
    animation: float 25s infinite ease-in-out;
}

.glow-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(153, 0, 255, 0.5) 0%, transparent 70%);
    bottom: -10%;
    right: 20%;
    animation: float 30s infinite ease-in-out reverse;
}

@keyframes gridMove {
    0% {
        transform: rotateX(60deg) translateY(0) translateX(0);
    }
    100% {
        transform: rotateX(60deg) translateY(50px) translateX(50px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-30px, 30px);
    }
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease;
}

.avatar img.yt-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.5);
    animation: pulse 2s infinite;
}

.channel-name {
    color: #ffffff;
    text-decoration: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

.section {
    background: rgba(26, 15, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.3);
    animation: fadeInUp 0.8s ease;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 i {
    font-size: 28px;
}

.about-text {
    line-height: 1.6;
    opacity: 0.95;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* max 1fr = gleichmäßige Breite */
    gap: 20px;
}

.video-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 200px;          /* feste Höhe für alle Karten */
    width: 280px;
}

.video-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.thumbnail-wrapper {
    width: 100%;            /* was 103% - make it fit the card */
    height: 160px;         /* fixed height for consistent thumbnails */
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* keep cover */
    object-position: center;/* ensure crop is centered */
    display: block;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-btn i {
    font-size: 24px;
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.news-date {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-content {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 28px;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: 1fr;
    }
    
    
}