:root {
    --bg-color: #0d1117;
    --mint: #00F5D4;
    --mint-glow: rgba(0, 245, 212, 0.15);
    --text-slate: #94a3b8;
    --glass-bg: rgba(24, 31, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.107);
    --crane-main: #3b444b;
    --crane-accent: var(--mint);
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
    scrollbar-width: thin;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

.brand {
    margin: 0 0 10px 0;
    color: var(--text-slate);
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 0.04em;
    display: block;
    text-transform: none;
}

body {
    background-color: var(--bg-color);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Verhindert Scrollbars durch Glow-Animationen */
    padding: 20px;
    position: relative;
}

/* Hintergrund-Glows (Hinter dem Content) */
.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    /* Tiefste Ebene */
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    /* Wir nutzen Gradient statt Blur-Filter für bessere Performance & keine Kanten */
    background: radial-gradient(circle at center, var(--mint-glow) 0%, transparent 70%);
    animation: pulse 12s infinite alternate ease-in-out;
}

.glow-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 700px;
    height: 700px;
    bottom: -150px;
    right: -150px;
    animation-delay: -6s;
}

@keyframes pulse {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
        opacity: 0.8;
    }
}

/* Glass Container (Vor dem Hintergrund) */
.container {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    z-index: 10;
    /* Höhere Ebene als Glows */
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    /* Die Weichzeichnung des Hintergrunds */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 2.5rem;
    max-width: 750px;
    width: 100%;
    max-height: calc(100vh - 40px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* custom, subtle scrollbars to match glassy style */
.container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.09);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--mint);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--mint);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.container>h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    /* kleineres Maximum */
    font-weight: 800;
    line-height: 1.06;
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.01em;
    text-align: center;
}

.container>h1 span {
    color: var(--mint);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h1 span {
    color: var(--mint);
}

.description {
    color: var(--text-slate);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.services {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1.25rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-slate);
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background: var(--mint);
    color: var(--bg-color);
    text-decoration: none;
    padding: 1.1rem 2.5rem;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    background: white;
}

@media (max-width: 600px) {
    .services {
        grid-template-cols: 1fr;
    }
}


* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(0, 245, 212, 0.03), transparent),
        radial-gradient(900px 500px at 90% 90%, rgba(0, 245, 212, 0.02), transparent),
        var(--bg-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

/* Panel */
.panel {
    width: 100%;
    max-width: 980px;
    padding: 32px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Header text */
.status {
    display: inline-block;
    background: rgba(0, 245, 212, 0.06);
    color: var(--mint);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

h1 {
    font-size: 28px;
    margin: 8px 0 6px
}

.lead {
    color: var(--text-slate);
    margin-bottom: 20px
}

/* Crane stage */
.crane-stage {
    --crane-scale: 1;
    /* Default; kann inline oder via Klasse überschrieben werden */
}

/* ground */
.ground {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.3));
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7) inset;
}

/* Crane overall */
.crane {
    position: absolute;
    top: 0;
    left: 0;
    width: 450px;
    height: 320px;
    transform-origin: left top;
    transform: scale(var(--crane-scale, 0.5));
    pointer-events: none;
}


/* Tower */
.tower {
    position: absolute;
    left: 34.2%;
    /* 260px / 760px */
    bottom: 0;
    width: 48px;
    height: 240px;
    background: linear-gradient(180deg, var(--crane-main), #2f383f);
    border-radius: 6px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    z-index: 20;
    transform-origin: center bottom;
    animation: towerSway 8s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12px;
}

.tower-rungs {
    width: 10px;
    height: 200px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 6px, transparent 6px 12px);
    border-radius: 2px;
}

/* Cab */
.cab {
    position: absolute;
    left: 32.3%;
    /* 245px / 760px */
    bottom: 71.9%;
    /* 230px / 320px -> expressed as percentage of stage height */
    width: 80px;
    height: 40px;
    background: linear-gradient(180deg, #98a3ad, #6f7780);
    border-radius: 6px;
    z-index: 25;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Boom (Ausleger) */
.boom {
    position: absolute;
    left: 39.5%;
    /* 300px / 760px */
    bottom: 87.5%;
    /* 280px / 320px */
    width: 420px;
    height: 20px;
    transform-origin: 40px 10px;
    /* nahe Turmspitze */
    z-index: 18;
    /* animation removed to keep boom statisch */
}

.boom-structure {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--crane-main), rgba(59, 68, 75, 0.9));
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
    position: relative;
    /* enable inner rungs overlay */
}

/* Neue Sprossen / Lattice für realistischeren Ausleger */
.boom-rungs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 6px;
    opacity: 0.9;
    mix-blend-mode: overlay;
    /* Criss‑cross diagonal struts (thicker, classic lattice) */
    background-image:
        /* primary diagonal struts (down-left to up-right) */
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.06) 0 4px,
            rgba(255, 255, 255, 0) 4px 32px),
        /* counter diagonal struts (down-right to up-left) */
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.05) 0 4px,
            rgba(255, 255, 255, 0) 4px 32px),
        /* subtle vertical tone for depth */
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 -6px 18px rgba(0, 0, 0, 0.22);
}

/* small overlay to add darker edges and emphasize the lattice depth */
.boom-rungs::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.12));
    mix-blend-mode: multiply;
}

/* Counterweight at inner boom */
.counterweight {
    position: absolute;
    left: 0;
    /* keep it inside the boom box so it doesn't extend layout */
    top: -10px;
    width: 100px;
    height: 40px;
    background: linear-gradient(180deg, #2f383f, #23292d);
    border-radius: 6px;
    transform-origin: center center;
    /* use transform to visually move it left without changing layout/padding */
    transform: translateX(-120px);
    animation: counterweightShift 10s infinite ease-in-out;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    will-change: transform;
}


/* Trolley that moves along boom */
.trolley {
    position: absolute;
    top: -6px;
    left: 20%;
    width: 36px;
    height: 32px;
    background: linear-gradient(180deg, var(--crane-accent), #80f1d9);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    animation: trolleyMove 12s infinite ease-in-out;
    z-index: 30;
    border: 2px solid rgba(0, 0, 0, 0.12);
}

/* Rope-Group folgt dem Trolley und "zieht sich ein" (translateY) wenn Trolley außen ist */
.rope-group {
    position: absolute;
    top: 22px;
    left: calc(20% + 18px);
    width: 1px;
    height: 260px;
    transform-origin: top center;
    animation: ropeFollow 12s infinite ease-in-out;
    z-index: 28;
    pointer-events: none;
}


/* Rope appearance — scaleY shortens from the top when reel-in happens */
.rope {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    /* initial height matches lowered hook state */
    height: 200px;
    background: linear-gradient(180deg, var(--crane-main), rgba(0, 0, 0, 0.2));
    transform-origin: top center;
    animation: ropeLength 12s infinite ease-in-out;
    will-change: height;
}

/* Hook (position in px; rope-group translateY hebt/senkt die ganze Gruppe) */
.hook {
    position: absolute;
    left: -10px;
    top: 160px;
    /* Grundhöhe (hängend) */
    width: 20px;
    height: 18px;
    background: var(--crane-main);
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transform-origin: center top;
    animation: hookUpDown 12s infinite ease-in-out;
}

/* Load (Box) — steht unter dem Haken, schwingt leicht */
.load {
    position: absolute;
    left: -34px;
    top: 200px;
    width: 68px;
    height: 44px;
    background: linear-gradient(180deg, var(--crane-accent), rgba(0, 245, 212, 0.7));
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 245, 212, 0.06);
    transform-origin: center top;
    animation: loadSwing 12s infinite ease-in-out;
}

.info-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0px;
    align-items: start;
    justify-content: center;
    /* centers the grid in the panel */
    margin: auto 0 auto 0;
    /* horizontal auto to keep equal left/right space */
    max-width: 820px;
    /* avoid touching panel edges */
}


.info-crane {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: calc(760px * var(--crane-scale, 0.5));
}


.info-crane .crane-stage {
    --crane-scale: 0.5;
    position: relative;
    width: 350px;
    height: 200px;
}



/* optional visual framing so crane reads as part of the card */
.info-crane .crane {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.info-text {
    position: relative;
    z-index: 40;
    /* above crane so text is never hidden */
    align-self: start;
    /* top-align with crane */
    padding: 6px 12px;
    color: var(--text-slate);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-text p {
    margin: 0;
    line-height: 1.45;
    color: var(--text-slate);
}

.lang-switch {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 6px;
    border-radius: 999px;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.lang-switch .lang-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border-radius: 50%;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    border: none;
    cursor: pointer;
}

/* active state uses the same mint as buttons */
.lang-switch .lang-btn[aria-current="true"] {
    background: var(--mint);
    color: var(--bg-color);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.12);
    transform: scale(1.06);
    pointer-events: none;
    opacity: 0.98;
}

.lang-switch .lang-btn:focus {
    outline: 2px solid rgba(0, 245, 212, 0.12);
    outline-offset: 2px;
    border-radius: 50%;
}

@media (max-width: 420px) {
    .lang-switch {
        right: 12px;
        bottom: 12px;
    }

    .lang-switch .lang-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}


/* responsive: stack and reduce crane on small screens */
@media (max-width:900px) {
    .info-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .info-crane {
        width: calc(760px * 0.45);
    }

    .info-crane .crane-stage {
        --crane-scale: 0.45;
    }
}

/* Keyframes */
@keyframes boomSwing {
    0% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(4deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

@keyframes towerSway {
    0% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(1px)
    }

    100% {
        transform: translateX(0)
    }
}

@keyframes trolleyMove {
    0% {
        left: 12%
    }

    45% {
        left: 68%
    }

    55% {
        left: 68%
    }

    100% {
        left: 12%
    }
}

@keyframes ropeLength {

    /* hook is up -> short rope */
    0% {
        height: 40px;
    }

    /* hook lowered -> long rope */
    40% {
        height: 200px;
    }

    /* remain long while lowered */
    60% {
        height: 200px;
    }

    /* back to short when hook is up again */
    100% {
        height: 40px;
    }
}

/* ropeGroup follows trolley horizontally and small vertical offsets for syncing */
@keyframes ropeFollow {
    0% {
        left: calc(12% + 18px)
    }

    45% {
        left: calc(68% + 18px)
    }

    55% {
        left: calc(68% + 18px)
    }

    100% {
        left: calc(12% + 18px)
    }
}

/* hook lifts and lowers */
@keyframes hookUpDown {
    0% {
        top: 40px
    }

    40% {
        top: 160px
    }

    60% {
        top: 160px
    }

    100% {
        top: 40px
    }
}

/* box swings lightly while being lifted */
@keyframes loadSwing {
    0% {
        top: 70px;
        transform: rotate(-2deg)
    }

    40% {
        top: 190px;
        transform: rotate(6deg)
    }

    60% {
        top: 190px;
        transform: rotate(-6deg)
    }

    100% {
        top: 70px;
        transform: rotate(-2deg)
    }
}

.info-text {
    position: relative;
    z-index: 40;
}