/* ==========================================================================
   APRIMUS — WP OVERRIDES
   ========================================================================== */

/* ==========================================================================
   1. GRUNDLAGEN & WORDPRESS OVERRIDES
   ========================================================================== */

/* Repariert kaputtes sticky (overflow-x: clip statt hidden) */
html, body {
    overflow-x: clip !important;
}

#page,
main,
.boxed-layout {
    overflow: visible !important;
}

html {
    margin-top: 0 !important;
}

#wpadminbar {
    opacity: 0.5;
    transition: opacity 0.3s;
}

#wpadminbar:hover {
    opacity: 1;
}

/* --- NAVBAR --- */
.nav-right {
    right: 0;
    position: absolute;
}

.menu-left .menu-link {
    line-height: 1em;
}

.menu-item a {
    color: #fff;
}

.menu-item a:hover {
    color: #E30613 !important;
}

.header-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* --- MANIFESTO --- */
.manifesto-text p {
    font-size: 2.5rem;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: var(--text-main);
    max-width: 1200px;
}

.manifesto-text p strong {
    font-weight: 800 !important;
    color: #E30613 !important;
}

/* ==========================================================================
   2. CLIENT SLIDER / TICKER
   ========================================================================== */
.client-slider-section {
    padding: 60px 0;
    overflow: hidden;
    width: 100%;
}

.client-ticker-wrapper {
    overflow: hidden;
    width: 100%;
    perspective: 800px;
    perspective-origin: center center;
}

.client-ticker {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: ticker-scroll 25s linear infinite;
}

.client-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ticker-item .client-logo-img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(100%);
}

/* Legacy swiper selectors (kept for compatibility) */
.client-slider .swiper-wrapper {
    transition-timing-function: linear !important;
}

.client-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.client-logo-img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-logo-img:hover {
    opacity: 1;
}

/* ==========================================================================
   3. CONTACT FORM 7 (CF7) & UPLOAD BOX
   ========================================================================== */
.upload-box {
    display: block !important;
}

.upload-box .wpcf7,
.upload-box .wpcf7-form {
    width: 100%;
}

.upload-box .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.upload-box .upload-info,
.upload-box .dropzone-container {
    flex: 1 1 400px;
}

.upload-box .screen-reader-response,
.upload-box .wpcf7-response-output {
    flex: 1 1 100%;
    margin: 0 !important;
}

.upload-box .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.upload-box .wpcf7-form-control.form-input {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 15px !important;
    font-family: 'League Spartan', sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.upload-box .wpcf7-form-control.form-input:focus {
    border-color: #ff0000 !important;
    outline: none !important;
    box-shadow: none !important;
}

.upload-box .wpcf7-form-control.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

label.dropzone,
.upload-box .dropzone-container,
#dropzoneLabel {
    border: 2px solid #ff0000 !important;
    background-color: rgba(255, 0, 0, 0.08) !important;
    transition: background-color 0.3s ease !important;
}

label.dropzone:hover {
    background-color: rgba(255, 0, 0, 0.15) !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.upload-box .wpcf7-form-control.form-input,
.upload-box .wpcf7-form-control.wpcf7-textarea,
.upload-box input[type="text"],
.upload-box input[type="email"],
.upload-box input[type="tel"],
.upload-box textarea,
.job-form-panel input,
.job-form-panel textarea {
    font-size: 20px !important;
    line-height: 1.4 !important;
    padding: 18px !important;
}

/* Light Theme CF7 */
[data-theme="light"] .upload-box .wpcf7-form-control.form-input {
    border: 2px solid #ff0000 !important;
    color: #111 !important;
}

[data-theme="light"] .upload-box .wpcf7-form-control.form-input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   4. PAPIERSTAPEL (COPY & PRINT)
   ========================================================================== */
.paper-stack {
    position: relative;
    width: 100%;
    height: 220px;
    perspective: 2000px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.paper-stack::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 10px;
    right: 10px;
    height: 15px;
    background: repeating-linear-gradient(to right, transparent, transparent 20px, rgba(255,255,255,0.15) 20px, rgba(255,255,255,0.15) 25px);
    z-index: 10;
    pointer-events: none;
}

.paper-sheet {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #111;
    color: #fff;
    border: 3px solid #555;
    box-sizing: border-box;
    border-radius: 4px 4px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 20px;
    transform-origin: top;
    transform-style: preserve-3d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    transform: rotateX(-90deg);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.4s ease;
    z-index: 1;
}

.paper-sheet.highlight {
    background: #111;
    border-color: #ff0000;
}

.paper-sheet.active {
    opacity: 1;
    transform: rotateX(0deg);
    z-index: 2;
}

.paper-sheet.flipped {
    transform: rotateX(180deg);
    opacity: 0;
    z-index: 3;
}

/* Light Theme Papierstapel */
[data-theme="light"] .paper-sheet {
    background: #ffffff;
    color: #000000;
    border-color: #cccccc;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .paper-sheet.highlight {
    background: #ffffff;
    border-color: #ff0000;
}

[data-theme="light"] .paper-stack::before {
    background: repeating-linear-gradient(to right, transparent, transparent 20px, rgba(0, 0, 0, 0.15) 20px, rgba(0, 0, 0, 0.15) 25px);
}

/* ==========================================================================
   5. PONG HERO
   ========================================================================== */
.about-hero-pong {
    position: relative;
    width: 100%;
    height: 100svh;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pong-hero-desktop {
    position: relative;
    width: 100%;
    height: 384px;
    background: #070707;
    overflow: hidden;
}

.pong-container {
    position: relative;
    width: 100%;
    height: 384px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pongCanvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: filter 1.5s ease-in-out;
}

#pongCanvas.blurred {
    filter: blur(8px) brightness(0.6);
}

.pong-text-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 1s ease-out;
    pointer-events: none;
}

.pong-text-overlay.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pong-text-overlay h1 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accent {
    color: #ff0000;
}

.pong-btn-link {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 0;
    border-bottom: 3px solid #ff0000;
    margin-top: 30px;
    transition: color 0.3s ease;
}

.pong-btn-link:hover {
    color: #ff0000;
}

.pong-controls {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pong-controls.visible {
    opacity: 1;
}

.pong-controls .key {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.pong-hero-mobile {
    display: none;
}

/* ==========================================================================
   6. BENTO & LEVEL UP SEKTION
   ========================================================================== */
.interactive-bento-section {
    position: relative;
    overflow: hidden;
    min-height: auto !important;
    padding: 60px 0;
}

.bento-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-wrapper.panel-open {
    min-height: 800px;
}

.bento-items-grid {
    width: 100%;
    display: grid;
    justify-content: center;
    gap: 20px;
}

.level-up-section {
    position: relative;
    padding: 80px 0;
    min-height: 600px;
    background: transparent !important;
    overflow: hidden;
}

.physics-container {
    position: relative;
    display: block;
    width: 100%;
    height: 600px;
    margin-top: 40px;
    cursor: grab;
}

.physics-container:active {
    cursor: grabbing;
}

.agency p {
    color: #000 !important;
    font-weight: 600;
}

.sticky-section {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.sticky-left {
    padding-top: 50px !important;
}

/* ==========================================================================
   7. APRIMUS SCROLLYTELLING
   ========================================================================== */
:root {
    --aprimus-red: #E30613;
    --scrolly-text: #111111;
    --scrolly-bg: #ffffff;
    --line-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --scrolly-text: #ffffff;
    --scrolly-bg: #070707;
    --line-color: rgba(255, 255, 255, 0.15);
}

.scrolly-master-container {
    position: relative;
    width: 100%;
    overflow: visible !important;
}

.scrolly-wrapper {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.left-side {
    width: 50%;
}

.scrolly-section {
    height: 50vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.text-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    opacity: 0.25;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scrolly-section.active .text-card {
    opacity: 1;
    transform: translateX(0);
}

.text-card h2 {
    font-family: 'League Spartan', sans-serif;
    color: var(--aprimus-red);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.text-card p {
    font-family: 'League Spartan', sans-serif;
    color: var(--scrolly-text);
    font-size: 1.3rem;
    line-height: 1.6;
}

.right-side {
    width: 50%;
    height: 100vh;
    position: sticky !important;
    top: 0 !important;
    overflow: hidden;
}

#aprimus-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.progress-line-container {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line-color);
    z-index: 10;
}

.progress-line-red {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--aprimus-red);
    transform-origin: top;
    transform: scaleY(0);
}

#aprimus-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--scrolly-bg);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}

#preloader-fill {
    background: var(--aprimus-red);
    height: 2px;
    width: 0%;
    transition: width 0.2s;
}

#preloader-percentage {
    font-family: 'League Spartan';
    font-weight: 700;
    color: var(--scrolly-text);
    margin-top: 10px;
}

#frame-counter-debug {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 3px;
    z-index: 100;
}

/* Mobile Cards (Scrollytelling) */
.scrolly-mobile-cards {
    display: none;
    padding: 0;
    background: var(--scrolly-bg);
}

.scrolly-mobile-cards > .container {
    padding: 0 20px;
}

.scrolly-mobile-cards .page-hero {
    padding: 18vh 0 10vh 0;
    margin-bottom: 0;
}

.scrolly-mobile-cards .page-hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
}

.scrolly-mobile-cards .page-hero p {
    font-size: 1.2rem;
    margin-top: 16px;
}

.m-card {
    margin-bottom: 40px;
    background: transparent;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 30px;
}

.m-card-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border-left: 4px solid var(--aprimus-red);
}

.m-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.m-card-content h3 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    color: var(--aprimus-red);
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.m-card-content p {
    font-family: 'League Spartan', sans-serif;
    color: var(--scrolly-text);
    font-size: 1.1rem;
    line-height: 1.5;
}

.m-card:last-child {
    border-bottom: none;
}

/* --- Enriched Card / Werbemittel --- */
.text-card.enriched-card .intro-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.checkpoints-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.checkpoints-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'League Spartan', sans-serif;
    color: var(--scrolly-text);
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.checkpoints-list li:hover {
    transform: translateX(10px);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: var(--aprimus-red);
}

.check-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Gallery Grid --- */
.gallery-trigger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 2rem;
}

.gallery-thumb {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    min-height: 100px;
    background: #1a1a1a;
}

.gallery-thumb:hover {
    border-color: var(--aprimus-red);
    box-shadow: 0 5px 15px rgba(231, 39, 45, 0.2);
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.thumb-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumb:hover .thumb-overlay {
    opacity: 1;
}

.plus-icon {
    color: white;
    font-size: 2rem;
    font-weight: 300;
}

/* --- Modal (Lightbox) --- */
#aprimus-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#modal-image-container {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 4px;
    overflow: hidden;
}

#modal-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

#modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

#modal-close:hover {
    color: var(--aprimus-red);
}

/* --- Text styling helpers --- */
.red-text {
    color: var(--aprimus-red) !important;
    font-weight: 800;
}

.enriched-card h2 {
    font-weight: 900 !important;
    letter-spacing: -1px;
}

/* --- WP Editor List Styles inside text-card --- */
.text-card .intro-text ul,
.text-card .intro-text ol {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.text-card .intro-text ul li,
.text-card .intro-text ol li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--scrolly-text);
}

.text-card .intro-text ul li::before {
    content: '•';
    color: var(--aprimus-red);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.text-card .intro-text ol {
    counter-reset: aprimus-counter;
}

.text-card .intro-text ol li::before {
    counter-increment: aprimus-counter;
    content: counter(aprimus-counter) ".";
    color: var(--aprimus-red);
    font-weight: 800;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0;
}

.text-card .intro-text strong {
    color: var(--aprimus-red);
    font-weight: 800;
}

/* --- 2-Spalten Layout (Intro) --- */
.intro-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.intro-text-side h2 {
    margin-bottom: 1.5rem;
    color: var(--aprimus-red);
}

.intro-text-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--scrolly-text);
}

.intro-image-side img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.intro-image-side img:hover {
    transform: scale(1.02);
}

/* --- Info Icons --- */
.info-icon {
    color: #E30613 !important;
    margin-top: 15px !important;
    font-size: 1.6rem;
    width: 45px;
    text-align: center;
    transition: transform 0.3s ease;
}

.i-item {
    display: flex;
    align-items: flex-start !important;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.qi-item,
.qi-item p {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ==========================================================================
   8. 404 PAGE
   ========================================================================== */
:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.error-404-container {
    position: relative;
    min-height: 100vh;
    margin-top: -80px;
    padding-top: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #050505;
    overflow: hidden;
    color: #fff;
}

.hidden-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(227, 6, 19, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 6, 19, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle 250px at var(--mouse-x) var(--mouse-y), black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x) var(--mouse-y), black 0%, transparent 80%);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.error-code {
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    position: relative;
    background-image: radial-gradient(circle 300px at var(--mouse-x) var(--mouse-y), var(--accent) 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: color 0.2s ease;
}

.error-code::before,
.error-code::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.error-code::before {
    left: 2px;
    text-shadow: -2px 0 #00ffff;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.error-code::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.error-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.error-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.error-text em {
    color: var(--accent);
    font-style: normal;
    font-weight: bold;
}

.btn-glitch:hover i {
    transform: translateX(5px);
}

@keyframes glitch-anim-1 {
    0%   { clip-path: inset(20% 0 80% 0); }
    20%  { clip-path: inset(60% 0 10% 0); }
    40%  { clip-path: inset(40% 0 50% 0); }
    60%  { clip-path: inset(80% 0 5% 0); }
    80%  { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0%   { clip-path: inset(10% 0 60% 0); }
    20%  { clip-path: inset(30% 0 20% 0); }
    40%  { clip-path: inset(70% 0 20% 0); }
    60%  { clip-path: inset(20% 0 80% 0); }
    80%  { clip-path: inset(50% 0 10% 0); }
    100% { clip-path: inset(0% 0 90% 0); }
}

/* ==========================================================================
   9. STANDARD SEITEN (Impressum, Datenschutz, Textseiten)
   ========================================================================== */
.page-hero--simple {
    padding: 15vh 0 6vh 0;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.05));
}

.default-page-content {
    padding: 5rem 0 8rem 0;
}

.default-page-content .content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-main, #d1d1d1);
    line-height: 1.8;
    font-size: 1.05rem;
}

.default-page-content h2,
.default-page-content h3,
.default-page-content h4,
.default-page-content h5 {
    color: var(--text-main);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
}

.default-page-content h2 { font-size: 2.2rem; }
.default-page-content h3 { font-size: 1.6rem; }
.default-page-content h4 { font-size: 1.3rem; }

.default-page-content p {
    margin-bottom: 1.5rem;
}

.default-page-content ul,
.default-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.default-page-content li {
    margin-bottom: 0.5rem;
}

.default-page-content a {
    color: #E30613;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    font-weight: 600;
}

.default-page-content a:hover {
    border-bottom-color: #E30613;
}

/* Bold text — theme-aware */
strong, b {
    color: var(--text-main) !important;
    font-weight: bold !important;
}

.default-page-content strong,
.default-page-content b {
    color: var(--text-main) !important;
    font-weight: bold !important;
}

/* ==========================================================================
   10. SOCIAL ICONS & THEME SWITCHER (NAVBAR)
   ========================================================================== */
.nav-socials {
    display: flex;
    gap: 18px;
    margin-right: 20px;
    align-items: center;
}

.social-link {
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none !important;
}

.social-link:hover {
    color: #E30613;
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.25rem;
}

.theme-switch {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tag/Nacht Icons */
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun  { display: inline-block; }
html[data-theme="light"] .icon-sun  { display: none; }
html[data-theme="light"] .icon-moon { display: inline-block; }

.close-btn {
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem 0;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: #ffffff;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo {
    font-family: 'League Spartan', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-callback {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-callback h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #E30613;
}

.footer-callback p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #E30613;
}

.footer-nav-list,
.footer-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li,
.footer-social-list a {
    display: block;
    margin-bottom: 0.8rem;
}

.footer-social-list a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* --- Footer Rückruf Formular (CF7) --- */
.aprimus-callback-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.aprimus-callback-form input[type="text"],
.aprimus-callback-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'League Spartan', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.aprimus-callback-form input[type="submit"] {
    width: 100%;
    background-color: #E30613;
    color: #ffffff;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'League Spartan', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 0.4rem;
}

.aprimus-callback-form input[type="submit"]:hover {
    background-color: #c2000e;
    transform: translateY(-2px);
}

.aprimus-callback-form .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #E30613;
    margin-top: -0.3rem;
    margin-bottom: 0.3rem;
}

.aprimus-callback-form .wpcf7-response-output {
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0 0 0 !important;
    line-height: 1.4;
}

/* ==========================================================================
   12. INVERTED DESIGN: HEADER & FOOTER
   ========================================================================== */

/* DARK MODE → Header & Footer HELL */
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .site-footer {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .navbar a,
html[data-theme="dark"] .navbar .theme-switch,
html[data-theme="dark"] .site-footer h4,
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer .footer-logo,
html[data-theme="dark"] .site-footer span {
    color: #111111;
}

html[data-theme="dark"] .hamburger .bar {
    background-color: #111111;
}

html[data-theme="dark"] .navbar a:hover,
html[data-theme="dark"] .navbar .theme-switch:hover,
html[data-theme="dark"] .site-footer a:hover {
    color: #E30613;
}

html[data-theme="dark"] .footer-callback {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer-Links immer lesbar im Dark-Mode */
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-nav-list a {
    color: #333 !important;
    opacity: 1 !important;
}

/* Dark-Mode Formular */
html[data-theme="dark"] .aprimus-callback-form input[type="text"],
html[data-theme="dark"] .aprimus-callback-form input[type="tel"] {
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    color: #111111;
}

html[data-theme="dark"] .aprimus-callback-form input::placeholder {
    color: #888888;
}

html[data-theme="dark"] .aprimus-callback-form input:focus {
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    background-color: #ffffff;
}

/* LIGHT MODE → Header & Footer DUNKEL */
html[data-theme="light"] .navbar,
html[data-theme="light"] .site-footer {
    background-color: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .navbar a,
html[data-theme="light"] .navbar .theme-switch,
html[data-theme="light"] .site-footer h4,
html[data-theme="light"] .site-footer .footer-logo {
    color: #ffffff;
}

html[data-theme="light"] .hamburger .bar {
    background-color: #ffffff;
}

html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer a,
html[data-theme="light"] .site-footer span {
    color: #a0a0a0;
}

html[data-theme="light"] .navbar a:hover,
html[data-theme="light"] .navbar .theme-switch:hover,
html[data-theme="light"] .site-footer a:hover {
    color: #E30613;
}

/* Footer-Links immer lesbar im Light-Mode (weiß auf schwarzem Footer) */
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-nav-list a {
    color: #ffffff !important;
    opacity: 1 !important;
}

html[data-theme="light"] .footer-callback {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .aprimus-callback-form input[type="text"],
html[data-theme="light"] .aprimus-callback-form input[type="tel"] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

html[data-theme="light"] .aprimus-callback-form input::placeholder {
    color: #a0a0a0;
}

html[data-theme="light"] .aprimus-callback-form input:focus {
    border-color: #E30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Footer Logo Wechsel --- */
html[data-theme="dark"] .footer-logo-img {
    content: url('/wp-content/uploads/2026/02/aprimus_logo_sw.png');
}

html[data-theme="light"] .footer-logo-img {
    content: url('/wp-content/uploads/2026/02/aprimus_logo.png');
}

/* ==========================================================================
   13. KONFIGURATOR — CF7 & OVERRIDES
   ========================================================================== */
#config-form .wpcf7-form,
#config-form .wpcf7 {
    width: 100%;
    margin: 0;
    padding: 0;
}

#config-form .wpcf7-response-output {
    margin: 1rem 0 0 0 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 0.95rem;
}

#config-form .wpcf7-not-valid-tip {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
}

.app-input-group.has-value label,
.app-input-group input:focus ~ label,
.app-input-group textarea:focus ~ label,
.app-input-group select:focus ~ label {
    top: -15px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.app-input-group .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.app-input-group .wpcf7-form-control-wrap input,
.app-input-group .wpcf7-form-control-wrap textarea,
.app-input-group .wpcf7-form-control-wrap select {
    width: 100% !important;
    padding: 15px 0 !important;
    font-family: var(--font) !important;
    font-size: 1.2rem !important;
    color: var(--text-main) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--border-color) !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.3s !important;
}

.app-input-group .wpcf7-form-control-wrap input:focus,
.app-input-group .wpcf7-form-control-wrap textarea:focus {
    border-bottom-color: var(--accent) !important;
}

.drop-zone .wpcf7-form-control-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.drop-zone .wpcf7-form-control-wrap input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.drop-zone.dragover {
    border-color: var(--accent) !important;
    background: rgba(227, 6, 19, 0.05) !important;
}

.modal-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) !important;
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

/* --- Tablet Footer --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Scrollytelling: Desktop-only --- */
@media (max-width: 1024px) {
    .scrolly-master-container {
        display: none !important;
    }
    .scrolly-mobile-cards {
        display: block;
    }
    .intro-grid-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .intro-image-side {
        order: -1;
    }
    /* Werbeagentur Header: Pong ausblenden, nur Schriftzug */
    .pong-hero-desktop,
    #pongCanvas,
    #pongOverlay,
    .pong-controls {
        display: none !important;
    }
    .pong-hero-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 50vh;
        padding: 4rem 2rem;
    }
    .pong-hero-mobile h2 {
        font-size: clamp(2.5rem, 8vw, 5rem);
        font-weight: 900;
        text-transform: uppercase;
        color: var(--text-main);
        line-height: 1.1;
    }
}

/* --- Bento-Grid: Tablet (2 Spalten) --- */
@media (max-width: 1024px) {
    .bento-items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .bento-wrapper {
        flex-direction: column;
    }
    .bento-content-panel.active {
        width: 100%;
        padding: 2rem;
        padding-top: 3.5rem;
    }
    .bento-wrapper.is-split .bento-items-grid {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        flex-direction: unset;
        flex-wrap: unset;
    }
    .bento-wrapper.is-split .bento-box {
        width: auto;
    }
}

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

    /* Startseite: Banner ausblenden */
    .aprimus-banner-link,
    .aprimus-banner-img {
        display: none !important;
    }

    /* Webdesign: X-Ray Section ausblenden */
    .xray-section {
        display: none !important;
    }

    /* Copyshop: Papierstapel ausblenden */
    #competenceStack,
    .paper-stack {
        display: none !important;
    }

    /* Hamburger: kein Padding rechts */
    .nav-right {
        right: 20px;
        padding-right: 0;
    }

    /* Startseite: Rotierende Sprüche 8px kleiner */
    .hero-title {
        font-size: clamp(3rem, 8vw, 8.5rem) !important;
    }

    .flip-words span {
        font-size: calc(100% - 8px) !important;
    }

    /* Banner: volle Breite + margin-bottom */
    .client-slider-section {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 40px !important;
    }

    /* Navbar Socials ausblenden */
    .nav-socials {
        gap: 10px;
        margin-right: 15px;
    }

    .social-icon {
        font-size: 1.1rem;
    }

    .theme-switch {
        margin-right: 15px;
    }

    /* Menü-Right ausblenden (Bild) */
    .menu-right {
        display: none !important;
    }

    .menu-left {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    /* Navigation Links: mobil skalierbar */
    .header-nav-list {
        gap: 0.8rem;
        padding: 0 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .header-nav-list li a {
        font-size: clamp(1.4rem, 8vw, 2rem);
        line-height: 1.1;
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }

    .header-nav-list li a:hover {
        padding-left: 0;
    }

    /* Werbeagentur: Pong-Canvas schon bei 1024px ausgeblendet,
       hier nochmals sicherstellen */
    #pongCanvas,
    .pong-controls {
        display: none !important;
    }

    .pong-hero-mobile {
        min-height: 40vh !important;
        padding: 3rem 1.5rem !important;
    }

    /* Werbetechnik: Scrolly-Section mobil ersetzen */
    .werbetechnik-mobile-section {
        display: block !important;
        padding: 3rem 0;
    }

    .werbetechnik-mobile-cards {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
    }

    /* Tabs (Sticky & Stacking Cards) */
    .sticky-container {
        flex-direction: column !important;
    }

    .stack-card {
        position: relative !important;
        top: 0 !important;
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
    }

    .sc-image {
        height: 250px !important;
        order: -1;
    }

    /* Werbetechnik: Video nur Desktop */
    .werbetechnik-video-wrapper {
        display: none !important;
    }

    .werbetechnik-fallback-img {
        display: block !important;
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    /* Webdesign Hero */
    .hero-final-content p {
        display: block !important;
        font-size: 1rem !important;
        line-height: 1.6em !important;
        margin-top: 1rem !important;
    }

    .hero-final-content h1 {
        font-size: 4rem !important;
    }

    /* Referenzen: Overlay immer sichtbar */
    .portfolio-overlay {
        transform: translateY(0) !important;
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%) !important;
        padding: 2rem 1.5rem 1.5rem 1.5rem !important;
    }

    .portfolio-item img {
        filter: grayscale(0%) !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* 404 */
    .error-404-container {
        align-items: flex-start;
        padding-top: 180px;
    }

    .error-text h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   15. KONFIGURATOR — MOBILE OPTIMIERUNGEN
   ========================================================================== */
@media (max-width: 768px) {
    .config-wrapper {
        padding: 1.5rem;
    }

    .config-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .stepper-industrial {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .stepper-industrial::-webkit-scrollbar {
        display: none;
    }

    .step {
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 8px 14px;
        white-space: nowrap;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .industrial-card {
        padding: 1.2rem;
    }

    .industrial-card.with-image .img-container {
        height: 160px;
    }

    .preview-stage {
        min-height: 220px;
        margin: 1rem 0;
    }

    #preview-text {
        font-size: 22px !important;
        word-break: break-all;
    }

    .height-indicator {
        left: 10px;
    }

    .config-controls-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .config-select-group {
        min-width: unset;
        width: 100%;
    }

    .flex-grow {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .form-row--plz {
        grid-template-columns: 1fr 2fr !important;
    }

    .config-footer {
        flex-direction: row;
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn-next,
    .btn-prev,
    .btn-submit {
        flex: 1;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .btn-group-right {
        margin-top: 1.5rem;
    }

    .btn-group-right .btn-submit {
        width: 100%;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }

    .modal-overlay {
        align-items: flex-end;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .modal-footer button {
        width: 100%;
    }

    .detail-body-grid {
        grid-template-columns: 1fr;
    }

    #gallery-main-img {
        height: 220px;
    }

    .page-hero--config {
        padding: 18vh 0 8vh 0;
    }

    .page-hero--config h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .page-hero--config p {
        font-size: 1.1rem;
    }

    .drop-zone {
        padding: 2rem 1rem;
    }

    .info-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .section-header-wrapper {
        margin-bottom: 1rem;
    }
}

@media (max-width: 400px) {
    .config-wrapper {
        padding: 1rem;
    }

    .step {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    #preview-text {
        font-size: 18px !important;
    }

    .form-row--plz {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .config-controls-bar {
        flex-wrap: wrap;
    }

    .modal-content {
        width: 95%;
    }

    .detail-body-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LANDSCAPE & TABLET MENU FIX (Horizontales Handy)
   ========================================================================== */

/* 1. Bild schon bei 1024px (Tablets & Landscape-Handys) ausblenden */
@media (max-width: 1024px) {
    .menu-overlay {
        grid-template-columns: 1fr !important; /* Nur noch eine Spalte */
    }
    .menu-right {
        display: none !important; /* Bild gnadenlos ausblenden */
    }
    .menu-left {
        width: 100% !important;
        text-align: center;
        align-items: center; /* Zentriert die Navigation */
        padding: 5% !important;
    }
}

/* 2. Spezieller Fix für sehr flache Bildschirme (Handy quer) */
@media (max-height: 500px) and (orientation: landscape) {
    .menu-left {
        padding: 2% !important;
        justify-content: center !important;
    }
    
    /* Links nebeneinander anordnen, damit sie in der Höhe nicht rausfliegen */
    .header-nav-list {
        flex-direction: row !important; 
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px 30px !important; /* Abstand zwischen den Links */
    }
    
    /* Schrift massiv verkleinern für flache Screens */
    .menu-link {
        font-size: 1.6rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Schließen-Button etwas kleiner und kompakter in die Ecke setzen */
    .close-btn {
        top: 10px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
}
/* ==========================================================================
   GHOST-CLICK FIX FÜR DAS MENÜ
   ========================================================================== */
.menu-overlay {
    visibility: hidden;
    pointer-events: none; /* Blockiert JEDEN Klick, wenn geschlossen */
}

.menu-overlay.open {
    visibility: visible;
    pointer-events: auto; /* Erlaubt Klicks wieder, wenn geöffnet */
}
/* ==========================================================================
   NOTFALL-FIX: TEXT-WECHSLER & MENÜ-ÜBERLAUF
   ========================================================================== */

/* 1. TEXT-WECHSLER (ROTATOR) REPARIEREN */
.flip-container {
    height: 1em !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
}

.flip-words span {
    height: 1em !important;
    line-height: 1em !important;
    /* Zwingt die Wörter wieder auf exakt 1em Höhe, damit das JavaScript sie perfekt schiebt! */
    font-size: 1em !important; 
    display: block !important;
}

/* 2. MENÜ-TEXT ÜBERLAUF FIX (Für verkleinerte Desktop-Fenster & Tablets) */
.menu-link {
    /* Skaliert sich jetzt dynamisch zwischen 1.8rem und 4rem, je nach Platz! */
    font-size: clamp(1.8rem, 5vw, 4rem) !important; 
    line-height: 1.1 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}
/* Dynamische Button-Schriftfarbe (Startseite) */
html[data-theme="dark"] .wp-block-button__link {
    color: #ffffff !important;
}

html[data-theme="light"] .wp-block-button__link {
    color: #111111 !important;
}
Alternativ kannst du auch super elegant deine eigene CSS-Variable nutzen, die du schon für den Textwechsel definiert hast. Das sähe dann so aus und hat genau denselben Effekt:

CSS
.wp-block-button__link {
    color: var(--text-main) !important;
}
@media (max-width: 768px) {
    
    /* Das Grid auf dem Handy strikt auflösen und untereinander anordnen */
    body .intro-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* Die linke Text-Seite nimmt jetzt exakt 100% des verfügbaren Platzes ein */
    body .intro-grid > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Überschrift mobil leicht anpassen, damit sie nicht den Rahmen sprengt */
    body .intro-grid h2 {
        font-size: 2.4rem !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* TÖTET DEN LEEREN RECHTEN CONTAINER: 
       Weil wir den Papierstapel versteckt haben, brauchen wir die leere Hülle auch nicht mehr */
    body .intro-grid > div:nth-child(2) {
        display: none !important;
    }
}
@media (max-width: 768px) {
    body .sticky-left h2 {
        /* Standard war 4rem (64px) -> jetzt 3.5rem (56px) */
        font-size: 3.5rem !important; 
        line-height: 1.1 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        margin-bottom: 1.5rem !important; /* Abstand nach unten minimal anpassen */
    }
}
.page-hero p{
	line-height:2em;
}
/* ==========================================================================
   HOTFIX: WEBDESIGN IDE-CARDS (Textabstand & Überschriften)
   ========================================================================== */

/* Überschriften in den Editor-Karten verkleinern */
body .editor-text h3 {
    font-size: 1.8rem !important; /* Vorher 2.5rem - deutlich dezenter */
    margin-bottom: 1.2rem !important;
}

/* Den Text-Bereich unten nicht an den Rand klatschen lassen */
body .editor-content {
    padding-bottom: 2.5rem !important; /* Mehr Luft nach unten */
}

/* Falls der Textbereich ('editor-text') zu nah an den Code-Zeilen ('code-lines') klebt */
body .editor-text {
    margin-bottom: 1.5rem !important; 
}

/* Spezifisch für Mobile: Noch etwas kleinere Überschriften */
@media (max-width: 768px) {
    body .editor-text h3 {
        font-size: 1.5rem !important;
    }
}
.editor-card{
	height:auto!important;
}