/*
 * Programm: fluxsystems Webseite
 * Datei: fernseher.css
 * Datum: 18.10.2026
 * Autor: Lukas Fassbender
 * Änderungen: KI wurde zur unterstützung verwendet
*/

/* animierbar, damit gsap den einschalteffekt über eine variable steuern kann */
@property --einschalten
{
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

.fernseher-buehne
{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--spalten-abstand);
    row-gap: 3rem;
    align-items: center;
    margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.fernseher-buehne[hidden]
{
    display: none;
}

.fernseher
{
    grid-column: 1 / span 7;
    width: 100%;
    max-width: 46rem;
}

/* gehäuse aus dunklem kunststoff */
.fernseher__gehaeuse
{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
    padding: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
    background: linear-gradient(160deg, #262a33, #15171c 60%);
    border: 1px solid var(--farbe-linie);
    border-radius: 1.6rem;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.06),
        0 2.5rem 4rem -1.5rem rgb(0 0 0 / 0.8);
}

.fernseher__bildschirm
{
    --einschalten: 1;

    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1.4rem / 1.8rem;
    background-color: #040506;
    box-shadow:
        0 0 0 0.55rem #0c0d10,
        inset 0 0 2.5rem rgb(0 0 0 / 0.9);
    container-type: inline-size;
    touch-action: pan-y;
}

/* scanlines und glasreflex liegen über allem */
.fernseher__bildschirm::before,
.fernseher__bildschirm::after
{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.fernseher__bildschirm::before
{
    background: repeating-linear-gradient(to bottom, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 3px);
}

.fernseher__bildschirm::after
{
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 30% 15%, rgb(255 255 255 / 0.08), transparent 45%),
        radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / 0.65) 100%);
}

.fernseher__inhalt
{
    position: absolute;
    inset: 0;
    transform: scale(1, var(--einschalten));
    filter: brightness(calc(0.4 + var(--einschalten) * 0.6));
}

.fernseher__rauschen
{
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    opacity: 0;
    pointer-events: none;
}

.fernseher__rauschen.ist-aktiv
{
    opacity: 0.85;
}

.fernseher__kanal
{
    position: absolute;
    top: 5cqw;
    right: 6cqw;
    z-index: 4;
    font-size: 4.2cqw;
    color: var(--farbe-flux);
    text-shadow: 0 0 1.2cqw var(--farbe-flux);
    pointer-events: none;
}

/* bedienfeld rechts */
.fernseher__bedienung
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.7rem, 0.5rem + 0.8vw, 1.2rem);
    width: clamp(5.5rem, 4.5rem + 3vw, 8rem);
    padding-top: 0.4rem;
}

.fernseher__marke
{
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--farbe-text-leise);
}

.fernseher__anzeige
{
    width: 100%;
    padding: 0.35rem 0;
    text-align: center;
    font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
    color: var(--farbe-flux);
    text-shadow: 0 0 0.6rem rgb(91 240 200 / 0.7);
    background-color: #08130f;
    border: 1px solid #1b2a24;
    border-radius: 0.4rem;
}

.fernseher__regler
{
    position: relative;
    width: clamp(3.6rem, 3rem + 2vw, 5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #4a505c, #22262e 60%, #15171c);
    border: 1px solid #3a3f4a;
    box-shadow:
        0 0.4rem 0.8rem rgb(0 0 0 / 0.6),
        inset 0 1px 0 rgb(255 255 255 / 0.12);
    touch-action: none;
    cursor: grab;
}

.fernseher__regler:active
{
    cursor: grabbing;
}

.fernseher__regler-griff
{
    position: absolute;
    top: 0.35rem;
    left: 50%;
    width: 3px;
    height: 30%;
    margin-left: -1.5px;
    border-radius: 2px;
    background-color: var(--farbe-flux);
    box-shadow: 0 0 0.4rem var(--farbe-flux);
}

.fernseher__knoepfe
{
    display: flex;
    gap: 0.5rem;
}

.fernseher__knoepfe button
{
    width: 2rem;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 0.6rem;
    color: var(--farbe-text-leise);
    background: linear-gradient(#2c3039, #1a1c22);
    border: 1px solid #3a3f4a;
    transition: color 0.2s, border-color 0.2s;
}

.fernseher__knoepfe button:hover
{
    color: var(--farbe-flux);
    border-color: var(--farbe-flux);
}

.fernseher__knoepfe button:active
{
    translate: 0 1px;
}

.fernseher__lautsprecher
{
    flex: 1;
    width: 100%;
    min-height: 3rem;
    background: radial-gradient(circle, #050608 1.4px, transparent 1.8px) 0 0 / 7px 7px;
    opacity: 0.9;
}

.fernseher__fuss
{
    display: flex;
    justify-content: space-between;
    padding-inline: 16%;
}

.fernseher__fuss span
{
    width: 3rem;
    height: 0.7rem;
    background-color: #121418;
    border-radius: 0 0 0.4rem 0.4rem;
}

/* infotext neben dem fernseher */
.fernseher-info
{
    grid-column: 8 / span 5;
    display: grid;
    gap: 1.1rem;
    align-content: center;
}

.fernseher-info__titel
{
    font-size: var(--groesse-titel);
}

.fernseher-info__text
{
    color: var(--farbe-text-leise);
    max-width: 44ch;
}

.fernseher-info .knopf
{
    justify-self: start;
}

.fernseher-info .knopf[hidden]
{
    display: none;
}

/* programmübersicht unter dem fernseher */
.hat-fernseher .projekt
{
    cursor: pointer;
    transition: background-color 0.3s;
}

.hat-fernseher .projekt:hover,
.hat-fernseher .projekt.ist-aktiv
{
    background-color: var(--farbe-flaeche);
}

.hat-fernseher .projekt.ist-aktiv .projekt__kanal
{
    text-shadow: 0 0 0.6rem var(--farbe-flux);
}

.hat-fernseher .projekt__kanal
{
    padding-left: 0.75rem;
}

/* stilisierte bildschirminhalte */
.schirm
{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 3cqw;
    padding: 9cqw 7cqw 7cqw;
    font-family: var(--schrift-mono);
    font-size: 3.6cqw;
    line-height: 1.4;
    color: var(--farbe-flux);
    background: radial-gradient(ellipse at center, #10261f, #050907 85%);
    text-shadow: 0 0 1cqw rgb(91 240 200 / 0.45);
}

.schirm--bild
{
    padding: 0;
}

.schirm--bild img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.schirm__kopf
{
    padding-bottom: 2cqw;
    border-bottom: 1px solid rgb(91 240 200 / 0.3);
    text-transform: uppercase;
    opacity: 0.75;
}

.schirm__liste
{
    display: grid;
    gap: 2.5cqw;
}

.schirm__liste li
{
    display: flex;
    align-items: center;
    gap: 2.5cqw;
}

.schirm__liste span
{
    margin-left: auto;
    opacity: 0.7;
}

.schirm__led
{
    width: 2cqw;
    height: 2cqw;
    border-radius: 50%;
    background-color: var(--farbe-flux);
    box-shadow: 0 0 1.5cqw var(--farbe-flux);
}

.schirm__fuss
{
    margin-top: auto;
    opacity: 0.55;
}

.schirm--desktop
{
    justify-content: center;
    background: radial-gradient(ellipse at 30% 20%, #16302a, #070c0b 80%);
}

.schirm__fenster
{
    position: relative;
    display: grid;
    gap: 2cqw;
    width: 72%;
    margin-inline: auto;
    padding: 5cqw;
    border: 1px solid rgb(91 240 200 / 0.5);
    border-radius: 2cqw;
    background-color: rgb(10 25 21 / 0.9);
}

.schirm__titel
{
    font-weight: 700;
    color: var(--farbe-text);
}

.schirm__fenster b
{
    font-weight: 600;
    color: var(--farbe-text);
}

.schirm__schalter
{
    position: absolute;
    top: 5cqw;
    right: 5cqw;
    width: 9cqw;
    height: 4.5cqw;
    border-radius: 999px;
    background-color: var(--farbe-flux);
}

.schirm__schalter::after
{
    content: "";
    position: absolute;
    top: 0.6cqw;
    right: 0.6cqw;
    width: 3.3cqw;
    height: 3.3cqw;
    border-radius: 50%;
    background-color: #06120e;
}

.schirm__leiste
{
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3cqw;
    padding: 1.5cqw 5cqw;
    font-size: 2.6cqw;
    background-color: rgb(0 0 0 / 0.5);
}

.schirm__tray
{
    width: 3cqw;
    height: 3cqw;
    border-radius: 0.6cqw;
    background-color: var(--farbe-flux);
    box-shadow: 0 0 1.5cqw var(--farbe-flux);
}

.schirm__karten
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3cqw;
}

.schirm__karten div
{
    display: grid;
    gap: 1.5cqw;
    padding: 3.5cqw;
    border: 1px solid rgb(91 240 200 / 0.35);
    border-radius: 1.5cqw;
}

.schirm__karten b
{
    color: var(--farbe-text);
}

.schirm__karten span
{
    opacity: 0.7;
}

.schirm__balken
{
    display: block;
    width: 80%;
    height: 1.4cqw;
    background-color: var(--farbe-flux);
}

.schirm__balken--kurz
{
    width: 55%;
}

.schirm--terminal
{
    gap: 1.5cqw;
}

.schirm--terminal b
{
    color: var(--farbe-text);
}

.schirm__cursor
{
    display: inline-block;
    width: 2cqw;
    height: 3.6cqw;
    vertical-align: middle;
    background-color: var(--farbe-flux);
    animation: cursor-blinken 1s steps(1) infinite;
}

/* platz für die kanalanzeige oben rechts */
.schirm--er
{
    padding-top: 14cqw;
}

.schirm__tabellen
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4cqw;
    align-items: start;
}

.schirm__tabellen div
{
    position: relative;
    display: grid;
    border: 1px solid rgb(91 240 200 / 0.5);
    border-radius: 1cqw;
}

.schirm__tabellen b
{
    padding: 1.2cqw 2cqw;
    color: var(--farbe-grund);
    background-color: var(--farbe-flux);
    text-shadow: none;
}

.schirm__tabellen span
{
    padding: 0.8cqw 2cqw;
    font-size: 3cqw;
    opacity: 0.8;
}

/* verbindungslinien zwischen den tabellen */
.schirm__tabellen div + div::before
{
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    width: 4cqw;
    height: 1px;
    background-color: var(--farbe-flux);
}

.schirm__code
{
    margin-top: auto;
    font-size: 3cqw;
    opacity: 0.75;
}

.schirm--klassen
{
    align-items: center;
    justify-content: center;
    gap: 0;
}

.schirm__oben,
.schirm__unten div
{
    display: grid;
    padding: 2cqw 4cqw;
    text-align: center;
    border: 1px solid rgb(91 240 200 / 0.6);
    border-radius: 1cqw;
}

.schirm__oben i
{
    font-size: 2.8cqw;
    opacity: 0.7;
}

.schirm__oben b,
.schirm__unten b
{
    color: var(--farbe-text);
}

.schirm__oben span,
.schirm__unten span
{
    font-size: 2.8cqw;
    opacity: 0.7;
}

.schirm__pfeile
{
    width: 46%;
    height: 9cqw;
    border: 1px solid var(--farbe-flux);
    border-bottom: none;
    border-radius: 1cqw 1cqw 0 0;
    margin-top: 4cqw;
    position: relative;
}

.schirm__pfeile::before
{
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 1px;
    height: 4cqw;
    background-color: var(--farbe-flux);
}

.schirm__unten
{
    display: flex;
    gap: 14cqw;
}

@media (max-width: 1024px)
{
    .fernseher,
    .fernseher-info
    {
        grid-column: 1 / -1;
    }

    .fernseher
    {
        justify-self: center;
    }
}

@media (max-width: 760px)
{
    .fernseher-buehne
    {
        grid-template-columns: 1fr;
    }

    .fernseher__gehaeuse
    {
        grid-template-columns: 1fr;
    }

    /* auf dem handy liegt das bedienfeld quer unter dem bildschirm */
    .fernseher__bedienung
    {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding-top: 0;
    }

    .fernseher__marke,
    .fernseher__lautsprecher
    {
        display: none;
    }

    .fernseher__anzeige
    {
        width: auto;
        padding-inline: 0.75rem;
    }
}
