/* fonts */
@font-face {
    font-family: 'Konsole';
    src: url('Konsole1.0-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Konsole-WideBold';
    src: url('Konsole1.0-WideBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-stretch: expanded;
}

@font-face {
    font-family: 'Konsole-Expanded';
    src: url('Konsole1.0-ExpandedBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-stretch: expanded;
}

@font-face {
    font-family: 'Konsole-Condensed';
    src: url('Konsole1.0-CondensedBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-stretch: condensed;
}

/* variables */
:root {
    --red: #e14d2d;
    --yellow: #DBA718;
    --green: #b8c600;
    --petrol: #01a598;
    --light-blue: #64b3cd;
    --purple: #a74e95;
    --dark-gray: #616161;
    --dark-gray-alpha: #61616150;

    --yellow-bg: linear-gradient(135deg, #c49510 0%, #DBA718 30%, #F5D76E 70%, #e8c235 100%);
    --red-bg: linear-gradient(135deg, #c43a1e 0%, #e14d2d 35%, #fc7354 70%, #e85d3a 100%);
    --green-bg: linear-gradient(135deg, #9aaa00 0%, #b8c600 35%, #d4e157 70%, #c6d42a 100%);
    --petrol-bg: linear-gradient(135deg, #018a7f 0%, #01a598 35%, #26d0ce 70%, #0fb8ad 100%);
    --light-blue-bg: linear-gradient(135deg, #4a9ab8 0%, #64b3cd 40%, #81c784 100%);
    --purple-bg: linear-gradient(135deg, #8e3d7e 0%, #a74e95 35%, #ce93d8 70%, #b868a8 100%);
    --white-bg: #ffffff;
    --dark-gray-bg: #616161;
    --container-vertical-padding: 120px;
    --container-width: 1280px;
    --container-horizontal-padding: max(20px, calc((95% - var(--container-width)) / 2));
    --container-padding: var(--container-vertical-padding) var(--container-horizontal-padding);

    --gap: 32px;
    --hl2p-gap: 32px;
    --p2hl-gap: 48px;
    --header-vertical-padding: 30px;
    --header-padding: var(--header-vertical-padding) var(--container-horizontal-padding);
    --footer-padding: calc( var(--container-vertical-padding)/2) var(--container-horizontal-padding);
    --copyright-padding: 40px var(--container-horizontal-padding);

}

/* headlines */
h1, h2, h3, h4 {
    font-family: 'Konsole-Expanded';
    font-stretch: expanded;
    font-weight: bold;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
}

h1 {
    font-size: 60px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 40px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 28px;
}

/* Depth on headlines over colored backgrounds */
.red-bg h1, .red-bg h2,
.yellow-bg h1, .yellow-bg h2,
.green-bg h1, .green-bg h2,
.petrol-bg h1, .petrol-bg h2,
.light-blue-bg h1, .light-blue-bg h2,
.purple-bg h1, .purple-bg h2,
.dark-gray-bg h1, .dark-gray-bg h2 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Gradient fill for strong elements inside headlines */
h1 strong, h2 strong, h3 strong, h4 strong {
    background: linear-gradient(45deg, var(--red), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Special gradient for strong elements on red backgrounds */
.red-bg h1 strong, .red-bg h2 strong, .red-bg h3 strong, .red-bg h4 strong {
    background: linear-gradient(45deg, var(--purple), var(--dark-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Add spacing between headlines and paragraphs, but not in flex layouts */
h1 + p, h2 + p, h3 + p, h4 + p {
    padding-top: var(--hl2p-gap);
}

h1 + h1, h1 + h2, h1 + h3, h1 + h4,
h2 + h1, h2 + h2, h2 + h3, h2 + h4,
h3 + h1, h3 + h2, h3 + h3, h3 + h4,
h4 + h1, h4 + h2, h4 + h3, h4 + h4 {
    padding-top: var(--p2hl-gap);
}

p + h1, p + h2, p + h3, p + h4 {
    padding-top: var(--p2hl-gap);
}

h1 + ul, h2 + ul, h3 + ul, h4 + ul {
    padding-top: var(--p2hl-gap);
}

/* Add spacing when Brevo newsletter form follows a headline */
h1 + .sib-form,
h2 + .sib-form,
h3 + .sib-form,
h4 + .sib-form {
    padding-top: var(--p2hl-gap);
}

/* Add spacing between paragraphs/headlines and column divs */
p + .two-column, p + .three-column,
h1 + .two-column, h1 + .three-column,
h2 + .two-column, h2 + .three-column,
h3 + .two-column, h3 + .three-column,
h4 + .two-column, h4 + .three-column {
    padding-top: var(--p2hl-gap);
    /* padding-bottom: var(--p2hl-gap);  */
}

/* Add spacing between headlines and grid components */
h1 + .two-column-grid, h1 + .three-column-grid, h1 + .logo-wall,
h2 + .two-column-grid, h2 + .three-column-grid, h2 + .logo-wall,
h3 + .two-column-grid, h3 + .three-column-grid, h3 + .logo-wall,
h4 + .two-column-grid, h4 + .three-column-grid, h4 + .logo-wall {
    padding-top: var(--p2hl-gap);
}

/* Add spacing between paragraphs and grid components */
p + .two-column-grid, p + .three-column-grid,
p + .logo-wall {
    padding-top: var(--p2hl-gap);
}


/* Add spacing for h2 + h1 in two-column layouts */
.two-column h2 + h1, .two-column h1 + p {
    padding-top: var(--hl2p-gap);
}

/* default tags */
body {
    background-color: #ddd;
    padding:0;
    margin:0;
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -150%);
    background-color: #fff;
    color: #000;
    padding: 12px 24px;
    font-family: 'Konsole';
    font-size: 18px;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid var(--purple);
    z-index: 1002;
    transition: transform 0.3s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translate(-50%, 0);
}

header {
    background-color: transparent;
    padding: var(--header-padding);
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header a {
    text-decoration: none;
    display: block;
    line-height: 0;
}

header .logo {
    display: block;
    width: 180px;
    height: auto;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}

header.scrolled .logo {
    -webkit-filter: none;
    filter: none;
}

/* Header styles when menu is open */
header.menu-open {
    background-color: transparent !important;
    box-shadow: none !important;
}

header.menu-open .logo {
    -webkit-filter: brightness(0) invert(1) !important;
    filter: brightness(0) invert(1) !important;
}

header.menu-open .burger-menu span {
    background-color: white !important;
}

/* Burger menu button */
.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    margin-top: 0;
}

.burger-menu span {
    width: 24px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

header.scrolled .burger-menu span {
    background-color: var(--purple);
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    background-color: transparent;
    padding: 60px 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-navigation a {
    color: white;
    text-decoration: none;
    font-family: 'Konsole-WideBold';
    font-size: 24px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

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

.menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.menu-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Konsole';
    font-size: 14px;
    transition: color 0.3s ease;
}

.menu-footer a:hover {
    color: white;
}

footer {
    background-color: var(--dark-gray);
    padding: var(--footer-padding);
    box-sizing: border-box;
    color: white;
    font-family: 'Konsole';
    line-height: 2;    
}

footer h3 {
    font-family: 'Konsole-WideBold';
    font-size: 24px;
    color: white;
    margin-top: 0;
}

footer a {
    color: white;
}

footer ul {
    padding: var(--gap)0 0 0 ;
    margin: 0;
    list-style: none;
}

footer li {
    list-style: none;
    /* margin-bottom: 12px; */
}

footer li:last-child {
    margin-bottom: 0;
}

footer .copyright {
    background-color: transparent;
    padding: var(--copyright-padding);
    text-align: center;
}

footer .version {
    opacity: 0.7;
    font-size: 0.75em;
    margin-left: 0.5em;
    color: inherit;
}

footer svg {
    fill: white;
    width: 240px;
    height: auto;
}

blockquote {
    position: relative;
    padding-left: 40px;
}

blockquote::before {
    content: "\201C";
    position: absolute;
    left: -10px;
    top: -20px;
    font-family: 'Konsole-Expanded';
    font-size: 140px;
    line-height: 1;
    color: var(--red);
    opacity: 0.15;
    pointer-events: none;
}

blockquote p {
    font-family: 'Konsole-Expanded';
    font-size: 40px !important;
    line-height: 1.2 !important;
    font-weight: normal;
    color: var(--red);
    margin-bottom: 0;
    font-style: italic;
}

blockquote footer,
blockquote cite {
    display: block;
    font-family: 'Konsole-WideBold';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    font-style: normal;
    background-color: transparent;
    padding: 0;
    text-align: right;
    margin-top: var(--p2hl-gap);
    color: var(--red);
}

/* sections */
section {
    padding: var(--container-padding);
    box-sizing: border-box;
    position: relative;
}

a {
    color: var(--purple);
    text-decoration: none;
    /* font-weight: bold; */
}

a:hover,
a:focus {
    color: var(--yellow);
    text-decoration: underline;
}

.stage a {
    color: white;
}

.stage a:hover,
.stage a:focus {
    color: var(--yellow);
}

.stage .cta-button:hover,
.stage .cta-button:focus {
    color: white;
}
 .stage.bg-image h1, .stage.bg-image h2, .stage.bg-image h3, .stage.bg-image h4 {
  display: inline-block;
  background-color: var(--purple);

  padding: 10px;
  line-height: 1.4;

  text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
}

.stage .cta-button {
    background: var(--yellow) linear-gradient(to right, var(--yellow), var(--red));
}

 .stage.bg-image :is(h1, h2, h3, h4) + :is(h1, h2, h3, h4) {
   margin-top: 1rem;
 }

section ul, section ol {
    margin: 0;
    padding-left: 0;
}

section ul {
    list-style: none;
}

section ul li,
section ol li {
    font-family: 'Konsole';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    color: inherit;
    padding-left: 26px;
    position: relative;
}

section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    top: 6px;
}

section ol {
    counter-reset: section-counter;
}

section ol li {
    counter-increment: section-counter;
}

section ol li::before {
    content: counter(section-counter) ".";
    position: absolute;
    left: 0;
    color: inherit;
    font-size: 20px;
}

.two-column {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
    width: 100%;
    box-sizing: border-box;
}

.two-column > * {
    flex: 1;
}

.three-column {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

.three-column > * {
    flex: 1;
}

/* Grid components */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap);
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* Image sizing in two-column layouts */
.two-column img {
    max-width: 50%;
    height: auto;
    object-fit: cover;
}

/* Image sizing in grid layouts */
.two-column-grid img,
.three-column-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Add spacing between images and headlines in grid layouts */
.two-column-grid img + h1, .two-column-grid img + h2, .two-column-grid img + h3, .two-column-grid img + h4,
.three-column-grid img + h1, .three-column-grid img + h2, .three-column-grid img + h3, .three-column-grid img + h4 {
    padding-top: var(--hl2p-gap);
}

/* Logo wall */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    width: 100%;
    box-sizing: border-box;
}

.logo-wall p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: var(--gap);
    aspect-ratio: 3 / 2;
}

.logo-wall img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background 0.3s ease;
    z-index: 2;
    font-family: 'Konsole';
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%);
    box-shadow: none;
}

.carousel-arrow--prev {
    left: 12px;
}

.carousel-arrow--next {
    right: 12px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 0;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--dark-gray);
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background 0.3s ease;
    font-size: 0;
}

.carousel-indicator:hover {
    background: var(--dark-gray-alpha);
    transform: none;
    box-shadow: none;
}

.carousel-indicator.active {
    background: var(--purple);
    border-color: var(--purple);
}

/* Carousel on colored backgrounds */
.red-bg .carousel-indicator,
.yellow-bg .carousel-indicator,
.green-bg .carousel-indicator,
.petrol-bg .carousel-indicator,
.light-blue-bg .carousel-indicator,
.purple-bg .carousel-indicator,
.dark-gray-bg .carousel-indicator {
    border-color: rgba(255, 255, 255, 0.5);
}

.red-bg .carousel-indicator.active,
.yellow-bg .carousel-indicator.active,
.green-bg .carousel-indicator.active,
.petrol-bg .carousel-indicator.active,
.light-blue-bg .carousel-indicator.active,
.purple-bg .carousel-indicator.active,
.dark-gray-bg .carousel-indicator.active {
    background: white;
    border-color: white;
}

/* Vertical spacing above and below carousels, regardless of the preceding
   element (headline, paragraph or list) */
.carousel {
    margin-top: var(--p2hl-gap);
    margin-bottom: var(--p2hl-gap);
}

/* Tablet breakpoint - logo wall 3 columns */
@media (max-width: 1024px) {
    .logo-wall {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive behavior */
@media (max-width: 768px) {
    /* Switch to condensed font on mobile for better readability */
    h1, h2, h3, h4 {
        font-family: 'Konsole-Condensed';
        font-stretch: condensed;
    }
    
    /* Reduce container padding on mobile */
    :root {
        --container-vertical-padding: 60px;
    }
    
    /* Reduce logo size on mobile */
    header svg {
        width: 160px;
    }

    /* Keep the project hero clear of the fixed header so the eyebrow
       doesn't slip under the logo. section.list-hero raises specificity
       above the later `.list-hero { padding: ... }` shorthand. */
    section.list-hero {
        padding-top: calc(var(--header-vertical-padding) + 60px);
    }
    
    /* Reduce paragraph font size on mobile */
    .red-bg p, .yellow-bg p, .green-bg p, .petrol-bg p, .light-blue-bg p, .purple-bg p, .dark-gray-bg p,
    .white-bg p {
        font-size: 18px;
    }
    
    /* Flex column layouts - stack vertically on mobile */
    .two-column,
    .three-column {
        flex-direction: column;
    }
    
    /* Ensure boxes expand to full width on mobile */
    .two-column > *,
    .three-column > * {
        width: 100%;
        flex: none;
    }
    
    /* Ensure colored boxes specifically expand to full width */
    .red-box, .light-blue-box, .green-box, .petrol-box, .purple-box, .dark-gray-box, .yellow-box {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Add padding to parent containers to accommodate box shadows */
    .two-column,
    .three-column {
        box-sizing: border-box;
    }
    
    /* Grid layouts - single column on mobile */
    .two-column-grid,
    .three-column-grid {
        grid-template-columns: 1fr;
    }

    /* Logo wall - 2 columns on mobile */
    .logo-wall {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile menu adjustments */
    .menu-content {
        padding: 40px 20px;
        width: 95%;
        max-height: 90vh;
    }
    
    .menu-navigation a {
        font-size: 20px;
    }
    
    .burger-menu {
        width: 35px;
        height: 35px;
    }
    
    .burger-menu span {
        width: 20px;
        height: 2px;
    }

    blockquote p {
        margin: 0;
        font-size: 24px !important;
    }

    blockquote footer {
        font-size: 16px;
    }

    .stage {
        padding-top: 120px;
    }
    
    /* Keep stage-box within stage on mobile */
    .stage-box {
        transform: none;
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        width: auto;
    }

    /* footer links spaced further apart */
    footer a {
        display: block;
        margin-bottom: 16px;
        background-color: #666;
        padding: 4px 8px 4px 16px
    }

    /* footer links spaced further apart */
    footer .copyright a {
        display: inline;
        margin-bottom: 16px;
        background-color: transparent;
        padding: 0px
    }

    .cta-button {
        margin: 16px 0 !important;
    }

    /* Carousel mobile adjustments */
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .carousel-arrow--prev {
        left: 8px;
    }

    .carousel-arrow--next {
        right: 8px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

.yellow-bg {
    background: var(--yellow-bg);
}

.red-bg {
    background: var(--red-bg);
}

.green-bg {
    background: var(--green-bg);
}

.petrol-bg {
    background: var(--petrol-bg);
}

.light-blue-bg {
    background: var(--light-blue-bg);
}

.purple-bg {
    background: var(--purple-bg);
}

.white-bg {
    background: var(--white-bg);
}

.dark-gray-bg {
    background: var(--dark-gray-bg);
}

/* Gleichfarbige Sections direkt hintereinander lesen sich als ein Block –
   das doppelte vertikale Padding dazwischen entfällt. */
section.white-bg:not(.stage) + section.white-bg,
section.petrol-bg:not(.stage) + section.petrol-bg,
section.purple-bg:not(.stage) + section.purple-bg,
section.red-bg:not(.stage) + section.red-bg,
section.yellow-bg:not(.stage) + section.yellow-bg,
section.green-bg:not(.stage) + section.green-bg,
section.light-blue-bg:not(.stage) + section.light-blue-bg,
section.dark-gray-bg:not(.stage) + section.dark-gray-bg {
    /* nicht 0: die Sections ueberlappen sich per margin-bottom: -20px, die
       Abrisskante der oberen wuerde sonst in die Headline darunter ragen */
    padding-top: 20px;
}

/* Dirt texture overlay on colored sections */
.red-bg,
.yellow-bg,
.green-bg,
.petrol-bg,
.light-blue-bg,
.purple-bg,
.dark-gray-bg {
    position: relative;
}

.red-bg::before,
.yellow-bg::before,
.green-bg::before,
.petrol-bg::before,
.light-blue-bg::before,
.purple-bg::before,
.dark-gray-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
    opacity: 0.55;
}

/* Vary dirt textures per color */
.purple-bg::before,
.petrol-bg::before  { background-image: url('/assets/dirt/dreck1.webp'); }
.yellow-bg::before,
.red-bg::before     { background-image: url('/assets/dirt/dreck2.webp'); }
.light-blue-bg::before,
.dark-gray-bg::before { background-image: url('/assets/dirt/dreck3.webp'); }
.green-bg::before   { background-image: url('/assets/dirt/dreck4.webp'); }

.red-bg > *,
.yellow-bg > *,
.green-bg > *,
.petrol-bg > *,
.light-blue-bg > *,
.purple-bg > *,
.dark-gray-bg > * {
    position: relative;
    z-index: 1;
}

/* Ragged bottom edge — mask the section itself so its own gradient gets the torn edge */
section.red-bg,
section.yellow-bg,
section.green-bg,
section.petrol-bg,
section.light-blue-bg,
section.purple-bg,
section.white-bg,
section.dark-gray-bg,
footer {
    margin-bottom: -20px;
    -webkit-mask-image: linear-gradient(white, white), url('/assets/dirt/edge_tall2.webp');
    -webkit-mask-size: 100% calc(100% - 20px), 2811px 60px;
    -webkit-mask-position: top, bottom;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(white, white), url('/assets/dirt/edge_tall2.webp');
    mask-size: 100% calc(100% - 20px), 2811px 60px;
    mask-position: top, bottom;
    mask-repeat: no-repeat;
    mask-composite: add;
}

/* Scroll reveal animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* White sections: the whole section fades in (no gap issue since bg is same as body) */
section.white-bg.reveal {
    opacity: 0;
}

section.white-bg.reveal.revealed {
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Colored sections: background stays visible, only children animate */
section.reveal:not(.white-bg) > h1,
section.reveal:not(.white-bg) > h2,
section.reveal:not(.white-bg) > h3,
section.reveal:not(.white-bg) > p,
section.reveal:not(.white-bg) > ul,
section.reveal:not(.white-bg) > ol,
section.reveal:not(.white-bg) > .cta-button,
section.reveal:not(.white-bg) > blockquote,
section.reveal:not(.white-bg) > .two-column,
section.reveal:not(.white-bg) > .three-column {
    opacity: 0;
    transform: translateY(30px);
}

section.revealed:not(.white-bg) > h1,
section.revealed:not(.white-bg) > h2,
section.revealed:not(.white-bg) > h3,
section.revealed:not(.white-bg) > p,
section.revealed:not(.white-bg) > ul,
section.revealed:not(.white-bg) > ol,
section.revealed:not(.white-bg) > .cta-button,
section.revealed:not(.white-bg) > blockquote,
section.revealed:not(.white-bg) > .two-column,
section.revealed:not(.white-bg) > .three-column {
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered timing for children */
section.revealed h1,
section.revealed h2 { animation-delay: 0.1s; }
section.revealed h3 { animation-delay: 0.15s; }
section.revealed p { animation-delay: 0.2s; }
section.revealed ul,
section.revealed ol { animation-delay: 0.25s; }
section.revealed .cta-button { animation-delay: 0.35s; }
section.revealed blockquote { animation-delay: 0.2s; }
section.revealed .two-column,
section.revealed .three-column { animation-delay: 0.3s; }

.red-bg p, .red-bg li,
.yellow-bg p, .yellow-bg li,
.green-bg p, .green-bg li,
.petrol-bg p, .petrol-bg li,
.light-blue-bg p, .light-blue-bg li,
.purple-bg p, .purple-bg li,
.dark-gray-bg p, .dark-gray-bg li {
    color: white;
    font-family: 'Konsole';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
}

.white-bg p,
.white-bg li {
    color: black;
    font-family: 'Konsole';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
}

.white-bg h1, .white-bg h2, .white-bg h3, .white-bg h4 {
    color: black;
}

/* Accent underline on h2 in white sections */
.white-bg h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--purple), var(--red));
    margin-top: 16px;
}

/* Step numbers in process columns - enlarged decorative numbers */
.petrol-bg .three-column h3,
.petrol-bg .three-column-grid h3 {
    position: relative;
}

/* Enhanced list styling on white backgrounds */
.white-bg ul li::before {
    color: var(--purple);
    font-weight: bold;
}

/* Bold text highlight on colored backgrounds */
.red-bg strong, .yellow-bg strong, .green-bg strong,
.petrol-bg strong, .light-blue-bg strong, .purple-bg strong,
.dark-gray-bg strong {
    color: white;
    text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.white-bg strong {
    color: var(--red);
}

.red-box, .light-blue-box, .green-box, .petrol-box, .purple-box, .dark-gray-box, .yellow-box {
    background-color: var(--red);
    padding: var(--gap);
    color:white;
    font-family: 'Konsole-Expanded';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    box-shadow: -10px 10px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.light-blue-box {
    background-color: #467d90;
}

.green-box {
    background-color: var(--green);
}

.petrol-box {
    background-color: #01847a;
}

.purple-box {
    background-color: var(--purple);
}

.dark-gray-box {
    background-color: var(--dark-gray);
}

.yellow-box {
    background-color: var(--yellow);
}

.red-box {
    background-color: #cf4729;
}

.color-box ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.color-box h1, .color-box h2, .color-box h3, .color-box h4 {
    padding: calc( var(--p2hl-gap) / 4) 0 0 0;
    color: white;
    font-family: 'Konsole-Expanded';
}

.color-box p {
    padding: calc( var(--p2hl-gap) / 4) 0 0 0;
    color: white;
}

/* shadow for boxes on white background */
.white-bg .red-box, .white-bg .light-blue-box, .white-bg .green-box, 
.white-bg .petrol-box, .white-bg .purple-box, .white-bg .dark-gray-box, 
.white-bg .yellow-box {
    box-shadow: -10px 10px 0 var(--dark-gray-alpha);
}


.stage {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
}

/* Stage entrance animation */
@keyframes stageFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes stageContentSlide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.stage.bg-image {
    animation: stageFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stage .stage-content {
    animation: stageContentSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

/* Vignette overlay on stage */
.stage.bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.stage .stage-content {
    position: relative;
    z-index: 2;
}

.stage.stage--compact {
    min-height: 200px;
    box-sizing: border-box;
    padding-bottom: calc( var(--container-vertical-padding) / 2);
}

.stage-box {
    position: absolute;
    bottom: 0;
    left: max(20px, calc((95% - var(--container-width)) / 2));
    transform: translateY(50%);
    z-index: 10;
    max-width: 400px;
    width: 100%;
    box-shadow: -10px 10px 0 var(--dark-gray-alpha);
}


/* Background image sections */
.bg-image {
    background-image: var(--bg-image-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; 
    display: flex;
    align-items: center;
}

.stage .stage-content {
    padding: var(--container-padding);
    box-sizing: border-box;
    max-width: var(--container-width);
    margin: 0;
}

.bg-image h1,
.bg-image p {
    color: white;
}

.stage .stage-content p {
    font-family: 'Konsole';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
}

/* Button styles */
button {
    font-family: 'Konsole';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    padding: 16px 48px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: var(--p2hl-gap);
}

button {
    background: var(--light-blue) linear-gradient(to right, var(--green), var(--light-blue)); 
}

button:hover {
    transform: translateY(-2px);    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: black;
}

/* CTA link styled as button */
.cta-button {
    font-family: 'Konsole-Expanded';
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    padding: 16px 48px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: var(--p2hl-gap);
    background: var(--light-blue) linear-gradient(to right, var(--purple), var(--red));
    color: white;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.cta-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::before,
.cta-button:focus::before {
    transform: translateX(100%);
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: white;
    text-decoration: none;
}

.red-bg .cta-button {
    background: var(--green) linear-gradient(to right, var(--green), var(--light-blue));
}


/* Newsletter form styles */
.newsletter-form {
    max-width: 640px;
    margin-top: var(--p2hl-gap);
}

.newsletter-form .form-group {
    margin-bottom: var(--gap);
}

.newsletter-form label {
    display: block;
    font-family: 'Konsole';
    font-size: 16px;
    color: inherit;
    margin-bottom: 8px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid var(--dark-gray-alpha);
    background: #fff;
    color: #000;
    font-family: 'Konsole';
    font-size: 18px;
}

.newsletter-form input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(167, 78, 149, 0.15);
}

.newsletter-form .checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.newsletter-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.newsletter-form button.yellow {
    margin-top: 4px;
}

/* Buchcover als 3D-Buch: flaches Cover per CSS gedreht, Seiten und
   Rückdeckel als gestaffelte box-shadows. Scharf in jeder Auflösung. */
.book-3d {
    perspective: 1600px;
    margin: 0;
    padding: 16px 32px 40px 0;
}

.book-3d img {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    transform: rotateY(-16deg);
    transform-origin: left center;
    box-shadow:
        2px 0 0 -1px #f6f1e7,
        4px 0 0 -2px #e6dfd0,
        6px 0 0 -2px #f6f1e7,
        8px 0 0 -3px #e6dfd0,
        10px 0 0 -3px #f6f1e7,
        14px 0 0 -1px #5b2350,
        24px 28px 40px -12px rgba(0, 0, 0, 0.45);
}

/* === Buchbestellung (Shortcode book-order) === */
/* Nutzt die .newsletter-form-Basis, ergänzt PLZ/Stadt-Zeile und Zustände. */
.book-order__row {
    display: grid;
    grid-template-columns: 10em 1fr;
    gap: var(--gap);
}

.book-order__optional {
    opacity: 0.7;
}

.newsletter-form.book-order .checkbox-group label {
    align-items: flex-start;
    font-size: 16px;
}

.book-order .checkbox-group input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.book-order input[aria-invalid="true"] {
    border-color: var(--red);
}

.book-order .book-order__error {
    color: var(--red);
}

.book-order button.cta-button {
    border: none;
    cursor: pointer;
}

.book-order button.cta-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.book-order__success {
    max-width: 640px;
    margin-top: var(--p2hl-gap);
    font-family: 'Konsole-Expanded';
    font-size: 20px;
}

@media (max-width: 480px) {
    .book-order__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* === Newsletter: Cookie-Sperre === */
/* Platzhalter-Formular (#brevo-form-fallback), das dem echten Brevo-Formular
   nachempfunden ist, mit Abdecker darüber. Sobald Brevo + reCAPTCHA
   freigegeben sind, tauscht tarteaucitron es gegen #brevo-form-wrapper. */
.newsletter-gate {
    position: relative;
    max-width: 640px;
    margin-top: var(--p2hl-gap);
}

.newsletter-gate__preview {
    margin-top: 0;
    filter: blur(1px);
    opacity: 0.75;
    user-select: none;
    pointer-events: none;
}

/* Abstände wie im echten Brevo-Formular (8px Padding pro Block) */
.newsletter-gate__preview .form-group {
    margin-bottom: 16px;
}

.newsletter-gate__preview .form-group:last-of-type {
    margin-bottom: 0;
}

/* Attrappe der reCAPTCHA-Box */
.newsletter-gate__captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 302px;
    max-width: 100%;
    height: 74px;
    padding: 0 16px;
    border: 2px solid var(--dark-gray-alpha);
    background: #f9f9f9;
    font-family: 'Konsole';
    font-size: 16px;
    color: var(--dark-gray);
}

.newsletter-gate__captcha::before {
    content: "";
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 2px solid var(--dark-gray-alpha);
    background: #fff;
}

.newsletter-gate__preview .form-group > label {
    font-weight: bold;
}

.newsletter-gate__preview .checkbox-group label {
    font-weight: normal;
    font-size: 16px;
    align-items: flex-start;
}

.newsletter-gate__preview input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.newsletter-gate__submit {
    margin-top: 4px;
}

/* Abdecker */
.newsletter-gate__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.35);
}

.newsletter-gate__notice {
    position: relative;
    max-width: 520px;
    padding: var(--gap);
    background: #fff;
    border: 2px solid var(--dark-gray-alpha);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.newsletter-gate__notice::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(to right, var(--purple), var(--red));
}

.newsletter-gate__notice h3 {
    font-size: 24px;
}

.white-bg .newsletter-gate__notice h3 + p {
    padding-top: 16px;
    font-size: 18px;
}

.newsletter-gate__notice .cta-button {
    margin-top: 24px;
    font-size: 18px;
    padding: 14px 32px;
}

.newsletter-gate__settings {
    margin-top: 16px;
}

.white-bg .newsletter-gate__settings {
    font-size: 16px;
}

@media (max-width: 768px) {
    .newsletter-gate__notice {
        padding: 20px;
    }

    .newsletter-gate__notice h3 {
        font-size: 20px;
    }

    .white-bg .newsletter-gate__notice h3 + p {
        font-size: 16px;
    }

    .newsletter-gate__notice .cta-button {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* === Risk Assessment === */

.risk-assessment {
    max-width: 800px;
}

/* Progress indicator */
.ra-progress {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}

.ra-progress__step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--dark-gray-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Konsole-Expanded';
    font-size: 16px;
    color: var(--dark-gray);
    background: white;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.ra-progress__step.active {
    border-color: var(--purple);
    background: var(--purple);
    color: white;
    box-shadow: 0 2px 12px rgba(167, 78, 149, 0.3);
}

.ra-progress__step.completed {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.ra-progress__connector {
    flex: 1;
    height: 2px;
    background: var(--dark-gray-alpha);
    transition: background 0.35s ease;
}

.ra-progress__connector.completed {
    background: var(--green);
}

/* Steps */
.ra-step {
    display: none;
}

.ra-step.active {
    display: block;
}

.ra-step__title {
    color: black;
}

.ra-step__subtitle {
    font-family: 'Konsole';
    font-size: 14px;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 4px !important;
}

/* Questions */
.ra-question {
    margin-top: 40px;
}

.ra-question__text {
    font-family: 'Konsole-Expanded';
    font-size: 22px;
    color: black;
    margin-bottom: 0;
}

/* Option cards */
.ra-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.risk-assessment .ra-option {
    background: white;
    border: 2px solid var(--dark-gray-alpha);
    color: black;
    font-family: 'Konsole';
    font-size: 16px;
    line-height: 1.4;
    padding: 12px 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
}

.risk-assessment .ra-option:hover {
    border-color: var(--purple);
    background: rgba(167, 78, 149, 0.04);
    transform: none;
    box-shadow: none;
}

.risk-assessment .ra-option.selected {
    border-color: var(--purple);
    background: rgba(167, 78, 149, 0.08);
    box-shadow: inset 3px 0 0 var(--purple);
    color: black;
}

/* Navigation */
.ra-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    gap: var(--gap);
}

.risk-assessment .ra-nav__back {
    background: transparent;
    border: 2px solid var(--dark-gray-alpha);
    color: var(--dark-gray);
    font-family: 'Konsole';
    font-size: 18px;
    padding: 14px 32px;
    margin-top: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.risk-assessment .ra-nav__back:hover {
    border-color: var(--dark-gray);
    transform: none;
    box-shadow: none;
}

.risk-assessment .ra-nav__next {
    background: linear-gradient(to right, var(--purple), var(--red));
    color: white;
    font-family: 'Konsole-Expanded';
    font-size: 18px;
    padding: 14px 40px;
    border: none;
    margin-top: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.risk-assessment .ra-nav__next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.risk-assessment .ra-nav__next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Step transition animations */
@keyframes raSlideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes raSlideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.ra-step.slide-in-right {
    animation: raSlideInRight 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ra-step.slide-in-left {
    animation: raSlideInLeft 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Results */
.ra-results__dimensions {
    margin-top: 40px;
}

.ra-dimension {
    margin-bottom: 32px;
}

.ra-dimension__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.ra-dimension__label {
    font-family: 'Konsole-WideBold';
    font-size: 16px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ra-dimension__level {
    font-family: 'Konsole-Expanded';
    font-size: 14px;
    letter-spacing: 0.03em;
}

.ra-dimension__bar-track {
    width: 100%;
    height: 10px;
    background: #eee;
    overflow: hidden;
}

.ra-dimension__bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.ra-dimension__text {
    font-family: 'Konsole';
    font-size: 16px;
    color: var(--dark-gray);
    margin-top: 6px;
    padding-top: 0 !important;
}

/* Recommendation box */
.ra-results__recommendation {
    background: rgba(167, 78, 149, 0.06);
    border-left: 4px solid var(--purple);
    padding: 24px;
    margin-top: 40px;
    font-family: 'Konsole';
    font-size: 18px;
    line-height: 1.6;
    color: black;
}

.ra-results__recommendation strong {
    font-family: 'Konsole-WideBold';
    color: var(--purple);
}

/* Email gate */
.ra-results__email-gate {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--dark-gray-alpha);
}

.ra-results__email-gate h4 {
    color: black;
    font-family: 'Konsole-Expanded';
    font-size: 24px;
}

.ra-results__email-gate > p {
    font-family: 'Konsole';
    font-size: 16px;
    color: var(--dark-gray);
    padding-top: 8px !important;
}

.ra-email-form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ra-email-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--dark-gray-alpha);
    background: #fff;
    color: #000;
    font-family: 'Konsole';
    font-size: 18px;
    box-sizing: border-box;
}

.ra-email-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(167, 78, 149, 0.15);
}

.risk-assessment .ra-email-submit {
    background: linear-gradient(to right, var(--purple), var(--red));
    color: white;
    font-family: 'Konsole-Expanded';
    font-size: 16px;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.risk-assessment .ra-email-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Results CTA */
.ra-results__cta {
    margin-top: 32px;
    text-align: center;
}

.ra-results__cta > p {
    font-family: 'Konsole';
    font-size: 16px;
    color: var(--dark-gray);
}

/* Email success state */
.ra-email-success {
    color: var(--green);
    font-family: 'Konsole-Expanded';
    font-size: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .ra-progress {
        margin-bottom: 32px;
    }

    .ra-progress__step {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .ra-question {
        margin-top: 32px;
    }

    .ra-question__text {
        font-size: 18px;
    }

    .risk-assessment .ra-option {
        font-size: 16px;
        padding: 12px 16px;
    }

    .ra-nav {
        margin-top: 32px;
    }

    .risk-assessment .ra-nav__back,
    .risk-assessment .ra-nav__next {
        padding: 12px 24px;
        font-size: 16px;
    }

    .ra-email-form {
        flex-direction: column;
    }

    .ra-results__recommendation {
        padding: 16px;
        font-size: 16px;
    }

    .ra-dimension__label {
        font-size: 14px;
    }

    .ra-results__email-gate h4 {
        font-size: 20px;
    }
}


/* ============================================
   List / Overview Pages (Blog, Projekte, Lösungen)
   ============================================ */

.list-hero {
    padding: var(--container-padding);
    box-sizing: border-box;
}

.list-hero h1 {
    color: white;
}

.list-hero p {
    color: white;
    font-family: 'Konsole';
    font-size: 20px;
    line-height: 1.5;
    padding-top: var(--hl2p-gap);
    max-width: 720px;
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.list-cta {
    margin-top: 48px;
    text-align: center;
}

/* Individual card — visual styling comes from the color-box system */
.content-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.content-card:hover {
    transform: translateY(-3px);
}

.card-image-wrapper {
    margin: calc(-1 * var(--gap)) calc(-1 * var(--gap)) 0 calc(-1 * var(--gap));
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

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

/* suppress the white-bg h2 underline inside cards */
.content-card h2.card-title::after {
    display: none;
}

/* override white-bg strong color inside colored cards */
.content-card strong {
    color: white;
    text-shadow: none;
}

.content-card h2.card-title {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: white;
}

.content-card h2.card-title a,
.content-card h2.card-title a:visited {
    color: white;
    text-decoration: none;
}

.content-card h2.card-title a:hover,
.content-card h2.card-title a:focus {
    color: white;
    text-decoration: underline;
}

.content-card .card-eyebrow {
    font-family: 'Konsole';
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    font-weight: normal;
}

.content-card .card-tagline {
    font-family: 'Konsole-Expanded';
    font-size: 17px;
    color: white;
    font-weight: bold;
    margin: 0;
}

/* flex-grow pushes card-link to the bottom */
.content-card p {
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: 'Konsole';
    font-size: 14px;
    color: white;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: 'Konsole';
    font-size: 13px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3px 10px;
    display: inline-block;
}

.card-link {
    font-family: 'Konsole-Expanded';
    font-size: 15px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    align-self: flex-start;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s ease;
    padding-bottom: 2px;
}

/* stretch the link to cover the whole card */
.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card-link:hover,
.card-link:focus {
    color: white;
    text-decoration: none;
    border-bottom-color: white;
}

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

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

/* Detail / Single Pages */
.single-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-family: 'Konsole';
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.tag--light {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.single-eyebrow {
    display: block;
    font-family: 'Konsole';
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.single-tagline {
    font-family: 'Konsole-Expanded';
    font-size: 22px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9) !important;
    padding-top: 16px !important;
}

.single-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-content h2 {
    margin-top: 48px;
}

.single-content h2:first-child {
    margin-top: 0;
}

.single-content p + p {
    padding-top: 16px;
}

.single-content hr {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    margin: 48px 0;
}

.single-content blockquote {
    border-left: 4px solid var(--purple);
    margin: 32px 0;
    padding: 16px 24px;
    background: rgba(167, 78, 149, 0.05);
}

.single-content blockquote p {
    font-style: italic;
    color: var(--dark-gray);
}

.single-content blockquote footer {
    font-family: 'Konsole';
    font-size: 15px;
    color: var(--dark-gray);
    margin-top: 12px;
    display: block;
}

/* tarteaucitron cookie banner */
#tarteaucitronRoot * {
    font-family: 'Konsole', sans-serif !important;
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert,
#tarteaucitronRoot #tarteaucitronAlertBig button {
    margin-top: 8px !important;
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2 {
    background: linear-gradient(to right, var(--purple), var(--red)) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 18px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2:hover,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronCloseAlert,
#tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPrivacyUrl {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    padding: 6px 18px !important;
    cursor: pointer;
}

/* tarteaucitron panel (Personalisieren) */
#tarteaucitronRoot #tarteaucitron button {
    margin-top: 4px !important;
}

#tarteaucitronRoot #tarteaucitron #dialogTitle {
    margin: 8px 0 8px !important;
    font-size: 20px !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronInfo {
    margin: 0 0 8px !important;
    padding: 8px 0 !important;
    max-width: 100% !important;
}

/* tarteaucitron Overlay: Header-Streifen oben verhindern */
#tarteaucitronRoot #tarteaucitronBack {
    margin-top: 0 !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronMainLineOffset {
    padding: 8px 10px !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronClosePanel {
    margin-top: 8px !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronBorder {
    padding: 0 !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronSave {
    padding: 8px 20px !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronLine {
    padding: 6px 10px !important;
}

#tarteaucitronRoot #tarteaucitron #tarteaucitronServices {
    margin-top: 4px !important;
}

/* Notwendige Cookies ausblenden (wir haben keine) */
#tarteaucitronRoot #tarteaucitronServicesTitle_mandatory {
    display: none !important;
}

/* Kategorie-Überschriften (APIs, Andere) ausblenden — je nur ein Eintrag */
#tarteaucitronRoot .tarteaucitronTitle {
    display: none !important;
}

/* Datenschutzbestimmungen als Textlink statt Button */
#tarteaucitronRoot #tarteaucitronPrivacyUrlDialog {
    background: transparent !important;
    border: none !important;
    color: var(--purple) !important;
    text-decoration: underline !important;
    padding: 0 !important;
    margin: 4px 0 !important;
    cursor: pointer;
}

/* Scrollbar vermeiden */
#tarteaucitronRoot #tarteaucitronServices {
    overflow: visible !important;
}

/* Panel-Buttons: gleicher Stil wie Banner */
#tarteaucitronRoot #tarteaucitron .tarteaucitronAllow {
    background: linear-gradient(to right, var(--purple), var(--red)) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 4px 12px !important;
}

#tarteaucitronRoot #tarteaucitron .tarteaucitronDeny {
    background: transparent !important;
    color: inherit !important;
    border: 1px solid currentColor !important;
    border-radius: 0 !important;
    padding: 4px 12px !important;
}

/* ============================================================
   Accessibility helpers (added 2026-04-08, see _work/2026-04-08_a11y-audit.md)
   ============================================================ */

/* Focus-visible: ensure all interactive elements have a visible, high-contrast
   focus indicator (WCAG 2.4.7 AA). Uses a 3px solid outline in a color that
   contrasts against both light and dark backgrounds (white outline + dark shadow). */
:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

/* On dark / colored backgrounds, switch to white outline */
.petrol-bg :focus-visible,
.purple-bg :focus-visible,
.red-bg :focus-visible,
.dark-gray-bg :focus-visible,
.petrol-box :focus-visible,
.purple-box :focus-visible,
.red-box :focus-visible,
.dark-gray-box :focus-visible,
footer :focus-visible,
.menu-overlay :focus-visible,
.stage :focus-visible {
    outline-color: white;
}

/* Keep custom focus styles where they exist but ensure visibility */
.newsletter-form input:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 1px;
    border-color: var(--purple);
    box-shadow: none;
}

.ra-email-input:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 1px;
    border-color: var(--purple);
    box-shadow: none;
}

.cta-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* B2 helper: lets a semantic h2/h3 keep h1-size visual when an h1 is already
   used elsewhere on the page (avoids multiple h1s without breaking layout). */
h2.heading-xl,
h3.heading-xl {
    font-size: 60px;
    letter-spacing: -0.01em;
}

/* Same idea, downwards: an h2 that should look like h3 */
h2.heading-md,
.stage.bg-image h2.heading-md {
    font-size: 25px;
    letter-spacing: 0;
}

/* B7: Inline links inside body copy must be distinguishable beyond color.
   Excludes buttons / cards / CTAs which carry their own visual weight. */
main p a:not(.btn):not(.cta-button):not(.card-link):not(.ra-option),
main li a:not(.btn):not(.cta-button):not(.card-link):not(.ra-option) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* M1: Honor user preference for reduced motion. Applies to all CSS animations
   and transitions; JS scroll-driven effects should additionally check
   matchMedia('(prefers-reduced-motion: reduce)') in script.js. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* B4: Visually-hidden helper for accessible labels and live regions */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

