/* =====================================================================
   Tubica.de – Stylesheet
   Farb- und Typo-System oben, danach Komponenten in Seitenreihenfolge.
   ===================================================================== */

:root {
    /* Hintergruende */
    --bg:            #150b28;
    --bg-deep:       #0e0720;
    --surface:       #20123c;
    --surface-2:     #241340;
    --surface-3:     #2c1a4f;

    /* Akzente */
    --purple:        #a855f7;
    --purple-soft:   #8b5cf6;
    --pink:          #f472b6;
    --pink-strong:   #ec4899;
    --discord:       #5865F2;

    /* Text */
    --text:          #ffffff;
    --text-lav:      #c4b5fd;
    --text-muted:    #a394c4;
    --text-soft:     #ccbfe6;
    --text-cream:    #f6edc9;
    --text-dim:      #7c6ca0;

    --border:        rgba(139, 92, 246, .2);
    --border-strong: rgba(139, 92, 246, .28);

    /* Schriften */
    --font-head:     'Fredoka', sans-serif;
    --font-body:     'Nunito', sans-serif;
    --font-mono:     'Space Grotesk', monospace;

    --maxw:          1180px;
}

/* ---- Reset / Basis ------------------------------------------------- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset, damit Anker nicht unter der Sticky-Nav landen */
}

body {
    margin: 0;
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--text);
    overflow-x: hidden;
}

a { color: var(--text-lav); text-decoration: none; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 5vw;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    margin: 0;
}

/* ---- Navigation ---------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5vw;
    background: rgba(20, 10, 38, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, .18);
}

.site-nav__brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    letter-spacing: .02em;
}
.site-nav__brand span { color: var(--purple); }

.site-nav__links {
    display: flex;
    gap: 28px;
    font-weight: 700;
    font-size: 15px;
}
.site-nav__links a { color: var(--text-lav); }

/* ---- Hero (Nachthimmel) ------------------------------------------- */
.hero {
    position: relative;
    height: 25vh;          /* kompakt: Inhalt ist ohne Scrollen sichtbar */
    min-height: 200px;     /* auf kleinen Screens nicht zusammenfallen */
    max-height: 280px;
    z-index: 10;
}

.hero__sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #3a1d6e 0%, #5b2a8f 38%, #8b3a86 70%, #b14a7a 100%);
}

.hero__moon {
    position: absolute;
    top: 10%;
    right: 9%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #ffe9f2);
    box-shadow: 0 0 50px 14px rgba(255, 120, 170, .55);
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: tb-twinkle 3s ease-in-out infinite;
}

.star--shooting {
    box-shadow: 0 0 8px 2px #fff;
    animation: tb-shoot 7s ease-in 1.5s infinite;
}

.hero__mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.hero__logo {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    width: 118px;
    height: 118px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
    animation: tb-bob 5s ease-in-out infinite;
    z-index: 20;
}

/* ---- Stream-Karte (live / offline) -------------------------------- */
.stream {
    padding: 62px 0 24px;
}

.stream-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 26px;
    padding: 22px;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: 0 24px 50px -24px rgba(139, 92, 246, .5);
}

/* Klickbares Vorschaubild mit Play-Button */
.stream-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, .25);
    background:
        repeating-linear-gradient(45deg, #2d1b4e, #2d1b4e 13px, #34215c 13px, #34215c 26px);
    cursor: pointer;
}
.stream-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.stream-card__media:hover img { transform: scale(1.05); }

.stream-card__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9683c0;
    z-index: 1;
}

/* Abdunkelung + Play-Button beim Hover */
.stream-card__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(14, 7, 32, .15), rgba(14, 7, 32, .5));
    opacity: 0;
    transition: opacity .22s ease;
    z-index: 2;
}
.stream-card__media:hover .stream-card__overlay { opacity: 1; }

.stream-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    z-index: 3;
    pointer-events: none; /* Klicks gehen an den umschliessenden Link */
    filter: drop-shadow(0 8px 18px rgba(14, 7, 32, .6));
    transition: transform .22s ease;
}
.stream-card__play svg { display: block; width: 100%; height: 100%; }
/* Pfeil standardmaessig weiss, beim Hover farbig (Verlauf) */
.stream-card__play path { fill: #fff; transition: fill .2s ease; }
.stream-card__media:hover .stream-card__play path { fill: url(#playGrad); }
.stream-card__media:hover .stream-card__play {
    transform: translate(-50%, -50%) scale(1.12);
}

.stream-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.stream-card__tag {
    align-self: flex-start;
    background: rgba(168, 85, 247, .2);
    color: var(--text-lav);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 8px;
}

.stream-card__title {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text);
    font-size: 28px;
    margin: 0;
    line-height: 1.15;
}

.stream-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}
.stream-card__meta .accent { color: var(--pink); }

/* Badges auf dem Video */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .08em;
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 4;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; }

.badge--live {
    background: var(--pink-strong);
    color: #fff;
    animation: tb-pulse 2.2s infinite;
}
.badge--live .badge__dot { background: #fff; }

.badge--offline {
    background: rgba(14, 7, 32, .72);
    color: var(--text-lav);
    border: 1px solid rgba(139, 92, 246, .4);
}
.badge--offline .badge__dot { background: var(--text-dim); }

.badge--duration {
    top: auto;
    left: auto;
    bottom: 12px;
    right: 12px;
    background: rgba(14, 7, 32, .85);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 6px;
}

/* Haupt-Button (Verlauf) */
.btn-primary {
    align-self: flex-start;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    padding: 13px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 24px -8px rgba(236, 72, 153, .7);
    transition: transform .18s;
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }

.btn-primary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .18s;
}
.btn-primary:hover svg { transform: translateX(3px); }

/* ---- Socials ------------------------------------------------------- */
.socials {
    padding: 44px 0 20px;
}
.socials__title {
    color: var(--text-cream);
    font-size: 26px;
    margin: 0 0 18px;
    text-align: center;
}
.socials__grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 150px;
    padding: 20px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform .2s;
}
.social-card:hover { transform: translateY(-6px) rotate(-2deg); }
.social-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-card__name { font-weight: 800; font-size: 15px; color: #eee6fb; }
.social-card__handle { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---- Ueber mich ---------------------------------------------------- */
.about {
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
}
.about__title {
    color: var(--purple);
    font-size: 28px;
    margin: 0 0 14px;
}
.about__text {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px;
}
.about__text:last-child { margin-bottom: 0; }

.about__photo-wrap {
    position: relative;
    transform: rotate(3deg);
}
.about__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg, #2d1b4e, #2d1b4e 12px, #34215c 12px, #34215c 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
}

/* KI-Kennzeichnung auf dem Foto (EU AI Act, Art. 50) */
.about__ai-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 5px 10px;
    border-radius: 9px;
    background: rgba(14, 7, 32, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
    color: #eee6fb;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1;
}
.about__ai-badge svg { flex-shrink: 0; opacity: .9; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-placeholder {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .12em;
    color: #8b7bb0;
    text-transform: uppercase;
}
.about__sticker {
    position: absolute;
    top: -14px;
    right: -10px;
    background: var(--pink);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 10px;
    transform: rotate(8deg);
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .6);
}

/* ---- Community / Discord ------------------------------------------ */
.community {
    padding: 24px 0 64px;
}
.discord-cta {
    position: relative;
    border-radius: 22px;
    padding: 44px 34px;
    text-align: center;
    background: linear-gradient(135deg, var(--discord), var(--purple-soft));
    box-shadow: 0 24px 50px -22px rgba(88, 101, 242, .7);
}
.discord-cta__status {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 999px;
}
.discord-cta__status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3ba55d;
    box-shadow: 0 0 8px 1px #3ba55d;
    animation: tb-glow 1.6s infinite;
}
.discord-cta__title {
    color: #fff;
    font-size: 30px;
    margin: 0 0 10px;
}
.discord-cta__text {
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    margin: 0 0 22px;
}
.btn-white {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: #4c4fc4;
    background: #fff;
    padding: 14px 34px;
    border-radius: 14px;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .4);
    transition: transform .18s;
}
.btn-white:hover { transform: translateY(-2px); color: #4c4fc4; }

/* ---- Footer -------------------------------------------------------- */
.site-footer {
    display: flex;
    justify-content: space-between;
    padding: 22px 5vw;
    background: var(--bg-deep);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 700;
}
.site-footer__links { display: flex; gap: 24px; }

/* ---- Rechtstext-Seiten (Datenschutz / Impressum) ------------------ */
.legal {
    max-width: 820px;
    padding: 48px 0 72px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.75;
}
.legal h1 {
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    font-size: 32px;
    margin: 0 0 24px;
}
.legal h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--purple);
    font-size: 23px;
    margin: 44px 0 12px;
}
.legal h3 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-cream);
    font-size: 18px;
    margin: 26px 0 8px;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal strong { color: #efe8fb; }
.legal a { color: var(--text-lav); word-break: break-word; }
.legal a:hover { color: var(--pink); }

/* ---- Animationen --------------------------------------------------- */
@keyframes tb-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-12px); }
}
@keyframes tb-twinkle {
    0%, 100% { opacity: .25; }
    50%      { opacity: 1; }
}
@keyframes tb-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(236, 72, 153, .55); }
    70%  { box-shadow: 0 0 0 13px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
@keyframes tb-glow {
    0%, 100% { opacity: .45; }
    50%      { opacity: 1; }
}
@keyframes tb-shoot {
    0%   { transform: translate(0, 0); opacity: 0; }
    8%   { opacity: 1; }
    100% { transform: translate(-260px, 150px); opacity: 0; }
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 760px) {
    .stream-card { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; }
    .about__photo-wrap { max-width: 320px; margin: 0 auto; }
    .site-nav__links { gap: 18px; font-size: 14px; }
    .stream-card__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
}
