/* =========================================
   GLOBAL STYLES
   ========================================= */

   :root {
    --farbe: rgb(236, 0, 0);
    --weiss: rgb(255, 255, 255);
    --schwarz: rgb(0, 0, 0);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--weiss);
    color: var(--schwarz);
    font-family: 'Urbanist', sans-serif;
        height: 100vh; /* Fallback */
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom); /* iOS & Arc safe area */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* =========================================
   HEADER
   ========================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

header a {
    margin: 0;
    font-size: 5rem;
    font-weight: 100;
    line-height: 0.8;
    position: relative;
    display: inline-block;
    color: var(--schwarz);
    text-decoration: none;
    cursor: pointer;
}

header a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: var(--schwarz);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.2s ease-out;
}

header a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================================
   ABSCHERBÄNDER (TAPES)
   ========================================= */

.tape {
    position: absolute;
    min-width: 110%;
    height: 40px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.tape1,
.tape2 {
    left: -5vw;
    top: 47%;
}

.tape1 {
    transform: rotate(8deg);
}

.tape2 {
    transform: rotate(-8deg);
}

/* =========================================
   ERSTES BAND: KACHELN
   ========================================= */

.strip {
    position: absolute;
    display: flex;
    height: 100vw;
    animation: move 400s linear infinite;
}

.tile {
    width: 120px;
    height: 120vw;
    transform: skewX(-20deg);
    flex: 0 0 auto;
}

.tile:nth-child(odd) {
    background: var(--farbe);
}

.tile:nth-child(even) {
    background: var(--weiss);
}

@keyframes move {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* =========================================
   ZWEITES BAND: LAUFENDER TEXT
   ========================================= */

.strip-text {
    position: absolute;
    display: flex;
    align-items: center;
    height: 100%;
    animation: scrollText 30s linear infinite;
    font-size: clamp(1.5em, 3vw, 2.5em);
    color: var(--weiss);
    background: var(--farbe);
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 200;
}

@keyframes scrollText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 200;
}

footer a {
    color: var(--schwarz);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 2px;
    left: 0;
    background-color: var(--schwarz);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.2s ease-out;
}

footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================================
   LEGAL NOTICE / MAIN CONTENT
   ========================================= */

main {
    max-width: 50vw;
    padding: 20px;
}

main h1 {
    font-size: 2rem;
    font-weight: 100;
    text-transform: uppercase;
    line-height: 1;
}

main h2 {
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1;
}

main p {
    font-size: 1.1rem;
    font-weight: 100;
    line-height: 1;
    margin-left: 20px;
}

main a {
    color: var(--schwarz);
    text-decoration: none;
    position: relative;
}

main a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--schwarz);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.2s ease-out;
}

main a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (min-width: 521px) and (max-width: 900px) {

    header a {
        font-size: 3em;
    }

    .tape1 {
        transform: rotate(12deg);
    }
    .tape2 {
        transform: rotate(-12deg);
    }

    .strip {
        animation: move 300s linear infinite;
    }
    .strip-text {
        animation: scrollText 10s linear infinite;
    }

    main {
        max-width: 90vw;
    }
}

@media (max-width: 520px) {

    header {
        padding: 30px 30px 0 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    header a {
        font-size: clamp(1.1em, 12vw, 2.5em);
    }

    .tape {
        min-width: 130%;
    }

    .tape1 {
        left: -10vw;
        transform: rotate(20deg);
    }

    .tape2 {
        left: -10vw;
        transform: rotate(-20deg);
    }

    .strip {
        animation: move 300s linear infinite;
    }

    .strip-text {
        animation: scrollText 8s linear infinite;
    }

    footer {
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: clamp(1.1em, 12vw, 1.1em);
    }

    footer span {
        order: 2;
    }

    footer a {
        order: 1;
    }

    main {
        max-width: 85vw;
        padding: 30px;
    }

    main h1 {
        font-size: 1.1em;
    }

    main p {
        margin-left: 15px;
    }
}
