body {
    background-image: url('../img/clean_background.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
}

.hero {
    position: relative;
    width: 100%;
    height: 120vh;
    overflow: hidden;
}

.hero .fg-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    overflow: hidden;
}

.hero .layer{
    width: auto;
    bottom: 0;
    height: 100vh;
}

.hero .layer.cloud {
    width: 1920px;
    height: auto;
}

.hero .layer.COpacity {
    opacity: 0.4;
    top: 5%;
}

.hero .bglayer{
    width: 100%;
    bottom: 0;
    height: 120vh;
}

.hero .layer.offset-right {
    left: auto;
    right: 0;
}

.hero .layer.offset-left {
    left: 0;
}

.hero .full-size {
    bottom: 10%;
    left: 50%;
    margin-left: calc(-50vh * 2988 / 1408);
}

.hero-text {
    position: fixed;
    top: 9vh;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 100px;
    z-index: 20;
    pointer-events: none;
    color: #fff;
    opacity: 1;
}

:root {
    --tube-on-glow: 0 0 4px #fff, 0 0 12px #fff, 0 0 28px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.5);
    --blacklight-glow: 0 0 4px rgba(176, 107, 255, 0.9), 0 0 14px rgba(176, 107, 255, 0.6), 0 0 30px rgba(176, 107, 255, 0.35);
    --paragraph-off-color: #050505;
    --paragraph-on-gradient: linear-gradient(to bottom, #fff 0%, #cfcfcf 100%);
}

.content-title {
    margin: 0;
    padding-bottom: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 100px;
    line-height: 1.1;
    z-index: 20;
    /* Simple flat fill, same as before all the tube-light stuff - a
       touch muted rather than pure white so the bright glow (added by
       the flicker below) reads as a distinct "light" on top of it
       instead of blending into an already-white fill. */
    color: #e0e0e0;
}

/* Tube-light flicker-on: a handful of quick, uneven on/off jumps that
   settle into a steady lit state, timed to roughly "o----o-oo---oooooooo".
   Adjacent keyframes a fraction of a percent apart force an instant cut
   instead of a fade, so each flicker reads as a snap, not a dim/brighten.
   Fill color snaps along with the glow - #fff whenever it's lit, back to
   the muted idle color the instant it's not - explicit at every keyframe
   so color doesn't smoothly interpolate across the gaps between them. */
@keyframes tube-flicker {
    0%   { color: #e0e0e0; text-shadow: none; }
    1%   { color: #fff; text-shadow: var(--tube-on-glow); }
    6%   { color: #fff; text-shadow: var(--tube-on-glow); }
    7%   { color: #e0e0e0; text-shadow: none; }
    27%  { color: #e0e0e0; text-shadow: none; }
    28%  { color: #fff; text-shadow: var(--tube-on-glow); }
    33%  { color: #fff; text-shadow: var(--tube-on-glow); }
    34%  { color: #e0e0e0; text-shadow: none; }
    39%  { color: #e0e0e0; text-shadow: none; }
    40%  { color: #fff; text-shadow: var(--tube-on-glow); }
    50%  { color: #fff; text-shadow: var(--tube-on-glow); }
    51%  { color: #e0e0e0; text-shadow: none; }
    66%  { color: #e0e0e0; text-shadow: none; }
    67%  { color: #fff; text-shadow: var(--tube-on-glow); }
    100% { color: #fff; text-shadow: var(--tube-on-glow); }
}

.content-title.turn-on {
    animation: tube-flicker 1.6s linear forwards;
}

.mask-text {
    position: fixed;
    top: 9vh;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 100px;
    z-index: 20;
    pointer-events: none;
    color: #111b29;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: url('../img/cloudmasksmall.png');
    mask-image: url('../img/cloudmasksmall.png');
}

.mask {
    position: absolute;
    width: 100%;
    overflow: visible;
    /* Above .content (z-index: 2) on purpose - .content-title is a
       descendant of .content, so no z-index set on the title itself
       could ever put it behind the cloud; .content as a whole has to
       out-rank it. This makes the opaque cloud pixels naturally
       occlude the title (and anything else in .content) whenever they
       visually overlap, so it doesn't matter if the JS timing that
       shows the title is a little early - correctness comes from
       painting, not from getting the scroll math exactly right. */
    z-index: 3;
    left: 0;
    top: 0;
}

.mask img {
    width: 100%;
    height: auto;
    position: relative;
    top: calc(125vh - 125vw / 6);
}

.mask image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 2;
    padding-top: 10px;
}

.layer {
    position: absolute;
    left: 0;
    object-fit: cover;
}

/*3D Model*/
:root {
    --htv-text-main: #f4f4f5;
    --htv-text-muted: #a1a1aa;
    --htv-clay-base: rgba(18, 18, 24, 0.82);
    --htv-clay-highlight: rgba(255, 255, 255, 0.08);
    --htv-clay-shadow: rgba(0, 0, 0, 0.9);
    --htv-clay-inset-light: rgba(255, 255, 255, 0.04);
    --htv-clay-inset-dark: rgba(0, 0, 0, 0.6);
}

.htv-gallery-container {
    position: relative;
    height: 300vh;
    width: 100%;
    z-index: 2;
}

.htv-scene {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    overflow: hidden;
}

.htv-sphere {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.htv-card {
    position: absolute;
    width: 160px;
    height: 220px;
    left: -80px;
    top: -110px;
    background: var(--htv-clay-base);
    border-radius: 16px;
    padding: 8px;
    transform-style: preserve-3d;
    backface-visibility: visible;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        8px 8px 16px var(--htv-clay-shadow),
        -4px -4px 10px rgba(255, 255, 255, 0.02),
        inset 3px 3px 6px var(--htv-clay-inset-light),
        inset -3px -3px 6px var(--htv-clay-inset-dark);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.htv-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(50%) brightness(0.7);
    transition: all 0.4s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.htv-card.active-card {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.14));
}

.htv-card.active-card img {
    filter: grayscale(0%) brightness(1);
}

.htv-floating-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: min(340px, 28vw);
    z-index: 10;
}
/*ÜBERSCHRIFT DES FLIEGENDEN TEXTES AM LINKEN RAND*/
.htv-floating-text h2 {
    margin: 0 0 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}
/*KLEINER TEXT DES FLIEGENDEN TEXTES AM LINKEN RAND*/
.htv-floating-text p {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #d4d7df;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.htv-network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.htv-network-lines path {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 0.2;
    fill: none;
}

.htv-journey-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(18, 20, 29, 0.72) 0%, rgba(8, 10, 16, 0.38) 70%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 2;
}

.htv-journey-content {
    text-align: center;
    z-index: 2;
    background: rgba(10, 10, 18, 0.42);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
/*ÜBERSCHRIFT GANZ UNTEN*/
.htv-journey-content h2 {
    margin: 0 0 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 5vw, 4.4rem);
    color: #fff;
}

.htv-journey-content p {
    margin: 0 0 2rem;
    color: #d4d7df;
    font-size: 1rem;
}

.htv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    color: #0c0d12;
    background: #f4f4f5;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.htv-chunky-btn {
    box-shadow:
        0 4px 0 rgba(161, 161, 170, 0.4),
        0 6px 10px rgba(0, 0, 0, 0.4),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1),
        inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.htv-chunky-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 0 0 rgba(161, 161, 170, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.htv-large-btn {
    font-size: 1.05rem;
    padding: 1rem 2.4rem;
    border-radius: 40px;
}

.htv-constellation {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.htv-constellation-card {
    position: absolute;
    width: 100px;
    height: 140px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .content-title
	{
    opacity: 0;
},
    .hero-text,
    .mask-text {
        font-size: 100px;
    }

.htv-floating-text {
    position: sticky;
    top: 22vh;
    left: 0;
    margin-left: 8%;
    width: min(420px, 32vw);
    z-index: 15;
    transform: none;
}

    .htv-card {
        width: 120px;
        height: 160px;
        left: -60px;
        top: -80px;
    }

    .htv-journey-content {
        width: calc(100% - 32px);
        padding: 2rem 1.5rem;
    }
}
