
#capabilities {
    margin-bottom: 150px;
}

@media only screen and (max-width: 800px) {
    #capabilities .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: var(--vertical-space-5) var(--horizontal-space-4);
    }
}


.ImageContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}
a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}
/* Default text-link hover. */
a:hover {
    opacity: 0.5;
}
/* Components that bring their own hover opt out, otherwise they would dim on
   top of it - the nav link in particular already fades its own label and
   would end up at 25%. */
.dd-button-primary:hover,
.dd-logo:hover,
.FooterLogo:hover,
.dd-anchor-nav__link:hover {
    opacity: 1;
}
/* Containing block for the sticky logo rail, and the sheet that slides up
   over the footer. It needs its own opaque background - the footer sits
   behind it, and any gap between modules would otherwise let it show
   through early. */
main {
    position: relative;
    z-index: 1;
    background: var(--dd-color-white);
}

/* Reveal footer: pinned behind the page, uncovered as main scrolls off. The
   room to scroll into is reserved as a margin below main (script.js, from
   the footer's measured height). */
footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
section {
    margin-block: 150px;
}


.dd-tag,
.dd-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--dd-font-weight-regular);
}

.dd-tag {
    font-size: var(--font-size-0);
    background: var(--dd-color-white);
    border-radius: var(--dd-radius);
    padding: 3px 7px;
    padding-bottom: 4px;
}


.dd-button-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--dd-button-max-width);
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-button);
    background: var(--dd-color-white);
    color: var(--dd-color-text);
    /* Present in both states so the box never grows or shrinks by 2px - on
       the white default it just reads as invisible. */
    border: 1px solid var(--dd-color-white);
    border-radius: var(--dd-radius);
    padding: var(--dd-button-padding);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.dd-button-primary svg {
    flex-shrink: 0;
    transform: translateY(1px);
}
.dd-button-primary:hover {
    background: var(--dd-color-dark-brown);
    color: var(--dd-color-text-light);
}

/* Dark variant - the default inverted, so hovering simply swaps the two
   colours back. */
.dd-button-primary--dark {
    background: var(--dd-color-dark-brown);
    color: var(--dd-color-text-light);
    border-color: var(--dd-color-dark-brown);
}
.dd-button-primary--dark:hover {
    background: var(--dd-color-white);
    color: var(--dd-color-text);
    border-color: var(--dd-color-dark-brown);
}

.dd-label {
    font-size: var(--font-size-0);
    background: transparent;
    color: var(--dd-color-text);
    border: var(--line-thickness-4) solid var(--dd-color-light-grey);
    border-radius: var(--dd-radius);
    padding: 5px 9px;
    text-transform: uppercase;
    cursor: default;
    margin-bottom: var(--vertical-space-4);
}

.SliderArrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--dd-radius);
    background: var(--dd-color-dark-grey);
    color: var(--dd-color-text-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}
.SliderArrow:hover {
    background: var(--dd-color-light-grey);
    color: var(--dd-color-text);
}






.CardSmallContainer {
    --card-small-count: 4;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-block: var(--vertical-space-2);
    scroll-padding-inline: var(--dd-space-1);
}
.CardSmall {
    background: var(--card-color, var(--color-2));
    border-radius: var(--border-radius-1);
    padding: 30px;
    aspect-ratio: 380 / 450;
    border: var(--line-thickness-4) dotted transparent;
    flex: 0 0 calc((100% - ((var(--card-small-count) - 1) * 10px)) / var(--card-small-count));
    scroll-snap-align: start;
    transition: all 0.3s ease;
}
.CardSmall:hover {
    border-color: var(--color-1);
}
.CardSmall h3,
.CardBig h3 {
    color: var(--card-text, var(--color-1));
}
#what-we-do .CardSmall h3 {
    font-weight: 500;
}
.CardSmall p,
.CardBig p {
    color: color-mix(in srgb, var(--card-text, currentColor) 60%, transparent);
}
#what-we-do .CardSmall p {
    color: color-mix(in srgb, var(--card-text, currentColor) 50%, transparent);
}

/* The colored background lives on the full-bleed section (.Section--full in
   the template); this container just caps + pads the actual card content,
   same as every other section's default 1400px / 50px content box. */
#our-approach {
    background: var(--color-4);
    color: var(--color-0);
    padding-top: 50px;
}

/* Direct children (the sprungmarken label + the card container) share the
   same capped content column, so they line up under each other. */
#our-approach > div {
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
    padding-inline: var(--dd-page-padding-x);
}

/* .dd-label is dark-brown by default, unreadable on this section's dark background. */
#our-approach .dd-label {
    color: var(--color-0);
}

.CardApproachContainer {
    padding-block: 100px;
}

.CardApproach {
    display: grid;
    grid-template-columns: 1fr 1fr 32%;
    gap: var(--horizontal-space-4);
    padding: var(--vertical-space-5) 0;
    align-items: start;
    border-top: var(--line-thickness-4) solid color-mix(in srgb, var(--color-0) 40%, transparent);
}

@media only screen and (max-width: 800px) {
    .CardApproach {
        grid-template-columns: auto 1fr;
        gap: var(--horizontal-space-2) var(--horizontal-space-4);
    }
    .CardApproach p:nth-child(3) {
        grid-column: 1 / -1;
    }
}

.CardStatValue {
    font-size: var(--font-size-3);
}

@media only screen and (max-width: 1250px) {
    .CardSmallContainer {
        --card-small-count: 3;
    }
}
@media only screen and (max-width: 1000px) {
    .CardSmallContainer {
        --card-small-count: 2;
    }
}
@media only screen and (max-width: 520px) {
    .CardSmallContainer {
        --card-small-count: 1;
    }
    #capabilities .grid-4 {
        grid-template-columns: 1fr;
    }
}

.CardBigContainer {
    display: flex;
    flex-direction: column;
    position: relative;
}
.CardBig {
    --card-big-height: 30vw;
    --card-big-peek: 71px;
    background: var(--card-color, var(--color-2));
    border-radius: var(--border-radius-1);
    padding: var(--dd-space-1) var(--dd-space-1);
    height: var(--card-big-height);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vertical-space-1);
    position: relative;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, height 0.35s ease, margin-top 0.35s ease;
}
.CardBigImages {
    position: relative;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.CardBigImagesTrack {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.CardBig.is-open .CardBigImages.is-scrollable .CardBigImagesTrack {
    overflow-y: auto;
    overscroll-behavior: auto;
}
.CardBigImages.is-scrollable::before,
.CardBigImages.is-scrollable::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    z-index: 1;
}
.CardBigImages.is-scrollable::before {
    top: 0;
    background: linear-gradient(to bottom, var(--card-color, var(--color-2)), transparent);
}
.CardBigImages.is-scrollable::after {
    bottom: 0;
    background: linear-gradient(to top, var(--card-color, var(--color-2)), transparent);
}
.CardBig + .CardBig {
    margin-top: calc(var(--card-big-peek) - var(--card-big-height));
}
.CardBig:hover {
    transform: translateY(-2px);
}
.CardBig.is-open {
    height: 70vh;
    margin-top: 0;
    scroll-margin-top: 15vh;
    transform: none;
}
.CardBig.is-open:hover {
    transform: none;
}
.CardBig.is-collapsed {
    height: calc(var(--card-big-peek) + 6px + var(--vertical-space-9) - var(--vertical-space-5));
}
.CardBig.is-collapsed + .CardBig.is-collapsed,
.CardBig.is-collapsed + .CardBig.is-open {
    margin-top: calc(var(--vertical-space-5) - var(--vertical-space-9));
}
.CardBig.is-open + .CardBig {
    margin-top: 0;
}

@media only screen and (max-width: 800px) {
    .CardBig {
        grid-template-columns: 1fr;
        --card-big-height: 60vh;
        scroll-margin-top: calc(var(--dd-space-1) + var(--header-height-1) + var(--dd-space-1));
    }
    .CardBig.is-open {
        height: 60vh;
        scroll-margin-top: calc(var(--dd-space-1) + var(--header-height-1) + var(--dd-space-1));
    }
}

/* Text pages (imprint, privacy, information) ------------------------------
   Same outer frame as a module: padding outside, width cap inside. */
.dd-text {
    margin-block: 0;
    min-height: 70vh;
    padding: var(--dd-module-padding-y) var(--dd-page-padding-x);
    /* Follows straight on from the hero above it. */
    padding-top: 0;
    background: var(--dd-color-white);
    color: var(--dd-color-text);
}
.dd-text__inner {
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
}
.dd-text__body {
    max-width: 46em;
    margin-top: 120px;
}

/* The page title above is the only h2 (.dd-headline). Inside the body the
   sections are h3, written as ### in the panel - paragraph size, set apart
   by weight alone rather than by scale. h2 and h4 are covered too so a
   stray ## or #### does not fall through unstyled. */
.dd-text__body p,
.dd-text__body li {
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-regular);
}
.dd-text__body h2,
.dd-text__body h3,
.dd-text__body h4 {
    display: block;
    font-size: var(--dd-font-size-p);
    font-weight: 500;
}

.dd-text__body p + p,
.dd-text__body ul,
.dd-text__body ol {
    margin-top: var(--vertical-space-4);
}
.dd-text__body h2,
.dd-text__body h3,
.dd-text__body h4 {
    margin-top: var(--vertical-space-6);
    margin-bottom: var(--vertical-space-3);
}
/* No gap above the very first heading - the headline above already sets it
   off. */
.dd-text__body > :first-child {
    margin-top: 0;
}
.dd-text__body li + li {
    margin-top: var(--vertical-space-1);
}
.dd-text__body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer *{
    color: white;
}
.Footer .dd-button-primary,
.Footer .dd-button-primary * {
    color: var(--dd-color-text);
}
.Footer .dd-button-primary:hover,
.Footer .dd-button-primary:hover * {
    color: var(--dd-color-text-light);
}
.Footer {
    background: var(--dd-color-dark-brown);
    /* Padding on the outer box and the cap on the inner one - same order as
       the modules. With both on one element the max-width would swallow the
       padding and the footer content would sit 30px further in than
       everything above it. */
    padding: 40px var(--dd-page-padding-x) 20px var(--dd-page-padding-x);
}
/* Footer text still runs on the legacy .ff-1 (18px); pull it onto the v2
   standard here rather than changing --font-size-1, which the old templates
   are still on. */
.Footer .ff-1 {
    font-size: var(--dd-font-size-p);
}
.FooterInner {
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}
/* Logo and CTA share the top row. The legacy .flex utility sets no
   align-items, so the button would stretch to the logo's height. */
.FooterInner > .flex {
    align-items: flex-start;
}
/* Last row of the footer: copyright on the left, location and mail link in
   the right-hand corner. */
.FooterBottom {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--horizontal-space-4);
}
.FooterMeta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.FooterInfo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vertical-space-1);
    margin-top: 85px;
}
/* Both link lists in the footer - the nav links and the info pages. */
.FooterInfo ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Second column holds two groups in one grid cell. */
.FooterInfoColumn {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Language switch: inline, slash-separated, unlike the stacked lists beside
   it. The separator is generated so the markup stays just the two items. */
.FooterInfo .FooterLang {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
}
.FooterLang li + li::before {
    content: "/";
    margin-inline: 4px;
}
/* The active language carries no link, only the dimming. */
.FooterLang .is-active {
    opacity: 0.4;
}

@media only screen and (max-width: 800px) {
    .FooterInner,
    .Footer .flex,
    .FooterInfo {
        display: block;
        height: auto;
    }
    .Footer .flex > * + *,
    .FooterInfo > * + * {
        margin-top: var(--vertical-space-4);
    }
    /* Clears the CTA button above it - the stacked columns start a block of
       their own here, rather than sitting in the same row. */
    .FooterInfo {
        margin-top: 70px;
    }
    /* Stacked instead of a left/right row. Reversed, so the location and the
       mail link stay on top and the copyright closes the footer off. The
       copyright's own margin is gone - the gap is the only spacing now. */
    .FooterBottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 15px;
    }
    /* Its lines were right-aligned against the wider one, which reads as a
       ragged edge once the block sits on the left. */
    .FooterMeta {
        text-align: left;
    }
}


/* ==========================================================================
   v2 modules - each one maps to a Kirby block (site/snippets/blocks/*.php)
   ========================================================================== */

/* Module: Hero -------------------------------------------------------------
   Full-bleed colour field. Logo sits at the left edge on the vertical
   centre; description (bottom left) and CTA (bottom right) are pinned to
   the bottom, so the logo stays optically centred regardless of how tall
   that bottom row gets. */
.dd-hero {
    display: flex;
    margin-block: 0;
    padding: var(--dd-page-padding-top) var(--dd-page-padding-x) var(--dd-page-padding-x);
    /* The colour comes up out of main's white surface instead of being there
       from the first frame. Only a from-keyframe is given: with no to-frame
       the animation ends on the element's own background-color, so this one
       rule covers all four variants. Animating opacity on the section would
       have been simpler but pulls the travelling logo rail into the hero's
       stacking context, where the modules below would paint over it. */
    animation: ddHeroBgIn 0.9s ease both;
}
@keyframes ddHeroBgIn {
    from { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .dd-hero {
        animation: none;
    }
}
.dd-hero--h-full   { min-height: var(--dd-hero-height-full); }
.dd-hero--h-large  { min-height: 75vh; }
.dd-hero--h-medium { min-height: 40vh; }

.dd-hero--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-hero--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }
.dd-hero--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-hero--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }

.dd-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
    /* Fades in on load on every page that carries a hero. Only the content
       fades, not the section: the background matches the body, so fading it
       would be invisible work. Deliberately a CSS animation rather than a
       class flipped by script - that way nothing stays hidden if the script
       never runs. It ends about where the logo letters finish sharpening. */
    animation: ddFadeIn 0.9s ease both;
}
@media (prefers-reduced-motion: reduce) {
    .dd-hero__inner {
        animation: none;
    }
}

/* The logo rail spans all of <main> (absolute, and main is the nearest
   positioned ancestor), which is what lets the sticky logo inside it keep
   going past the hero. It is centred on the content column and takes no
   layout space of its own. */
.dd-logo-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 2 * var(--dd-page-padding-x), var(--dd-content-max-width));
    pointer-events: none;
    z-index: 2;
}
.dd-logo {
    position: sticky;
    display: block;
    /* The rail ignores pointer events so it cannot cover the page; the logo
       itself has to take them back to stay clickable. */
    pointer-events: auto;
    top: var(--dd-page-padding-top);
    /* Starts out on the hero's vertical centre: half its height down, less
       half the logo's own height. Tied to the hero's own token rather than
       to the viewport, so a shorter hero takes the logo with it. */
    margin-top: calc(var(--dd-hero-height-full) / 2 - var(--dd-hero-logo-start, 6.5px));
    width: var(--dd-hero-logo-width, 275px);
    color: var(--dd-color-text);
    transition: color 0.3s ease;
}
.dd-logo.is-light {
    color: var(--dd-color-text-light);
}
/* Pages without a hero: the logo starts at the top of the page instead of
   half a viewport down, and sticks from the first frame. */
.dd-logo--top {
    margin-top: 0;
}
.dd-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Every letter of the logo is its own <path>, so they can sharpen up one
   after another on load. The index comes from script.js. */
.dd-logo svg path {
    filter: blur(var(--dd-logo-blur, 3px));
    animation: ddLogoLetterIn 0.45s ease forwards;
    animation-delay: calc(var(--dd-logo-letter, 0) * 0.04s);
}
@keyframes ddLogoLetterIn {
    to { filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .dd-logo svg path {
        filter: blur(0);
        animation: none;
    }
}

.dd-hero__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--horizontal-space-4);
}
.dd-hero__lead {
    max-width: 520px;
}
/* Page title in a subpage hero. Same size as a module headline, but at full
   strength - the muted treatment that suits a section label would leave a
   page title barely readable on the dark background. */
.dd-hero__title {
    display: inline-block;
    font-size: var(--dd-font-size-p-l);
    font-weight: var(--dd-font-weight-regular);
}
.dd-hero__title + .dd-hero__description {
    margin-top: var(--vertical-space-3);
}
/* Needs its own width: as a flex item it would otherwise shrink-wrap to the
   button's text, leaving the button's width:100% nothing to fill out to. */
.dd-hero__cta {
    flex-shrink: 0;
    width: 100%;
    max-width: var(--dd-button-max-width);
}

@media only screen and (max-width: 800px) {
    .dd-hero__bottom {
        flex-direction: column;
        align-items: stretch;
        gap: var(--vertical-space-4);
    }
}


/* Module: Platzhalter-Sektion ---------------------------------------------- */
.dd-section {
    margin-block: 0;
    /* Placeholder height only - real modules bring their own. Without it the
       page is barely a screen taller than the hero, and anything measured
       past the hero's bottom edge can never be scrolled to. */
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: var(--dd-module-padding-y) var(--dd-page-padding-x);
}
.dd-section--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-section--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }
.dd-section--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-section--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }
.dd-section__inner {
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
}


/* Anchor nav ---------------------------------------------------------------
   Pinned flush to the bottom centre. Hidden by default and slid out of view
   downwards; script.js flips .is-visible once the hero has scrolled past. */
.dd-anchor-nav {
    --dd-anchor-nav-offset: 30px;
    position: fixed;
    /* Reference box for the travelling active indicator. */
    bottom: var(--dd-anchor-nav-offset);
    left: 50%;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 0;
    /* No padding of its own - the links' own 8px/10px defines the bar's
       height, so an active box fills it edge to edge. */
    padding: 0;
    border-radius: var(--dd-radius);
    /* Purely for centring - the bar no longer travels, it fades and blurs
       in and out at both ends of the page. */
    transform: translateX(-50%);
    /* visibility keeps the hidden bar out of the tab order and away from hit
       testing; delaying it by the fade duration lets the exit finish before
       it disappears. `hidden` is no use here - this rule's own display:flex
       outranks the browser's [hidden] rule. */
    visibility: hidden;
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease, visibility 0s linear 0.4s;
}
.dd-anchor-nav.is-visible {
    visibility: visible;
    opacity: 1;
    /* No filter at all while resting - an ancestor filter forces Safari to
       re-run a blur pass over the labels on every repaint. none interpolates
       against blur() as the identity, so the exit still animates. */
    filter: none;
    pointer-events: auto;
    transition: opacity 0.4s ease, filter 0.4s ease, visibility 0s linear 0s;
}

/* Every link carries the active box's padding, so switching the active item
   never resizes the bar. */
.dd-anchor-nav__link {
    position: relative;
    isolation: isolate;
    padding: 10px 20px;
    font-size: var(--dd-font-size-p);
    color: var(--dd-color-white);
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Label and box are both positioned children with an explicit order. */
.dd-anchor-nav__label {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.dd-anchor-nav__link:hover .dd-anchor-nav__label {
    opacity: 0.5;
}

/* Background and blur live here rather than on the bar, so animating the
   labels above them does not drag Safari's backdrop sampling along. */
.dd-anchor-nav__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: color-mix(in srgb, var(--dd-color-light-grey) 15%, transparent);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.4s ease;
}

/* The active box. Sized and moved from script.js; it draws out from the
   left the first time an anchor becomes active and slides across from then
   on. */
.dd-anchor-nav__indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: var(--dd-color-dark-brown);
    transform: translateX(0);
    transition: transform 0.4s ease, width 0.4s ease;
    pointer-events: none;
}

.dd-anchor-nav.is-on-light .dd-anchor-nav__backdrop {
    background: color-mix(in srgb, var(--dd-color-light-grey) 50%, transparent);
}

/* The bar stays white; over a light module the labels flip to dark instead.
   Anything sitting on a box - hovered or active - goes back to white, since
   that box is dark-brown either way. */
.dd-anchor-nav.is-on-light .dd-anchor-nav__link {
    color: var(--dd-color-text);
}
.dd-anchor-nav.is-on-light .dd-anchor-nav__link.is-active {
    color: var(--dd-color-white);
}

@media only screen and (max-width: 800px) {
    .dd-anchor-nav {
        /* Stays centred on its own width, as on desktop, but may not grow
           past the page gutter. Only once the labels outrun that cap does it
           stop growing and start scrolling inside - with a handful of items
           the bar simply sits in the middle at its natural width. */
        --dd-anchor-nav-offset: 15px;
        max-width: calc(100% - 2 * var(--dd-anchor-nav-offset));
        overflow-x: auto;
        /* Dissolves whichever edge still has bar hidden behind it; script.js
           sets the classes below. Both fades sit in one gradient, each side
           switched on by its own width - left at 0 the stop pair collapses
           and that edge stays fully opaque. The mask goes on the bar itself:
           a pseudo-element would be positioned inside the scroll area and
           travel along with the labels instead of holding the edge. */
        --dd-anchor-nav-fade: 50px;
        --dd-anchor-nav-fade-start: 0px;
        --dd-anchor-nav-fade-end: 0px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--dd-anchor-nav-fade-start), #000 calc(100% - var(--dd-anchor-nav-fade-end)), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 var(--dd-anchor-nav-fade-start), #000 calc(100% - var(--dd-anchor-nav-fade-end)), transparent 100%);
        scrollbar-width: none;
        /* The backdrop layer is positioned against the bar's visible box, so
           it would slide out from under the labels as they scroll. Here the
           blur goes on the bar itself; the separate layer was guarding
           against a hover repaint, and there is no hover on touch. */
        background: color-mix(in srgb, var(--dd-color-light-grey) 15%, transparent);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
    .dd-anchor-nav.is-on-light {
        background: color-mix(in srgb, var(--dd-color-light-grey) 50%, transparent);
    }
    .dd-anchor-nav__backdrop {
        display: none;
    }
    .dd-anchor-nav__link {
        /* Without this the labels would be squeezed instead of overflowing,
           and there would be nothing to scroll. */
        flex: none;
        padding: 10px 14px;
    }
    .dd-anchor-nav.is-overflow-start {
        --dd-anchor-nav-fade-start: var(--dd-anchor-nav-fade);
    }
    .dd-anchor-nav.is-overflow-end {
        --dd-anchor-nav-fade-end: var(--dd-anchor-nav-fade);
    }
}



/* Module: Tools / Listen ---------------------------------------------------
   Four columns of a small heading plus a list, rebuilt from the old
   capabilities section on the v2 tokens. */
.dd-tools {
    margin-block: 0;
    padding: var(--dd-module-padding-y) var(--dd-page-padding-x);
    /* Extra breathing room below this module's content. */
    padding-bottom: calc(var(--dd-module-padding-y) + 500px);
}
.dd-tools--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-tools--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }
.dd-tools--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-tools--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }

.dd-tools__inner {
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
}
/* Same step down from the headline as .dd-services__list, so both modules
   open identically. */
.dd-tools__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--horizontal-space-4);
    margin-top: 120px;
}

.dd-tools__title {
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-regular);
    color: var(--dd-color-text-muted);
    margin-bottom: var(--vertical-space-4);
}
/* Only the still-scrambled characters; resolved ones keep the text colour. */
.dd-scramble-char {
    color: var(--dd-color-text-muted);
}
.dd-tools__item {
    font-size: var(--dd-font-size-p-l);
    line-height: 1.2;
    /* Shrinks the box to the text so the empty rest of the column does not
       trigger the hover. fit-content rather than inline-block - the items
       have to keep stacking vertically. */
    width: fit-content;
    /* No I-beam: the scramble makes a selection pointless anyway. */
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* Titles pop in one by one, 0.05s apart - no fade, the delay does the work.
   The items are not in here: they reveal by resolving out of their scrambled
   state instead, on the same stagger (see script.js).
   .is-revealed is set once the section scrolls into view. */
.dd-tools[data-reveal] .dd-tools__title {
    opacity: 0;
}
.dd-tools[data-reveal].is-revealed .dd-tools__title {
    animation: ddRevealItem 0s forwards;
    animation-delay: calc(var(--dd-item-index, 0) * 0.05s);
}
@keyframes ddRevealItem {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .dd-tools[data-reveal] .dd-tools__title {
        opacity: 1;
        animation: none;
    }
}

@media only screen and (max-width: 800px) {
    .dd-tools__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--vertical-space-8) var(--horizontal-space-4);
        margin-top: 60px;
    }
    /* The 500px of air below the columns is a desktop effect - on a phone it
       reads as a dead screen before the next module. */
    .dd-tools {
        padding-bottom: 140px;
    }
}
@media only screen and (max-width: 520px) {
    .dd-tools__grid {
        grid-template-columns: 1fr;
    }
}


/* Module: What we do / Services -------------------------------------------- */
.dd-services {
    margin-block: 0;
    padding: var(--dd-module-padding-y) var(--dd-page-padding-x);
}
.dd-services--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-services--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }
.dd-services--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-services--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }

.dd-services__inner {
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
}

/* Module/page headline. Shared so the text pages read in the same voice as
   the modules. */
.dd-headline {
    display: inline-block;
    font-size: var(--dd-font-size-p-l);
    font-weight: var(--dd-font-weight-regular);
    color: var(--dd-color-text-muted);
}

.dd-services__list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 120px;
}

.dd-services__item {
    position: relative;
    width: 50vw;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: flex-start;
    gap: var(--horizontal-space-4);
}

.dd-services__title {
    grid-column: 1;
    font-size: var(--dd-font-size-p);
    font-weight: 500;
    /* German compounds like "Softwareentwicklung" are wider than the narrow
       title column. Hyphenation follows the page's lang attribute. */
    -webkit-hyphens: auto;
    hyphens: auto;
}
.dd-services__description {
    /* Leaves column 2 empty: title on the first track, description across
       the last two. */
    grid-column: 3 / span 2;
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-regular);
    /* Own mix rather than --dd-color-text-muted (30%), which the tools
       titles and scramble characters share. */
    color: color-mix(in srgb, currentColor 50%, transparent);
    text-align: left;
}

/* The rule above the item is its own layer rather than a border-top: a
   border cannot be scaled, and this one has to draw itself in from the
   left as the item appears. */
.dd-services__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--dd-color-dark-brown);
    transform-origin: left;
}

/* Items fade in one after another once the module scrolls into view, each
   with its rule drawing out underneath it on the same delay. */
.dd-services[data-reveal] .dd-services__item {
    opacity: 0;
}
.dd-services[data-reveal] .dd-services__item::before {
    transform: scaleX(0);
}
.dd-services[data-reveal].is-revealed .dd-services__item {
    animation: ddFadeIn 1s ease forwards;
    animation-delay: calc(var(--dd-item-index, 0) * 0.1s);
}
.dd-services[data-reveal].is-revealed .dd-services__item::before {
    animation: ddLineIn 1s ease forwards;
    animation-delay: calc(var(--dd-item-index, 0) * 0.1s);
}
@keyframes ddFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ddLineIn {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .dd-services[data-reveal] .dd-services__item {
        opacity: 1;
        animation: none;
    }
    .dd-services[data-reveal] .dd-services__item::before {
        transform: scaleX(1);
        animation: none;
    }
}

@media only screen and (max-width: 800px) {
    .dd-services__list {
        gap: 60px;
        margin-top: 60px;
    }
    .dd-services__item {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    /* A single track, so the description falls under the title instead of
       being sent to a column of its own. */
    .dd-services__description {
        grid-column: 1;
    }
}


/* Module: Experience / Zahlen ---------------------------------------------
   Pins for one viewport and scrolls its numbers sideways, then releases the
   page again. The section's own height is set by script.js to whatever the
   track overflows by - that distance is what gets converted into sideways
   travel. */
.dd-experience {
    margin-block: 0;
    padding: 0;
}
.dd-experience--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-experience--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }
.dd-experience--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-experience--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }

.dd-experience__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dd-experience__track {
    display: flex;
    align-items: flex-start;
    gap: 15vw;
    padding-inline: var(--dd-page-padding-x);
    will-change: transform;
}

.dd-experience__item {
    flex: none;
    display: flex;
    flex-direction: column;
}

.dd-experience__number {
    font-family: var(--dd-font-family-display);
    /* Deliberately wider than the viewport, so a number only reveals itself
       as you scroll through it. Tune here if the crop feels off. */
    font-size: var(--dd-experience-number-size, 50vh);
    line-height: 0.8;
    white-space: nowrap;
}

.dd-experience__label {
    text-align: right;
    padding-right: 10px;
}

/* Set through the tuning hook rather than font-size, so the declaration
   above stays the one place the size is read from. On a phone 50vh is both
   taller than the pin and far too wide to read as a number. */
@media only screen and (max-width: 800px) {
    .dd-experience__number {
        --dd-experience-number-size: 30vw;
    }
    .dd-experience__item {
        gap: 15px;
    }
}


/* Module: Kontaktformular -------------------------------------------------
   Borders and labels run off currentColor, so the module works on the light
   and the dark backgrounds without a second set of rules. */
.dd-form {
    margin-block: 0;
    min-height: 60vh;
    padding: var(--dd-module-padding-y) var(--dd-page-padding-x);
}
.dd-form--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-form--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }
.dd-form--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-form--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }

.dd-form__inner {
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
}
.dd-form__body {
    max-width: 640px;
    margin-inline: auto;
}
/* Only spaced off a headline when there is one - the contact page drops it,
   since the hero above already carries the page title. */
.dd-headline + .dd-form__body {
    margin-top: 120px;
}
.dd-form__intro {
    font-size: var(--dd-font-size-p);
    margin-bottom: var(--vertical-space-6);
}

/* Name and email side by side, message full width. */
.dd-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--horizontal-space-4);
}
.dd-form__field + .dd-form__field,
.dd-form__row + .dd-form__field {
    margin-top: var(--vertical-space-5);
}
.dd-form__row .dd-form__field + .dd-form__field {
    margin-top: 0;
}

.dd-form__label {
    display: block;
    font-size: var(--dd-font-size-p);
    color: var(--dd-color-text-muted);
    margin-bottom: var(--vertical-space-2);
}
.dd-form__input {
    display: block;
    width: 100%;
    font-family: var(--dd-font-family);
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-regular);
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: var(--dd-radius);
    padding: var(--dd-button-padding);
}
.dd-form__textarea {
    resize: vertical;
}
/* Kept rather than removed: a form with no visible focus is unusable by
   keyboard. */
.dd-form__input:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

/* The palette has no signal colour, so errors are marked by weight and by
   aria-invalid rather than by red. */
.dd-form__error,
.dd-form__notice {
    font-size: var(--dd-font-size-p);
    font-weight: 500;
    margin-top: var(--vertical-space-2);
}
.dd-form__notice {
    margin-top: 0;
    margin-bottom: var(--vertical-space-5);
}

.dd-form__actions {
    margin-top: var(--vertical-space-6);
    display: flex;
    justify-content: flex-end;
}

@media only screen and (max-width: 800px) {
    .dd-form__row {
        grid-template-columns: 1fr;
        /* Stacked, the column gap turns into a row gap and lands on top of
           the margin below - which left name and email further apart than
           any other pair of fields. The margin alone keeps them on the same
           rhythm as the rest of the form. */
        gap: 0;
    }
    .dd-form__row .dd-form__field + .dd-form__field {
        margin-top: var(--vertical-space-5);
    }
}

/* Native select chrome varies per platform and clashes with the square
   style, so the arrow is drawn here and the native one switched off. */
.dd-form__select {
    position: relative;
}
.dd-form__select select,
.dd-form__select-button {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

/* Styled dropdown. script.js puts a button and a list next to the select,
   because an option's hover colour comes from the operating system and
   cannot be set. The native control stays in the form and keeps the value -
   .is-enhanced is only set once its replacement is in the document, so a
   script that never runs leaves a working select behind. */
.dd-form__select.is-enhanced select {
    /* Out of sight and out of the tab order, still submitting. */
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.dd-form__select-button {
    text-align: left;
}
.dd-form__select-list {
    position: absolute;
    /* Sits on the button's own border rather than below it. */
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 10;
    /* An opaque sheet of its own: the module behind it comes in four
       background variants, and a see-through list over the fields below
       would be unreadable on any of them. */
    background: var(--dd-color-white);
    color: var(--dd-color-text);
    border: 1px solid var(--dd-color-text);
    max-height: 240px;
    overflow-y: auto;
}
.dd-form__select-option {
    padding: var(--dd-button-padding);
    cursor: pointer;
}
/* Brown fill under the pointer and under the keyboard's position alike -
   .is-active is the one the arrow keys are on. */
.dd-form__select-option:hover,
.dd-form__select-option.is-active {
    background: var(--dd-color-dark-brown);
    color: var(--dd-color-white);
}
/* The choice already made stays marked when the pointer is elsewhere. */
.dd-form__select-option[aria-selected="true"] {
    font-weight: 500;
}
/* Selected by default, but nothing has been chosen yet - it reads as a
   placeholder, the way an empty input's would. */
.dd-form__select-option.is-placeholder {
    font-weight: var(--dd-font-weight-regular);
    color: var(--dd-color-text-muted);
}
.dd-form__select-option.is-placeholder:hover,
.dd-form__select-option.is-placeholder.is-active {
    color: var(--dd-color-white);
}
/* The arrow turns over while the list is open. */
.dd-form__select.is-open::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.dd-form__select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}


/* Module: About / Team ----------------------------------------------------
   Text at the top, the team underneath as portraits - four across on
   desktop, folding to two and then one. */
.dd-about {
    margin-block: 0;
    min-height: 60vh;
    padding: var(--dd-module-padding-y) var(--dd-page-padding-x);
}
.dd-about--bg-white      { background: var(--dd-color-white);      color: var(--dd-color-text); }
.dd-about--bg-light-grey { background: var(--dd-color-light-grey); color: var(--dd-color-text); }
.dd-about--bg-dark-brown { background: var(--dd-color-dark-brown); color: var(--dd-color-text-light); }
.dd-about--bg-dark-grey  { background: var(--dd-color-dark-grey);  color: var(--dd-color-text-light); }

.dd-about__inner {
    width: 100%;
    max-width: var(--dd-content-max-width);
    margin-inline: auto;
}

.dd-about__text {
    max-width: 46em;
}
.dd-about__text p,
.dd-about__text li {
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-regular);
}
.dd-about__text p + p,
.dd-about__text ul,
.dd-about__text ol {
    margin-top: var(--vertical-space-4);
}

.dd-about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--horizontal-space-4);
}
/* Only spaced off the text when there is one - and tied to the text rather
   than to the grid's position, so the module's screen-reader headline
   cannot shift the gap by sitting in front of it. */
.dd-about__text ~ .dd-about__grid {
    margin-top: 120px;
}

.dd-about__portrait {
    display: block;
    width: 100%;
    height: auto;
    /* The uploaded file sets its own ratio aside, the crop happens here. */
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--dd-radius);
}
.dd-about__portrait--empty {
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.dd-about__name {
    font-size: var(--dd-font-size-p);
    font-weight: 500;
    margin-top: var(--vertical-space-4);
}
.dd-about__description {
    font-size: var(--dd-font-size-p);
    font-weight: var(--dd-font-weight-regular);
    color: color-mix(in srgb, currentColor 50%, transparent);
    margin-top: var(--vertical-space-2);
}

/* Same staggered entry as the services list. */
.dd-about[data-reveal] .dd-about__member {
    opacity: 0;
}
.dd-about[data-reveal].is-revealed .dd-about__member {
    animation: ddFadeIn 1s ease forwards;
    animation-delay: calc(var(--dd-item-index, 0) * 0.1s);
}
@media (prefers-reduced-motion: reduce) {
    .dd-about[data-reveal] .dd-about__member {
        opacity: 1;
        animation: none;
    }
}

@media only screen and (max-width: 1000px) {
    .dd-about__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--horizontal-space-6) var(--horizontal-space-4);
    }
}
@media only screen and (max-width: 520px) {
    .dd-about__grid {
        grid-template-columns: 1fr;
    }
}

/* The two modules that carry a single block of content rather than a list.
   Both are a whole screen on their own page, so they take more of the
   viewport here than the 60vh they hold on desktop. Kept in one rule so the
   value cannot drift apart. */
@media only screen and (max-width: 800px) {
    .dd-about,
    .dd-form {
        min-height: 80vh;
    }
}


/* Modules that fade in as a whole when they reach the viewport, rather than
   staggering their items: contact form, about text and the legal text pages.
   Guarded by .dd-js so the content is never left hidden if the script that
   flips .is-revealed does not run. */
.dd-js .dd-form[data-reveal] .dd-form__inner,
.dd-js .dd-about[data-reveal] .dd-about__text,
.dd-js .dd-text[data-reveal] .dd-text__inner {
    opacity: 0;
}
.dd-js .dd-form[data-reveal].is-revealed .dd-form__inner,
.dd-js .dd-about[data-reveal].is-revealed .dd-about__text,
.dd-js .dd-text[data-reveal].is-revealed .dd-text__inner {
    animation: ddFadeIn 0.9s ease both;
}
@media (prefers-reduced-motion: reduce) {
    .dd-js .dd-form[data-reveal] .dd-form__inner,
    .dd-js .dd-about[data-reveal] .dd-about__text,
    .dd-js .dd-text[data-reveal] .dd-text__inner {
        opacity: 1;
        animation: none;
    }
}

/* Nur fuer Screenreader und Suchmaschinen sichtbar - nimmt keinen Platz ein
   und beeinflusst das Layout nicht. */
.dd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
