/* Local Rubik (DSGVO: no Google Fonts CDN) — variable font, one file per subset covers all weights */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/rubik-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/rubik-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC04;
    --google-green: #34A853;
    --white: #ffffff;
    --black: #1a1a1a;

    /* aliases for legacy selectors below — will be cleaned up */
    --stone-50: var(--white);
    --stone-800: var(--black);
    --yellow-400: var(--google-yellow);
}

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

body {
    font-family: "Rubik", sans-serif;
    overflow-x: clip;
}

/* Menu Button */
.menu-button {
    font-family: "Rubik", sans-serif;
    cursor: pointer;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    font-size: 1rem;
    border-radius: 1rem;
    outline: 2px solid transparent;
    outline-offset: 6px;
    color: var(--stone-50);
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-button:active { outline-color: var(--yellow-400); }
.menu-button:focus-visible { outline-color: var(--yellow-400); outline-style: dashed; }

/* Desktop only: move menu button to top-right */
@media (min-width: 992px) {
    .menu-button {
        bottom: auto;
        top: 2rem;
        right: 2rem;
    }
}

.menu-button::before {
    content: "";
    position: absolute;
    z-index: 0;
    height: 200%;
    max-height: 100px;
    aspect-ratio: 1;
    margin: auto;
    background: white;
    clip-path: polygon(100% 50%, 91.48% 56.57%, 97.55% 65.45%, 87.42% 69.07%, 90.45% 79.39%, 79.7% 79.7%, 79.39% 90.45%, 69.07% 87.42%, 65.45% 97.55%, 56.57% 91.48%, 50% 100%, 43.43% 91.48%, 34.55% 97.55%, 30.93% 87.42%, 20.61% 90.45%, 20.3% 79.7%, 9.55% 79.39%, 12.58% 69.07%, 2.45% 65.45%, 8.52% 56.57%, 0% 50%, 8.52% 43.43%, 2.45% 34.55%, 12.58% 30.93%, 9.55% 20.61%, 20.3% 20.3%, 20.61% 9.55%, 30.93% 12.58%, 34.55% 2.45%, 43.43% 8.52%, 50% 0%, 56.57% 8.52%, 65.45% 2.45%, 69.07% 12.58%, 79.39% 9.55%, 79.7% 20.3%, 90.45% 20.61%, 87.42% 30.93%, 97.55% 34.55%, 91.48% 43.43%);
    animation: star-rotate 4s linear infinite;
    opacity: 0.1;
}

.menu-button:hover::before { opacity: 1; }

/* Inner spans of menu-button (changed from <div> to <span> for HTML5 button-content compliance) */
.menu-button > span,
.menu-button > span > span,
.menu-button > span > span > span { display: block; }

.menu-button > span {
    padding: 2px;
    border-radius: 1rem;
    background-color: var(--yellow-400);
    transform: translate(-4px, -4px);
    transition: all 150ms ease;
    box-shadow: 0.5px 0.5px 0 0 var(--yellow-400), 1px 1px 0 0 var(--yellow-400), 1.5px 1.5px 0 0 var(--yellow-400), 2px 2px 0 0 var(--yellow-400), 2.5px 2.5px 0 0 var(--yellow-400), 3px 3px 0 0 var(--yellow-400), 0 0 0 2px var(--stone-800), 0.5px 0.5px 0 2px var(--stone-800), 1px 1px 0 2px var(--stone-800), 1.5px 1.5px 0 2px var(--stone-800), 2px 2px 0 2px var(--stone-800), 2.5px 2.5px 0 2px var(--stone-800), 3px 3px 0 2px var(--stone-800), 3.5px 3.5px 0 2px var(--stone-800), 4px 4px 0 2px var(--stone-800), 0 0 0 4px var(--stone-50), 0.5px 0.5px 0 4px var(--stone-50), 1px 1px 0 4px var(--stone-50), 1.5px 1.5px 0 4px var(--stone-50), 2px 2px 0 4px var(--stone-50), 2.5px 2.5px 0 4px var(--stone-50), 3px 3px 0 4px var(--stone-50), 3.5px 3.5px 0 4px var(--stone-50), 4px 4px 0 4px var(--stone-50);
}

.menu-button:hover > span {
    transform: translate(0, 0);
    box-shadow: 0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400), 0 0 0 0 var(--yellow-400), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50);
}

.menu-button > span > span {
    position: relative;
    pointer-events: none;
    border-radius: calc(1rem - 2px);
    background-color: var(--stone-800);
}

.menu-button > span > span::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0.1;
    background-image: radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%), radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    mix-blend-mode: hard-light;
    box-shadow: inset 0 0 0 1px var(--stone-800);
    animation: dots 0.4s infinite linear;
    transition: opacity 150ms ease;
}

.menu-button > span > span > span {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    gap: 0.25rem;
    filter: drop-shadow(0 -1px 0 var(--stone-800));
}

.menu-button > span > span > span:hover { filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.1)); }
.menu-button > span > span > span:active { transform: translateY(2px); }

/* Hamburger */
.menu-button .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-right: 8px;
    width: 22px;
    height: 16px;
    position: relative;
}
.menu-button .hamburger span {
    width: 22px;
    height: 2.5px;
    background: var(--stone-50);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease, top 0.35s ease;
    transform-origin: center center;
    border-radius: 2px;
}

/* Active state — hamburger morphs into a clean X (absolute positioning ensures lines overlap perfectly) */
.menu-button.active .hamburger span {
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -1.25px;
}
.menu-button.active .hamburger span:nth-child(1) { transform: rotate(45deg) !important; }
.menu-button.active .hamburger span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
.menu-button.active .hamburger span:nth-child(3) { transform: rotate(-45deg) !important; }

/* Active state — overall transform for extra "open" feedback */
.menu-button.active {
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Active state — switch yellow framing to red (strong "open" signal) */
.menu-button.active > span {
    background-color: var(--google-red) !important;
    box-shadow:
        0.5px 0.5px 0 0 var(--google-red), 1px 1px 0 0 var(--google-red), 1.5px 1.5px 0 0 var(--google-red), 2px 2px 0 0 var(--google-red), 2.5px 2.5px 0 0 var(--google-red), 3px 3px 0 0 var(--google-red),
        0 0 0 2px var(--stone-800), 0.5px 0.5px 0 2px var(--stone-800), 1px 1px 0 2px var(--stone-800), 1.5px 1.5px 0 2px var(--stone-800), 2px 2px 0 2px var(--stone-800), 2.5px 2.5px 0 2px var(--stone-800), 3px 3px 0 2px var(--stone-800), 3.5px 3.5px 0 2px var(--stone-800), 4px 4px 0 2px var(--stone-800),
        0 0 0 4px var(--stone-50), 0.5px 0.5px 0 4px var(--stone-50), 1px 1px 0 4px var(--stone-50), 1.5px 1.5px 0 4px var(--stone-50), 2px 2px 0 4px var(--stone-50), 2.5px 2.5px 0 4px var(--stone-50), 3px 3px 0 4px var(--stone-50), 3.5px 3.5px 0 4px var(--stone-50), 4px 4px 0 4px var(--stone-50);
}

/* Active state — collapse the layered shadow (looks "pressed" / activated) */
.menu-button.active:hover > span { box-shadow: 0 0 0 0 var(--google-red), 0 0 0 0 var(--google-red), 0 0 0 0 var(--google-red), 0 0 0 0 var(--google-red), 0 0 0 0 var(--google-red), 0 0 0 0 var(--google-red), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 2px var(--stone-800), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50), 0 0 0 4px var(--stone-50); }

/* Animations */
@keyframes star-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dots { 0% { background-position: 0 0, 4px 4px; } 100% { background-position: 8px 0, 12px 4px; } }

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-backdrop.show { opacity: 1; visibility: visible; }

/* Menu Panel — premium */
.menu-panel {
    position: fixed;
    top: auto;
    right: 1.5rem;
    bottom: 5.5rem;
    height: auto;
    max-height: calc(100vh - 7rem);
    width: min(320px, calc(100% - 3rem));
    background: #0a0a0a;
    border-radius: 24px;
    z-index: 999;
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transform-origin: 100% 100%;
    clip-path: circle(0% at calc(100% - 2rem) calc(100% + 2rem));
    transition: clip-path 0.7s cubic-bezier(0.83, 0, 0.17, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Desktop — menu button is at top-right, so the panel drops down from there
   instead of rising from the bottom-right. Mirror the clip-path origin too. */
@media (min-width: 992px) {
    .menu-panel {
        top: 5.5rem;
        bottom: auto;
        transform-origin: 100% 0%;
        clip-path: circle(0% at calc(100% - 2rem) -2rem);
        max-height: calc(100vh - 7rem);
    }
    .menu-panel.show {
        clip-path: circle(150% at calc(100% - 2rem) -2rem);
    }
    /* Stripe is normally on top edge; with panel anchored to top it stays there. ✓ */
}

/* Mobile — compact menu so it doesn't span almost the whole height */
@media (max-width: 600px) {
    .menu-panel {
        right: 1rem;
        bottom: 5rem;
        padding: 1.25rem 1.25rem 1rem;
        max-height: calc(100vh - 6rem);
    }
    .menu-panel .menu-items a {
        padding: 0.65rem 0.25rem;
        font-size: 1rem;
    }
    .menu-logo {
        margin-bottom: 1rem;
        padding: 0.5rem 0.9rem 0.6rem;
        font-size: 0.85rem;
    }
    .menu-footer {
        padding-top: 0.85rem;
        margin-top: 0.5rem;
    }
    .menu-footer__contact a {
        font-size: 0.82rem;
    }
}

/* Menu logo — white pill tab with Google gradient stripe (echoes hero-logo) */
.menu-logo {
    position: relative;
    align-self: flex-start;
    margin: 0 0 1.75rem;
    padding: 0.6rem 1.1rem 0.75rem;
    background: var(--white);
    color: var(--black);
    font-family: "Rubik", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    white-space: nowrap;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.menu-logo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
}

.menu-logo:hover {
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.menu-logo img {
    display: block;
    height: 20px;
    width: auto;
    max-width: 150px;
}

.menu-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.menu-panel.show::after { opacity: 1; }

.menu-panel.show { clip-path: circle(150% at calc(100% - 2rem) calc(100% + 2rem)); }

/* Close Button */
.menu-close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.menu-close:hover {
    border-color: var(--google-yellow);
    transform: rotate(90deg);
    background: rgba(251, 188, 4, 0.1);
}

.menu-close span {
    position: absolute;
    width: 14px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.7);
    transition: background 0.3s ease;
}

.menu-close:hover span { background: var(--google-yellow); }

.menu-close span:nth-child(1) { transform: rotate(45deg); }
.menu-close span:nth-child(2) { transform: rotate(-45deg); }

/* Menu Header — premium */
.menu-header {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.4);
}

.menu-header h2 {
    display: none; /* hidden for cleaner premium look */
}

.menu-header::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--google-yellow);
}

/* Profile card — Christian photo at top of menu */
.menu-profile {
    position: relative;
    display: block;
    height: 220px;
    margin-bottom: 1.75rem;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
}

.menu-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    border-color: rgba(251, 188, 4, 0.4);
}

/* Top Google color stripe — animates in on hover */
.menu-profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-profile:hover::before { transform: scaleX(1); }

.menu-profile__photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.menu-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.menu-profile:hover .menu-profile__photo img { transform: scale(1.06); }

.menu-profile__photo--placeholder {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 10px,
        rgba(255, 255, 255, 0.07) 10px,
        rgba(255, 255, 255, 0.07) 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-profile__photo--placeholder .placeholder-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.menu-profile__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.5rem 1.25rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.menu-profile__tag {
    font-size: 0.65rem;
    color: var(--google-yellow);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
}

.menu-profile__tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--google-green);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(52, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

.menu-profile__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-profile:hover .menu-profile__name { transform: translateY(-2px); }

/* Click hint arrow — bottom right */
.menu-profile__overlay::after {
    content: "→";
    position: absolute;
    right: 1.5rem;
    bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.menu-profile:hover .menu-profile__overlay::after {
    transform: translateX(5px);
    color: var(--google-yellow);
}

/* Menu Items — premium minimalist */
.menu-panel .menu-items {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    padding-right: 0.25rem;
    margin-top: 0;
}

.menu-panel .menu-items::-webkit-scrollbar { width: 4px; }
.menu-panel .menu-items::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
.menu-panel .menu-items::-webkit-scrollbar-track { background: transparent; }

.menu-panel .menu-items a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.25rem;
    color: var(--white);
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(24px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.menu-panel.show .menu-items a {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveal for flat list (up to 12 items) */
.menu-panel.show .menu-items > a:nth-child(1) { transition-delay: 0.20s; }
.menu-panel.show .menu-items > a:nth-child(2) { transition-delay: 0.25s; }
.menu-panel.show .menu-items > a:nth-child(3) { transition-delay: 0.30s; }
.menu-panel.show .menu-items > a:nth-child(4) { transition-delay: 0.35s; }
.menu-panel.show .menu-items > a:nth-child(5) { transition-delay: 0.40s; }
.menu-panel.show .menu-items > a:nth-child(6) { transition-delay: 0.45s; }
.menu-panel.show .menu-items > a:nth-child(7) { transition-delay: 0.50s; }
.menu-panel.show .menu-items > a:nth-child(8) { transition-delay: 0.55s; }
.menu-panel.show .menu-items > a:nth-child(9) { transition-delay: 0.60s; }
.menu-panel.show .menu-items > a:nth-child(10) { transition-delay: 0.65s; }

/* Per-item color — matches each page's hero color */
.menu-panel .menu-items > a:nth-child(1) { --item-color: var(--google-yellow); }  /* Home */
.menu-panel .menu-items > a:nth-child(2) { --item-color: var(--google-blue); }    /* Keynote — blue */
.menu-panel .menu-items > a:nth-child(3) { --item-color: var(--google-red); }     /* Moderation — red */
.menu-panel .menu-items > a:nth-child(4) { --item-color: var(--google-green); }   /* Workshop — green */
.menu-panel .menu-items > a:nth-child(5) { --item-color: var(--google-yellow); }  /* Über mich — yellow */
.menu-panel .menu-items > a:nth-child(6) { --item-color: var(--google-blue); }    /* Kontakt — blue */

/* Thin animated colored line — uses per-item color */
.menu-panel .menu-items a::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--item-color, var(--google-yellow));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-panel .menu-items a:hover::before { width: 100%; }

.menu-text {
    position: relative;
    display: block;
}

.menu-text__main {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: var(--white);
    transition: color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

.menu-arrow {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.25);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}

.menu-panel .menu-items a:hover .menu-text__main {
    transform: translateX(4px);
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.menu-panel .menu-items a:hover .menu-arrow { transform: translateX(6px); color: var(--item-color, var(--google-yellow)); }

/* Menu Footer — premium */
.menu-footer {
    position: relative;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-footer__contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    width: fit-content;
}

.menu-footer__contact a:hover { color: var(--google-yellow); }

.menu-footer__credit {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.menu-footer__credit span {
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.menu-footer__credit a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    width: fit-content;
}

.menu-footer__credit a:hover { color: var(--google-yellow); }

.menu-footer__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile: hide copyright in menu to save space */
@media (max-width: 768px) {
    .menu-footer__meta { display: none; }
}

.menu-footer p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.hero-section video,
.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-section .content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 6rem 2rem 1.5rem;
    max-width: 1500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-text { margin-bottom: 3.5rem; padding-top: 9rem; }

/* Brand logo — white tab glued to top edge of hero, with Google gradient line at bottom */
.hero-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: var(--white);
    color: var(--black);
    font-family: "Rubik", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    padding: 0.95rem 1.85rem 1.05rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Bottom colored gradient line — Google brand mark */
.hero-logo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
}

.hero-logo:hover {
    transform: translateX(-50%) translateY(3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    color: var(--black);
}

/* Logo image (replaces text "TheGoogleGuy.de") */
.hero-logo img {
    display: block;
    height: 26px;
    width: auto;
    max-width: 200px;
}

@media (max-width: 600px) {
    .hero-logo { padding: 0.7rem 1.2rem 0.8rem; }
    .hero-logo::after { height: 2px; }
    .hero-logo img { height: 20px; max-width: 160px; }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--google-yellow);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-in 0.8s ease 0.2s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.hero-section h1 .word,
.hero-section p .word {
    display: inline-block;
    white-space: nowrap;
}

.hero-section h1 .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: letter-reveal 0.4s forwards;
    color: #fff;
}

@keyframes letter-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .content .hero-text p {
    font-size: 1.15rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.hero-section p .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letter-reveal 0.3s forwards;
    color: #fff;
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1500px;
    width: 92%;
    margin: 0 auto;
}

/* Sticky mini-bar — cloned hero cards docked at viewport bottom (4x shorter) */
.hero-cards-mini {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translate(-50%, 140%);
    z-index: 700;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    width: calc(100% - 2rem);
    max-width: 720px;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.hero-cards-mini.show {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
}

.hero-cards-mini .hero-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 65px;
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--white);
    overflow: hidden;
    opacity: 1;
    transform: none;
    animation: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    text-align: left;
}

.hero-cards-mini .hero-card__num {
    position: static;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.75);
}

.hero-cards-mini .hero-card__body {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.hero-cards-mini .hero-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.3px;
    color: var(--white);
}

.hero-cards-mini .hero-card p { display: none; }

.hero-cards-mini .hero-card__arrow {
    position: static;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.7;
    color: var(--white);
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-cards-mini .hero-card:hover { transform: translateY(-3px); }
.hero-cards-mini .hero-card:hover .hero-card__arrow { transform: translateX(3px); opacity: 1; }

/* Hide on mobile (cramped + MENU button already at bottom) */
@media (max-width: 768px) {
    .hero-cards-mini { display: none !important; }
}

.hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    padding: 1.75rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--white);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: card-reveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    text-align: left;
}

.hero-card:nth-child(1) { animation-delay: 0.8s; }
.hero-card:nth-child(2) { animation-delay: 0.95s; }
.hero-card:nth-child(3) { animation-delay: 1.1s; }

@keyframes card-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.hero-card--blue {
    background: linear-gradient(165deg, rgba(66, 133, 244, 0) 0%, var(--google-blue) 100%);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.25);
}

.hero-card--red {
    background: linear-gradient(165deg, rgba(234, 67, 53, 0) 0%, var(--google-red) 100%);
    box-shadow: 0 15px 40px rgba(234, 67, 53, 0.25);
}

.hero-card--green {
    background: linear-gradient(165deg, rgba(52, 168, 83, 0) 0%, var(--google-green) 100%);
    box-shadow: 0 15px 40px rgba(52, 168, 83, 0.25);
}

/* Mini-bar version — fuller, more saturated colors (no transparent gradient at top) */
.hero-cards-mini .hero-card--blue {
    background: linear-gradient(165deg, #5a96f5 0%, #3978e8 100%);
    box-shadow: 0 12px 30px rgba(66, 133, 244, 0.45);
}

.hero-cards-mini .hero-card--red {
    background: linear-gradient(165deg, #ee6055 0%, #d63a2e 100%);
    box-shadow: 0 12px 30px rgba(234, 67, 53, 0.45);
}

.hero-cards-mini .hero-card--green {
    background: linear-gradient(165deg, #4cb96a 0%, #2d9748 100%);
    box-shadow: 0 12px 30px rgba(52, 168, 83, 0.45);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hero-card:hover { transform: translateY(-12px); }
.hero-card:hover::before { opacity: 1; }
.hero-card--blue:hover { box-shadow: 0 25px 60px rgba(66, 133, 244, 0.5); }
.hero-card--red:hover { box-shadow: 0 25px 60px rgba(234, 67, 53, 0.5); }
.hero-card--green:hover { box-shadow: 0 25px 60px rgba(52, 168, 83, 0.5); }

.hero-card__num {
    position: relative;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card__body {
    position: relative;
    margin-top: auto;
}

.hero-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.hero-card p {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.hero-card__arrow {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.hero-card:hover .hero-card__arrow {
    opacity: 1;
    transform: translate(4px, -4px);
}


/* Page content */
.page-content {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

/* ---------- Subpage ---------- */
.page-body {
    background: #0a0a0a;
    color: var(--white);
}

.subpage { display: block; }

/* Subpage hero */
.subpage-hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.subpage-hero--blue {
    background: linear-gradient(165deg, rgba(66, 133, 244, 0.05) 0%, var(--google-blue) 120%);
}

.subpage-hero--red {
    background: linear-gradient(165deg, rgba(234, 67, 53, 0.05) 0%, var(--google-red) 120%);
}

.subpage-hero--green {
    background: linear-gradient(165deg, rgba(52, 168, 83, 0.05) 0%, var(--google-green) 120%);
}

.subpage-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.subpage-back:hover {
    color: var(--white);
    transform: translateX(-4px);
}

.subpage-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.subpage-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.subpage-lead {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Subpage section */
.subpage-section {
    padding: 6rem 0;
    background: #0a0a0a;
}

.subpage-section--dark { background: #111; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--google-yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.subpage-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--white);
    margin: 0;
}

.subpage-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.subpage-grid p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.subpage-grid p:last-child { margin-bottom: 0; }

/* Topics grid — same card language as hero */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.topic-card {
    position: relative;
    min-height: 260px;
    padding: 2rem;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.topic-card--blue {
    background: linear-gradient(165deg, rgba(66, 133, 244, 0) 0%, var(--google-blue) 100%);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.2);
}

.topic-card--red {
    background: linear-gradient(165deg, rgba(234, 67, 53, 0) 0%, var(--google-red) 100%);
    box-shadow: 0 15px 40px rgba(234, 67, 53, 0.2);
}

.topic-card--green {
    background: linear-gradient(165deg, rgba(52, 168, 83, 0) 0%, var(--google-green) 100%);
    box-shadow: 0 15px 40px rgba(52, 168, 83, 0.2);
}

.topic-card:hover { transform: translateY(-8px); }
.topic-card--blue:hover { box-shadow: 0 25px 55px rgba(66, 133, 244, 0.4); }
.topic-card--red:hover { box-shadow: 0 25px 55px rgba(234, 67, 53, 0.4); }
.topic-card--green:hover { box-shadow: 0 25px 55px rgba(52, 168, 83, 0.4); }

.topic-card__num {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.topic-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.topic-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Subpage CTA */
.subpage-cta {
    padding: 6rem 0;
    background: #0a0a0a;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.subpage-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.subpage-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--google-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.35);
}

.cta-button span { transition: transform 0.3s ease; }

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.5);
    color: var(--white);
}

.cta-button:hover span { transform: translateX(4px); }

@media (max-width: 768px) {
    .subpage-hero { padding: 6rem 0 3.5rem; }
    .subpage-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .subpage-section { padding: 4rem 0; }
    .topics-grid { grid-template-columns: 1fr; gap: 1rem; }
    .topic-card { min-height: 200px; padding: 1.5rem; }
    .subpage-cta { padding: 4rem 0; }
}

/* ---------- Keynote page — light theme ---------- */
.page-body--light { background: #ffffff; color: var(--black); }

/* Section base */
.kn-section {
    position: relative;
    padding: 6rem 0;
    overflow: clip;
}

.kn-section--light { background: #ffffff; color: var(--black); }

.kn-section--green {
    background: var(--google-green);
    color: var(--white);
}

.kn-section--yellow {
    background: var(--google-yellow);
    color: var(--black);
}

/* Playful decorative blobs (placeholder for GIFs later) */
.kn-section--light::before,
.kn-section--green::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.kn-section--light::before {
    top: -80px;
    right: -80px;
    background: var(--google-yellow);
}

.kn-section--green::before {
    bottom: -80px;
    left: -80px;
    background: var(--google-blue);
    opacity: 0.25;
}

.kn-section > .container { position: relative; z-index: 1; }

/* Hero — full solid colour */
.kn-hero {
    position: relative;
    padding: 7rem 0 4rem;
    background: var(--google-blue);
    overflow: hidden;
}

.kn-hero--red    { background: var(--google-red); }
.kn-hero--green  { background: var(--google-green); }
.kn-hero--yellow { background: var(--google-yellow); }
.kn-hero--clean  { background: var(--white); }

/* Desktop only: layer the home hero photo behind the coloured tint
   (same image as homepage, with a translucent colour wash on top). */
@media (min-width: 769px) {
    .kn-hero {
        background-color: var(--google-blue);
        background-image:
            linear-gradient(rgba(66, 133, 244, 0.78), rgba(66, 133, 244, 0.78)),
            url("images/hero.webp");
        background-size: cover;
        background-position: center 25%;
        background-repeat: no-repeat;
    }
    .kn-hero--red {
        background-color: var(--google-red);
        background-image:
            linear-gradient(rgba(234, 67, 53, 0.78), rgba(234, 67, 53, 0.78)),
            url("images/hero.webp");
    }
    .kn-hero--green {
        background-color: var(--google-green);
        background-image:
            linear-gradient(rgba(52, 168, 83, 0.78), rgba(52, 168, 83, 0.78)),
            url("images/hero.webp");
    }
    .kn-hero--yellow {
        background-color: var(--google-yellow);
        background-image:
            linear-gradient(rgba(251, 188, 4, 0.78), rgba(251, 188, 4, 0.78)),
            url("images/hero.webp");
    }
    .kn-hero--clean {
        background-color: var(--white);
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
            url("images/hero.webp");
    }
}

.kn-hero--yellow h1 { color: var(--black); }

.kn-hero--clean h1 { color: var(--black); }
.kn-hero--clean::after { display: none; }
.kn-hero--clean h1 { text-align: center; }

/* Bottom gradient line — separates clean hero from next section */
.kn-hero--clean::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 60%);
    height: 3px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    border-radius: 3px;
    z-index: 2;
}

.kn-hero::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 5%;
    width: 180px;
    height: 180px;
    background: var(--google-yellow);
    border-radius: 50%;
    opacity: 0.25;
    filter: blur(40px);
    pointer-events: none;
}

/* kn-back & kn-back-sticky — visual style comes from retro-btn classes; these only handle positioning */
.kn-back {
    display: inline-block;
    margin-bottom: 2rem;
}

/* Sticky floating back button — appears on scroll on all subpages */
.kn-back-sticky {
    position: fixed !important;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-14px);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.45s,
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.kn-back-sticky.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .kn-back-sticky { top: 1rem; left: 1rem; font-size: 0.7rem; }
}

.kn-hero h1 {
    font-size: clamp(1.85rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -2px;
    margin: 0;
    line-height: 1.05;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
}

/* Headings */
.kn-heading {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    color: var(--black);
}

.kn-heading--light { color: var(--white); }

/* Intro */
.kn-intro {
    max-width: 860px;
    margin: 0 auto;
}

.kn-intro p {
    font-size: 1.28rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

.kn-intro h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
    margin: 2.5rem 0 1.5rem;
    letter-spacing: -0.3px;
}

.kn-features {
    list-style: none;
    padding: 4px 0 4px 4px;        /* room for retro offset translate */
    margin: 0 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .kn-features { grid-template-columns: 1fr; gap: 1rem; }
}

/* Stack variant — used inside narrow columns (e.g. testimonials in Referenzen) */
.kn-features--stack { grid-template-columns: 1fr; gap: 1.75rem; margin: 0; }

/* Quote-card content inside .kn-features li (Referenzen) */
.kn-feature-quote p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}
.kn-feature-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.kn-feature-quote cite strong {
    color: var(--white);
    font-weight: 700;
}

.kn-features li {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--black);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.6;
    border: 2px solid var(--black);
    transform: translate(-4px, -4px);
    transition: transform 150ms ease, box-shadow 150ms ease;
    overflow: hidden;
    --feature-dot: var(--google-blue);
    box-shadow:
        0.5px 0.5px 0 0 var(--feature-dot), 1px 1px 0 0 var(--feature-dot),
        1.5px 1.5px 0 0 var(--feature-dot), 2px 2px 0 0 var(--feature-dot),
        2.5px 2.5px 0 0 var(--feature-dot), 3px 3px 0 0 var(--feature-dot),
        3.5px 3.5px 0 0 var(--feature-dot), 4px 4px 0 0 var(--feature-dot),
        0 0 0 2px var(--feature-dot), 0.5px 0.5px 0 2px var(--feature-dot),
        1px 1px 0 2px var(--feature-dot), 1.5px 1.5px 0 2px var(--feature-dot),
        2px 2px 0 2px var(--feature-dot), 2.5px 2.5px 0 2px var(--feature-dot),
        3px 3px 0 2px var(--feature-dot), 3.5px 3.5px 0 2px var(--feature-dot),
        4px 4px 0 2px var(--feature-dot);
}

/* Animated dotted texture overlay (same as retro-btn) */
.kn-features li::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.6) 20%, transparent 20%),
        radial-gradient(rgba(255, 255, 255, 0.8) 20%, transparent 20%);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    animation: dots 0.4s infinite linear;
    opacity: 0.08;
    pointer-events: none;
    transition: opacity 150ms ease;
}

.kn-features li:hover::before {
    opacity: 0.2;
}

.kn-features li::after { display: none; }

/* Press-in effect on hover: shadow collapses, card "lands" flush */
.kn-features li:hover {
    transform: translate(0, 0);
    box-shadow:
        0 0 0 0 var(--feature-dot), 0 0 0 0 var(--feature-dot),
        0 0 0 0 var(--feature-dot), 0 0 0 0 var(--feature-dot),
        0 0 0 0 var(--feature-dot), 0 0 0 0 var(--feature-dot),
        0 0 0 0 var(--feature-dot), 0 0 0 0 var(--feature-dot),
        0 0 0 2px var(--feature-dot), 0 0 0 2px var(--feature-dot),
        0 0 0 2px var(--feature-dot), 0 0 0 2px var(--feature-dot),
        0 0 0 2px var(--feature-dot), 0 0 0 2px var(--feature-dot),
        0 0 0 2px var(--feature-dot), 0 0 0 2px var(--feature-dot),
        0 0 0 2px var(--feature-dot);
}

.kn-features li:nth-child(1) { --feature-dot: var(--google-blue); }
.kn-features li:nth-child(2) { --feature-dot: var(--google-red); }
.kn-features li:nth-child(3) { --feature-dot: var(--google-green); }

.kn-features--yellow li { --feature-dot: var(--google-yellow); }
.kn-features--green li { --feature-dot: var(--google-green); }

.kn-feature-tag {
    display: block;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 0.6px;
    font-size: 0.95rem;
    text-transform: uppercase;
    /* Color overridden by tag-color modifier below */
}

.kn-feature-tag--blue   { color: #6ea4ff; }   /* lighter blue for dark bg readability */
.kn-feature-tag--red    { color: #ff7a6e; }   /* lighter red */
.kn-feature-tag--green  { color: #6dd28a; }   /* lighter green */
.kn-feature-tag--yellow { color: #ffd24a; }

.kn-features--yellow li:nth-child(1),
.kn-features--yellow li:nth-child(2),
.kn-features--yellow li:nth-child(3) { border-left-color: var(--google-yellow); }

.kn-features--green li:nth-child(1),
.kn-features--green li:nth-child(2),
.kn-features--green li:nth-child(3) { border-left-color: var(--google-green); }

/* Bullets (Was wäre, wenn…) */
.kn-bullets {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.kn-bullets li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.6rem;
}

.kn-bullets li strong { color: var(--black); }

/* Steps (ordered list in Q&A) */
.kn-steps {
    padding-left: 1.5rem;
    margin: 1rem 0 0;
}

.kn-steps li {
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Centered / dark variants */
.kn-heading--center {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.kn-heading--dark { color: var(--black); }

/* Quote on yellow — adjust the highlight */
.kn-section--yellow .kn-highlight {
    background: var(--white);
    color: var(--black);
}

.kn-section--yellow .kn-quote p { color: var(--black); }
.kn-section--yellow .kn-quote cite { color: rgba(0, 0, 0, 0.7); }

/* Dark label placeholders (for yellow bg so stripes are darker) */
.kn-photo--dark-label {
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 10px,
        rgba(0, 0, 0, 0.15) 10px,
        rgba(0, 0, 0, 0.15) 20px
    );
    border: 2px dashed rgba(0, 0, 0, 0.3);
    color: rgba(0, 0, 0, 0.75);
}

/* Divider dark variant */
.kn-divider--dark { background: rgba(0, 0, 0, 0.2); }

/* Testimonials on yellow bg — dark text */
.kn-section--yellow .kn-testimonial,
.kn-section--yellow .kn-testimonial p { color: var(--black); }

.kn-section--yellow .kn-testimonial cite { color: rgba(0, 0, 0, 0.8); }
.kn-section--yellow .kn-testimonial cite strong { color: var(--black); }

/* Q&A yellow variant */
.kn-qa-items--yellow .kn-qa summary,
.kn-qa-items--yellow .kn-qa summary::after { color: #c88f00; }

/* Q&A green variant */
.kn-qa-items--green .kn-qa summary,
.kn-qa-items--green .kn-qa summary::after { color: var(--google-green); }

/* Topic highlight (for "Ideal für: ..." accent text) — colored pill matching card */
.kn-topic__highlight {
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: color-mix(in srgb, var(--topic-color, var(--google-blue)) 12%, white);
    color: var(--topic-color, var(--google-blue));
    font-weight: 700;
    padding: 0.2em 0.55em;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.9;
}

/* Moderation method grid */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 9 tiles → 3×3 grid, no orphans */
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .mod-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }   /* 9 → 3×3 (smaller) */
}
@media (max-width: 480px) {
    .mod-grid { grid-template-columns: 1fr; }                              /* 9 → 9×1 */
}

.mod-tile {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-tile:hover { transform: translateY(-6px); }

.mod-tile__img {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 14px;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    border: 2px dashed rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.mod-tile:hover .mod-tile__img {
    border-color: var(--google-yellow);
    border-style: solid;
}

.mod-tile__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mod-tile:hover .mod-tile__img img {
    transform: scale(1.05);
}

/* Hide dashed border when tile has an image */
.mod-tile__img:has(img) {
    border-style: none;
    background: #f0f0f0;
}

.mod-tile figcaption {
    text-align: center;
    color: #333;
    letter-spacing: -0.2px;
    padding: 0.25rem 0.5rem 0;
}

.mod-tile figcaption strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.mod-tile figcaption span {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.45;
    color: #666;
}

/* Final CTA block */
.kn-final-cta {
    background: var(--black);
    padding: 4rem 0;
    text-align: center;
}

/* ---------- GIF Skip Buttons ---------- */
.gif-skip-buttons {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}
.gif-skip-buttons.show {
    display: flex;
}
.gif-skip-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    border: 2px solid var(--stone-800, #1c1917);
    background: var(--stone-800, #1c1917);
    color: var(--white, #fff);
    cursor: pointer;
    overflow: hidden;
    transform: translate(-4px, -4px);
    box-shadow:
        0.5px 0.5px 0 0 var(--google-yellow, #FBBC04),
        1px 1px 0 0 var(--google-yellow, #FBBC04),
        1.5px 1.5px 0 0 var(--google-yellow, #FBBC04),
        2px 2px 0 0 var(--google-yellow, #FBBC04),
        2.5px 2.5px 0 0 var(--google-yellow, #FBBC04),
        3px 3px 0 0 var(--google-yellow, #FBBC04),
        3.5px 3.5px 0 0 var(--google-yellow, #FBBC04),
        4px 4px 0 0 var(--google-yellow, #FBBC04);
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.gif-skip-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.6) 20%, transparent 20%),
        radial-gradient(rgba(255, 255, 255, 0.8) 20%, transparent 20%);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    animation: dots 0.4s infinite linear;
    opacity: 0.08;
    pointer-events: none;
}
.gif-skip-btn:hover {
    transform: translate(0, 0);
    box-shadow: 0 0 0 0 var(--google-yellow, #FBBC04);
}
.gif-skip-btn:hover::before {
    opacity: 0.2;
}
.gif-skip-btn__icon {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.gif-skip-btn__label {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-top: -2px;
}
@media (max-width: 768px) {
    .gif-skip-buttons {
        right: 0.75rem;
    }
    .gif-skip-btn {
        width: 48px;
        height: 48px;
    }
}

/* ---------- GIF grid (home page) — sticky scroll reveal ---------- */
.gif-section {
    background: #ffffff;
    position: relative;
    padding: 0;
    /* NOTE: do NOT add overflow:hidden here — it breaks `position:sticky` of .gif-cinema__inner */
}

/* Mobile fan still needs overflow control on its own container */
.gif-fan { overflow: hidden; }

/* Intro line shown above the GIF sequence (both desktop and mobile) */
.gif-intro {
    text-align: center;
    padding: 3.25rem 1.5rem 0.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.gif-intro__text {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--black);
    margin: 0;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .gif-intro {
        padding: 2.25rem 1.25rem 0.25rem;
    }
    .gif-intro__text {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
    }
}

.gif-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    opacity: 0.6;
    z-index: 2;
}

.gif-section__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1.25rem 1.5rem 1.25rem;
}

.gif-section__sticky > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.gif-section__header {
    text-align: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.gif-section__header .section-label,
.gif-section__header .kn-heading {
    color: var(--black);
}

.gif-section__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--google-yellow);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.gif-section__header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1.2px;
    color: var(--black);
    margin: 0;
    line-height: 1.05;
}

/* ---------- DESKTOP: 3D wheel of GIFs, sticky during a short scroll window ---------- */
.gif-cinema {
    position: relative;
    /* 3 viewports total = 2vh of sticky scrolling drives the full 21-GIF rotation.
       Tweak this number if the wheel feels too fast / too slow. */
    height: calc(3 * 100vh);
}

.gif-cinema__inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    /* right padding reserves space for the fixed WEITER skip buttons (right: 1.5rem + 56px wide) */
    padding: 1.5rem 6.5rem 1.5rem 6.5rem;
}

/* Scroll hint — appears below the wheel, fades out once user has scrolled past first GIF */
.gif-cinema__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0.6;
    transition: opacity 0.4s ease;
    user-select: none;
    pointer-events: none;
}

.gif-cinema__hint--hidden {
    opacity: 0;
}

.gif-cinema__hint-arrow {
    display: inline-block;
    font-size: 1.1rem;
    animation: gif-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes gif-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .gif-cinema__hint-arrow { animation: none; }
}

/* Stage — film + floating number badge.
   Width capped by viewport height so caption + connector + film always fit on one screen. */
.gif-cinema__stage {
    position: relative;
    width: min(70vw, 820px, calc((100vh - 260px) * 1.635));
}

/* Animated gradient connector — long S-curved line that draws itself, points from caption down to the film */
.gif-cinema__connector {
    width: 70px;
    height: clamp(35px, 5vh, 50px);
    display: block;
    flex-shrink: 0;
    overflow: visible;
}

.gif-cinema__connector-path {
    stroke-dasharray: 100 100;
    stroke-dashoffset: 100;
    animation: cinema-connector-draw 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.gif-cinema__connector-dot {
    transform-origin: 50px 8px;
    transform-box: view-box;
    animation: cinema-connector-pulse 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.gif-cinema__connector-tip {
    transform-origin: 50px 234px;
    transform-box: view-box;
    animation: cinema-connector-tip-in 3.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes cinema-connector-draw {
    0%   { stroke-dashoffset: 100; }
    50%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

@keyframes cinema-connector-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.6; }
}

@keyframes cinema-connector-tip-in {
    0%, 30%   { opacity: 0; transform: scale(0.5); }
    50%, 80%  { opacity: 1; transform: scale(1); }
    100%      { opacity: 0; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
    .gif-cinema__connector-path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
    .gif-cinema__connector-dot  { animation: none; }
    .gif-cinema__connector-tip  { animation: none; opacity: 1; transform: scale(1); }
}

/* Number badge — anchors to top-left corner of the film */
.gif-cinema__num {
    position: absolute;
    top: -10px;
    left: -36px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--black, #0a0a0a);
    background: var(--google-yellow, #FBBC04);
    border-radius: 18px;
    border: 2px solid var(--black, #0a0a0a);
    transform: translate(-3px, -3px) rotate(-4deg);
    box-shadow:
        1px 1px 0 0 var(--black, #0a0a0a),
        2px 2px 0 0 var(--black, #0a0a0a),
        3px 3px 0 0 var(--black, #0a0a0a);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Animated dots on number tile */
.gif-cinema__num::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.3) 20%, transparent 20%),
        radial-gradient(rgba(0, 0, 0, 0.4) 20%, transparent 20%);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    animation: dots 0.4s infinite linear;
    opacity: 0.1;
    pointer-events: none;
}

/* Wheel frame — visible window holding the active GIF, with 3D flip transitions */
.gif-cinema__wheel-frame {
    position: relative;
    width: clamp(380px, 51vw, 650px);
    aspect-ratio: 600 / 367;
    margin: 0 auto;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    background: transparent;
}

/* Caption bubble — comic-style speech bubble centered above the film,
   with tail pointing straight down to indicate "this text belongs to this GIF". */
.gif-cinema__bubble {
    position: relative;
    background: var(--white, #fff);
    border: 2px solid var(--black, #0a0a0a);
    border-radius: 22px;
    padding: 1.1rem 1.6rem 1.15rem;
    box-shadow: 4px 4px 0 0 var(--black, #0a0a0a);
    margin-bottom: 24px;                          /* room for the tail */
    max-width: min(60vw, 720px);
    transition: opacity 0.25s ease;
}

/* Tail — outer (border) triangle */
.gif-cinema__bubble::before {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid var(--black, #0a0a0a);
}

/* Tail — inner (white fill) triangle, sits on top of the outer */
.gif-cinema__bubble::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 18px solid var(--white, #fff);
}

.gif-cinema__caption {
    font-size: clamp(1.2rem, 1.7vw, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--black, #0a0a0a);
    margin: 0;
    padding: 0;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Wheel — stacks all cells in one place; only the active one is visible at any moment */
.gif-cinema__wheel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Cells stacked at frame center; JS sets transform/opacity per cell on every scroll frame
   so the wheel rotates continuously and the next GIF peeks in from below as you scroll past. */
.gif-cinema__cell {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    opacity: 0;
    transform: translateY(120%) rotateX(-55deg);
    transform-origin: center center;
    will-change: transform, opacity;
}

.gif-cinema__cell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gif-cinema__cell img,
.gif-cinema__cell video {
    width: 100%;
    height: 100%;
    object-fit: contain;             /* show whole GIF — never crop captions/text */
    object-position: center;
    display: block;
}

/* Tighter layout on narrower desktops */
@media (max-width: 1280px) {
    .gif-cinema__inner {
        gap: 0;
        padding: 2.5rem 5.5rem 0.25rem 5.5rem;
        justify-content: flex-end;
    }
    .gif-cinema__stage {
        width: min(96vw, 1480px, calc((100vh - 170px) * 1.479));
    }
    .gif-cinema__bubble {
        max-width: 640px;
        padding: 0.9rem 1.3rem 0.95rem;
        border-radius: 18px;
    }
    .gif-cinema__caption {
        font-size: clamp(1rem, 1.4vw, 1.4rem);
    }
    .gif-cinema__num {
        width: 72px;
        height: 72px;
        font-size: 1.35rem;
        left: -28px;
        top: -8px;
    }
}

/* Mobile: hide cinema, show fan instead */
@media (max-width: 768px) {
    .gif-cinema { display: none; }
}

/* ---------- MOBILE: thumb-swipe fan carousel ---------- */
.gif-fan { display: none; }

@media (max-width: 768px) {
    .gif-stack { display: none; }

    .gif-fan {
        display: block;
        width: 100%;
        overflow: hidden;
        perspective: 1200px;
    }

    .gif-fan__track {
        display: flex;
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-padding-inline: 8vw;
        padding: 1.5rem 8vw 2rem;
        scrollbar-width: none;
    }
    .gif-fan__track::-webkit-scrollbar { display: none; }

    .gif-fan .gif-box {
        scroll-snap-align: center;
        scroll-snap-stop: always;
        flex: 0 0 78vw;
        width: 78vw;
        max-width: 360px;
        aspect-ratio: 4 / 5;
        transform-origin: center 80%;
        opacity: 1;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* "Wachlarz" — rotation tied to scroll position (modern Chrome/Safari/Edge) */
    @supports (animation-timeline: view()) {
        .gif-fan .gif-box {
            animation: gif-card-fan linear both;
            animation-timeline: view(inline);
            animation-range: entry 0% exit 100%;
        }
        @keyframes gif-card-fan {
            0%   { transform: rotate(-14deg) scale(0.78) translateY(10px); opacity: 0.45; }
            50%  { transform: rotate(0)      scale(1)    translateY(0);    opacity: 1; }
            100% { transform: rotate(14deg)  scale(0.78) translateY(10px); opacity: 0.45; }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .gif-card { transition: none; }
    .gif-fan .gif-box { animation: none; transform: none; opacity: 1; }
}


.gif-box {
    position: relative;
    background: linear-gradient(145deg, #f7f8fa 0%, #eceff3 100%);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px) scale(0.88);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 0;
    padding: 0.5rem 0.5rem 0;
}

.gif-box__media {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    min-height: 0;
}

.gif-box__caption {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 1.1rem 1.5rem 1.25rem;
    font-size: clamp(1.1rem, 1.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    text-align: center;
    letter-spacing: -0.5px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    white-space: normal;
}

.gif-box.in-view,
.gif-box.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gif-box:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px) scale(1.02);
}

.gif-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(251, 188, 4, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gif-box:hover::before { opacity: 1; }

.gif-box__num {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 3;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gif-box__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(0, 0, 0, 0.28);
    text-transform: uppercase;
}

.gif-box__placeholder {
    position: absolute;
    inset: 1rem;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.gif-box:hover .gif-box__placeholder { border-color: var(--google-yellow); }

.gif-box__media img,
.gif-box__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

@media (max-width: 768px) {
    .gif-box__caption { font-size: 1rem; padding: 0.85rem 1rem 1rem; }
}

@media (max-width: 560px) {
    .gif-box__caption { font-size: 0.95rem; padding: 0.9rem 1rem 1rem; letter-spacing: -0.3px; }
}

/* ---------- Impressum ---------- */
.impressum-block {
    margin-bottom: 2.5rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--google-yellow);
}

.impressum-block h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin: 0 0 0.6rem;
    letter-spacing: -0.3px;
}

.impressum-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.impressum-block p a {
    color: var(--google-blue);
    text-decoration: none;
    word-break: break-all;
}

.impressum-block p a:hover { text-decoration: underline; }

/* ---------- Back-to-top — premium scroll-progress ring ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0a0a0a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.85);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.5s,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.3s ease,
                box-shadow 0.4s ease;
    z-index: 900;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: visible;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    color: var(--google-yellow);
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--google-yellow), 0 0 25px rgba(251, 188, 4, 0.3);
}

.back-to-top__ring {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.back-to-top__ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
}

.back-to-top__ring-progress {
    fill: none;
    stroke: url(#btt-gradient);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s linear;
    filter: drop-shadow(0 0 3px rgba(251, 188, 4, 0.6));
}

.back-to-top__label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: #0a0a0a;
    padding: 0.5rem 0.85rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover .back-to-top__label {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

.back-to-top__icon {
    position: relative;
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.back-to-top:hover .back-to-top__icon {
    transform: translateY(-3px);
    animation: btt-bounce 1.4s ease-in-out infinite;
}

@keyframes btt-bounce {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
    .back-to-top { bottom: 1rem; left: 1rem; width: 50px; height: 50px; }
    .back-to-top__icon { width: 16px; height: 16px; }
    .back-to-top__label { display: none; }
}

/* ---------- Site-wide footer — premium ---------- */
.site-footer {
    position: relative;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.7);
    font-family: "Rubik", sans-serif;
    overflow: hidden;
}

/* Mouse-following gradient orb (Google colors, subtle) */
.footer-orb {
    position: absolute;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.6s ease;
    mix-blend-mode: screen;
    z-index: 0;
    will-change: left, top;
}

.footer-orb.show { opacity: 0.45; }

.footer-orb__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        var(--google-blue),
        var(--google-red),
        var(--google-yellow),
        var(--google-green),
        var(--google-blue));
    filter: blur(85px);
    animation: orb-spin 16s linear infinite;
}

@keyframes orb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Footer content above the orb (orb stays absolute, its own positioning) */
.site-footer > *:not(.footer-orb):not(.site-footer__logo-tab) { position: relative; z-index: 1; }

/* Footer logo tab — same look as hero logo, glued to top edge of footer */
.site-footer .site-footer__logo-tab {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
}
.site-footer .site-footer__logo-tab:hover {
    transform: translateX(-50%) translateY(3px);
}

@media (hover: none), (pointer: coarse) {
    .footer-orb { display: none !important; }
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    z-index: 2;
}

/* CTA row */
.site-footer__cta {
    position: relative;
    padding: 6rem 0 5rem;
    display: grid;
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
}

.site-footer__cta-label {
    display: block;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--google-yellow);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.site-footer__cta h3 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--white);
    margin: 0 0 1rem;
    line-height: 1.05;
}

.site-footer__cta h3 em {
    font-style: normal;
    color: var(--google-yellow);
    position: relative;
}

.site-footer__cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

/* Main grid */
.site-footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 3.5rem;
    padding: 10rem 0 5rem;
    z-index: 1;
}

.site-footer__logo {
    display: inline-flex;
    align-items: baseline;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.site-footer__logo-dot {
    color: var(--google-yellow);
    margin-left: 2px;
}

.site-footer__tagline {
    display: block;
    font-family: "Rubik", sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.2px;
    margin-bottom: 1.25rem;
    background: linear-gradient(90deg, var(--google-blue) 0%, var(--google-red) 35%, var(--google-yellow) 70%, var(--google-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.site-footer__brand p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 340px;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.site-footer__location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.site-footer__location::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--google-green);
    box-shadow: 0 0 8px var(--google-green);
}

.site-footer__col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--google-yellow);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.site-footer__col-sub {
    margin-top: 2rem !important;
}

.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-footer__col li { margin: 0; }

.site-footer__col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    width: fit-content;
    display: inline-block;
}

.site-footer__col a:hover { color: var(--google-yellow); transform: translateX(3px); }

/* Social */
.site-footer__social {
    display: flex;
    gap: 0.5rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.site-footer__social a:hover {
    background: var(--google-yellow);
    color: var(--black);
    border-color: var(--google-yellow);
    transform: translateY(-2px);
}

/* Huge wordmark watermark — disabled per user preference */
.site-footer__wordmark { display: none; }

/* Bottom bar */
.site-footer__bottom {
    position: relative;
    border-top: none;
    padding: 1.25rem 0 1.75rem;
    z-index: 1;
}

.site-footer__bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    opacity: 0.85;
}

.site-footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-right: 11rem; /* clear path for the bottom-right MENU button on desktop */
}

@media (max-width: 768px) {
    .site-footer__bottom { padding-bottom: 5rem; } /* mobile: keep room for floating MENU button */
    .site-footer__bottom .container { padding-right: 1rem; }
}

.site-footer__bottom p {
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.site-footer__bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.site-footer__bottom ul li {
    display: flex;
    align-items: center;
}

.site-footer__bottom ul li + li::before {
    content: "·";
    margin: 0 1.1rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.site-footer__bottom a {
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0.25rem 0;
    position: relative;
}

.site-footer__bottom ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer__bottom ul a:hover { color: var(--white); }
.site-footer__bottom ul a:hover::after { transform: scaleX(1); }

.site-footer__credit-line {
    font-size: 0.72rem !important;
    text-transform: none !important;
    letter-spacing: 0.4px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    /* Always on its own row at the bottom-right of the footer.
       Keeps it clear of the fixed back-to-top button (bottom-left). */
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.site-footer__credit-line a {
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.3px;
    text-transform: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.site-footer__credit-line a:hover { opacity: 0.8; border-color: rgba(255, 255, 255, 0.4); }

@media (max-width: 900px) {
    .site-footer__cta { grid-template-columns: 1fr; text-align: left; padding: 4rem 0 3rem; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 7rem 0 3rem; }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__bottom .container {
        flex-direction: column;
        text-align: center;
        padding-right: 1rem;
        gap: 1.5rem;
    }
    .site-footer__bottom ul {
        justify-content: center;
        gap: 0;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    /* Hide dot separators on mobile — they look messy when items wrap */
    .site-footer__bottom ul li + li::before {
        margin: 0 0.65rem;
    }
    .site-footer__credit-line {
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__wordmark { padding: 1.5rem 0 0.5rem; }
}

/* Buttons — retro style mirroring .menu-button */
.kn-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.retro-btn {
    --retro-color: var(--google-yellow);
    font-family: "Rubik", sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 1rem;
    color: var(--white);
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 6px;
}

.retro-btn:hover { color: var(--white); }
.retro-btn:active { outline-color: var(--retro-color); }
.retro-btn:focus-visible { outline-color: var(--retro-color); outline-style: dashed; }

.retro-btn::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: auto;
    height: 200%;
    max-height: 120px;
    aspect-ratio: 1;
    background: var(--white);
    clip-path: polygon(100% 50%, 91.48% 56.57%, 97.55% 65.45%, 87.42% 69.07%, 90.45% 79.39%, 79.7% 79.7%, 79.39% 90.45%, 69.07% 87.42%, 65.45% 97.55%, 56.57% 91.48%, 50% 100%, 43.43% 91.48%, 34.55% 97.55%, 30.93% 87.42%, 20.61% 90.45%, 20.3% 79.7%, 9.55% 79.39%, 12.58% 69.07%, 2.45% 65.45%, 8.52% 56.57%, 0% 50%, 8.52% 43.43%, 2.45% 34.55%, 12.58% 30.93%, 9.55% 20.61%, 20.3% 20.3%, 20.61% 9.55%, 30.93% 12.58%, 34.55% 2.45%, 43.43% 8.52%, 50% 0%, 56.57% 8.52%, 65.45% 2.45%, 69.07% 12.58%, 79.39% 9.55%, 79.7% 20.3%, 90.45% 20.61%, 87.42% 30.93%, 97.55% 34.55%, 91.48% 43.43%);
    animation: star-rotate 4s linear infinite;
    opacity: 0.1;
    pointer-events: none;
}

.retro-btn:hover::before { opacity: 1; }

.retro-btn__frame {
    position: relative;
    display: block;
    padding: 2px;
    border-radius: 1rem;
    background-color: var(--retro-color);
    transform: translate(-4px, -4px);
    transition: all 150ms ease;
    box-shadow:
        0.5px 0.5px 0 0 var(--retro-color),
        1px 1px 0 0 var(--retro-color),
        1.5px 1.5px 0 0 var(--retro-color),
        2px 2px 0 0 var(--retro-color),
        2.5px 2.5px 0 0 var(--retro-color),
        3px 3px 0 0 var(--retro-color),
        0 0 0 2px var(--black),
        0.5px 0.5px 0 2px var(--black),
        1px 1px 0 2px var(--black),
        1.5px 1.5px 0 2px var(--black),
        2px 2px 0 2px var(--black),
        2.5px 2.5px 0 2px var(--black),
        3px 3px 0 2px var(--black),
        3.5px 3.5px 0 2px var(--black),
        4px 4px 0 2px var(--black),
        0 0 0 4px var(--white),
        0.5px 0.5px 0 4px var(--white),
        1px 1px 0 4px var(--white),
        1.5px 1.5px 0 4px var(--white),
        2px 2px 0 4px var(--white),
        2.5px 2.5px 0 4px var(--white),
        3px 3px 0 4px var(--white),
        3.5px 3.5px 0 4px var(--white),
        4px 4px 0 4px var(--white);
}

.retro-btn:hover .retro-btn__frame {
    transform: translate(0, 0);
    box-shadow:
        0 0 0 0 var(--retro-color),
        0 0 0 0 var(--retro-color),
        0 0 0 0 var(--retro-color),
        0 0 0 0 var(--retro-color),
        0 0 0 0 var(--retro-color),
        0 0 0 0 var(--retro-color),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 2px var(--black),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white),
        0 0 0 4px var(--white);
}

.retro-btn__inner {
    position: relative;
    display: block;
    pointer-events: none;
    border-radius: calc(1rem - 2px);
    background-color: var(--black);
}

.retro-btn__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: calc(1rem - 2px);
    opacity: 0.1;
    background-image:
        radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%),
        radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    mix-blend-mode: hard-light;
    box-shadow: inset 0 0 0 1px var(--black);
    animation: dots 0.4s infinite linear;
    transition: opacity 150ms ease;
}

.retro-btn__label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    gap: 0.4rem;
    filter: drop-shadow(0 -1px 0 var(--black));
    white-space: nowrap;
    text-align: center;
    color: var(--white) !important;
}

@media (max-width: 600px) {
    .retro-btn { font-size: 0.78rem; max-width: 100%; }
    .retro-btn__label {
        white-space: normal;
        line-height: 1.25;
        padding: 0.8rem 1.1rem;
    }
    .retro-btn--lg .retro-btn__label {
        padding: 0.95rem 1.2rem;
        font-size: 0.82rem;
    }
}

.retro-btn:hover .retro-btn__label {
    filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.1));
}

.retro-btn:active .retro-btn__label { transform: translateY(2px); }

.retro-btn--lg .retro-btn__label { padding: 1.05rem 1.85rem; font-size: 0.95rem; }

/* Colour variants */
.retro-btn--yellow { --retro-color: var(--google-yellow); }
.retro-btn--red    { --retro-color: var(--google-red); }
.retro-btn--green  { --retro-color: var(--google-green); }
.retro-btn--blue   { --retro-color: var(--google-blue); }

/* Photo placeholders */
.kn-photo--placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.08) 10px,
        rgba(255, 255, 255, 0.15) 10px,
        rgba(255, 255, 255, 0.15) 20px
    );
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    min-height: 340px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    padding: 1rem;
}

.kn-photo--wide {
    min-height: 240px;
    margin-top: 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/10;
}

.kn-photo--wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-label { text-transform: uppercase; }

/* Quote section */
.kn-quote-section {
    padding-bottom: 0 !important;
    overflow: visible !important;
}

.kn-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: end;
}

.kn-quote-grid .kn-photo {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #f0f0f0;
}

.kn-quote-grid .kn-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Cutout variant — for images with transparent background (PNG without bg) */
.kn-photo--cutout {
    background: transparent !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.kn-photo--cutout img {
    width: auto !important;
    height: auto !important;
    max-height: 540px;
    max-width: 100%;
    object-fit: contain !important;
    object-position: bottom !important;
    margin-bottom: -1px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.kn-quote {
    margin: 0;
    padding: 2rem 0;
    align-self: center;
    text-align: center;
}

.kn-quote p {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--black);
    letter-spacing: -0.5px;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.kn-highlight {
    background: var(--white);
    color: var(--black);
    padding: 0.1em 0.35em;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: inline-block;
    transform: rotate(-1deg);
    margin: 0.1em 0.05em;
    max-width: 100%;
}

.kn-quote cite {
    display: block;
    font-style: normal;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.75);
    text-align: right;
    font-weight: 500;
}

/* Top workshops — modern card design (white card, colored accent, image banner) */
.kn-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.kn-topic {
    --topic-color: var(--google-blue);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.kn-topic:nth-child(1) { --topic-color: var(--google-blue); }
.kn-topic:nth-child(2) { --topic-color: var(--google-red); }
.kn-topic:nth-child(3) { --topic-color: var(--google-green); }

/* Top accent bar — full width colored stripe */
.kn-topic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--topic-color);
    z-index: 3;
}

.kn-topic:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
}
.kn-topic:nth-child(1):hover { box-shadow: 0 24px 50px rgba(66, 133, 244, 0.25); }
.kn-topic:nth-child(2):hover { box-shadow: 0 24px 50px rgba(234, 67, 53, 0.25); }
.kn-topic:nth-child(3):hover { box-shadow: 0 24px 50px rgba(52, 168, 83, 0.25); }

/* Image banner — fills top of card */
.kn-topic__img {
    position: relative;
    aspect-ratio: 16/10;
    background: #f0f0f0;
    overflow: hidden;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 0;
}

/* Numbered badge — top-right of image */
.kn-topic__img::after {
    content: counter(topic-num, decimal-leading-zero);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: var(--white);
    color: var(--topic-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kn-topics { counter-reset: topic-num; }
.kn-topic { counter-increment: topic-num; }

/* When image is present — remove placeholder styling, image fills the box */
.kn-topic__img:has(img) {
    background: #f0f0f0;
}

.kn-topic__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.kn-topic:hover .kn-topic__img img {
    transform: scale(1.06);
}

/* Body content — generous padding */
.kn-topic__body {
    padding: 1.75rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.kn-topic__body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.kn-topic__sub {
    font-size: 0.95rem;
    color: var(--topic-color);
    margin: 0 0 0.5rem;
    font-style: italic;
    font-weight: 500;
}

.kn-topic__body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.kn-topic__body strong { color: #0a0a0a; font-weight: 700; }

.kn-center { text-align: center; }
.kn-center--start { text-align: left; margin-top: 2.5rem; }

/* References */
.kn-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 3rem;
}

.kn-references {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.kn-testimonial { margin: 0; padding: 0; color: var(--white); }

.kn-testimonial p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.kn-testimonial--large p {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.kn-testimonial cite {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.kn-testimonial strong { font-weight: 700; color: var(--white); }

.kn-refs-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Q&A */
.kn-qa-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.kn-qa-head { position: sticky; top: 2rem; }

.kn-qa {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding: 1.5rem 0;
}

.kn-qa:last-of-type { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }

.kn-qa summary {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--google-green);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    letter-spacing: -0.3px;
    transition: opacity 0.3s ease;
}

.kn-qa summary::-webkit-details-marker { display: none; }

.kn-qa summary::after {
    content: "+";
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--google-green);
    transition: transform 0.35s ease;
    flex-shrink: 0;
    line-height: 1;
}

.kn-qa[open] summary::after { transform: rotate(45deg); }

/* Empty FAQ slot — only rendered for admins (public visitors never see this).
   Dashed border + placeholder text signals: this slot is empty, click to fill it in. */
.kn-qa--empty {
    border-top: 2px dashed rgba(0, 0, 0, 0.2);
    background: rgba(251, 188, 4, 0.06);
}
.kn-qa--empty:last-of-type { border-bottom: 2px dashed rgba(0, 0, 0, 0.2); }
.kn-qa--empty summary {
    min-height: 1.5em;
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
}
.kn-qa--empty summary:empty::before {
    content: "+ Neue Frage hinzufügen (zum Bearbeiten klicken)";
}
.kn-qa--empty .kn-qa__body { min-height: 2em; }
.kn-qa--empty .kn-qa__body > div:empty::before {
    content: "Antwort hier eintragen…";
    color: rgba(0, 0, 0, 0.35);
    font-style: italic;
    display: block;
}

.kn-qa__body { padding-top: 1.25rem; }

.kn-qa__body p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.kn-qa__body p:last-child { margin-bottom: 0; }

.kn-qa__body strong { color: var(--black); }

/* Mobile */
@media (max-width: 768px) {
    .kn-section { padding: 4rem 0; }
    .kn-hero { padding: 6rem 0 3rem; }

    /* Bigger horizontal breathing room on every subpage container */
    .kn-hero > .container,
    .kn-section > .container { padding-left: 1.5rem; padding-right: 1.5rem; }

    .kn-intro h2 { font-size: 1.15rem; }
    .kn-features li { padding: 1.15rem 1.15rem 1.15rem 2.5rem; font-size: 0.95rem; }
    .kn-features li::before,
    .kn-features li::after { left: 1rem; top: 1.55rem; }
    .kn-buttons { flex-direction: column; }
    .kn-btn { width: 100%; }

    .kn-quote-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* Mobile: text on top, cutout photo on bottom (touching section edge) */
    .kn-quote-grid .kn-quote { order: 1; padding: 1rem 1rem 0 !important; line-height: 1.4; max-width: 100%; box-sizing: border-box; }
    .kn-quote-grid .kn-quote p { font-size: 1.85rem; line-height: 1.4; max-width: 100%; }
    .kn-quote-grid .kn-quote cite { font-size: 1rem; }
    .kn-quote-grid .kn-photo--cutout { order: 2; }
    /* Drop rotation on mobile so highlights don't poke past the viewport edge */
    .kn-quote .kn-highlight { transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
    /* Hard safety: section cannot cause horizontal scroll */
    .kn-quote-section { overflow-x: clip; }
    .kn-photo--cutout img { max-height: 460px !important; }
    .kn-photo--placeholder { min-height: 220px; }

    .kn-topics { grid-template-columns: 1fr; gap: 1rem; }
    .kn-topic__img { min-height: 140px; }

    .kn-references { grid-template-columns: 1fr; gap: 2rem; }
    .kn-testimonial--large p { font-size: 1.15rem; }

    .kn-qa-grid { grid-template-columns: 1fr; gap: 2rem; }
    .kn-qa-head { position: static; }
    .kn-qa summary { font-size: 1.05rem; }

    .mod-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .kn-bullets li { font-size: 1rem; }
    .kn-steps li { font-size: 0.95rem; }
    .kn-final-cta { padding: 3rem 0; }
}

@media (max-width: 480px) {
    .mod-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
    .menu-button:active, .menu-button:focus-visible { outline-color: var(--yellow-400); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    /* Hero — content pushed down + image framed on the right side (woman) */
    .hero-section .hero-bg { object-position: 75% center; }
    .hero-section .content { padding: 9rem 1.25rem 6rem; justify-content: flex-end; gap: 2rem; }
    .hero-eyebrow { font-size: 0.7rem; letter-spacing: 4px; margin-bottom: 0.75rem; }
    .hero-section h1 { font-size: 1.85rem; margin-bottom: 0.75rem; line-height: 1.15; letter-spacing: -0.5px; }
    .hero-section .content .hero-text p { font-size: 0.95rem; }
    .hero-text { padding-top: 6rem; margin-bottom: 1.5rem; }

    /* Hero cards — stack one under another on mobile */
    .hero-cards { grid-template-columns: 1fr; gap: 0.6rem; max-width: 360px; }
    .hero-card {
        min-height: 0;
        padding: 1rem 1.25rem;
        border-radius: 14px;
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
    }
    .hero-card__num { position: static; font-size: 0.7rem; letter-spacing: 1px; flex-shrink: 0; opacity: 0.75; }
    .hero-card__body { margin-top: 0; flex: 1; min-width: 0; }
    .hero-card h2 { font-size: 1.1rem; margin-bottom: 0.1rem; letter-spacing: -0.3px; }
    .hero-card p { font-size: 0.78rem; line-height: 1.25; }
    .hero-card__arrow { position: static; font-size: 1.05rem; opacity: 0.75; flex-shrink: 0; }

    /* Menu panel — full screen width, sized to content, anchored above MENU button */
    .menu-panel {
        top: auto !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: 5rem !important;
        height: auto !important;
        max-height: calc(100vh - 6rem) !important;
        width: auto !important;
        padding: 1.25rem 1.25rem 1rem !important;
        border-radius: 20px !important;
    }
    .menu-panel .menu-items { flex: 0 1 auto !important; margin-top: 0 !important; overflow-y: auto !important; }
    .menu-close { top: 0.7rem !important; right: 0.7rem !important; width: 30px !important; height: 30px !important; }
    .menu-label { font-size: 0.65rem; letter-spacing: 3px; }
    .menu-logo {
        margin-bottom: 1rem !important;
        padding: 0.6rem 1rem 0.7rem !important;
        font-size: 1.05rem !important;
        border-radius: 10px !important;
    }
    .menu-logo::after { height: 2px !important; }

    .menu-panel .menu-items a { padding: 0.85rem 0.35rem !important; gap: 0.5rem !important; }
    .menu-text__main { font-size: 1.45rem !important; letter-spacing: -0.5px; line-height: 1.2 !important; font-weight: 700 !important; }
    .menu-arrow { font-size: 1.15rem !important; }
    .menu-footer {
        margin-top: 0.75rem !important;
        padding-top: 1rem !important;
        gap: 0.5rem !important;
    }
    .menu-footer__contact a { font-size: 1.05rem !important; }
    .menu-close { width: 36px !important; height: 36px !important; top: 0.85rem !important; right: 0.85rem !important; }

    /* Menu button — always visible bottom-right on all pages (mobile) */
    .menu-button {
        bottom: 1.5rem !important;
        right: 2rem !important;
        font-size: 0.85rem;
        z-index: 9999 !important;
        position: fixed !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: inline-flex !important;
    }
    /* Smaller sunburst decoration on mobile so it doesn't go off-screen */
    .menu-button::before {
        max-height: 90px !important;
    }
    .menu-button > span > span > span { padding: 0.6rem 1rem; }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-section h1 { font-size: 1.65rem; }
    .hero-card { padding: 0.85rem 1rem; gap: 0.7rem; }
    .hero-card h2 { font-size: 1rem; }
    .hero-card p { font-size: 0.72rem; }
    .hero-card__num { font-size: 0.65rem; }
}

/* ---------- Kontakt subpage ---------- */
.kn-contact-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.kn-contact-intro p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 0.75rem;
}

.kn-contact-intro p.kn-contact-intro__email {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2rem;
}

.kn-contact-intro__email a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px dashed rgba(66, 133, 244, 0.4);
}

.kn-contact-intro__email a:hover { color: var(--google-blue); border-bottom-color: var(--google-blue); }

.kn-contact-btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border: 2px solid var(--google-blue);
    color: var(--google-blue);
    background: transparent;
    font-family: "Rubik", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.kn-contact-btn:hover {
    background: var(--google-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(66, 133, 244, 0.3);
}

.kn-contact-photo {
    max-width: 1000px;
    margin: 3rem auto 0;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #f7f8fa 0%, #eceff3 100%);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kn-contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.kn-contact-photo .placeholder-label { font-size: 0.8rem; color: rgba(0,0,0,0.3); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* Form frame — wraps form with self-drawing Google gradient lines */
.kn-form-frame {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 0 4.5rem;
}

.kn-form-frame .home-quote__line { height: 3px; border-radius: 3px; }
.kn-form-frame.is-drawn .home-quote__line { width: 100%; }

/* Form */
.kn-form {
    display: grid;
    gap: 1.5rem;
}

.kn-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.kn-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kn-form__field label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
}

.kn-form__field label .req,
.req { color: var(--google-red); font-weight: 700; }

.kn-form__hint {
    text-align: center;
    margin: -1.5rem auto 1.5rem;
    font-size: 0.9rem;
    color: #555;
    max-width: 720px;
}

.kn-form__field input,
.kn-form__field textarea,
.kn-form__field select {
    font-family: "Rubik", sans-serif;
    font-size: 1.05rem;
    padding: 1.1rem 0.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #d8dde3;
    border-radius: 0;
    color: var(--black);
    transition: border-color 0.3s ease, padding 0.3s ease;
}

.kn-form__field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.55;
    padding: 1rem 0.25rem;
}

.kn-form__field input:focus,
.kn-form__field textarea:focus,
.kn-form__field select:focus {
    outline: none;
    border-bottom-color: var(--google-blue);
    border-bottom-width: 2px;
}

.kn-form__field input::placeholder,
.kn-form__field textarea::placeholder { color: #aab1ba; font-weight: 400; }

.kn-form__field select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23555' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 0.4rem center; padding-right: 2rem; }

.kn-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}

.kn-form__consent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: var(--google-blue);
    cursor: pointer;
}

.kn-form__consent a { color: var(--google-blue); text-decoration: underline; text-underline-offset: 2px; }
.kn-form__consent a:hover { text-decoration: none; }

/* Submit button uses retro-btn — these wrapper classes only neutralize default <button> styling */
button.kn-form__submit-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    cursor: pointer;
    justify-self: start;
}

.kn-form__status {
    grid-column: 1 / -1;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}
.kn-form__status.is-visible { display: block; }
.kn-form__status--success { background: rgba(52, 168, 83, 0.1); color: #1e7c3a; border: 1px solid rgba(52, 168, 83, 0.3); }
.kn-form__status--error   { background: rgba(234, 67, 53, 0.1); color: #b32d22; border: 1px solid rgba(234, 67, 53, 0.3); }

@media (max-width: 600px) {
    .kn-form__row { grid-template-columns: 1fr; }
    .kn-contact-intro p { font-size: 1.05rem; }
    .kn-contact-intro p.kn-contact-intro__email { font-size: 1.05rem; }
    .kn-contact-btn { padding: 0.75rem 1.75rem; font-size: 0.85rem; letter-spacing: 1px; }
    .kn-form__submit { width: 100%; text-align: center; padding: 0.95rem 1.5rem; }
}

/* ---------- Story section (vertical narrative on home) ---------- */
.story-section {
    padding: 6rem 0 5rem;
    background: var(--white);
}

.story-item {
    text-align: center;
    margin-bottom: 4rem;
}

.story-item:last-child { margin-bottom: 0; }

.story-item__caption {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    letter-spacing: -0.3px;
    max-width: 820px;
    margin: 0 auto 1.75rem;
}

.story-item__gif {
    display: flex;
    justify-content: center;
}

.story-item__gif img {
    max-width: 100%;
    max-height: 380px;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    cursor: none;
}

/* Google brand separator (between #11 and #12) */
.story-google {
    text-align: center;
    margin: 5rem 0;
    padding: 2.5rem 0;
}

.story-google__logo {
    display: inline-block;
    font-family: "Rubik", sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1;
}

.story-google__logo span:nth-child(1) { color: var(--google-blue); }
.story-google__logo span:nth-child(2) { color: var(--google-red); }
.story-google__logo span:nth-child(3) { color: var(--google-yellow); }
.story-google__logo span:nth-child(4) { color: var(--google-blue); }
.story-google__logo span:nth-child(5) { color: var(--google-green); }
.story-google__logo span:nth-child(6) { color: var(--google-red); }

.story-google__dots {
    display: inline-flex;
    gap: 0.65rem;
    margin-top: 1.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.story-google__dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: dot-bounce 1.4s ease-in-out infinite;
    will-change: transform;
}

.story-google__dots span:nth-child(1) { background: var(--google-blue);   animation-delay: 0s; }
.story-google__dots span:nth-child(2) { background: var(--google-red);    animation-delay: 0.15s; }
.story-google__dots span:nth-child(3) { background: var(--google-yellow); animation-delay: 0.3s; }
.story-google__dots span:nth-child(4) { background: var(--google-green);  animation-delay: 0.45s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0.55); opacity: 0.45; }
    40%           { transform: scale(1);    opacity: 1; }
}

@media (max-width: 768px) {
    .story-section { padding: 3rem 0; }
    .story-item { margin-bottom: 2.5rem; }
    .story-item__caption { font-size: 1.05rem; margin-bottom: 1.25rem; }
    .story-item__gif img { max-height: 280px; border-radius: 6px; }
    .story-google { margin: 3rem 0; padding: 1.5rem 0; }
}

/* ---------- GIF grid — custom eyes cursor ---------- */
.gif-grid,
.gif-grid *,
.gif-cinema,
.gif-cinema * { cursor: none; }

.cursor-eyes {
    position: fixed;
    top: 0;
    left: 0;
    width: 110px;
    height: 55px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
    will-change: transform, left, top;
}

.cursor-eyes.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cursor-eyes__pulse {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    animation: cursor-eyes-breathe 2.6s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor-eyes.is-tic .cursor-eyes__pulse {
    transform: scale(1.18);
}

.cursor-eyes svg { width: 100%; height: 100%; display: block; }

.cursor-eyes__pupil {
    transition: transform 0.05s linear;
}

@keyframes cursor-eyes-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Touch devices — no custom cursor */
@media (hover: none), (pointer: coarse) {
    .cursor-eyes { display: none !important; }
    .gif-grid, .gif-grid *,
    .gif-cinema, .gif-cinema * { cursor: default; }
}

/* ---------- Top Sticky Header (appears on scroll) ---------- */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0a0a0a;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header.show { transform: translateY(0); }

.top-header__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-header__nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 0.4rem 0;
}

.top-header__nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--google-yellow);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-header__nav a:hover {
    color: var(--google-yellow);
}

.top-header__nav a:hover::after { width: 100%; }

.top-header__nav--right .top-header__cta {
    color: var(--black);
    background: var(--google-yellow);
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.top-header__nav--right .top-header__cta::after { display: none; }

.top-header__nav--right .top-header__cta:hover {
    color: var(--black);
    background: var(--white);
    transform: translateY(-1px);
}

/* Center brand — white pill that drops below the bar (notch effect) */
.top-header__brand {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -55%);
    background: var(--white);
    color: var(--black);
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    text-decoration: none;
    font-family: "Rubik", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 4px #0a0a0a;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    white-space: nowrap;
    z-index: 2;
}

.top-header__brand:hover {
    color: var(--black);
    transform: translate(-50%, -52%);
    box-shadow: 0 14px 28px rgba(251, 188, 4, 0.25), 0 0 0 4px #0a0a0a, 0 0 0 5px var(--google-yellow);
}

@media (max-width: 1024px) {
    .top-header { padding: 0 1.5rem; }
    .top-header__nav { gap: 1.25rem; }
    .top-header__nav a { font-size: 0.8rem; }
    .top-header__brand { font-size: 0.95rem; padding: 0.6rem 1.25rem; }
}

@media (max-width: 768px) {
    .top-header { display: none; }
}

/* ---------- Home: Mood-Boost quote section ---------- */
.home-quote {
    padding: 6rem 0 5rem;
    background: var(--white);
}

.home-quote__frame {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* Self-drawing Google-gradient lines (top + bottom of the quote) */
.home-quote__line {
    position: absolute;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    border-radius: 3px;
    transition: width 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.home-quote__line--top    { top: 0; }
.home-quote__line--bottom { bottom: 0; right: 0; left: auto; }

.home-quote__frame.is-drawn .home-quote__line { width: 100%; }

.home-quote__text {
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: var(--black);
    margin: 0;
    letter-spacing: -0.5px;
}

.home-quote__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .home-quote { padding: 4rem 0 3rem; }
    .home-quote__frame { padding: 3rem 0.25rem; }
    .home-quote__text { font-size: 1.1rem; }
    .home-quote__actions { margin-top: 2.5rem; gap: 0.75rem; flex-direction: column; align-items: stretch; }
}

/* ---------- Über mich ---------- */

/* Bio split — photo left, text right */
.kn-bio-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.6fr;
    gap: 3rem;
    align-items: stretch;
}

.kn-bio-grid .kn-photo {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f0f0f0;
    height: 100%;
}

.kn-bio-grid .kn-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

/* Google gradient frame on the left side */
.kn-bio-grid .kn-photo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    z-index: 2;
    border-radius: 18px 0 0 18px;
}

.kn-bio-text { font-size: 1.25rem; line-height: 1.7; color: #333; }
.kn-bio-text > p { margin-bottom: 1.25rem; }
.kn-bio-text > p:last-child { margin-bottom: 0; }
.kn-bio-text strong { color: var(--black); }
.kn-bio-text em { font-style: italic; color: #555; }
.kn-bio-text .kn-accent { color: var(--google-red); font-weight: 700; font-style: normal; }

/* Reusable Google gradient text — for inline highlights */
.kn-gradient {
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

/* Marker-style highlighted tags (used in Galerie + tag stack) */
.kn-mark {
    display: inline;
    padding: 0.25em 0.5em;
    color: var(--white);
    font-weight: 700;
    line-height: 2;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 8px;
}
.kn-mark--red    { background: var(--google-red); }
.kn-mark--blue   { background: var(--google-blue); }
.kn-mark--yellow { background: var(--google-yellow); color: var(--black); }
.kn-mark--green  { background: var(--google-green); }

/* Tag column + gallery side-by-side */
.kn-tags-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.kn-tags {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    position: sticky;
    top: 2rem;
    align-self: start;
}

.kn-tags p {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 2;
    margin: 0;
    color: var(--black);
}

/* Masonry layout — each photo keeps its natural aspect ratio (no cropping) */
.kn-gallery {
    column-count: 2;
    column-gap: 1rem;
}

.kn-gallery__item {
    break-inside: avoid;
    margin: 0 0 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #f7f8fa 0%, #eceff3 100%);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.kn-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.kn-gallery__item img { width: 100%; height: auto; display: block; }
.kn-gallery__item .placeholder-label { font-size: 0.7rem; color: rgba(0,0,0,0.3); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Story — big colored heading left + body right */
.kn-story {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    padding: 4rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.kn-story:first-of-type { border-top: none; padding-top: 1rem; }

.kn-story__title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0;
    text-align: right;
}

.kn-story__title--green { color: var(--google-green); }
.kn-story__title--blue  { color: var(--google-blue); }
.kn-story__title--red   { color: var(--google-red); }

.kn-story__body {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #333;
}

.kn-story__body > p { margin: 0 0 1rem; }
.kn-story__body > p:last-child { margin-bottom: 0; }
.kn-story__body strong { color: var(--black); }

/* Logos partner grid */
.kn-logos__intro {
    text-align: center;
    margin-bottom: 3rem;
    color: #444;
    font-size: 1.05rem;
}

.kn-logos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Infinite marquee carousel — modern client logos strip */
.kn-logos__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.kn-logos__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 4.5rem;
    animation: kn-logos-scroll 38s linear infinite;
}

.kn-logos__marquee:hover .kn-logos__track {
    animation-play-state: paused;
}

@keyframes kn-logos-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .kn-logos__track { animation: none; }
}

.kn-logo {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    text-align: center;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Marquee logo size — fixed width for consistent spacing */
.kn-logos__track .kn-logo {
    width: 180px;
    flex: 0 0 180px;
    height: 90px;
}

.kn-logo:hover { opacity: 1; transform: translateY(-2px); }
.kn-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-height: 60px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .kn-bio-grid { grid-template-columns: 1fr; gap: 2rem; }
    .kn-tags-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .kn-tags { position: static; top: auto; }
    .kn-story { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.5rem 0; }
    .kn-story__title { text-align: left; }
    .kn-gallery { column-count: 2; column-gap: 0.75rem; }
    .kn-gallery__item { margin-bottom: 0.75rem; }
    .kn-logos__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; max-width: 700px; }
    .kn-logo { height: 90px; }
    .kn-logos__track { gap: 3rem; }
    .kn-logos__track .kn-logo { width: 150px; flex: 0 0 150px; height: 75px; }
}

@media (max-width: 480px) {
    .kn-gallery { column-count: 1; }
    .kn-logos__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; max-width: 480px; }
    .kn-logo { font-size: 1rem; height: 80px; }
    .kn-logos__track { gap: 2rem; animation-duration: 28s; }
    .kn-logos__track .kn-logo { width: 120px; flex: 0 0 120px; height: 65px; }
}
/* ---------- 404 page ---------- */
.not-found {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 6rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(66, 133, 244, 0.08), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(234, 67, 53, 0.06), transparent 40%),
        #ffffff;
    overflow: hidden;
}

.not-found::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    z-index: 2;
}

.not-found__inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.not-found__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(0, 0, 0, 0.45);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.not-found__code {
    font-size: clamp(7rem, 22vw, 16rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -8px;
    margin: 0 0 1.5rem;
    display: inline-flex;
    gap: 0.05em;
}

.not-found__code span {
    background: linear-gradient(180deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nf-bob 3s ease-in-out infinite;
}

.not-found__code span:nth-child(1) { animation-delay: 0s; }
.not-found__code span:nth-child(2) { animation-delay: 0.2s; }
.not-found__code span:nth-child(3) { animation-delay: 0.4s; }

@keyframes nf-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.not-found__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -1.2px;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.not-found__text {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #555;
    margin: 0 auto 2.5rem;
    max-width: 540px;
}

.not-found__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.not-found__links {
    padding-top: 2.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.not-found__links > span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.not-found__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.not-found__links li + li::before {
    content: "·";
    margin: 0 1rem;
    color: rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

.not-found__links a {
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background-image: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
    padding-bottom: 2px;
}

.not-found__links a:hover {
    background-size: 100% 2px;
}

@media (max-width: 600px) {
    .not-found { padding: 6rem 1rem 4rem; }
    .not-found__actions { gap: 0.75rem; }
    .not-found__code { letter-spacing: -4px; }
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    width: calc(100% - 8rem);
    max-width: 520px;
    background: #0a0a0a;
    color: var(--white);
    padding: 1.4rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: "Rubik", sans-serif;
    z-index: 990;
    transform: translateX(-50%) translateY(calc(100% + 4rem));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease,
                visibility 0.55s;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.2px;
    color: var(--white);
}

.cookie-banner__text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1.1rem;
}

.cookie-banner__text a {
    color: var(--google-yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__text a:hover { color: var(--white); }

.cookie-banner__actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 4px 0 0 4px; /* room for retro-btn translate offset */
}

.cookie-banner__actions .retro-btn { font-size: 0.78rem; }
.cookie-banner__actions .retro-btn__label { padding: 0.75rem 1.15rem; }

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 6rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        transform: translateY(calc(100% + 7rem));
        padding: 1.2rem;
    }
    .cookie-banner.show { transform: translateY(0); }
}

/* ───────── Admin-only: GIF cinema captions edit panel ─────────
   Renders below the cinema as a clickable list — only visible when an admin is logged in
   (server-side, controlled by CMS::isAdmin() in the PHP template). */
.gif-cinema__admin {
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 1.5rem 2rem;
    background: #fff7d6;
    border: 2px dashed var(--google-yellow, #FBBC04);
    border-radius: 16px;
    color: var(--black, #0a0a0a);
    font-family: 'Rubik', sans-serif;
}
.gif-cinema__admin h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b4500;
}
.gif-cinema__admin ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gif-cinema__admin li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(91, 69, 0, 0.15);
}
.gif-cinema__admin li:last-child { border-bottom: none; }
.gif-cinema__admin-num {
    flex: 0 0 auto;
    width: 30px;
    text-align: center;
    font-weight: 800;
    color: #5b4500;
    font-variant-numeric: tabular-nums;
}
.gif-cinema__admin-cap {
    flex: 1;
    line-height: 1.45;
}
