/*
 * InVitro Banana - Standalone Stylesheet (style_sa.css)
 *
 * Completely self-contained. No Tailwind, no build step, no JS framework.
 *
 *   1. Design tokens (CSS variables)
 *   2. Reset / base
 *   3. Components & effects
 *   4. Utility classes (only those actually used by the templates)
 *   5. Responsive utilities (sm / md / lg / xl)
 *
 * --accent-1 / --accent-2 are overridden at runtime by the Customizer values
 * (see invitro_banana_enqueue_assets() in functions.php).
 */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    /* Accent colors (defaults, overridden dynamically via PHP / Customizer) */
    --accent-1: #00F0FF;
    --accent-2: #FFB700;

    /* Concrete palette */
    --concrete-dark: #23262b;
    --concrete: #2B2E34;
    --concrete-deep: #222428;
    --concrete-light: #5a5f6b;

    /* Same colors as RGB triplets, for alpha variants */
    --concrete-dark-rgb: 35 38 43;
    --concrete-rgb: 43 46 52;
    --concrete-light-rgb: 58 62 70;

    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;

    /* Misc */
    --accent-2-hover: #facc15;
    --highlight: #fef08a;

    /* Chamfer card */
    --chamfer-size: 20px;
    --chamfer-border: var(--concrete-light);
    --chamfer-bg: var(--concrete);

    /* Chamfer button */
    --chamfer-size-btn: 10px;
    --chamfer-border-btn: var(--concrete-light);
    --chamfer-bg-btn: var(--concrete-dark);


    /* Fonts */
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--gray-200);
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: var(--font-sans);
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr[title] {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

code, kbd, pre, samp {
    font-family: var(--font-mono);
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -.25em;
}

sup {
    top: -.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button,
input[type=button],
input[type=reset],
input[type=submit] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

menu, ol, ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: var(--gray-400);
}

[role=button],
button {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

audio, canvas, embed, iframe, img, object, svg, video {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

[hidden]:not([hidden=until-found]) {
    display: none;
}

/* Firefox smooth scroll & overflow fix */
html {
    scroll-behavior: smooth !important;
    overflow-x: hidden;
    height: auto !important;
}

body {
    position: relative;
    overflow-x: hidden;
    height: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}

/* Custom industrial scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--concrete-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--concrete-light);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* Text selection */
.selection-accent::selection,
.selection-accent *::selection {
    background-color: var(--accent-2);
    color: var(--black);
}


/* ==========================================================================
   3. COMPONENTS & EFFECTS
   ========================================================================== */

/* ----- Hazard stripes (header) ----- */
.hazard-stripes {
    background: repeating-linear-gradient(
            -45deg,
            var(--accent-2),
            var(--accent-2) 12px,
            var(--concrete) 12px,
            var(--concrete) 24px
    );
}

/* ----- Hero headline gradient ----- */
.gradient-text {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, var(--accent-2), var(--highlight), var(--accent-1));
}

/* ----- Scroll-reveal for bento cards ----- */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Higher specificity than .transition-all / .chamfer-card so the reveal timing wins. */
.chamfer-card.reveal-card {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease-in-out;
}

/* Content reveal (sections with data-reveal-mode="ltr"): the card stays visible,
   only its content slides in from the left. */
.reveal-content > * {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-content.is-visible > * {
    opacity: 1;
    transform: translateX(0);
}

/* prefers-reduced-motion: fade only, no movement */
.reveal-fade-only .reveal-card,
.reveal-fade-only .reveal-content > * {
    transform: none;
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scanline-bg {
    background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.35)
    );
    background-size: 100% 4px;
}

/* ----- Chamfer badges & buttons ----- */
.chamfer-badge {
    clip-path: polygon(
            0 0,
            calc(100% - 8px) 0,
            100% 8px,
            100% 100%,
            8px 100%,
            0 calc(100% - 8px)
    );
}

.chamfer-btn {
    border: 0;
    background-color: var(--chamfer-border-btn);
    clip-path: polygon(
            0 0,
            calc(100% - 10px) 0,
            100% 10px,
            100% 100%,
            10px 100%,
            0 calc(100% - 10px)
    );
}

.chamfer-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background-color: var(--chamfer-bg-btn);
    clip-path: inherit;
    inset: 2px;
    z-index: -1;
}

.chamfer-btn.bg-accent-2::before {
    background-color: var(--accent-2);
}

.chamfer-btn.hover\:bg-accent-2-hover:hover::before {
    background-color: var(--accent-2-hover);
}

.chamfer-btn.hover\:bg-accent-2-hover:hover::before {
    background-color: var(--accent-2-hover);
}

.chamfer-btn.hover\:border-cat:hover {
    background-color: var(--cat-color);
}

/* ----- Chamfer card (industrial cut with 1px frame) ----- */
.chamfer-card {
    position: relative;
    background-color: var(--chamfer-border);
    clip-path: polygon(
            0 0,
            calc(100% - var(--chamfer-size)) 0,
            100% var(--chamfer-size),
            100% 100%,
            var(--chamfer-size) 100%,
            0 calc(100% - var(--chamfer-size))
    );
    padding: 1px;
    transition: background-color 0.2s ease-in-out;
}

.chamfer-card.border {
    border: 0;
}

.chamfer-card.border-concrete-light {
    background-color: var(--concrete-light);
}

.chamfer-card.hover:hover {
    background-color: var(--chamfer-hover-border, var(--accent-2));
}

.chamfer-card.portfolio-item.hover:hover {
    background-color: var(--cat-color, var(--accent-2));
}

.chamfer-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    background-color: var(--chamfer-bg);
    clip-path: inherit;
    z-index: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.chamfer-card > * {
    position: relative;
    z-index: 1;
}

/* ----- Portfolio card hover (category color is set inline via PHP) ----- */
.portfolio-item:hover {
    border-color: var(--cat-color) !important;
}

.portfolio-item:hover h3 {
    color: var(--cat-color) !important;
}

/* ----- Glitch text (H1) ----- */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(50% 0 50% 0);
    display: none; /* standby */
    pointer-events: none;
}

/* Activated by JS */
.glitch-text.is-glitching::before {
    display: block;
    left: -2px;
    text-shadow: 2px 0 var(--accent-1);
    animation: glitch-anim-1 0.1s infinite linear alternate-reverse;
}

.glitch-text.is-glitching::after {
    display: block;
    left: 2px;
    text-shadow: -2px 0 var(--accent-2);
    animation: glitch-anim-2 0.1s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, 1px);
    }
    50% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(1px, -1px);
    }
    100% {
        clip-path: inset(10% 0 85% 0);
        transform: translate(-1px, 2px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(2px, -1px);
    }
    50% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-1px, 1px);
    }
    100% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(1px, -2px);
    }
}

/* ----- Showcase portfolio-item ----- */
.portfolio-item .zoom-btn {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    background: var(--accent-2);
    color: var(--black);
    font-family: var(--font-mono);
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.25s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    text-align: center;
}

.portfolio-item:hover .zoom-btn { opacity: 1; }

.portfolio-item .zoom-btn .zoom-icon {
    line-height: 1em;
    font-size: 1em;
    position: relative;
    top: -2px;
    left: 1px;
}

/* ----- Specs modal ----- */
#specs-modal {
    cursor: pointer;
}

#specs-modal > .chamfer-card {
    cursor: default;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

#specs-modal .chamfer-card {
    will-change: transform, opacity;
}

/* Blueprint border draw animation (horizontal line) */
#specs-modal.anim-border .chamfer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: calc(100% + 20px);
    height: 1px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 0 12px var(--accent-1);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 30;
}

/* Blueprint border draw animation (vertical line) */
#specs-modal.anim-border .chamfer-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 1px;
    height: calc(100% - 20px);
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 0 12px var(--accent-2);
    transform-origin: top;
    transform: scaleY(0);
    z-index: 30;
}

#specs-modal.anim-border.modal-cyber-open .chamfer-card::before {
    animation: drawBorderX 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

#specs-modal.anim-border.modal-cyber-open .chamfer-card::after {
    animation: drawBorderY 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes drawBorderX {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes drawBorderY {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes pulse {
    50% {
        opacity: .5;
    }
}

/* Erhalte das native Seitenverhältnis des Bildes ohne Crop */
#modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    width: auto;
    height: auto;
}

/* Optional: Dezent gewebter Raster-Hintergrund hinter dem Bild für den Blueprint-Look */
#modal-img-container {

}

.modal-blueprint-img {
    display: block;
    width: auto;
    height: auto;

    max-width: 80vw;
    max-height: 80vh;

    object-fit: scale-down;
    margin: auto;
}

#modal-canvas-wrapper {
    background-image:
            radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 16px 16px, 32px 32px, 32px 32px;
}

#modal-stamp {
    bottom: 0.5em;
    right: 0.5em;
    max-width: 50%;
}

#modal-img {
    transition: opacity 0.3s ease-in-out;
}

#modal-canvas-wrapper.is-loading::before {
    content: '// LOADING_ASSET...';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-1);
    letter-spacing: 0.1em;
    animation: pulse 1s infinite ease-in-out;
    z-index: 5;
}


/* ==========================================================================
   4. UTILITIES
   ========================================================================== */

/* ----- Position ----- */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.pointer-events-none { pointer-events: none; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ----- Grid span ----- */
.col-span-1 { grid-column: span 1 / span 1; }

/* ----- Margin ----- */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-1 { margin-right: 0.25rem; }

/* ----- Display ----- */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ----- Sizing ----- */
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-7 { height: 1.75rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.h-70p { height: 70%; }
.h-85vh { height: 85vh; }
.min-h-220 { min-height: 220px; }
.w-2 { width: 0.5rem; }
.w-7 { width: 1.75rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-2048 { max-width: 2048px; }

/* ----- Flex & grid ----- */
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.auto-rows-420 { grid-auto-rows: 420px; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.break-all { word-break: break-all; }
.min-w-0 { min-width: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; margin-bottom: 0; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; margin-bottom: 0; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; margin-bottom: 0; }

/* ----- Transform ----- */
.-rotate-12 { transform: rotate(-12deg); }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ----- Overflow, cursor, text flow ----- */
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.whitespace-nowrap { white-space: nowrap; }

/* ----- Radius ----- */
.rounded-sm { border-radius: 0.125rem; }
.rounded-full { border-radius: 9999px; }

/* ----- Border width ----- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-x { border-left-width: 1px; border-right-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-b-4 { border-bottom-width: 4px; }
.border-l { border-left-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }

/* ----- Border color ----- */
.border-concrete-light { border-color: var(--concrete-light); }
.border-concrete-light-60 { border-color: rgb(var(--concrete-light-rgb) / 0.6); }
.border-accent-1 { border-color: var(--accent-1); }
.border-accent-2 { border-color: var(--accent-2); }

/* ----- Background color ----- */
.bg-concrete-dark { background-color: var(--concrete-dark); }
.bg-concrete-dark-40 { background-color: rgb(var(--concrete-dark-rgb) / 0.4); }
.bg-concrete-dark-95 { background-color: rgb(var(--concrete-dark-rgb) / 0.95); }
.bg-concrete { background-color: var(--concrete); }
.bg-concrete-40 { background-color: rgb(var(--concrete-rgb) / 0.4); }
.bg-concrete-85 { background-color: rgb(var(--concrete-rgb) / 0.85); }
.bg-concrete-90 { background-color: rgb(var(--concrete-rgb) / 0.9); }
.bg-concrete-deep { background-color: var(--concrete-deep); }
.bg-accent-1 { background-color: var(--accent-1); }
.bg-accent-2 { background-color: var(--accent-2); }
.bg-black-70 { background-color: rgb(0 0 0 / 0.7); }
.bg-black-85 { background-color: rgb(0 0 0 / 0.85); }
.bg-black-90 { background-color: rgb(0 0 0 / 0.9); }

/* ----- Images ----- */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-none { object-fit: none; }
.object-top { object-position: top; }
.object-center { object-position: center; }
.contrast-110 { filter: contrast(1.1); }

/* ----- Padding ----- */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.625rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pl-0 { padding-left: 0; }
.pl-4 { padding-left: 1rem; }
.pl-8 { padding-left: 2rem; }
.pr-8 { padding-right: 2rem; }

/* ----- Typography ----- */
.text-center { text-align: center; }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-10 { font-size: 10px; }
.text-11 { font-size: 11px; }
.text-24 { font-size: 24px; }
.font-normal { font-weight: 400; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ----- Text color ----- */
.text-white { color: var(--white); }
.text-black { color: var(--black); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-concrete-light { color: var(--concrete-light); }
.text-accent-1 { color: var(--accent-1); }
.text-accent-2 { color: var(--accent-2); }

/* ----- Effects ----- */
.opacity-30 { opacity: 0.3; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-glow-sm { box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2) 15%, transparent); }
.shadow-glow-md { box-shadow: 0 0 15px color-mix(in srgb, var(--accent-2) 20%, transparent); }
.shadow-glow-lg { box-shadow: 0 0 20px color-mix(in srgb, var(--accent-2) 25%, transparent); }
.shadow-glow-xl { box-shadow: 0 0 25px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.shadow-glow-lead { box-shadow: 0 0 20px color-mix(in srgb, var(--accent-2) 15%, transparent); }
.drop-shadow-text { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ----- Transitions ----- */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ----- Hover ----- */
.hover\:border-accent-2:hover { border-color: var(--accent-2); }
.chamfer-card.hover\:border-accent-1:hover { background-color: var(--accent-1); }
.chamfer-card.hover\:border-accent-2:hover { background-color: var(--accent-2); }
.hover\:border-cat:hover { border-color: var(--cat-color); }
.hover\:bg-accent-1:hover { background-color: var(--accent-1); }
.hover\:bg-accent-2:hover { background-color: var(--accent-2); }
.hover\:bg-accent-1-hover:hover { background-color: var(--accent-1-hover); }
.hover\:bg-accent-2-hover:hover { background-color: var(--accent-2-hover); }
.hover\:bg-black-90:hover { background-color: rgb(0 0 0 / 0.9); }
.hover\:text-accent-2:hover { color: var(--accent-2); }
.hover\:text-cat:hover { color: var(--cat-color); }
.hover\:text-white:hover { color: var(--white); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-90:hover { opacity: 0.9; }

/* ----- Focus ----- */
.focus\:border-accent-1:focus { border-color: var(--accent-1); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* ----- Group hover ----- */
.group:hover .group-hover\:rotate-0 { transform: rotate(0deg); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:bg-accent-2 { background-color: var(--accent-2); }
.group:hover .group-hover\:text-black { color: var(--black); }


/* ==========================================================================
   5. RESPONSIVE UTILITIES
   ========================================================================== */

@media (min-width: 640px) {
    .sm\:my-4 { margin-top: 1rem; margin-bottom: 1rem; }
    .sm\:my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
    .sm\:mt-16 { margin-top: 4rem; }
    .sm\:inline { display: inline; }
    .sm\:flex { display: flex; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .sm\:pb-8 { padding-bottom: 2rem; }
    .sm\:pb-16 { padding-bottom: 4rem; }
    .sm\:pl-6 { padding-left: 1.5rem; }
    .sm\:pt-12 { padding-top: 3rem; }
    .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 768px) {
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:my-8 { margin-top: 2rem; margin-bottom: 2rem; }
    .md\:mb-8 { margin-bottom: 2rem; }
    .md\:mt-24 { margin-top: 6rem; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-end { align-items: flex-end; }
    .md\:items-center { align-items: center; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:pb-12 { padding-bottom: 3rem; }
    .md\:pb-20 { padding-bottom: 5rem; }
    .md\:pt-16 { padding-top: 4rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:opacity-100 { opacity: 1; }
}

@media (min-width: 1024px) {
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-6 { grid-column: span 6 / span 6; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:block { display: block; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:object-cover { object-fit: cover; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:pl-4 { padding-left: 1rem; }
    .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1280px) {
    .xl\:mt-36 { margin-top: 9rem; }
    .xl\:pb-24 { padding-bottom: 6rem; }
    .xl\:pt-20 { padding-top: 5rem; }
}


/* Bento Grid Container ohne Tailwind */
.grid-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-auto-rows: 380px; /* Basis-Höhe für eine Zeile */
    grid-auto-flow: dense;  /* Füllt Lücken automatisch auf */
}

/* Ab Tablet / Desktop (3 Spalten) */
@media (min-width: 768px) {
    .grid-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* 1. Landscape: Erstreckt sich über 2 Spalten, bleibt 1 Reihe hoch */
    .bento-landscape {
        grid-column: span 2 / span 2;
        grid-row: span 1 / span 1;
    }

    /* 2. Portrait: Bleibt 1 Spalte breit, erstreckt sich über 2 Reihen */
    .bento-portrait {
        grid-column: span 1 / span 1;
        grid-row: span 2 / span 2;
    }

    /* 3. Normal / Quadratisch: 1 Spalte, 1 Reihe */
    .bento-normal {
        grid-column: span 1 / span 1;
        grid-row: span 1 / span 1;
    }
}

.zoom-btn {
    height: 1.5em;
    width: 1.5em;
    top: 1em;
    left: 1em;
}

/* ==========================================================================
   6. HEADER SUB-MENU (wp_nav_menu, 2nd level)
   ========================================================================== */
.ivb-nav-item { display: block; }
.ivb-caret { font-size: 0.7em; color: var(--accent-2); }
.ivb-subnav__link {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: var(--gray-300);
    transition: color 0.2s, background-color 0.2s;
}
.ivb-subnav__link:hover,
.ivb-subnav__link:focus-visible,
.ivb-subnav__link.is-active { color: var(--accent-2); background-color: rgb(var(--concrete-light-rgb) / 0.4); }

/* Mobile drawer: sub items are an indented list */
#mobile-menu .ivb-subnav { margin: 0 0 0.5rem 0.25rem; padding-left: 0.875rem; border-left: 2px solid var(--concrete-light); }

@media (min-width: 768px) {
    .ivb-nav-item { position: relative; display: flex; align-items: center; }
    .ivb-subnav {
        position: absolute;
        top: 100%;
        left: -1rem;
        z-index: 60;
        min-width: 14rem;
        padding-top: 1.25rem; /* hover bridge between link and panel */
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .ivb-nav-item:hover > .ivb-subnav,
    .ivb-nav-item:focus-within > .ivb-subnav { opacity: 1; visibility: visible; transform: none; }
    .ivb-subnav__panel { --chamfer-size: 12px; --chamfer-bg: var(--concrete-dark); }
    .ivb-subnav__panel > .ivb-subnav__link { padding: 0.625rem 1.25rem; }
}


/* ==========================================================================
   404 page
   ========================================================================== */
.ivb-404__wrap { padding-top: 4rem; padding-bottom: 4rem; }
.ivb-404__card { max-width: 42rem; margin: 0 auto; }
.ivb-404__code {
    font-size: clamp(5rem, 22vw, 10rem);
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0.5rem 0 1rem;
    color: var(--accent-2);
}
.ivb-404__text { max-width: 32rem; margin-left: auto; margin-right: auto; }
.ivb-404__search { display: flex; max-width: 28rem; margin: 2rem auto 0; }
.ivb-404__input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: var(--concrete-deep);
    border: 1px solid var(--concrete-light);
    color: #fff;
    outline: none;
}
.ivb-404__input:focus { border-color: var(--accent-1); }
.ivb-404__submit {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--accent-1);
    border-left: 0;
    color: var(--accent-1);
    cursor: pointer;
}
.ivb-404__submit:hover { background: var(--accent-1); color: #000; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Search results
   ========================================================================== */
.ivb-search__wrap { padding-top: 3rem; padding-bottom: 3rem; }
.ivb-search__form { margin-left: 0; margin-right: 0; }
.ivb-search__card { text-decoration: none; }
.ivb-search__thumb { width: 5rem; height: 5rem; }
.ivb-search .navigation.pagination { margin-top: 3rem; }
.ivb-search .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font-mono, monospace); font-size: 0.875rem; }
.ivb-search .page-numbers {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--concrete-light);
    color: #d1d5db;
    text-decoration: none;
}
.ivb-search a.page-numbers:hover { border-color: var(--accent-1); color: var(--accent-1); }
.ivb-search .page-numbers.current { background: var(--accent-2); border-color: var(--accent-2); color: #000; font-weight: 700; }

/* ==========================================================================
   Chamfer page (Imprint, Privacy ...) - all content in one chamfer card
   ========================================================================== */
.ivb-chamfer-page__wrap { padding-top: 4rem; padding-bottom: 4rem; }
.ivb-chamfer-page__card { max-width: 56rem; margin: 0 auto; }
.ivb-chamfer-page__content { max-width: none; }
