@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
    font-family: 'Momo Trust Display';
    src: url('./fonts/MomoTrustDisplay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-blau: #3b59b1;
    --dunkelblau: #0f2159;
    --hellblau: #607fdd;
    --gelb: #f2b910;
    --hellgelb: #fece42;
    --dunkelgelb: #bf6300;
    --gruen: #73b417;
    --hellgruen: #ced32a;
    --dunkelgruen: #024f1f;
    --hintergrundfarbe: #7c9ce4;

    --text-color: #ffffff;
}

/* Portfolio image sizing control */
:root {
    --portfolio-scale: 0.98;
    /* default slight reduction */
}

:root {
    --about-stage-bg: #d9d9d9;
    --about-sky-base: #1f2e5e;
    --about-back-mountain-top: #3a4f90;
    --about-back-mountain-bottom: #223261;
    --about-front-mountain-top: #77ab1b;
    --about-front-mountain-bottom: #4f710f;
    --about-hero-text: #f7f3ea;

    --about-wrapper-height: 4218px;
    --about-backdrop-left: 50%;
    --about-backdrop-top: 0px;
    --about-backdrop-width: auto;
    --about-backdrop-height: 4218px;
    --about-safe-zone-width: 1440px;
    --about-safe-zone-left: 50%;
    --about-safe-zone-height: 4218px;
    --about-inner-left: 0px;
    --about-inner-top: 0px;
    --about-inner-width: 100%;
    --about-inner-height: 4218px;
    --about-stage-min-height: 2400px;

    --about-hero-title-x: 156px;
    --about-hero-title-y: 231px;
    --about-hero-copy-x: 156px;
    --about-hero-copy-y: 346px;
    --about-road-title-x: 521px;
    --about-road-title-y: 684px;

    --about-birth-x: 182px;
    --about-birth-y: 848px;
    --about-familienplaner-x: 670px;
    --about-familienplaner-y: 949px;
    --about-poster-x: 240px;
    --about-poster-y: -219px;
    --about-nappe-x: 361px;
    --about-nappe-y: 1249px;
    --about-small-logo-x: -70px;
    --about-small-logo-y: 125px;
    --about-big-logo-x: 751px;
    --about-big-logo-y: -100px;
    --about-blender-x: 828px;
    --about-blender-y: 1436px;
    --about-blender-image-x: -46px;
    --about-blender-image-y: 87px;
    --about-sperber-x: 278px;
    --about-sperber-y: 1810px;
    --about-3ddruck-x: 828px;
    --about-3ddruck-y: 1961px;
    --about-mecom-x: 386px;
    --about-mecom-y: 2324px;
    --about-abitur-x: 1128px;
    --about-abitur-y: 2406px;
    --about-iu-x: 347px;
    --about-iu-y: 2633px;
    --about-ideenwert-x: 1112px;
    --about-ideenwert-y: 2587px;
    --about-media-id-x: -34px;
    --about-media-id-y: 72px;

    --about-logo-sprite-a-x: 340px;
    --about-logo-sprite-a-y: -60px;
    --about-logo-sprite-b-x: -102px;
    --about-logo-sprite-b-y: 46px;

    --about-logo-sheet-width: 2160px;
    --about-logo-sheet-height: 1620px;
    --about-logo-a-src-x: 1525px;
    --about-logo-a-src-y: 760px;
    --about-logo-a-src-w: 170px;
    --about-logo-a-src-h: 170px;
    --about-logo-a-out-w: 65px;
    --about-logo-a-out-h: 65px;
    --about-logo-a-src-size: 190px;
    --about-logo-a-out-size: 75px;
    --about-location-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 22s6-5.7 6-12a6 6 0 1 0-12 0c0 6.3 6 12 6 12Z' stroke='%23f8f4ea' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='10' r='2.4' fill='%23f8f4ea'/%3E%3C/svg%3E");
    --about-logo-b-src-x: 830px;
    --about-logo-b-src-y: 1110px;
    --about-logo-b-src-w: 180px;
    --about-logo-b-src-h: 180px;
    --about-logo-b-out-w: 72px;
    --about-logo-b-out-h: 72px;
    --about-logo-b-src-size: 230px;
    --about-logo-b-out-size: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    /* Disable rounded corners everywhere */
}

body {
    font-family: 'Carlito', sans-serif;
    background-color: var(--dunkelblau);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 70px;
}

html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

main,
.site-main {
    flex: 1;
}

body.no-scroll {
    overflow: hidden;
}

/* Links: no underline by default (enabled only on vochel.html) */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hellblau);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.fullscreen-nav a {
    font-family: 'Momo Trust Display', sans-serif;
    font-weight: 300;
}

/* --- GLOBAL LAYOUT & GRID ARCHITECTURE --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    row-gap: 40px;
    column-gap: 40px;
    align-items: center;
}

.grid-12>* {
    min-width: 0;
}

.col-span-12 {
    grid-column: span 12;
}

.col-span-11 {
    grid-column: span 11;
}

.col-span-10 {
    grid-column: span 10;
}

.col-span-9 {
    grid-column: span 9;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-7 {
    grid-column: span 7;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-5 {
    grid-column: span 5;
}

.col-span-4 {
    grid-column: span 4;
}

.col-span-3 {
    grid-column: span 3;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-1 {
    grid-column: span 1;
}

@media (max-width: 992px) {
    .grid-12>[class*="col-span-"] {
        grid-column: span 12;
        /* Fallback to 1 column on mobile */
    }

    /* Reduce the large desktop gap on smaller screens to avoid horizontal overflow/visual shift */
    .grid-12 {
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }

    .container {
        padding: 0 16px;
    }

    :root {
        --portfolio-scale: 0.95;
    }
}

/* HEADER */
app-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

.main-header {
    position: relative;
    width: 100%;
    height: 70px;
    /* Milchglas: mehr Durchsicht, aber weniger Blur */
    background-color: rgba(15, 33, 89, 0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
}

.header-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: max-content;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.site-title {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    /* restore original size */
    width: 28px;
    cursor: pointer;
    margin-left: auto;
    /* Push it to the right inside its grid column */
    z-index: 1001;
    /* Keep above the overlay */
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #e0e0e0;
    /* Hellgrau wie im Screenshot oder text-color */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Burger Animation for Active State (Close "X") */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* FULLSCREEN NAV OVERLAY */
.fullscreen-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dunkelblau);
    /* Using dunkelblau for the menu overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;

    /* Circular Reveal Animation */
    clip-path: circle(0px at calc(100% - 54px) 35px);
    visibility: hidden;
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0.6s;
}

.fullscreen-nav.active {
    clip-path: circle(150vw at calc(100% - 54px) 35px);
    visibility: visible;
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0s;
}

.fullscreen-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.fullscreen-nav li {
    margin: 25px 0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.fullscreen-nav.active li {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered animation for list items */
.fullscreen-nav.active li:nth-child(1) {
    transition-delay: 0.1s;
}

.fullscreen-nav.active li:nth-child(2) {
    transition-delay: 0.15s;
}

.fullscreen-nav.active li:nth-child(3) {
    transition-delay: 0.2s;
}

.fullscreen-nav.active li:nth-child(4) {
    transition-delay: 0.25s;
}

.fullscreen-nav.active li:nth-child(5) {
    transition-delay: 0.3s;
}

.fullscreen-nav.active li:nth-child(6) {
    transition-delay: 0.35s;
}

.fullscreen-nav.active li:nth-child(7) {
    transition-delay: 0.4s;
}

.fullscreen-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-dropdown-toggle {
    appearance: none;
    border: 0;
    background: none;
    color: var(--text-color);
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown-toggle:hover {
    color: var(--hellblau);
    transform: scale(1.05);
}

.nav-dropdown:hover .nav-dropdown-menu {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
    min-width: 200px;
}

.nav-dropdown.open .nav-dropdown-menu {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 14px 0;
}

.nav-dropdown-menu a {
    font-size: 1.6rem;
    font-family: 'Carlito', sans-serif;
    font-weight: 400;
}

.fullscreen-nav a:hover {
    color: var(--hellblau);
    transform: scale(1.05);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* --- VOCHEL HERO (Top section on Vochel page) --- */
.vochel-hero {
    padding: 60px 0;
}

.vochel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.vochel-text h1 {
    font-size: 48px;
    margin-bottom: 12px;
}

.vochel-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.vochel-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* allow astronaut to float outside */
}

.vochel-placeholder {
    width: 420px;
    height: 180px;
    background: linear-gradient(180deg, #dfe8ff 0%, #c9d9ff 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    display: block;
    transform: translateY(120px);
    /* push the rectangular artwork further down on desktop */
    object-fit: cover;
}

.vochel-astronaut {
    position: absolute;
    right: -20px;
    top: -40px;
    width: 160px;
    height: auto;
    z-index: 2;
    will-change: transform;
    transform: translateY(18px);
    /* nudge the floating vochel down slightly */
}

@media (max-width: 992px) {
    .vochel-grid {
        gap: 16px;
    }

    .vochel-placeholder {
        width: 360px;
        height: 160px;
    }

    .vochel-astronaut {
        width: 140px;
        right: -12px;
        top: -32px;
    }
}

@media (max-width: 768px) {
    .vochel-hero {
        padding: 28px 0;
    }

    .vochel-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }

    .vochel-text {
        text-align: left;
        padding: 0 16px;
    }

    .vochel-placeholder {
        width: 100%;
        max-width: 320px;
        height: 160px;
        margin: 0 0 0 16px;
        /* left-align with text (text has 16px padding) */
        transform: none;
        /* cancel desktop translate on small screens */
    }

    .vochel-visual {
        justify-content: center;
    }

    .vochel-astronaut {
        position: relative;
        display: block;
        margin: -56px auto 0 auto;
        /* pulls astronaut up above the placeholder */
        width: 120px;
        transform: translateY(0);
    }
}

img.calendar-placeholder,
img.calendar-small-placeholder {
    padding-top: 0;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --- VOCHEL: Calendar Section --- */
.vochel-calendar {
    padding: 60px 0 80px;
}

.calendar-grid {
    align-items: center;
}

.calendar-copy h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.calendar-copy p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.calendar-visuals {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    /* images on the left */
    align-items: center;
}

.calendar-thumb {
    display: block;
    width: 220px;
    max-width: 45%;
}

.calendar-img {
    display: block;
}

.calendar-placeholder {
    width: 100%;
    /* aspect ratio ~ 3:4 */
    padding-top: 133%;
    background: none;
    box-shadow: none;
    border: 0;
    box-sizing: border-box;
}

.calendar-thumb:focus {
    outline: 3px solid var(--hellgelb);
}

@media (max-width: 992px) {
    .calendar-visuals {
        gap: 16px;
        justify-content: center;
    }

    .calendar-thumb {
        width: 180px;
        max-width: 44%;
    }
}

@media (max-width: 768px) {
    .vochel-calendar {
        padding: 28px 0 40px;
    }

    .calendar-grid {
        grid-template-columns: repeat(12, 1fr);
    }

    .calendar-copy {
        grid-column: span 12;
        padding: 0 16px 8px 16px;
    }

    .calendar-visuals {
        grid-column: span 12;
        justify-content: center;
        gap: 16px;
        padding: 0 16px;
    }

    .calendar-thumb {
        width: 46%;
        max-width: 46%;
    }


    .sonstiges-grid {
        row-gap: 16px;
    }
}

/* Calendar gallery thumbnails */
.calendar-gallery {
    margin-top: 36px;
}

.calendar-gallery .calendar-img img,
.calendar-gallery .calendar-small-placeholder {
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
    height: auto;
    box-sizing: border-box;
}

.calendar-small-placeholder {
    width: 100%;
    padding-top: 100%;
    /* square */
    background: none;
    box-shadow: none;
    border: 0;
    box-sizing: border-box;
}

/* Merch: ensure images in the merch section take available column width
   (don't alter the merch text). This fixes unexpectedly narrow images. */
.vochel-merch .calendar-visuals .calendar-thumb {
    width: 100%;
    max-width: none;
}

.vochel-merch .calendar-visuals .calendar-thumb img {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    /* override placeholder padding used for div placeholders */
    background: none;
    box-shadow: none;
    border: 0;
    box-sizing: border-box;
}

.vochel-merch-grid {
    align-items: start;
}

.vochel-merch-grid .calendar-merch-image {
    display: block;
}

.vochel-merch-grid .calendar-merch-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* Decorative cup placed with its center on the lower-left corner of a thumbnail.
   Desktop/tablet: attach to the first thumbnail. Mobile: attach to the last (bottom) thumbnail. */
.calendar-gallery .calendar-img {
    position: relative;
    /* anchor for the cup pseudo-element */
}

.calendar-gallery .calendar-img::after {
    content: '';
    position: absolute;
    left: -70px;
    /* will be adjusted per breakpoint */
    bottom: -70px;
    /* center of the circle sits on the lower-left corner */
    width: 140px;
    height: 140px;
    background-image: url("media/Vochel/Tasse.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-8deg);
    pointer-events: none;
    display: none;
    /* enabled for specific targets below */
}

/* Desktop / large screens: show cup on the first thumbnail (left image) */
@media (min-width: 993px) {
    .calendar-gallery .calendar-img:first-child::after {
        display: block;
    }
}

/* Tablet: slightly smaller cup */
@media (max-width: 992px) and (min-width: 769px) {
    .calendar-gallery .calendar-img:first-child::after {
        display: block;
        left: -55px;
        bottom: -55px;
        width: 110px;
        height: 110px;
    }
}

/* Mobile: gallery stacks vertically, attach cup to the bottom (last) thumbnail */
@media (max-width: 768px) {
    .calendar-gallery .calendar-img:first-child::after {
        display: none;
    }

    .calendar-gallery .calendar-img:last-child::after {
        display: block;
        left: -45px;
        bottom: -45px;
        width: 90px;
        height: 90px;
        transform: rotate(-6deg);
    }
}

.hero-text {
    text-align: left;
    color: var(--text-color);
    margin-top: 70px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Reveal phone button styling: looks like a link but keyboard accessible */
.reveal-phone {
    background: none;
    border: 0;
    color: var(--hellblau);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.phone-number {
    margin-left: 8px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 400px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Carlito', sans-serif;
    font-size: 1.1rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /*padding-bottom: 90px;*/
}

.hero-stripe {
    position: absolute;
    top: 180px;
    bottom: 90px;
    /* Use percentage units so the stripe stays relative to its container
       and doesn't cause viewport overflow on small screens. */
    left: -50%;
    width: 200%;
    background-color: var(--hintergrundfarbe);
    transform: none;
    z-index: -1;
    border-radius: 12px;
}

.hero-box {
    position: relative;
    width: 100%;
    height: 320px;
    margin-top: 100px;
    background-color: var(--hintergrundfarbe);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
}


.hero-photo {
    position: relative;
    right: 0;
    width: 100%;
    height: auto;
    z-index: 3;
    object-fit: contain;
    transform: translateY(10px);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* PORTFOLIO SECTION */
.portfolio-section {
    position: relative;
    padding: 40px 0 80px;
    overflow: hidden;
}

/* DESIGN PAGE */
.design-page {
    padding: 40px 0 80px;
}

.design-page-header {
    padding: 0 0 24px;
}

.design-page-title {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    line-height: 0.95;
    margin: 0;
}

.design-section {
    padding: 0 0 44px;
}

.design-layout {
    align-items: start;
}

.design-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 4px;
}

.design-block-title {
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    line-height: 0.95;
    margin: 0;
}

.design-intro p {
    max-width: 48ch;
    font-size: 1.05rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.design-spacer {
    min-height: 1px;
}

.design-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    row-gap: 40px;
    column-gap: 40px;
}

.design-row .design-media-card {
    grid-column: span 4;
}

.design-media-card {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    background: none;
    box-shadow: none;
}

.design-media-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
}

.portfolio-container {
    position: relative;
    z-index: 1;
    row-gap: 30px;
    align-items: start;
}

.portfolio-group {
    position: relative;
}

.portfolio-heading {
    margin-bottom: 16px;
    font-size: 1.5rem;
    line-height: 1.1;
}

.portfolio-heading a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    transition: transform 0.25s ease, color 0.25s ease;
}

.portfolio-heading a:hover {
    color: var(--text-color);
    transform: translateX(2px);
}

.portfolio-grid {
    align-items: start;
    gap: 40px;
    row-gap: 40px;
    column-gap: 40px;
}

.portfolio-card {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 1;
}

.portfolio-card:hover {
    transform: none;
    box-shadow: none;
}

.portfolio-card img,
.portfolio-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transform: scale(var(--portfolio-scale));
    transition: transform 220ms ease;
}

.portfolio-card video {
    background-color: #d6d6d6;
}

.portfolio-circle {
    position: absolute;
    border-radius: 50% !important;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

.portfolio-circle--yellow {
    top: 120px;
    left: 36px;
    width: 52px;
    height: 52px;
    background-color: var(--gelb);
}

.portfolio-circle--green {
    top: 450px;
    right: 34px;
    width: 92px;
    height: 92px;
    background-color: var(--gruen);
}

.portfolio-circle--blue {
    top: 810px;
    left: 62%;
    width: 82px;
    height: 82px;
    background-color: var(--hellblau);
}

.portfolio-circle--yellow-small {
    top: 1220px;
    left: 24px;
    width: 74px;
    height: 74px;
    background-color: var(--hellgruen);
}

.portfolio-circle--blue-small {
    top: 1320px;
    right: 18%;
    width: 54px;
    height: 54px;
    background-color: var(--hellblau);
}

@media (max-width: 992px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 50px;
    }

    .hero-text p {
        margin: 0 auto 20px auto;
    }

    .hero-location {
        justify-content: center;
    }

    .hero-image-wrapper {
        justify-content: center;
        height: auto;
    }

    .hero-stripe {
        left: 0;
        width: 100%;
    }

    .hero-box {
        width: 100%;
    }

    .hero-photo {
        width: 60%;
    }

    .portfolio-section {
        padding: 30px 0 70px;
    }

    .portfolio-heading {
        font-size: 1.3rem;
    }

    .portfolio-grid {
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }

    .portfolio-circle--blue {
        left: auto;
        right: 20px;
        top: 760px;
    }

    .portfolio-circle--yellow-small {
        top: 1180px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    /* Otl Aicher: mobile-specific reorder and single-column layout */
    .otl-gallery {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .otl-gallery .design-media-card {
        width: 100%;
        max-width: none;
    }

    /* Desired mobile order: Cover1, Logo1, Cover2, Logo2, Cover3, Logo3 */
    .otl-cover1 {
        order: 1;
    }

    .otl-logo1 {
        order: 2;
    }

    .otl-cover2 {
        order: 3;
    }

    .otl-logo2 {
        order: 4;
    }

    .otl-cover3 {
        order: 5;
    }

    .otl-logo3 {
        order: 6;
    }

    .hero-section {
        padding-top: 120px;
    }

    .main-header {
        padding: 0 20px;
        height: 60px;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
    }

    .hero-stripe {
        left: 0;
        width: 100%;
        transform: none;
        /* make stripe slightly thinner on mobile so more of the hero photo is visible */
        /* tightened stripe to reveal more photo while keeping proportions */
        top: 140px;
        bottom: 36px;
    }

    .hero-image-wrapper {
        width: 100%;
        margin-left: 0;
        height: auto;
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
        overflow: visible;
        /* allow the photo to be nudged below the wrapper */
        align-items: flex-end;
        position: relative;
        /* anchor for nudging the photo to overlap the stripe */
    }

    /* Left-align the small location row (icon + "Eisenach") on mobile */
    .hero-location {
        justify-content: flex-start;
    }

    .hero-photo {
        width: 100%;
        max-width: 380px;
        /* slightly less vertical offset so more of the image is visible */
        transform: translateY(6px);
        position: relative;
        bottom: -8px;
        /* pull the photo down slightly so its bottom edge sits near the stripe */
        display: block;
        margin: 0 auto;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        text-align: left;
        padding: 0 12px;
        /* slight reduction to tuck text in a bit */
    }

    body {
        padding-top: 60px;
    }

    .header-container {
        grid-template-columns: auto 1fr auto;
    }

    .burger-menu {
        margin-left: 0;
        justify-self: end;
        align-self: center;
    }

    /* Hide the site title text on small screens to declutter the header */
    .site-title {
        display: none;
    }

    .fullscreen-nav a {
        font-size: 2rem;
    }

    .fullscreen-nav {
        clip-path: circle(0px at calc(100% - 44px) 32px);
    }

    .fullscreen-nav.active {
        clip-path: circle(200vw at calc(100% - 44px) 32px);
    }

    .nav-dropdown-toggle {
        font-size: 2rem;
    }

    .nav-dropdown-menu {
        padding-top: 10px;
    }

    .nav-dropdown-menu li {
        margin: 10px 0;
    }

    .nav-dropdown-menu a {
        font-size: 1.45rem;
    }

    .fullscreen-nav li {
        margin: 20px 0;
    }

    .portfolio-section {
        padding: 20px 0 60px;
    }

    .portfolio-heading {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .portfolio-grid {
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }

    .design-page {
        padding: 24px 0 60px;
    }

    .design-page-header {
        padding-bottom: 18px;
    }

    .design-section {
        padding: 0 0 32px;
    }

    .design-spacer {
        display: none;
    }

    .design-page-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .design-intro {
        gap: 12px;
        padding-top: 0;
    }

    .design-intro p {
        max-width: none;
        font-size: 1rem;
    }

    .design-block-title {
        font-size: 1.35rem;
    }

    .design-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .design-row .design-media-card {
        grid-column: span 1;
    }

    /* smaller highlight images on narrow screens */
    :root {
        --portfolio-scale: 0.92;
    }

    /* Slightly reduce highlight images/videos inside portfolio cards on mobile */
    .portfolio-card img,
    .portfolio-card video {
        transform: scale(0.92);
        transform-origin: center center;
        transition: transform 180ms ease;
    }

    .portfolio-circle--yellow {
        top: 90px;
        left: 16px;
        width: 34px;
        height: 34px;
    }

    .portfolio-circle--green {
        top: 390px;
        right: 10px;
        width: 58px;
        height: 58px;
    }

    .portfolio-circle--blue {
        top: 760px;
        right: 10px;
        width: 52px;
        height: 52px;
    }

    .portfolio-circle--yellow-small {
        top: 1130px;
        left: 10px;
        width: 44px;
        height: 44px;
    }

    .portfolio-circle--blue-small {
        top: 1260px;
        right: 14px;
        width: 34px;
        height: 34px;
    }
}

/* Debug styles removed after inspection */

/* FOOTER */
.app-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    overflow: hidden;
}

.footer-graphic-container {
    height: 350px;
    position: relative;
    overflow: hidden;
    --footer-earth-size: clamp(280px, 40vw, 600px);
}

.footer-earth {
    position: absolute;
    bottom: calc(var(--footer-earth-size) * -0.55);
    left: 50%;
    margin-left: calc(var(--footer-earth-size) * -0.5);
    width: var(--footer-earth-size);
    height: var(--footer-earth-size);
    border-radius: 50% !important;
    animation: spinEarth 120s linear infinite;
    z-index: 1;
}

@keyframes spinEarth {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.footer-rocket {
    position: absolute;
    bottom: calc(var(--footer-earth-size) * 0.28);
    left: calc(50% - (var(--footer-earth-size) * 0.65));
    width: clamp(60px, 8vw, 100px);
    height: auto;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
    transform: rotate(60deg);
}

.footer-bird {
    position: absolute;
    bottom: calc(var(--footer-earth-size) * 0.30);
    right: calc(50% - (var(--footer-earth-size) * 0.65));
    width: clamp(60px, 9vw, 110px);
    height: auto;
    z-index: 2;
    animation: floatBird 5s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(-10deg);
    }

    100% {
        transform: translateY(0) rotate(-5deg);
    }
}

@keyframes floatBird {
    0% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    100% {
        transform: translateY(0) rotate(-10deg);
    }
}

/* SVG Text */
.footer-svg-text {
    position: absolute;
    bottom: calc(var(--footer-earth-size) * -0.6);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--footer-earth-size) * 1.15);
    height: calc(var(--footer-earth-size) * 1.15);
    z-index: 3;
    pointer-events: none;
    color: var(--text-color);
}

.footer-svg-text text {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 16px;
    fill: var(--text-color);
    letter-spacing: 1px;
}

.footer-svg-text a {
    pointer-events: auto;
    cursor: pointer;
    transition: fill 0.3s ease;
    text-decoration: none;
}

.footer-svg-text a:hover,
.footer-svg-text a:focus {
    fill: var(--hellblau);
}

.footer-svg-text a:visited {
    fill: var(--text-color);
}

/* Bottom Bar */
.footer-bottom-bar {
    position: relative;
    width: 100%;
    height: 60px;
    background-color: var(--hellblau);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 4;
}

.footer-bottom-bar a {
    font-family: 'Carlito', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
}

.footer-bottom-bar a:visited {
    color: var(--text-color);
}

.footer-bottom-bar a:hover {
    color: var(--dunkelblau);
}

/* Footer links should not be underlined */
.footer-bottom-bar a,
.footer-svg-text a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-bottom-bar {
        font-size: 0.9rem;
    }

    /* Footer elements: avoid overlap on small screens by placing them relative to earth center */
    .footer-rocket {
        left: calc(50% - (var(--footer-earth-size) * 0.62));
        bottom: calc(var(--footer-earth-size) * 0.20);
        width: clamp(48px, 9vw, 80px);
    }

    .footer-bird {
        left: calc(50% + (var(--footer-earth-size) * 0.42));
        right: auto;
        bottom: calc(var(--footer-earth-size) * 0.22);
        width: clamp(48px, 10vw, 90px);
    }
}

/* CURSOR VOCHEL */
.cursor-vochel {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    /* Base size, can be adjusted */
    height: auto;
    pointer-events: none;
    /* VERY IMPORTANT: Let clicks pass through */
    z-index: 99999;
    transition: opacity 0.4s ease;
    will-change: transform;
    /* Hint for browser hardware acceleration */
    /* Origin is already center via translate(-50%, -50%) in JS */
}

@media (max-width: 768px) {
    .cursor-vochel {
        display: none !important;
    }
}

/* STARFIELD BACKGROUND */
.starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    /* Klicks sollen an die darunterliegenden Elemente weitergereicht werden */
    background-color: transparent;
}

/* ANIMATION PAGE */
.animation-body {
    background: var(--dunkelblau);
}

.animation-page {
    padding: 90px 0 80px;
}

.animation-section {
    position: relative;
}

.animation-header {
    margin-bottom: 28px;
}

.animation-title {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
}

.animation-copy {
    max-width: 520px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.animation-gallery-wrap {
    position: relative;
}

.animation-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 8px;
    grid-auto-flow: dense;
    gap: 16px;
    row-gap: 16px;
    column-gap: 16px;
    /* Use the outer .container for centering/padding so headers align */
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.animation-page .animation-gallery {
    gap: 16px;
    row-gap: 16px;
    column-gap: 16px;
}

/* SONSTIGES (Vochel page) --- special first row + animation gallery */
.vochel-sonstiges .sonst-text {
    display: flex;
    align-items: center;
    /* vertically center the text within the 4-col block */
}

.vochel-sonstiges .sonst-text-inner {
    text-align: left;
    /* text should be left-aligned inside the right block */
}

/* Make the left image in the Sonstiges first row less wide than the full column */
.vochel-sonstiges .sonstiges-image .animation-card {
    max-width: none;
    /* allow the card to fill the grid column */
    width: 100%;
    margin: 0;
    /* keep it aligned to the grid column */
}

.vochel-sonstiges .sonstiges-image .animation-card video {
    width: 100%;
    height: auto;
    /* maintain aspect ratio while filling column width */
    display: block;
}


.vochel-sonstiges .sonstiges-image .animation-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure the gap between the first Sonstiges row and the following gallery
   matches the grid gap used by .grid-12 (desktop: 40px; <=992px: 16px) */
.vochel-sonstiges .animation-gallery-wrapper {
    grid-column: span 12;
    margin-top: 0;
    /* rely on grid gap for spacing */
    margin-bottom: 16px;
}

@media (max-width: 992px) {
    .vochel-sonstiges .animation-gallery-wrapper {
        margin-bottom: 16px;
    }
}

/* Force consistent row-gap and remove any extra margins that could increase spacing */
.sonstiges-grid {
    row-gap: 16px;
    /* keep spacing consistent with gallery */
    align-items: start;
    /* ensure items align to top so grid row height equals content height */
}

.sonstiges-grid>.animation-gallery-wrapper,
.sonstiges-grid>.animation-gallery-wrapper>.animation-gallery {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.animation-gallery {
    margin: 0 !important;
}

.vochel-sonstiges .animation-gallery {
    gap: 16px;
    row-gap: 16px;
    column-gap: 16px;
}

@media (max-width: 992px) {
    .vochel-sonstiges .animation-gallery {
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }
}

@media (max-width: 992px) {
    .sonstiges-grid {
        row-gap: 16px;
    }
}

@media (max-width: 992px) {
    .vochel-sonstiges .sonst-text {
        align-items: flex-start;
        /* stack naturally on small screens */
        padding: 0 16px 8px 16px;
    }

    .vochel-sonstiges .sonstiges-image {
        padding: 0 16px;
    }

}

.animation-card {
    background-color: var(--dunkelblau);
    overflow: hidden;
    display: block;
    width: 100%;
    margin: 0 !important;
    grid-column: span 1;
    grid-row-end: span 1;
}

.animation-card video {
    width: 100%;
    height: auto;
    display: block;
}

.animation-card img {
    width: 100%;
    height: auto;
    display: block;
}

.animation-card.wide {
    grid-column: span 2;
}

.animation-card.featured {
    grid-column: span 2;
}

/* Eine Karte, die schmal, aber extrem hoch ist */
.animation-card.tall {
    grid-column: span 1;
}

/* ILLUSTRATION PAGE */
.illustration-body {
    background: var(--dunkelblau);
}

.illustration-page {
    padding: 90px 0 80px;
}

.illustration-section {
    position: relative;
}

.illustration-header {
    margin-bottom: 28px;
}

.illustration-title {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 12px;
}

.illustration-copy {
    max-width: 520px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.illustration-gallery-wrap {
    position: relative;
}

.illustration-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    row-gap: 40px;
    column-gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .illustration-gallery {
        grid-template-columns: 1fr;
        /* single column on mobile */
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }
}

.illustration-card {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.illustration-card img {
    display: block;
    width: 100%;
    height: 100%;
    gap: 40px;
    /* Abstand zwischen den Videos */
    row-gap: 40px;
    column-gap: 40px;
}

/* Illustration 10 - Taucher um 90° im Uhrzeigersinn drehen */
.illustration-gallery .illustration-card:nth-child(10) img {
    transform: rotate(90deg);
}


body.about-body {
    display: block;
    min-height: 100vh;
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background: var(--about-sky-base);
    color: var(--about-hero-text);
}

.about-page {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    margin: 0;
    overflow: visible;
    background: var(--about-sky-base);
}

.about-fullscreen-wrapper {
    position: relative;
    width: 100%;
    height: var(--about-wrapper-height);
    overflow: hidden;
}

.desktop-backdrop,
.mobile-backdrop {
    position: absolute;
    top: var(--about-backdrop-top);
    left: var(--about-backdrop-left);
    transform: translateX(-50%);
    width: var(--about-backdrop-width);
    height: var(--about-backdrop-height);
    max-width: none;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.about-safe-zone {
    position: relative;
    width: var(--about-safe-zone-width);
    left: var(--about-safe-zone-left);
    transform: translateX(-50%);
    height: var(--about-safe-zone-height);
    z-index: 2;
    overflow: hidden;
}

.desktop-inner,
.mobile-inner {
    position: absolute;
    top: var(--about-inner-top);
    left: var(--about-inner-left);
    width: var(--about-inner-width);
    height: var(--about-inner-height);
    max-width: none;
    z-index: 1;
    pointer-events: none;
    display: none !important;
}

.mobile-backdrop,
.mobile-inner {
    display: none;
}

.about-stage {
    position: relative;
    width: 100%;
    min-height: var(--about-stage-min-height);
    z-index: 2;
}

.about-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

body.about-body app-header {
    z-index: 4000;
}

body.about-body app-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    margin-top: 0;
}

body.about-body app-footer .app-footer {
    margin-top: 0;
}

.about-hero__title {
    font-family: 'Momo Trust Display', sans-serif;
    position: absolute;
    left: var(--about-hero-title-x);
    top: var(--about-hero-title-y);
    font-size: 66px;
    line-height: 0.95;
    color: #f7f3ea;
    letter-spacing: -1px;
}

.about-hero__copy {
    position: absolute;
    left: var(--about-hero-copy-x);
    top: var(--about-hero-copy-y);
    font-size: 20px;
    line-height: 1.2;
    color: rgba(247, 243, 234, 0.72);
    font-family: 'Carlito', sans-serif;
    font-weight: 400;
    width: 33.333%;
    max-width: 520px;
}

.about-road-title {
    position: absolute;
    left: var(--about-road-title-x);
    top: var(--about-road-title-y);
    z-index: 5;
    font-size: 45px;
    font-weight: 250;
    line-height: 1;
    color: var(--dunkelblau);
    letter-spacing: -1.2px;
    font-family: 'Momo Trust Display', sans-serif;
}

.timeline-item {
    position: absolute;
    z-index: 5;
    color: #f8f4ea;
    font-family: 'Momo Trust Display', sans-serif;
}

.timeline-item__text h3 {
    font-size: 32px;
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.3px;
}

.about-mobile-break {
    display: none;
}

.timeline-item__meta {
    margin-top: 7px;
    font-family: 'Carlito', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    color: rgba(248, 244, 234, 0.88);
    letter-spacing: 0.1px;
}

.timeline-item__meta--secondary {
    margin-top: 2px;
    color: rgba(248, 244, 234, 0.72);
}

.about-location {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
}

.about-location::before {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.28em;
    vertical-align: -0.12em;
    background: var(--about-location-icon) center / contain no-repeat;
    opacity: 0.95;
}

.timeline-item__media {
    position: absolute;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
}

.timeline-item--birth {
    left: var(--about-birth-x);
    top: var(--about-birth-y);
}

.timeline-item--birth h3 {
    font-size: 27px;
}

.timeline-item--familienplaner {
    left: var(--about-familienplaner-x);
    top: var(--about-familienplaner-y);
}

.timeline-item--familienplaner .timeline-item__text {
    margin-top: 0;
    padding-left: 0;
}

.timeline-item--familienplaner h3 {
    font-size: 31px;
}

.timeline-item__media--poster {
    width: 400px;
    height: 200px;
    left: var(--about-poster-x);
    top: var(--about-poster-y);
}

.timeline-item--nappe {
    left: var(--about-nappe-x);
    top: var(--about-nappe-y);
}

.timeline-item--nappe h3 {
    font-size: 29px;
}

.timeline-item__media--small-logo {
    width: 100px;
    height: 100px;
    left: var(--about-small-logo-x);
    top: var(--about-small-logo-y);
    border-radius: 50%;
}

.timeline-item__media--big-logo {
    width: 200px;
    height: 200px;
    left: var(--about-big-logo-x);
    top: var(--about-big-logo-y);
    border-radius: 50%;
}

.timeline-item--blender {
    left: var(--about-blender-x);
    top: var(--about-blender-y);
}

.timeline-item--blender h3 {
    font-size: 29px;
}

.timeline-item__media--blender {
    width: 150px;
    height: 200px;
    left: var(--about-blender-image-x);
    top: var(--about-blender-image-y);
}

.timeline-item--sperber {
    left: var(--about-sperber-x);
    top: var(--about-sperber-y);
}

.timeline-item--sperber h3 {
    font-size: 29px;
}

.timeline-item--3ddruck {
    left: var(--about-3ddruck-x);
    top: var(--about-3ddruck-y);
}

.timeline-item--3ddruck h3 {
    font-size: 31px;
}

.timeline-item--mecom {
    left: var(--about-mecom-x);
    top: var(--about-mecom-y);
}

.timeline-item--mecom h3 {
    font-size: 29px;
}

.timeline-item--abitur {
    left: var(--about-abitur-x);
    top: var(--about-abitur-y);
}

.timeline-item--abitur h3 {
    font-size: 29px;
}

.timeline-item--iu {
    left: var(--about-iu-x);
    top: var(--about-iu-y);
}

.timeline-item--iu h3 {
    font-size: 30px;
}

.timeline-item--ideenwert {
    left: var(--about-ideenwert-x);
    top: var(--about-ideenwert-y);
}

.timeline-item--ideenwert h3 {
    font-size: 29px;
}

@media (max-width: 1199px) {
    :root {
        --about-wrapper-height: 5207px;
        --about-backdrop-height: 5207px;
        --about-backdrop-width: 1500px;
        --about-safe-zone-width: 320px;
        --about-safe-zone-height: 5207px;
        --about-inner-height: 5207px;
        --about-stage-min-height: 5207px;

        --about-hero-title-x: 37px;
        --about-hero-title-y: 213px;
        --about-hero-copy-x: 37px;
        --about-hero-copy-y: 275px;
        --about-road-title-x: 37px;
        --about-road-title-y: 1016px;

        --about-birth-x: 37px;
        --about-birth-y: 1157px;
        --about-familienplaner-x: 37px;
        --about-familienplaner-y: 1614px;
        --about-poster-x: -45px;
        --about-poster-y: -250px;
        --about-nappe-x: 37px;
        --about-nappe-y: 1876px;
        --about-small-logo-x: 180px;
        --about-small-logo-y: 90px;
        --about-big-logo-x: 80px;
        --about-big-logo-y: -215px;
        --about-blender-x: 37px;
        --about-blender-y: 2211px;
        --about-blender-image-x: 0px;
        --about-blender-image-y: 150px;
        --about-sperber-x: 115px;
        --about-sperber-y: 2696px;
        --about-3ddruck-x: 37px;
        --about-3ddruck-y: 3075px;
        --about-mecom-x: 37px;
        --about-mecom-y: 3413px;
        --about-abitur-x: 37px;
        --about-abitur-y: 3652px;
        --about-iu-x: 116px;
        --about-iu-y: 3896px;
        --about-ideenwert-x: 116px;
        --about-ideenwert-y: 4028px;
        --about-logo-sprite-a-x: 50px;
        --about-logo-sprite-a-y: -100px;
        --about-logo-sprite-b-x: 90px;
        --about-logo-sprite-b-y: 100px;
    }

    .desktop-backdrop,
    .desktop-inner {
        display: none !important;
    }

    .mobile-backdrop {
        display: block !important;
    }

    .mobile-inner {
        display: none !important;
    }


    .about-hero__title {
        left: var(--about-hero-title-x);
        top: var(--about-hero-title-y);
        font-size: 42px;
        line-height: 1;
    }

    .about-hero__copy {
        left: 50%;
        top: var(--about-hero-copy-y);
        font-size: 16px;
        width: calc(100% - 74px);
        max-width: 240px;
        transform: translateX(-50%);
    }

    .about-hero__copy {
        width: calc(100% - 74px);
        max-width: 240px;
    }

    .about-road-title {
        left: var(--about-road-title-x);
        top: var(--about-road-title-y);
        font-size: 32px;
        line-height: 1.05;
    }

    .timeline-item--birth {
        left: var(--about-birth-x);
        top: var(--about-birth-y);
    }

    .timeline-item--familienplaner {
        left: var(--about-familienplaner-x);
        top: var(--about-familienplaner-y);
    }

    .timeline-item__media--poster {
        left: var(--about-poster-x);
        top: var(--about-poster-y);
    }

    .timeline-item--nappe {
        left: var(--about-nappe-x);
        top: var(--about-nappe-y);
    }

    .timeline-item__media--small-logo {
        left: var(--about-small-logo-x);
        top: var(--about-small-logo-y);
    }

    .timeline-item__media--big-logo {
        left: var(--about-big-logo-x);
        top: var(--about-big-logo-y);
    }

    .timeline-item--blender {
        left: var(--about-blender-x);
        top: var(--about-blender-y);
    }

    .timeline-item__media--blender {
        left: var(--about-blender-image-x);
        top: var(--about-blender-image-y);
    }

    .timeline-item--sperber {
        left: var(--about-sperber-x);
        top: var(--about-sperber-y);
    }

    .timeline-item--3ddruck {
        left: var(--about-3ddruck-x);
        top: var(--about-3ddruck-y);
    }

    .timeline-item--mecom {
        left: var(--about-mecom-x);
        top: var(--about-mecom-y);
    }

    .timeline-item--abitur {
        left: var(--about-abitur-x);
        top: var(--about-abitur-y);
    }

    .timeline-item--iu {
        left: var(--about-iu-x);
        top: var(--about-iu-y);
    }

    .timeline-item--ideenwert {
        left: var(--about-ideenwert-x);
        top: var(--about-ideenwert-y);
    }

    .timeline-item__logo-sprite--a {
        left: var(--about-logo-sprite-a-x);
        top: var(--about-logo-sprite-a-y);
    }

    .timeline-item__logo-sprite--b {
        left: var(--about-logo-sprite-b-x);
        top: var(--about-logo-sprite-b-y);
    }

    .timeline-item__text h3 {
        font-size: 23px;
        line-height: 1.25;
    }

    .timeline-item__meta {
        font-size: 19px;
    }

    .about-mobile-break {
        display: block;
    }
}

.timeline-item__media--id {
    width: 48px;
    height: 48px;
    left: var(--about-media-id-x);
    top: var(--about-media-id-y);
}

.timeline-item__logo-sprite {
    background-image: url("media/about/Logos.webp");
    background-repeat: no-repeat;
    background-size: var(--about-logo-sheet-width) var(--about-logo-sheet-height);
    border-radius: 11px;
    z-index: 5;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25));
    overflow: hidden;
}

.timeline-item__logo-sprite--a {
    width: var(--about-logo-a-out-w);
    height: var(--about-logo-a-out-h);
    left: var(--about-logo-sprite-a-x);
    top: var(--about-logo-sprite-a-y);
}

.timeline-item__logo-sprite--b {
    width: var(--about-logo-b-out-w);
    height: var(--about-logo-b-out-h);
    left: var(--about-logo-sprite-b-x);
    top: var(--about-logo-sprite-b-y);
}

/* 4. MOBILE ANSICHT (Responsive für Handys) */
@media (max-width: 768px) {
    .animation-gallery {
        grid-template-columns: 1fr;
        /* Alles nur noch 1 Spalte breit */
        grid-auto-rows: auto;
        grid-auto-flow: row;
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }

    .animation-page .animation-gallery {
        gap: 16px;
        row-gap: 16px;
        column-gap: 16px;
    }

    /* Make the animation gallery span the full viewport width on small screens
       while keeping a bit of breathing room on both sides */
    .animation-gallery-wrap {
        padding-left: 16px;
        padding-right: 16px;
        max-width: none;
    }

    .animation-gallery {
        width: 100%;
        margin: 0;
    }

    .animation-card,
    .animation-card.featured,
    .animation-card.wide,
    .animation-card.tall {
        grid-column: span 1;
    }

    .animation-card video,
    .animation-card img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* LEGAL PAGES */
.legal-page {
    padding: 56px 0 72px;
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
    background: linear-gradient(180deg, rgba(96, 127, 221, 0.12), rgba(15, 33, 89, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.legal-hero {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-eyebrow {
    margin-bottom: 10px;
    font-family: 'Carlito', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.legal-card h1 {
    margin-bottom: 0;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1;
}

.legal-block,
.legal-source {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-source {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-card h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.legal-card h3 {
    font-size: 1.2rem;
    margin-top: 18px;
    margin-bottom: 8px;
}

.legal-card h4 {
    font-size: 1rem;
    margin-top: 14px;
    margin-bottom: 6px;
}

.legal-card p,
.legal-card li {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.legal-card ul {
    padding-left: 1.2rem;
    margin-top: 12px;
}

.legal-card li+li {
    margin-top: 8px;
}

.legal-card a {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.legal-page--privacy .legal-card {
    max-width: 980px;
}

.legal-block--compact {
    padding-top: 0;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 28px 0 48px;
    }

    .legal-card {
        padding: 18px 16px 24px;
    }

    .legal-hero {
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .legal-block,
    .legal-source {
        padding: 16px 0;
    }

    .legal-card p,
    .legal-card li {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .legal-card h3 {
        font-size: 1.05rem;
    }

    .legal-card h4 {
        font-size: 0.98rem;
    }
}

/* ========== CONTACT PAGE STYLES ========== */

.contact-section {
    padding: 90px 0 80px;
    background-color: var(--dunkelblau);
}

.contact-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    max-width: 600px;
}

/* Contact Grid: 7 columns for form, 5 for info */
.contact-grid {
    margin-top: 60px;
    align-items: flex-start;
}

/* ========== CONTACT FORM ========== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 12px 16px;
    font-family: 'Carlito', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--hellblau);
    box-shadow: 0 0 0 3px rgba(96, 127, 221, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.form-submit {
    background-color: var(--gelb);
    color: var(--dunkelblau);
    border: none;
    padding: 14px 32px;
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    align-self: flex-start;
}

.form-submit:hover {
    background-color: var(--hellblau);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(242, 185, 16, 0.2);
}

.form-submit:active {
    transform: translateY(0);
}

/* ========== CONTACT INFO ========== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info h3 {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 8px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-block h4 {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--hellblau);
    letter-spacing: 0.5px;
}

.info-link {
    font-size: 1.05rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

.info-link:hover {
    color: var(--hellblau);
}

.info-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 14px;
    background-color: rgba(96, 127, 221, 0.2);
    border: 1px solid var(--hellblau);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--hellblau);
    color: var(--dunkelblau);
}

.response-time {
    margin-top: 20px;
    padding: 16px;
    background-color: rgba(115, 180, 23, 0.15);
    border-left: 3px solid var(--gruen);
    border-radius: 4px;
}

.response-time p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== TABLET RESPONSIVENESS (992px) ========== */
@media (max-width: 992px) {
    .contact-section {
        padding: 60px 0 50px;
    }

    .contact-section h1 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .contact-grid {
        gap: 24px;
        margin-top: 40px;
    }

    .contact-form-col {
        grid-column: span 12 !important;
    }

    .contact-info-col {
        grid-column: span 12 !important;
    }

    .form-group {
        gap: 6px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .form-group textarea {
        min-height: 160px;
    }

    .contact-info {
        gap: 24px;
    }
}

/* ========== MOBILE RESPONSIVENESS (768px) ========== */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0 40px;
    }

    .contact-section h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .contact-intro {
        font-size: 0.95rem;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .contact-grid {
        gap: 16px;
        margin-top: 32px;
    }

    .contact-form-col {
        grid-column: span 12 !important;
    }

    .contact-info-col {
        grid-column: span 12 !important;
    }

    .form-group {
        gap: 6px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 1rem;
        /* Prevents zoom-in on iOS focus */
    }

    .form-group textarea {
        min-height: 150px;
    }

    .form-submit {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
    }

    .contact-info {
        gap: 20px;
        padding: 20px;
        background-color: rgba(96, 127, 221, 0.1);
        border: 1px solid rgba(96, 127, 221, 0.2);
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .info-block h4 {
        font-size: 0.9rem;
    }

    .info-link {
        font-size: 0.95rem;
    }

    .info-text {
        font-size: 0.95rem;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .response-time {
        margin-top: 16px;
        padding: 12px;
    }

    .response-time p {
        font-size: 0.85rem;
    }
}