:root {
    --frame-bg: #f2f2f2;
    --page-bg: #ffffff;
    --text-color: #fff;
    --orbit-stroke: clamp(6px, 1.2vw, 14px);
}

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

html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    background: var(--page-bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.has-intro {
    overflow: hidden;
}

.intro-orbit-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-orbit-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-orbit-wrapper {
    width: 15vw;
    max-width: 260px;
    min-width: 120px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.intro-orbit-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-sizing: border-box;
    border: var(--orbit-stroke) solid #fff;
    position: relative;
    cursor: default;
    transition: border-color 200ms ease;
}

.intro-orbit-circle.is-clickable {
    cursor: pointer;
}

.intro-orbit-rotator {
    position: absolute;
    inset: 0;
    animation: intro-orbit-rotate 1.2s linear infinite;
    transform-origin: 50% 50%;
}

.intro-orbit-dot {
    position: absolute;
    top: 50%;
    left: 129%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #b92f25;
    width: 3vw;
    height: 3vw;
    min-width: 18px;
    min-height: 18px;
    max-width: 50px;
    max-height: 50px;
}

@keyframes intro-orbit-rotate {
    to {
        transform: rotate(360deg);
    }
}

.center-orbit {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 50;
    pointer-events: none;
}

.center-orbit .intro-orbit-circle {
    pointer-events: auto;
}

.center-orbit .intro-count {
    opacity: 0;
    transition: opacity 700ms ease;
}

.center-orbit.show-count .intro-count {
    opacity: 1;
}

.center-orbit.is-clickable {
    cursor: pointer;
}

.center-orbit.is-go .intro-orbit-circle:hover,
.center-orbit.is-go .intro-orbit-circle:focus-visible {
    border-color: #b92f25;
}

.center-orbit.is-go .intro-orbit-circle:hover #startCountText,
.center-orbit.is-go .intro-orbit-circle:hover #introCountValue,
.center-orbit.is-go .intro-orbit-circle:focus-visible #startCountText,
.center-orbit.is-go .intro-orbit-circle:focus-visible #introCountValue {
    color: #b92f25;
}

.intro-count {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
}

.intro-orbit-overlay.show-count .intro-count {
    opacity: 1;
}

#introCountValue {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    font-size: clamp(22px, 4vw, 56px);
    transition: color 200ms ease;
}

#startCountText {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    font-size: clamp(16px, 6vw, 40px);
    transition: color 200ms ease;
}

.intro-orbit-circle:focus-visible {
    outline: 2px solid #000;
    outline-offset: 6px;
}

.page-frame {
    min-height: 100vh;
    padding: 1em;
    position: relative;
    display: flex;
    flex-direction: column;
}

.title-wrapper {
    position: absolute;
    top: -2px;
    right: -2px;
    left: auto;
    z-index: 10;
    pointer-events: auto;
}

.title {
    font-size: clamp(5rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.title:hover {
    cursor: pointer;
}

.inner {
    position: relative;
    background-color: var(--frame-bg);
    background-image: url("/img/hintergrund.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 0 solid #000;
    padding: 8rem 3rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.intro-text {
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.0823em;
}

.image-nav-wrapper {
    margin-top: auto;
    margin-bottom: 2rem;
}

.image-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 0.55rem;
    max-width: 420px;
    margin-top: 1em;
}

.image-link {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 0 solid #ddd;
    cursor: pointer;
}

.image-nav-grid.has-intro-animation .image-link {
    opacity: 0;
    transform: scale(1.03);
}

.image-nav-grid.has-intro-animation .image-link.is-visible {
    animation: imageLinkFadeIn 0.35s ease-out forwards;
}

@keyframes imageLinkFadeIn {
    from {
        opacity: 0;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-link:hover img,
.image-link:focus img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.image-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.hover-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f2f2f2;
    padding: 2rem 3rem;
    border: 0 solid #000;
    color: #000;
    text-align: center;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
}

.hover-overlay.is-visible {
    opacity: 1;
}

.bottom-menu {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.0823em;
    font-weight: 700;
}

.bottom-menu a {
    color: #fff;
    text-decoration: none;
    margin-left: 0.75rem;
}

.bottom-menu a:first-child {
    margin-left: 0;
}

.bottom-menu span {
    margin-left: 0.75rem;
}

.bottom-menu a:hover,
.bottom-menu a:focus {
    color: var(--color-black);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

.bottom-menu--left {
    left: 2rem;
    right: auto;
}

.schools-hint {
    position: fixed;
    right: 6rem;
    bottom: 5.5rem;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    max-width: 70vw;
    padding: 1.2rem 1.5rem;
    background: none;
    border: 12px solid #fff;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.schools-hint-text {
    white-space: nowrap;
}

.schools-hint.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.schools-hint::after,
.schools-hint::before {
    content: "";
    position: absolute;
    left: 65%;
}

.schools-hint::after {
    top: 100%;
    margin-left: -28px;
    border-style: solid;
    border-width: 32px 24px 0 24px;
    border-color: #ffffff transparent transparent transparent;
}

.schools-hint::before {
    top: 100%;
    margin-left: -23px;
    border-style: solid;
    border-width: 27px 19px 0 19px;
    border-color: #ffffff transparent transparent transparent;
}

.inner{ position: relative; overflow: hidden; }.badge-91{ position: absolute; top: 0.5rem; right: 0.5rem; width: 16.5rem; height: 16.5rem; border-radius: 50%; background: #000; display: grid; place-items: center; z-index: 20; overflow: hidden; pointer-events: auto; cursor: pointer; } .badge-91{ border-radius: 50%; overflow: hidden; -webkit-box-shadow: 0 18px 50px rgba(0,0,0,0.52); box-shadow: 0 18px 50px rgba(0,0,0,0.52); transform: translateZ(0); } .badge-img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.18); filter: saturate(1.05) contrast(1.05); transition: opacity 0.35s ease, transform 1.1s cubic-bezier(0.52, 1, 0.36, 1); } .badge-91::after{ content: ""; position: absolute; inset: 0; background: rgba(185,47,37,0.22); opacity: 0; transition: opacity 0.45s ease; z-index: 1; } .badge-91 span{ position: relative; z-index: 2; color: #fff; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; font-size: clamp(4.2rem, 5.2vw, 5rem); transform: rotate(18deg) translate(1px, 1px); transition: opacity 0.28s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); } .badge-91:hover .badge-img{ opacity: 1; transform: scale(1.02); } .badge-91:hover::after{ opacity: 1; } .badge-91:hover span{ opacity: 0; transform: rotate(11deg) translate(4px, 4px) scale(0.98); } .badge-91:focus-visible{ outline: 0px solid #fff; outline-offset: 6px; } .badge-video{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 0.35s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1); } .badge-91:hover .badge-video{ opacity: 1; transform: scale(1.02); } .badge-91:hover span{ opacity: 0; }

@media (max-width: 480px) {
    .inner {
        padding: 4rem 1.5rem 3rem;
    }

   .intro-orbit-wrapper {
        width: clamp(140px, 45vw, 320px);
    }

    .intro-orbit-circle {
        border: 3vw solid #fff;
    }

.badge-91 {
    width: clamp(8rem, 18vw, 13rem);
    height: clamp(8rem, 18vw, 13rem);
}

    .badge-91 span {
        font-size: clamp(2.4rem, 6vw, 3rem);
    }

    #schoolsHint {
        display: none !important;
    }

    .title-wrapper {
        top: 0.48em;
        left: 0.65em;
    }

    .title {
        font-size: clamp(4rem, 8vw, 5rem);
    }

    .intro-text {
        max-width: 22rem;
        font-size: 0.95rem;
    }

    .image-nav-grid {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
        gap: 0.4rem;
    }

    .hover-overlay {
        font-size: clamp(1.5rem, 3vw, 3.5rem);
    }

    .bottom-menu {
        left: 50%;
        right: auto;
        bottom: 1rem;
        transform: translateX(-50%);
        text-align: center;
        font-size: 0.7rem;
        line-height: 2em;
    }

    .bottom-menu a,
    .bottom-menu span {
        margin: 0 0.5rem;
    }

    .schools-hint {
        left: 50%;
        right: auto;
        bottom: 5.2rem;
        transform: translate(-50%, 10px);
        border-width: 8px;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        max-width: 80vw;
    }

    .schools-hint.is-visible {
        transform: translate(-50%, 0);
    }

    .schools-hint::after,
    .schools-hint::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .schools-hint::after {
        border-width: 24px 18px 0 18px;
    }

    .schools-hint::before {
        border-width: 19px 14px 0 14px;
    }
}
.intro-orbit-circle {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .center-orbit.is-go .intro-orbit-circle:hover,
    .center-orbit.is-go .intro-orbit-circle:focus-visible {
        border-color: #b92f25;
    }

    .center-orbit.is-go .intro-orbit-circle:hover #startCountText,
    .center-orbit.is-go .intro-orbit-circle:hover #introCountValue,
    .center-orbit.is-go .intro-orbit-circle:focus-visible #startCountText,
    .center-orbit.is-go .intro-orbit-circle:focus-visible #introCountValue {
        color: #b92f25;
    }
}

@media (hover: none) and (pointer: coarse) {
    .center-orbit.is-go .intro-orbit-circle:active {
        border-color: #b92f25;
    }

    .center-orbit.is-go .intro-orbit-circle:active #startCountText,
    .center-orbit.is-go .intro-orbit-circle:active #introCountValue {
        color: #b92f25;
    }
}