/* ==========================================================
   OTBT Webseite v0.4 – Header, Navigation, SVG Decorations
   ========================================================== */

/* ----------------------------------------------------------
   Fonts
   ---------------------------------------------------------- */
@font-face {
	font-family: 'Freeman';
	src: local('Freeman'),
	     url('/wp-content/fonts/Freeman-Regular.woff2') format('woff2'),
	     url('/wp-content/fonts/Freeman-Regular.woff') format('woff'),
	     url('/wp-content/fonts/Freeman-Regular.ttf') format('truetype');
	font-display: swap;
}

@font-face {
	font-family: 'Noto Sans';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62.5% 100%;
	font-display: swap;
	src: url('/wp-content/fonts/NotoSans-LatinExt.woff2') format('woff2'),
	     url('/wp-content/fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
	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: 'Noto Sans';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62.5% 100%;
	font-display: swap;
	src: url('/wp-content/fonts/NotoSans-Latin.woff2') format('woff2'),
	     url('/wp-content/fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
	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;
}

@font-face {
	font-family: 'Noto Sans';
	font-style: italic;
	font-weight: 100 900;
	font-stretch: 62.5% 100%;
	font-display: swap;
	src: url('/wp-content/fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
}

:root {
	--otbt-body-text: 1.2rem;
}

body {
	font-family: "Noto Sans", Roboto, Helvetica, Arial, sans-serif !important;
	overflow-x: clip;
	position: relative;
}

h1, h2, h3, h4, h5 {
	font-family: "Freeman" !important;
}

.inside-article {
    font-size: var(--otbt-body-text);
}



/* ----------------------------------------------------------
   GeneratePress sticky nav – items right-aligned at content edge
   ---------------------------------------------------------- */
#sticky-navigation .inside-navigation {
    display: flex;
    justify-content: flex-end;
}

#sticky-navigation .main-nav {
    flex-grow: 0;
}

/* Remove white background from primary navigation (not sticky) */
.main-navigation:not(#sticky-navigation),
.main-navigation:not(#sticky-navigation) .inside-navigation,
#site-navigation,
#site-navigation .inside-navigation {
    background-color: transparent !important;
}

/* Dots behind current menu item */
.otbt-nav-dots-wrap {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.otbt-nav-dots {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    min-width: 80px;
    max-width: none;
    height: auto;
    z-index: -1;
    pointer-events: none;
}

.otbt-nav-label {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------
   GeneratePress mobile nav – hamburger as yellow circle,
   right-aligned. Scoped to mobile nav only (not sticky/desktop).
   ---------------------------------------------------------- */
.main-navigation:not(#sticky-navigation):not(#site-navigation) .inside-navigation {
    display: flex;
    justify-content: flex-end;
}

.main-navigation:not(#sticky-navigation):not(#site-navigation) .menu-toggle {
    background: #FFE726;
    border: none;
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
    flex-grow: 0;
}

.main-navigation:not(#sticky-navigation):not(#site-navigation) .menu-toggle:hover {
    background: #f0d800;
}

/* Style the default GP hamburger/X icons inside the yellow circle */
.main-navigation:not(#sticky-navigation):not(#site-navigation) .menu-toggle .icon-menu-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.main-navigation:not(#sticky-navigation):not(#site-navigation) .menu-toggle .icon-menu-bars svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ----------------------------------------------------------
   Logo-line overlay (sits on top of .frontpageLogo)
   ---------------------------------------------------------- */
.otbt-logo-line-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.otbt-logo-line-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ----------------------------------------------------------
   GLOBAL: .otbt-hero fills above-the-fold
   Wrap your front-page logo + heading in a Group block
   with additional CSS class "otbt-hero".
   ---------------------------------------------------------- */
.otbt-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10vh;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.otbt-hero * {
    pointer-events: auto;
}

/* ----------------------------------------------------------
   CORNER LOGO (appears on scroll, all pages)
   ---------------------------------------------------------- */
.otbt-corner-logo {
    display: block;
    width: 135px;
    height: 200px;
    flex-shrink: 0;
    position: fixed;
    top: -27px;
    left: 20px;
    z-index: 1000000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.4s, transform 0.4s;
}

.otbt-corner-logo.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.otbt-corner-logo-line,
.otbt-corner-logo-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.otbt-corner-logo-line svg,
.otbt-corner-logo-text svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Solid white outline around the corner logo line */
.otbt-corner-logo-line svg {
    filter:
        drop-shadow( 2px  0   0 #fff)
        drop-shadow(-2px  0   0 #fff)
        drop-shadow( 0    2px 0 #fff)
        drop-shadow( 0   -2px 0 #fff)
        drop-shadow( 1px  1px 0 #fff)
        drop-shadow(-1px -1px 0 #fff)
        drop-shadow( 1px -1px 0 #fff)
        drop-shadow(-1px  1px 0 #fff);
}

.otbt-corner-logo-text {
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.otbt-corner-logo.is-visible .otbt-corner-logo-text {
    opacity: 1;
}

/* ----------------------------------------------------------
   DECORATIONS LAYER
   ---------------------------------------------------------- */
.otbt-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.otbt-deco {
    position: absolute;
    display: block;
    pointer-events: none;
}

/* SVGs: preserve aspect ratio, don't stretch */
img.otbt-deco {
    height: auto;
}

.otbt-circle {
    border-radius: 50%;
    position: absolute;
}

/* ===================== HOME PAGE ========================= */

/* Hide header logo image on front page */
.otbt-is-home .header-image.is-logo-image {
    display: none;
}

/* User's WP logo block on front page (.frontpageLogo) — no extra logo from plugin */\n

.frontpageLogo {    scale: 0.9;}
#makeADifference {    scale: 1.4 !important;}

/* Corner line – anchored top-left */
.otbt-home-line-corner {
    top: -20px;
    left: -10px;
    width: 60%;
}

.otbt-home-line-corner svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Animated hero line – starts top-right, drawn via JS
   Tune --otbt-hero-top to shift vertically.
   The SVG aspect is 3000:2000 = 3:2, so height ≈ width × 0.667.
   We want 33% of that above the viewport bottom:
     bottom = -(0.667 × width × 0.67) ≈ -49vw
   Adjust --otbt-hero-bottom to taste.                          */
:root {
    --otbt-hero-bottom: -43vw;     /* ↑ less negative = higher, ↓ more negative = lower */
    --otbt-hero-initial: 0.25;     /* portion drawn on load (0–1). Rebuilt by JS. */
}

.otbt-home-hero-line {
    position: absolute;
    bottom: var(--otbt-hero-bottom);
    right: -5%;
    width: 110%;
    z-index: 0;
    pointer-events: none;
    transform: scaleX(-1);
}

.otbt-home-hero-line svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Dots vertical – top left */
.otbt-home-dots-v {
    top: 5%;
    left: 13%;
    width: 108px;
}

/* Big blue circle – top right, alpha */
.otbt-home-circle-big {
    top: -11%;
    right: -13%;
    width: 30%;
    opacity: 0.6;
}

/* Diagonal lines */
.otbt-home-diagonal {
    width: 15%;
    bottom: 5%;
    left: 50%;
}

/* Small blob accent – bottom right of start screen */
.otbt-home-blob-small2 {
    bottom: 3%;
    right: 3%;
    width: 18%;
    opacity: 0.85;
}

/* Auto-placed blobs – outer clips, inner holds the tall canvas */
.otbt-auto-blob-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.otbt-auto-blob-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 9000px;
    pointer-events: none;
}
.otbt-auto-blob {
    position: absolute;
    width: 30%;
    opacity: 0.9;
    z-index: -1;
    pointer-events: none;
    transform: scaleX(-1);
}
.otbt-auto-blob-left {
    left: -5%;
}
.otbt-auto-blob-right {
    right: -5%;
}

/* ===================== CLASS-BASED PARALLAX ============== */
.parallax-slow,
.parallax-norm,
.parallax-fast,
.parallax-faster,
.parallax-double {
    will-change: transform;
}

/* ===================== SUBPAGES ========================== */

/* Horizontal line – full width, edge-to-edge across the top */
.otbt-sub-line-horizontal {
    top: 6%;
    left: 0;
    width: 120vw;
    /* transform: scaleX(1) rotate(-5deg); */
}

/* On subpages, push decorations behind all page content */
.otbt-is-subpage .otbt-decorations {
    z-index: -1;
    overflow: hidden;
}

/* Page title on subpages – styled like .otbt-section-heading */
.otbt-is-subpage h1.page-title,
.otbt-is-subpage h1.entry-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    color: #1a1a1a;
    line-height: 1.15;
    width: 100%;
    text-align: center;
}

/* h2 entry-title on subpages – diagonal lines accent top-left */
.otbt-is-subpage h2.entry-title {
    position: relative;
    display: inline-block;
}

.otbt-is-subpage h2.entry-title::after {
    content: "";
    position: absolute;
    left: -60px;
    top: -16px;
    width: 270px;
    height: 60px;
    background: url('/wp-content/plugins/otbt-webseite/assets/diagonal_lines.svg') no-repeat center / contain;
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

.otbt-sub-line-horizontal svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Dots vertical – subtle, top left near the header */
.otbt-sub-dots-v {
    top: 60px;
    left: 5%;
    width: 110px;
    opacity: 0.5;
}

/* Blob – top right corner, behind the yellow line */
.otbt-sub-blob-blue {
    top: -16%;
    right: -19%;
    width: 34%;
    transform: rotate(-96deg);
    z-index: -1;
}

/* ----------------------------------------------------------
   CONTENT UTILITY CLASSES
   ---------------------------------------------------------- */
.otbt-card {
    border-radius: 20px;
    border: 5px solid;
    overflow: hidden;
    box-shadow: none;
    display: inline-block;
}
.otbt-card img { display: block; width: 100%; height: auto; }
.otbt-card-mint    { border-color: #8ECFC0; }
.otbt-card-pink    { border-color: #E8A0BF; }
.otbt-card-blue    { border-color: #94BDE8; }
.otbt-card-yellow  { border-color: #FFE726; }
.otbt-card-tilt-left  { transform: rotate(-4deg); }
.otbt-card-tilt-right { transform: rotate(4deg); }

/* ----------------------------------------------------------
   POST GRID – [blogposts] / [projekte] shortcodes
   ---------------------------------------------------------- */
.otbt-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 40px 0;
}

.otbt-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 5px solid;
    overflow: hidden;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    background: #fff;
    opacity: 0;
    translate: 0 40px;
    rotate: 0deg;
    transition: opacity 0.6s ease, translate 0.6s ease, rotate 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.otbt-post-card.otbt-post-visible {
    opacity: 1;
    translate: 0 0;
}

/* Staggered fade-in (delay removed once visible, so hover has no lag) */
.otbt-post-card:nth-child(1) { transition-delay: 0s; }
.otbt-post-card:nth-child(2) { transition-delay: 0.15s; }
.otbt-post-card:nth-child(3) { transition-delay: 0.3s; }
.otbt-post-card.otbt-post-visible { transition-delay: 0s; }

/* Base rotation per card */
.otbt-post-card:nth-child(1).otbt-post-visible { rotate: -1.5deg; }
.otbt-post-card:nth-child(2).otbt-post-visible { rotate: 1deg; }
.otbt-post-card:nth-child(3).otbt-post-visible { rotate: -2deg; }

/* Float animation (uses `transform`, independent of `translate` and `rotate`) */
.otbt-post-card:nth-child(1).otbt-post-visible { animation: otbt-post-float 5.5s ease-in-out 0.6s infinite; }
.otbt-post-card:nth-child(2).otbt-post-visible { animation: otbt-post-float 5.5s ease-in-out 1.0s infinite; }
.otbt-post-card:nth-child(3).otbt-post-visible { animation: otbt-post-float 5.5s ease-in-out 1.4s infinite; }

@keyframes otbt-post-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Hover: smooth rotation to 0, pause float, tinted background */
.otbt-post-card:hover {
    rotate: 0deg !important;
    box-shadow: 0 8px 0 rgba(0,0,0,0.08);
    animation-play-state: paused !important;
}

.otbt-post-card-mint { border-color: #8ECFC0; }
.otbt-post-card-mint:hover { background: #f0faf7; }
.otbt-post-card-pink { border-color: #E8A0BF; }
.otbt-post-card-pink:hover { background: #fdf2f7; }
.otbt-post-card-blue { border-color: #94BDE8; }
.otbt-post-card-blue:hover { background: #f0f6fd; }

.otbt-post-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.otbt-post-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.otbt-post-card-body {
    padding: 20px 24px 24px;
}

.otbt-post-card-title {
    font-family: 'Freeman', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
    line-height: 1.3;
}

.otbt-post-card-excerpt {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.75;
    line-height: 1.5;
}

/* ----------------------------------------------------------
   ARCHIVE CARD-FRAMED IMAGES (category/blog/projects listings)
   Mirrors the front-page image-card style.
   ---------------------------------------------------------- */
.otbt-archive-card {
    position: relative;
    width: clamp(340px, 80%, 700px);
    aspect-ratio: 732 / 516;
    margin: 0 auto 24px;
}

.otbt-archive-card-link {
    display: block;
    position: relative;
    width: 121%;
    height: 109%;
    left: -3.5%;
    top: -3%;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* Entrance animation with rotation */
.otbt-archive-card-1 .otbt-archive-card-link { transform: rotate(-3deg); }
.otbt-archive-card-2 .otbt-archive-card-link { transform: rotate(2.5deg); }
.otbt-archive-card-3 .otbt-archive-card-link { transform: rotate(-2deg); }
.otbt-archive-card-4 .otbt-archive-card-link { transform: rotate(3.5deg); }
.otbt-archive-card-5 .otbt-archive-card-link { transform: rotate(-4deg); }

/* Float animation */
.otbt-archive-card-1 .otbt-archive-card-link { animation: otbt-archive-float 5.5s ease-in-out 0.1s infinite; }
.otbt-archive-card-2 .otbt-archive-card-link { animation: otbt-archive-float 5.5s ease-in-out 0.4s infinite; }
.otbt-archive-card-3 .otbt-archive-card-link { animation: otbt-archive-float 5.5s ease-in-out 0.7s infinite; }
.otbt-archive-card-4 .otbt-archive-card-link { animation: otbt-archive-float 5.5s ease-in-out 1.0s infinite; }
.otbt-archive-card-5 .otbt-archive-card-link { animation: otbt-archive-float 5.5s ease-in-out 0.2s infinite; }

@keyframes otbt-archive-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

/* Hover: straighten, pause float */
.otbt-archive-card-link:hover {
    transform: rotate(0deg) !important;
    animation-play-state: paused !important;
}

/* Background colored shape */
.otbt-archive-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 10.3% / 14.6%;
}

/* Image area – inset with rounded corners */
.otbt-archive-card-img {
    position: absolute;
    top: 4.9%; left: 3.5%;
    width: 92.7%; height: 90.1%;
    border-radius: 9% / 14%;
    overflow: hidden;
}

.otbt-archive-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Thin colored frame */
.otbt-archive-card-frame {
    position: absolute;
    top: -3.73%;
    left: -2.85%;
    width: 105.6%;
    height: 107.7%;
    border-radius: 12% / 16%;
    border-style: solid;
    border-width: 4px;
    box-sizing: border-box;
    pointer-events: none;
}

@media (max-width: 768px) {
    .otbt-archive-card {
        width: clamp(280px, 92%, 560px);
    }
}

@media (max-width: 480px) {
    .otbt-archive-card {
        width: clamp(260px, 95%, 480px);
    }
}

/* GeneratePress "Read more" links – yellow pill style (matches .otbt-cta-button) */
a.read-more,
a.read-more.button,
a.read-more.content-read-more {
    display: inline-block;
    background: #FFE726 !important;
    color: #1a1a1a !important;
    font-family: 'Freeman', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    padding: 15px 49px;
    border: none !important;
    border-radius: 60px;
    text-decoration: none !important;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.read-more::after,
a.read-more.button::after,
a.read-more.content-read-more::after {
    content: ' \2192';
}

a.read-more:hover,
a.read-more:focus,
a.read-more.button:hover,
a.read-more.button:focus,
a.read-more.content-read-more:hover,
a.read-more.content-read-more:focus {
    background: #f5da00 !important;
    color: #1a1a1a !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.10);
}

/* ----------------------------------------------------------
   SINGLE-POST CARD-FRAMED IMAGES
   Reuses archive-card inner components (bg, img, frame).
   Mobile: in-flow. Desktop: floated left into sidebar area.
   ---------------------------------------------------------- */
.otbt-single-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 732 / 516;
    margin: 24px auto;
    clear: both;
}

.otbt-single-card-inner {
    display: block;
    position: relative;
    width: 121%;
    height: 109%;
    left: -15%;
    top: -15%;
    transition: transform 0.4s ease;
}

/* Rotation per card variant */
.otbt-single-card-1 .otbt-single-card-inner { transform: rotate(-3deg); }
.otbt-single-card-2 .otbt-single-card-inner { transform: rotate(2.5deg); }
.otbt-single-card-3 .otbt-single-card-inner { transform: rotate(-2deg); }
.otbt-single-card-4 .otbt-single-card-inner { transform: rotate(3.5deg); }
.otbt-single-card-5 .otbt-single-card-inner { transform: rotate(-4deg); }

/* Float animation */
.otbt-single-card-1 .otbt-single-card-inner { animation: otbt-archive-float 5.5s ease-in-out 0.1s infinite; }
.otbt-single-card-2 .otbt-single-card-inner { animation: otbt-archive-float 5.5s ease-in-out 0.4s infinite; }
.otbt-single-card-3 .otbt-single-card-inner { animation: otbt-archive-float 5.5s ease-in-out 0.7s infinite; }
.otbt-single-card-4 .otbt-single-card-inner { animation: otbt-archive-float 5.5s ease-in-out 1.0s infinite; }
.otbt-single-card-5 .otbt-single-card-inner { animation: otbt-archive-float 5.5s ease-in-out 0.2s infinite; }

/* Hide original figure styling inside the card */
.otbt-single-card .wp-block-image,
.otbt-single-card figure {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.otbt-single-card .wp-block-image a,
.otbt-single-card figure a {
    display: block;
    width: 100%;
    height: 100%;
}

.otbt-single-card .wp-block-image img,
.otbt-single-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.otbt-single-card figcaption {
    display: none;
}

/* Featured image on single post – remove default wrapper styling */
.single-post .featured-image.page-header-image-single {
    background: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.single-post .otbt-single-card-featured {
    max-width: 520px;
}

/* Post title – left-aligned */
.single-post .entry-header {
    text-align: left;
}

/* Desktop: float into the empty left sidebar area */
@media (min-width: 769px) {
    .single-post .entry-content .otbt-single-card,
    .page:not(.otbt-is-home) .entry-content .otbt-single-card {
        float: left;
        width: 368px;
        margin: 0 28px 20px 0;
        margin-left: calc(-61% - 20px);
    }
    .single-post .entry-content .otbt-single-card-portrait,
    .page:not(.otbt-is-home) .entry-content .otbt-single-card-portrait {
        width: 260px;
    }
}

/* Portrait variant – for tall / portrait images
   Usage: add class "otbt-portrait" to the WP image block.
   Swaps aspect-ratio, border-radius axes and inset positions
   so the rounded corners stay visually identical. */
.otbt-single-card-portrait {
    aspect-ratio: 516 / 732;
    max-width: 360px;
}
.otbt-single-card-portrait .otbt-single-card-inner {
    width: 109%;
    height: 121%;
    left: 13%;
}
.otbt-single-card-portrait .otbt-archive-card-bg {
    border-radius: 14.6% / 10.3%;
}
.otbt-single-card-portrait .otbt-archive-card-img {
    top: 3.5%; left: 4.9%;
    width: 90.1%; height: 92.7%;
    border-radius: 14% / 9%;
}
.otbt-single-card-portrait .otbt-archive-card-frame {
    top: -2.73%;
    left: -4.85%;
    width: 109.4%;
    height: 105.5%;
    border-radius: 15% / 11%;
}

@media (min-width: 769px) {
    .single-post .entry-content .otbt-single-card-portrait,
    .page:not(.otbt-is-home) .entry-content .otbt-single-card-portrait {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .otbt-single-card {
        max-width: 360px;
    }
    .otbt-single-card-portrait {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .otbt-single-card {
        max-width: 300px;
    }
    .otbt-single-card-portrait {
        max-width: 240px;
    }
}



.wp-block-video, .wp-block-embed  {
    border-radius: 20px;
    margin-bottom: 15px;
}

.wp-block-video video {
    border-radius: 20px;
}

@media (max-width: 1024px) {
    .otbt-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .otbt-post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.otbt-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.15;
}

.otbt-highlight {
    color: #FFE726;
}

/* ----------------------------------------------------------
   SECTION LAYOUT (below the fold content)
   ---------------------------------------------------------- */
.otbt-section {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 2;
}

.otbt-section-heading {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    color: #1a1a1a;
    margin-bottom: 48px;
    line-height: 1.15;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.otbt-section-heading::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -16px;
    width: 270px;
    height: 60px;
    background: url('/wp-content/plugins/otbt-webseite/assets/diagonal_lines.svg') no-repeat center / contain;
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

.otbt-section-tagline {
    text-align: center;
    font-size: var(--otbt-body-text);
    max-width: 600px;
    margin: 40px auto 0;
    color: #333;
}

.subheader {
    text-align: center;
    font-size: var(--otbt-body-text);
    max-width: 660px;
    margin: -24px auto 48px;
    color: #444;
    line-height: 1.7;
}

/* --- Why Games --- */
.otbt-section-whygames {
    background: #f9f9f7;
    border-radius: 32px;
    max-width: 1200px;
    padding: 64px 48px !important;
    margin-top: 40px;
}

.otbt-whygames-columns {
    gap: 36px;
}

.otbt-whygames-col h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.otbt-whygames-col p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.65;
}

/* --- Services --- */
.otbt-services-columns {
    gap: 48px;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: flex-start;
}

.otbt-service-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto !important;
    width: auto !important;
}

/* Card-style heading block – same size as the image cards, ~10% smaller */
.otbt-service-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: clamp(90px, 12.5vw, 288px);
    aspect-ratio: 516 / 732;
    margin: 0 0 24px 0;
    padding: 24px 20px;
    box-sizing: border-box;
    font-size: clamp(0.8rem, 1.8vw, 1.8rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: relative;
    z-index: 0;
    border-radius: 14% / 10%;
    overflow: hidden;
}

/* Image layer – covers the card area (uses ::before so it sits between BG and text) */
.otbt-service-card h3::before {
    content: '';
    position: absolute;
    top: 3.5%; left: 4.9%;
    width: 90.1%; height: 92.7%;
    border-radius: 14% / 9%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .8;
}

.otbt-service-card:nth-child(1) h3::before {
    background-image: url('cards/services1.png');
}
.otbt-service-card:nth-child(2) h3::before {
    background-image: url('cards/services2.webp');
}
.otbt-service-card:nth-child(3) h3::before {
    background-image: url('cards/services3.webp');
}

/* Colored outline frame (via pseudo-element) */
.otbt-service-card h3::after {
    content: '';
    position: absolute;
    top: 5.15%;  left: 8.27%;
    width: 83.4%; height: 89%;
    border-radius: 14% / 8%;
    border: 4px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}

/* Rotation + floating animation per card */
.otbt-service-card h3 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.otbt-service-card h3.otbt-svc-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in */
.otbt-service-card:nth-child(1) h3 { transition-delay: 0s; }
.otbt-service-card:nth-child(2) h3 { transition-delay: 0.15s; }
.otbt-service-card:nth-child(3) h3 { transition-delay: 0.3s; }

/* Animations always run, fill-mode backwards ensures rotation during delay */
.otbt-service-card:nth-child(1) h3 {
    animation: otbt-svc-hover-1 5.5s ease-in-out infinite backwards;
}
.otbt-service-card:nth-child(2) h3 {
    animation: otbt-svc-hover-2 5.5s ease-in-out 0.4s infinite backwards;
    margin-top: -20px;
}
.otbt-service-card:nth-child(3) h3 {
    animation: otbt-svc-hover-3 5.5s ease-in-out 0.8s infinite backwards;
}

@keyframes otbt-svc-hover-1 {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50%      { transform: rotate(-4deg) translateY(-12px); }
}
@keyframes otbt-svc-hover-2 {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50%      { transform: rotate(3deg) translateY(-12px); }
}
@keyframes otbt-svc-hover-3 {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50%      { transform: rotate(-5deg) translateY(-12px); }
}

/* Color scheme per card – BG color on h3 itself, image on ::before, frame on ::after */
.otbt-service-card:nth-child(1) h3 { background-color: #94BDE8; }
.otbt-service-card:nth-child(1) h3::after  { border-color: #FDBF30; }

.otbt-service-card:nth-child(2) h3 { background-color: #EFA4A4; }
.otbt-service-card:nth-child(2) h3::after  { border-color: #CAA9EE; }

.otbt-service-card:nth-child(3) h3 { background-color: #ADEFCC; }
.otbt-service-card:nth-child(3) h3::after  { border-color: #EFA4A4; }

.otbt-service-card p {
    font-size: var(--otbt-body-text);
    color: black;
    line-height: 1.65;
    max-width: 320px;
}

.otbt-service-clients {
    font-size: 0.82rem !important;
    color: #888 !important;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* --- Buttons --- */

/* General WP block buttons */
.wp-block-button__link,
a.wp-block-button__link {
    background: #FFE726 !important;
    color: #1a1a1a !important;
    font-family: 'Freeman', sans-serif;
    font-weight: 400;
    font-size: 1.4rem !important;
    padding: 17px 57px !important;
    border-radius: 60px;
    border: none;
    text-decoration: none !important;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button__link::after,
a.wp-block-button__link::after {
    content: ' \2192';
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
a.wp-block-button__link:hover,
a.wp-block-button__link:focus {
    background: #f5da00 !important;
    color: #1a1a1a !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.10);
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link,
a.wp-block-button__link.is-style-outline {
    background: transparent !important;
    color: #1a1a1a !important;
    border: 2.5px solid #1a1a1a;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
a.wp-block-button__link.is-style-outline:hover {
    background: #FFE726 !important;
    border-color: #FFE726;
    transform: translateY(-2px);
}

/* OTBT CTA button */
.otbt-cta-button {
    display: inline-block;
    background: #FFE726;
    color: #1a1a1a !important;
    font-family: 'Freeman', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    padding: 24px 64px;
    border-radius: 60px;
    text-decoration: none !important;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.otbt-cta-button:hover {
    background: #f5da00;
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.10);
}

.otbt-cta-button-outline {
    display: inline-block;
    background: transparent;
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 32px;
    border-radius: 60px;
    border: 2px solid #1a1a1a;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.otbt-cta-button-outline:hover {
    background: #FFE726;
    border-color: #FFE726;
}

/* --- Projects --- */
.otbt-project-item {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px !important;
    border: 2px solid #eee;
    transition: border-color 0.3s ease;
}

.otbt-project-item:hover {
    border-color: #94BDE8;
}

.otbt-project-item h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.otbt-project-item h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.otbt-project-item h3 a:hover {
    color: #FDBF30;
}

.otbt-project-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.65;
}

.otbt-project-tag {
    font-size: 0.8rem !important;
    color: #999 !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 16px;
}

/* --- Awards list (below marquee) --- */
.otbt-awards-list {
    font-size: 0.9rem;
    color: #666 !important;
    line-height: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* The .otbt-marquee wrapper: hides overflow, full viewport width */
.otbt-marquee {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 32px;
    cursor: grab;
}

.otbt-marquee:active {
    cursor: grabbing;
}

.otbt-marquee.is-dragging {
    user-select: none;
    -webkit-user-select: none;
}

.otbt-marquee:last-child {
    margin-bottom: 0;
}

/* The track is built by JS: flex row, no wrapping (logo marquee) */
.otbt-marquee-track {
    display: flex;
    will-change: transform;
}

/* --- Testimonial carousel (sliding) --- */
.otbt-marquee.otbt-carousel {
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    cursor: default;
}

.otbt-marquee.otbt-carousel:active {
    cursor: default;
}

.otbt-carousel-viewport {
    overflow: hidden;
}

.otbt-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each card takes up 1/3 of viewport width (with gap accounted for) */
.otbt-carousel .otbt-marquee-card {
    flex: 0 0 calc((100% - 48px) / 3);
    margin-right: 24px;
}

/* --- Testimonial cards --- */
.otbt-marquee-card {
    flex-shrink: 0;
    background: #f5f5f0;
    border-radius: 16px;
    padding: 0px !important;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Override Gutenberg inner container widths inside cards */
.otbt-marquee-card > .wp-block-group__inner-container,
.otbt-marquee-card > div {
    max-width: none !important;
    width: 100%;
}

.otbt-marquee-card .wp-block-image {
    margin: 0;
}

.otbt-marquee-card .wp-block-image img,
.otbt-marquee-card > img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.otbt-marquee-card .wp-block-quote,
.otbt-marquee-card blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.otbt-marquee-card .wp-block-quote p,
.otbt-marquee-card blockquote p,
.otbt-marquee-card p {
    font-size: 0.92rem !important;
    color: #333 !important;
    line-height: 1.6;
    margin: 0 0 8px;
    font-style: italic;
}

.otbt-marquee-card .wp-block-quote cite,
.otbt-marquee-card blockquote cite,
.otbt-marquee-card cite {
    font-size: 0.8rem !important;
    color: #1a1a1a !important;
    font-style: normal;
    font-weight: 600;
    display: block;
}

/* --- Carousel dot navigation --- */
.otbt-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 0;
}

.otbt-carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #d4d4d0;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease;
}

.otbt-carousel-dot:hover {
    background: #a0a09a;
    transform: scale(1.15);
}

.otbt-carousel-dot.is-active {
    background: #1a1a1a;
    transform: scale(1.15);
}

/* --- Logo marquee: two interlocking rows from one block --- */
.otbt-marquee:has(.otbt-marquee-logo) {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* --- Logo marquee row --- */
/* Each logo is a Group block with class otbt-marquee-logo */
.otbt-marquee-logo {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    margin-right: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Constrain every element in the chain so height doesn't blow up */
.otbt-marquee-logo .wp-block-group__inner-container {
    padding: 15px !important;
    max-height: 100%;
    box-sizing: border-box;
}

.otbt-marquee-logo .wp-block-image,
.otbt-marquee-logo figure.wp-block-image,
.otbt-marquee-logo figure {
    margin: 0;
    max-height: 100%;
}

.otbt-marquee-logo a,
.otbt-marquee-logo picture {
    display: block;
    max-height: 100%;
}

.otbt-marquee-logo img {
    max-width: 170px;
    max-height: 90px;
    object-fit: contain;
    aspect-ratio: auto !important;
    filter: grayscale(1);
    opacity: 0.4;
    transition: opacity 0.3s, filter 0.3s;
}

/* Override inline width/height only on images that have them */
.otbt-marquee-logo img[style*="width"] {
    width: auto !important;
    height: auto !important;
}

.otbt-marquee-logo img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* --- Team --- */
.otbt-section-team {
    text-align: center;
}

.otbt-section-team .otbt-section-heading {
    margin-bottom: 0;
}

.otbt-team-grid {
    gap: 24px;
}

.otbt-team-member {
    background: #f9f9f7;
    border-radius: 16px;
    padding: 24px 16px !important;
    text-align: center;
}

.otbt-team-member p {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

/* --- CTA Section --- */
.otbt-section-cta {
    max-width: 1200px;
    background: #fff;
    border: 4px solid #adefcc;
    border-radius: 32px;
    padding: 80px 48px !important;
    margin-bottom: 60px;
    position: relative;
}

.otbt-cta-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 2.4rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.otbt-section-cta .otbt-cta-button {
    background: #1a1a1a;
    color: #FFE726 !important;
}

.otbt-section-cta .otbt-cta-button:hover {
    background: #333;
}

/* --- Responsive: Sections --- */
@media (max-width: 768px) {
    .otbt-section-heading {
        font-size: 1.8rem;
    }

    .otbt-section-heading::after {
        width: 80px;
        height: 36px;
        right: -16px;
        bottom: -4px;
    }

    .otbt-section-whygames,
    .otbt-section-cta {
        padding: 40px 24px !important;
        border-radius: 20px;
    }

    .otbt-marquee-card {
        padding: 20px;
    }

    .otbt-carousel .otbt-marquee-card {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .otbt-marquee-logo {
        width: 100px;
        height: 40px;
        margin-right: 32px;
    }

    .otbt-project-item {
        padding: 24px 20px !important;
    }

    .otbt-services-columns {
        flex-wrap: wrap !important;
        gap: 32px;
    }

    .otbt-service-card h3 {
        width: clamp(120px, 38vw, 220px);
        font-size: clamp(0.9rem, 4.5vw, 1.5rem);
    }

    .otbt-cta-heading {
        font-size: 1.6rem;
    }
}

/* ----------------------------------------------------------
   IMAGE CARDS (SVG-replicated frame)
   Proportions from card_template.svg: 516×732
   BG radius: 75px (14.5%), Image radius: 68px (13.2%), Frame radius: 58px (11.2%)
   ---------------------------------------------------------- */
.otbt-image-card {
    width: clamp(100px, 14vw, 320px);
    aspect-ratio: 516 / 732;
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

/* Stagger entrance per card – each has its own keyframes to preserve rotation */
.otbt-image-card-1 {
    animation: otbt-card-enter-1 0.8s ease-out 0.1s forwards,
               otbt-card-hover-1 5.5s ease-in-out 0.9s infinite;
}
.otbt-image-card-2 {
    animation: otbt-card-enter-2 0.8s ease-out 0.3s forwards,
               otbt-card-hover-2 5.5s ease-in-out 1.1s infinite;
}
.otbt-image-card-3 {
    animation: otbt-card-enter-3 0.8s ease-out 0.5s forwards,
               otbt-card-hover-3 5.5s ease-in-out 1.3s infinite;
}
.otbt-image-card-4 {
    animation: otbt-card-enter-4 0.8s ease-out 0.7s forwards,
               otbt-card-hover-4 5.5s ease-in-out 1.5s infinite;
}
.otbt-image-card-5 {
    animation: otbt-card-enter-5 0.8s ease-out 0.4s forwards,
               otbt-card-hover-5 6.2s ease-in-out 1.2s infinite;
}

@keyframes otbt-card-enter-1 {
    0%   { opacity: 0; transform: rotate(8deg) translateY(60px); }
    100% { opacity: 1; transform: rotate(8deg) translateY(0); }
}
@keyframes otbt-card-hover-1 {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50%      { transform: rotate(8deg) translateY(-12px); }
}

@keyframes otbt-card-enter-2 {
    0%   { opacity: 0; transform: rotate(-5deg) translateY(60px); }
    100% { opacity: 1; transform: rotate(-5deg) translateY(0); }
}
@keyframes otbt-card-hover-2 {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50%      { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes otbt-card-enter-3 {
    0%   { opacity: 0; transform: rotate(-4deg) translateY(60px); }
    100% { opacity: 1; transform: rotate(-4deg) translateY(0); }
}
@keyframes otbt-card-hover-3 {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50%      { transform: rotate(-4deg) translateY(-12px); }
}

@keyframes otbt-card-enter-4 {
    0%   { opacity: 0; transform: rotate(6deg) translateY(60px); }
    100% { opacity: 1; transform: rotate(6deg) translateY(0); }
}
@keyframes otbt-card-hover-4 {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50%      { transform: rotate(6deg) translateY(-12px); }
}

@keyframes otbt-card-enter-5 {
    0%   { opacity: 0; transform: rotate(-7deg) translateY(60px); }
    100% { opacity: 1; transform: rotate(-7deg) translateY(0); }
}
@keyframes otbt-card-hover-5 {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    40%      { transform: rotate(-7deg) translateY(-9px); }
    70%      { transform: rotate(-7deg) translateY(-5px); }
}

.otbt-image-card-bg,
.otbt-image-card-img,
.otbt-image-card-frame {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Background colored shape */
.otbt-image-card-bg {
    border-radius: 14.6% / 10.3%;
}

/* Image area – slightly inset, with rounded corners */
.otbt-image-card-img {
    top: 3.5%;  left: 4.9%;
    width: 90.1%; height: 92.7%;
    border-radius: 14% / 9%;
    overflow: hidden;
    opacity: .75;
}

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

/* Thin colored frame (inside the BG, outside the image) */
.otbt-image-card-frame {
    top: 5.15%;  left: 8.27%;
    width: 83.4%; height: 89%;
    border-radius: 14% / 8%;
    border-style: solid;
    border-width: 4px;
    box-sizing: border-box;
}

/* --- Color scheme: Card 1 – blue BG, orange frame --- */
.otbt-image-card-1 .otbt-image-card-bg    { background: #94BDE8; }
.otbt-image-card-1 .otbt-image-card-frame  { border-color: #FDBF30; }

/* --- Color scheme: Card 2 – pink BG, purple frame --- */
.otbt-image-card-2 .otbt-image-card-bg    { background: #EFA4A4; }
.otbt-image-card-2 .otbt-image-card-frame  { border-color: #CAA9EE; }

/* --- Color scheme: Card 3 – purple BG, blue frame --- */
.otbt-image-card-3 .otbt-image-card-bg    { background: #CAA9EE; }
.otbt-image-card-3 .otbt-image-card-frame  { border-color: #94BDE8; }

/* --- Color scheme: Card 4 – yellow BG, green frame --- */
.otbt-image-card-4 .otbt-image-card-bg    { background: #FDBF30; }
.otbt-image-card-4 .otbt-image-card-frame  { border-color: #ADEFCC; }

/* --- Color scheme: Card 5 – green BG, pink frame --- */
.otbt-image-card-5 .otbt-image-card-bg    { background: #ADEFCC; }
.otbt-image-card-5 .otbt-image-card-frame  { border-color: #EFA4A4; }

/* ----------------------------------------------------------
   RESPONSIVE – HD (1080p–1440p range)
   ---------------------------------------------------------- */
@media (max-width: 2200px) {
    .frontpageLogo { scale: 0.65; }
    #makeADifference { scale: 1.05 !important; }

    .otbt-image-card {
        width: clamp(90px, 12vw, 240px);
    }

    .otbt-service-card h3 {
        width: clamp(161px, 11vw, 216px);
    }
}

/* --- Positioning per mockup --- */
.otbt-image-card-1 {
    top: 30%;
    left: 13%;
    transform: rotate(8deg);
    z-index: 2;
    scale: 1.1;
}

.otbt-image-card-2 {
    top: 35%;
    right: 8%;
    transform: rotate(-5deg);
    z-index: 2;
    scale: 1.1;
}

.otbt-image-card-3 {
    top: 54%;
    left: 19%;
    transform: rotate(-4deg);
    z-index: 1;
    scale: 1.1;
}

.otbt-image-card-4 {
    top: 58%;
    right: 16%;
    transform: rotate(6deg);
    z-index: 2;
    scale: 1.1;
}

.otbt-image-card-5 {
    top: 16%;
    right: 19%;
    transform: rotate(-7deg);
    z-index: 1;
    scale: 1.1;
}

/* ----------------------------------------------------------
   RESPONSIVE – Tablet
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .otbt-image-card {
        width: clamp(90px, 16vw, 260px);
    }

    .otbt-image-card-1 {
        left: -2%;
    }

    .otbt-image-card-2 {
        right: -2%;
    }

    .otbt-image-card-5 {
        right: -1%;
    }

    .otbt-home-line-corner {
        width: 90%;
    }

    /* hero-line: keep consistent anchor, just adjust position */
    .otbt-home-hero-line {
        width: 90%;
        bottom: -35vh;
    }

    .otbt-sub-blob-yellow {
        display: none;
    }

    .otbt-home-circle-big {
        width: 25%;
    }

    .otbt-home-diagonal {
        display: none;
    }
}

/* ----------------------------------------------------------
   RESPONSIVE – Mobile
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .frontpageLogo { scale: 0.7; }
    #makeADifference { scale: 0.95 !important; }

    .otbt-image-card {
        width: clamp(90px, 28vw, 180px);
        animation-duration: 0.8s, 6s !important;
    }

    /* Cards partially offscreen, framing the logo */
    .otbt-image-card-1 {
        top: 25%;
        left: -6%;
    }

    .otbt-image-card-2 {
        top: 34%;
        right: -6%;
    }

    .otbt-image-card-3 {
        top: 55%;
        left: -4%;
    }

    .otbt-image-card-4 {
        top: 58%;
        right: -5%;
    }

    .otbt-image-card-5 {
        top: 14%;
        right: -2%;
    }

    .otbt-home-line-corner {
        width: 100%;
        left: -20%;
    }

    .otbt-home-hero-line {
        width: 100%;
        bottom: -30vh;
        right: -8%;
    }

    .otbt-sub-line-horizontal {
        width: 120vw;
        left: 0;
    }

    .otbt-is-subpage h1.page-title,
    .otbt-is-subpage h1.entry-title {
        font-size: 1.8rem;
    }

    .otbt-is-subpage h2.entry-title::after {
        width: 80px;
        height: 36px;
        left: -16px;
        top: -4px;
    }

    .otbt-home-dots-v,
    .otbt-sub-dots-v      { width: 50px; }
    .otbt-home-blob-blue,
    .otbt-sub-blob-blue   { width: 80px; }
    .otbt-sub-diagonal    { width: 120px; opacity: 0.25; }

    .otbt-circle-1 { width: 40px; height: 40px; }
    .otbt-circle-2 { width: 28px; height: 28px; }
    .otbt-circle-3 { width: 35px; height: 35px; }

    .otbt-blob-big1-layer { width: 280px; }

    .otbt-home-circle-big { width: 20%; }
    .otbt-home-diagonal   { display: none; }
}

/* ----------------------------------------------------------
   RESPONSIVE – Small phone
   ---------------------------------------------------------- */
@media (max-width: 480px) {
    .frontpageLogo { scale: 0.65; }
    #makeADifference { scale: 1.05 !important; }

    .otbt-image-card {
        width: clamp(70px, 25vw, 130px);
    }

    .otbt-image-card-1 {
        top: 22%;
        left: -10%;
    }

    .otbt-image-card-2 {
        top: 26%;
        right: -10%;
    }

    .otbt-image-card-3 {
        top: 52%;
        left: -7%;
    }

    .otbt-image-card-4 {
        top: 56%;
        right: -8%;
    }

    .otbt-image-card-5 {
        top: 6%;
        right: -5%;
    }

    .otbt-home-dots-v,
    .otbt-home-blob-blue,
    .otbt-sub-diagonal,
    .otbt-sub-blob-blue,
    .otbt-circle-2,
    .otbt-circle-3,
    .otbt-circle-sub-1,
    .otbt-circle-sub-2 {
        display: none;
    }
}

/* ----------------------------------------------------------
   Text Rotator (#makeADifference)
   ---------------------------------------------------------- */
#makeADifference .otbt-rotator {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
}

#makeADifference .otbt-rotator-inner {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
                opacity  0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#makeADifference .otbt-rotator-inner.otbt-slide-out {
    transform: translateY(-110%);
    opacity: 0;
}

#makeADifference .otbt-rotator-inner.otbt-slide-in-prepare {
    transform: translateY(110%);
    opacity: 0;
    transition: none;
}

#makeADifference .otbt-rotator-inner.otbt-slide-in {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================
   EDITORIAL LANDING PAGE – single-column, text-driven
   ========================================================== */

.otbt-editorial {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 28px 80px;
    position: relative;
    z-index: 2;
}

/* --- Opening statement --- */
.otbt-ed-opening {
    padding: 80px 0 60px;
    border-bottom: 2px solid #eee;
}

.otbt-ed-lead {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #1a1a1a;
    font-weight: 400;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 28px 80px;
    position: relative;
    z-index: 2;
}

/* --- Sections --- */
.otbt-ed-section {
    padding: 64px 0;
    border-bottom: 1px solid #eee;
}

.otbt-ed-section:last-of-type {
    border-bottom: none;
}

.otbt-ed-section p {
    font-size: var(--otbt-body-text);
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.otbt-ed-section p:last-child {
    margin-bottom: 0;
}

/* --- Provocation heading --- */
.otbt-ed-provocation {
    font-family: "Freeman", "Georgia", serif;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 40px;
    max-width: 580px;
}

/* --- Regular section heading --- */
.otbt-ed-heading {
    font-family: "Freeman", "Georgia", serif;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

/* --- Inline quote --- */
.otbt-ed-quote-section {
    background: #f9f9f7;
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
    border-radius: 16px;
    border-bottom: none;
}

.otbt-ed-quote {
    border: none;
    margin: 0;
    padding: 0;
}

.otbt-ed-quote p {
    font-size: var(--otbt-body-text);
    font-style: italic;
    color: #444;
    line-height: 1.75;
}

.otbt-ed-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: #888;
    margin-top: 16px;
    font-weight: 600;
}

/* --- Trust / social proof --- */
.otbt-ed-trust {
    text-align: center;
    border-bottom: none;
}

.otbt-ed-trust-label {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999 !important;
    margin-bottom: 8px !important;
}

.otbt-ed-trust-names {
    font-size: 0.95rem !important;
    color: #555 !important;
    line-height: 2 !important;
}

/* --- CTA --- */
.otbt-ed-cta {
    text-align: center;
    padding: 80px 0 0;
}

.otbt-ed-cta h2 {
    font-family: "Freeman", "Georgia", serif;
    font-size: 2.4rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.otbt-ed-cta p {
    font-size: var(--otbt-body-text);
    line-height: 1.7;
    color: #444;
    max-width: 520px;
    margin: 0 auto 16px;
}

.otbt-ed-cta-sub {
    font-size: 0.95rem !important;
    color: #888 !important;
    font-style: italic;
    margin-bottom: 32px !important;
}

/* --- Editorial responsive --- */
@media (max-width: 768px) {
    .otbt-editorial {
        padding: 0 20px 60px;
    }

    .otbt-ed-opening {
        padding: 60px 0 40px;
    }

    .otbt-ed-lead {
        font-size: 1.15rem;
    }

    .otbt-ed-provocation {
        font-size: 1.7rem;
    }

    .otbt-ed-section {
        padding: 48px 0;
    }

    .otbt-ed-cta h2 {
        font-size: 1.8rem;
    }

    .otbt-ed-quote-section {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .otbt-ed-provocation {
        font-size: 1.45rem;
    }

    .otbt-ed-lead {
        font-size: 1.05rem;
    }

    .otbt-ed-cta h2 {
        font-size: 1.5rem;
    }
}

/* ----------------------------------------------------------
   PROCESS / "Wie wir arbeiten" – scroll-locked storytelling
   ---------------------------------------------------------- */

/* Process section – normal flow, no sticky */
.otbt-process-scroll {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.otbt-process-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section heading */
.otbt-process-heading {
    text-align: center;
    font-weight: 900;
    font-size: 2.6rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.15;
}

/* Lead sentence */
.otbt-process-lead {
    text-align: center;
    font-size: 1.45rem;
    max-width: 740px;
    color: #444;
    margin: 0 auto 56px;
    line-height: 1.6;
}

/* SVG timeline */
.otbt-process-svg-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.otbt-process-svg-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Active (yellow) overlay line drawn via JS */
#otbt-process-line-active {
    stroke: #FFE726;
    stroke-width: 6;
}

/* Icon swap: positioned absolutely over the SVG line */
.otbt-process-icon {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
}

.otbt-process-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.otbt-process-icon-inactive,
.otbt-process-icon-active {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.otbt-process-icon-inactive {
    opacity: 1;
}

.otbt-process-icon-active {
    opacity: 0;
    transform: scale(0.6);
}

.otbt-process-icon.is-active .otbt-process-icon-inactive {
    opacity: 0;
}

.otbt-process-icon.is-active .otbt-process-icon-active {
    opacity: 1;
    transform: scale(1);
}

/* Phase text cards – below the SVG */
.otbt-process-phases {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
    margin-top: 40px;
}

.otbt-process-phase {
    flex: 0 0 22%;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.otbt-process-phase.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay per phase */
.otbt-process-phase:nth-child(1) { transition-delay: 0s; }
.otbt-process-phase:nth-child(2) { transition-delay: 0.12s; }
.otbt-process-phase:nth-child(3) { transition-delay: 0.24s; }
.otbt-process-phase:nth-child(4) { transition-delay: 0.36s; }

.otbt-process-phase-num {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFE726;
    margin-bottom: 8px;
}

.otbt-process-phase h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.otbt-process-phase p {
    font-size: var(--otbt-body-text);
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* ---- Responsive: process section ---- */
@media (max-width: 1024px) {
    .otbt-process-heading {
        font-size: 2rem;
    }

    .otbt-process-phase h3 {
        font-size: 1.15rem;
    }

    .otbt-process-phase p {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .otbt-process-heading {
        font-size: 1.7rem;
    }

    .otbt-process-lead {
        font-size: 1rem;
        padding: 0 20px;
    }

    .otbt-process-svg-wrap {
        width: 95%;
    }

    .otbt-process-phases {
        flex-wrap: wrap;
        gap: 16px;
        padding: 0 3%;
    }

    .otbt-process-phase {
        flex: 0 0 46%;
    }

    .otbt-process-phase p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .otbt-process-heading {
        font-size: 1.45rem;
    }

    .otbt-process-phases {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .otbt-process-phase {
        flex: 0 0 auto;
        width: 85%;
    }
}

/* ----------------------------------------------------------
   TEAM SECTION
   ---------------------------------------------------------- */

/* Target the columns block that contains social links = team grid */
.wp-block-columns:has(.wp-block-social-links) {
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 24px;
}

.wp-block-columns:has(.wp-block-social-links) > .wp-block-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Team photos */
.wp-block-columns:has(.wp-block-social-links) .wp-block-image {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
}

.wp-block-columns:has(.wp-block-social-links) .wp-block-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Team name */
.wp-block-columns:has(.wp-block-social-links) h3 {
    font-family: "Freeman", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 2px;
    color: #1a1a1a;
}

/* Team pronouns */
.wp-block-columns:has(.wp-block-social-links) .otbt-team-pronouns {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-style: italic;
}

/* Team role */
.wp-block-columns:has(.wp-block-social-links) > .wp-block-column > p:not(.otbt-team-pronouns) {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Social link icons */
.wp-block-columns:has(.wp-block-social-links) .wp-block-social-links {
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.wp-block-columns:has(.wp-block-social-links) .wp-social-link {
    background: none !important;
    color: #9fc4ea !important;
    border: none;
    padding: 0;
    margin: 0;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wp-block-columns:has(.wp-block-social-links) .wp-social-link a {
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit !important;
}

.wp-block-columns:has(.wp-block-social-links) .wp-social-link a svg {
    width: 22px;
    height: 22px;
    fill: currentColor !important;
}

.wp-block-columns:has(.wp-block-social-links) .wp-social-link:hover {
    transform: scale(1.15);
    color: #FFE726 !important;
}

/* ---- Responsive: team section ---- */
@media (max-width: 768px) {
    .wp-block-columns:has(.wp-block-social-links) {
        flex-wrap: wrap !important;
        gap: 48px 24px;
    }

    .wp-block-columns:has(.wp-block-social-links) > .wp-block-column {
        flex: 0 0 calc(50% - 12px) !important;
    }

    .wp-block-columns:has(.wp-block-social-links) .wp-block-image,
    .wp-block-columns:has(.wp-block-social-links) .wp-block-image img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .wp-block-columns:has(.wp-block-social-links) > .wp-block-column {
        flex: 0 0 100% !important;
    }
}

/* ============================================
   Footer horizontal line – decorative, bottom of page
   ============================================ */
.site-footer {
    position: relative;
}

.otbt-footer-line {
    position: absolute;
    bottom: -26px;
    right: -5px;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    /* transform: rotate(-16deg); */
}

.site-footer > div {
    position: relative;
    z-index: 1;
}
