* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #050505;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(at 0% 0%, rgba(79, 140, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 4rem;
}

main {
    width: 100%;
}

.status-tag {
    display: inline-block;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.lead {
    max-width: 700px;
    margin: 0 auto;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
}

.brand-m { color: #60a5fa; }
.brand-y { color: #a855f7; }
.brand-S { color: #ec4899; }
.brand-e { color: #f59e0b; }
.brand-b1 { color: #10b981; }
.brand-b2 { color: #3b82f6; }
.brand-e2 { color: #ef4444; }

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.projects-section {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.icon-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
}

.glass-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff !important;
}

.theme-sekretariat .icon-box { background: rgba(251, 191, 36, 0.1); border: 1px solid #fbbf2433; }
.theme-sekretariat .icon-token { color: #fbbf24; }
.theme-openclaw .icon-box,
.theme-dubaix .icon-box { background: rgba(59, 130, 246, 0.1); border: 1px solid #3b82f633; }
.theme-openclaw .icon-token,
.theme-dubaix .icon-token { color: #3b82f6; }
.theme-portfolio .icon-box { background: rgba(255, 255, 255, 0.05); border: 1px solid #ffffff33; }
.theme-portfolio .icon-token { color: #ffffff; }
.theme-diablo .icon-box { background: rgba(185, 28, 28, 0.1); border: 1px solid #b91c1c33; }
.theme-diablo .icon-token { color: #b91c1c; }
.theme-apexiom .icon-box { background: rgba(0, 150, 199, 0.1); border: 1px solid #0096C733; }
.theme-apexiom .icon-token { color: #0096C7; }
.theme-sternenstaub .icon-box { background: rgba(168, 85, 247, 0.1); border: 1px solid #a855f733; }
.theme-sternenstaub .icon-token { color: #a855f7; }
.theme-leon .icon-box { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef444433; }
.theme-leon .icon-token { color: #ef4444; }
.theme-slowenien .icon-box { background: rgba(20, 184, 166, 0.1); border: 1px solid #14b8a633; }
.theme-slowenien .icon-token { color: #14b8a6; }

.desc {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.link-text {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-text::after {
    content: "↗";
    transition: transform 0.3s ease;
}

.glass-card:hover .link-text::after {
    transform: translateX(5px);
}

.socials {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    opacity: 0.82;
    transition: opacity 0.3s ease;
}

.socials:hover { opacity: 1; }

.social-link {
    color: #94a3b8;
    transition: transform 0.28s ease, color 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 70%),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 30px rgba(15, 23, 42, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.social-link svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
    fill: currentColor;
    transition: transform 0.28s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 68%),
        rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 38px rgba(15, 23, 42, 0.26);
}

.social-link:hover svg {
    transform: scale(1.04);
}

.social-link.insta:hover { color: #e1306c; }
.social-link.github:hover { color: #ffffff; }
.social-link.youtube:hover { color: #ff0000; }
.social-link.discord:hover { color: #5865f2; }
.social-link.twitch:hover { color: #9146ff; }
.social-link.twitter:hover,
.social-link.x-link:hover { color: #ffffff; }
.social-link.tiktok:hover { color: #ff0050; }
.social-link.github svg { width: 1.12rem; height: 1.12rem; }
.social-link.tiktok svg { width: 0.98rem; height: 0.98rem; }

.x-feed-card {
    gap: 1rem;
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.x-feed-slot {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.x-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.x-feed-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.x-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
    fill: currentColor;
}

.x-feed-open {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition: color 0.3s ease, transform 0.3s ease;
}

.x-feed-open:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.x-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 5rem;
}

.x-feed-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.x-feed-item:first-child {
    padding-top: 0;
    border-top: none;
}

.x-feed-item:hover .x-feed-text {
    color: #ffffff;
}

.x-feed-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.x-feed-body.has-image {
    grid-template-columns: minmax(0, 1fr) 68px;
}

.x-feed-text {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.x-feed-label {
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.x-feed-label span {
    color: #cbd5e1;
}

.x-feed-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.x-feed-meta {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.x-feed-state {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.x-feed-state a {
    color: #cbd5e1;
    text-decoration: none;
}

.x-feed-state a:hover {
    color: #ffffff;
}

footer {
    margin-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
    width: 100%;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #334155, transparent);
    margin: 0 auto 2rem;
}

footer p {
    color: #475569;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer-meta {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.footer-meta a {
    color: inherit;
    text-decoration: none;
}

.main-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    padding: 20px 24px;
    background: rgba(15, 15, 15, 0.97);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner__copy {
    flex: 1;
    min-width: 280px;
}

.cookie-banner__eyebrow {
    margin: 0 0 4px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
}

.cookie-banner__text {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: #a855f7;
}

.cookie-banner__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-banner__button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.cookie-banner__button--ghost {
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
}

.cookie-banner__button--ghost:hover {
    border-color: #666;
    color: #fff;
}

.cookie-banner__button--primary {
    border: none;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
}

.cookie-banner__button--primary:hover {
    filter: brightness(1.08);
}

@media (min-width: 1200px) {
    .container {
        max-width: 1500px;
    }

    .main-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .x-feed-aside {
        width: 340px;
        flex-shrink: 0;
        position: sticky;
        top: 2rem;
        order: -1;
    }

    .x-feed-aside .x-feed-slot {
        max-width: none;
        margin: 0;
    }

    .projects-section {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .container { padding: 1.5rem; }
    h1 { font-size: 3.5rem; }
    .grid { grid-template-columns: 1fr; }
}
