/*
 * Design refresh
 *
 * Rolled out element by element: every element has an alternative template "<default>_v2"
 * (DesignRefreshUtil::TEMPLATES), picked as "Custom template" on the element or module, or as the
 * page layout's template (fe_page_tailwind_v2). fe_page_tailwind loads this file only when
 * a refresh template is in use and gives the body one class per refresh template in use:
 *
 *   refresh-page          fe_page_tailwind_v2        fonts, type scale, section spacing, grid, buttons, floating button
 *   refresh-top-bar       mod_top_bar_v2
 *   refresh-header        mod_header_v2              menu, dropdown, mobile menu
 *   refresh-footer        mod_footer_v2
 *   refresh-hero          ce_hero_v2
 *   refresh-references    ce_references_v2           press logos
 *   refresh-image-slider  ce_image_slider_v2         Schwerpunkte
 *   refresh-team          ce_team_v2
 *   refresh-testimonial   ce_testimonial_v2          reviews
 *   refresh-blog-slider   ce_blog_slider_v2          Aktuelles
 *
 * plus "refresh" whenever any of them is in use (variables, split buttons, stars). The design
 * preview page (CSS class "design-preview") uses every refresh template. Sections 1-11 are the
 * first round of small fixes, section 12 is the redesign "C": same sections, content and brand
 * as the live page, with a new grid, type scale, hero, buttons and cards.
 */

body.refresh {
    --dp-fallback: "DP Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --dp-radius-card: 12px;
    --dp-section-space: 3.5rem;
}

body.refresh-page {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
    body.refresh {
        --dp-section-space: 5rem;
    }
}

/* ------------------------------------------------------------------
 * 1. Web fonts: the font stacks had no fallback, so the browser showed
 *    its default serif font until the 1.2 MB font bundle had loaded
 *    (visible on mobile). Every stack now falls back to a system sans.
 * ------------------------------------------------------------------ */

/* The 1.2 MB font bundle (base64 WOFF in a CSS file) loads after the first paint, so
 * the text first showed in the fallback font and then jumped to Inter. The preview uses
 * its own Latin-subset WOFF2 files instead (about 26 KB each, preloaded in
 * fe_page_tailwind), under their own family names so the bundle cannot swap them again.
 * "DP Inter Fallback" is Arial scaled to Inter's metrics, so even a late font load
 * hardly moves the text. */
@font-face {
    font-family: "DP Inter";
    src: url("../fonts/preview/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "DP Inter Medium";
    src: url("../fonts/preview/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "DP Inter SemiBold";
    src: url("../fonts/preview/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "DP Inter Bold";
    src: url("../fonts/preview/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "DP Inter Fallback";
    src: local("Arial"), local("ArialMT"), local("Helvetica");
    size-adjust: 107.4%;
    ascent-override: 90.2%;
    descent-override: 22.5%;
    line-gap-override: 0%;
}

body.refresh-page,
body.refresh-page .font-sans,
body.refresh-page .font-serif,
body.refresh-page .font-mono,
body.refresh-page .font-inter {
    font-family: "DP Inter", var(--dp-fallback);
}

body.refresh-page .font-interMedium { font-family: "DP Inter Medium", "DP Inter", var(--dp-fallback); font-weight: 500; }
body.refresh-page .font-interSemiBold { font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback); font-weight: 600; }
body.refresh-page .font-interBold { font-family: "DP Inter Bold", "DP Inter", var(--dp-fallback); font-weight: 700; }

body.refresh-page .font-pjSans { font-family: "Plus Jakarta Sans", var(--dp-fallback); }
body.refresh-page .font-pjSansLight { font-family: "Plus Jakarta Sans Light", "Plus Jakarta Sans", var(--dp-fallback); font-weight: 300; }
body.refresh-page .font-pjSansMedium { font-family: "Plus Jakarta Sans Medium", "Plus Jakarta Sans", var(--dp-fallback); font-weight: 500; }
body.refresh-page .font-pjSansSemiBold { font-family: "Plus Jakarta Sans SemiBold", "Plus Jakarta Sans", var(--dp-fallback); font-weight: 600; }
body.refresh-page .font-pjSansBold { font-family: "Plus Jakarta Sans Bold", "Plus Jakarta Sans", var(--dp-fallback); font-weight: 700; }

/* Urbanist faces are all declared with weight 400, so no font-weight here (avoids faux bold) */
body.refresh-page .font-urbanist { font-family: "Urbanist", var(--dp-fallback); }
body.refresh-page .font-urbanistMedium { font-family: "Urbanist Medium", "Urbanist", var(--dp-fallback); }
body.refresh-page .font-urbanistBold { font-family: "Urbanist Bold", "Urbanist", var(--dp-fallback); }

body.refresh-page .font-inter strong {
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback) !important;
}

/* ------------------------------------------------------------------
 * 2. Font sizes: fluid hero headline, tighter line height on large
 *    headings, slightly larger small copy on mobile
 * ------------------------------------------------------------------ */

body.refresh-page h1,
body.refresh-page h2,
body.refresh-page h3 {
    text-wrap: balance;
}

body.refresh-page .section .headline > * {
    font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

body.refresh-testimonial .testimonialslider-container .testimony-text,
body.refresh-blog-slider .blogslider-container .teaser {
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (min-width: 1280px) {
    body.refresh-testimonial .testimonialslider-container .testimony-text {
        font-size: 1rem;
    }
}

/* ------------------------------------------------------------------
 * 3. Spacing: one consistent section rhythm (56 px mobile, 80 px desktop)
 * ------------------------------------------------------------------ */

body.refresh-page .section.py-14 {
    padding-top: var(--dp-section-space);
    padding-bottom: var(--dp-section-space);
}

body.refresh-page .section.pt-14 {
    padding-top: var(--dp-section-space);
}

/* headline-only section (team): the following section is its content, so no second section padding in between */
body.refresh-page .section.pt-14:not(.py-14) + .section.py-14 {
    display: flow-root; /* keeps the slider's top margin inside the section */
    padding-top: 0;
}

@media (min-width: 768px) {
    body.refresh-page .section.pt-14:not(.py-14) + .section.py-14 {
        padding-top: 2rem;
    }
}

body.refresh-page .section .headline + .splide,
body.refresh-page .section .headline + * {
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    body.refresh-page .section .headline + .splide,
    body.refresh-page .section .headline + * {
        margin-top: 2rem;
    }
}

body.refresh-page .splide__pagination {
    margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
 * 4. Hero: see section 12b
 * ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
 * 5. Buttons: one size and radius for all primary buttons
 * ------------------------------------------------------------------ */

body.refresh-page a.button-animation.rounded-\[8px\] {
    min-height: 3.25rem;
    padding: 0.875rem 1.75rem;
    gap: 0.75rem;
    border-radius: 8px;
    line-height: 1.25;
}

/* ------------------------------------------------------------------
 * 6. Menu / navigation
 * ------------------------------------------------------------------ */

@media (min-width: 1024px) {
    body.refresh-header #header .navigation > ul {
        align-items: center;
        gap: 2rem;
    }

    body.refresh-header #header .navigation > ul a,
    body.refresh-header #header .navigation > ul button {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    body.refresh-header #header .navigation ul ul a {
        display: block;
        padding: 0.25rem 0;
    }

    body.refresh-header #header .navigation ul ul li {
        padding: 0.5rem 1.25rem;
    }
}

/* top bar Instagram / LinkedIn icons: both files fill the same 24px box, but the "in" stands on flat, heavy feet while the Instagram square
   only touches the bottom with its middle (rounded corners), so "in" looked lower and bigger. Optical correction: "in" 22px, centred,
   so the rounded square overshoots it by 1px on top and bottom (whole pixels, stays sharp). Size is an inline style, hence !important */
body.refresh-top-bar #header .topbar-container img[src$="social/linkedin.svg"] {
    width: 22px !important;
    height: 22px !important;
}

/* larger touch targets in the mobile menu (48 px rows, 16 px text) */
body.refresh-header #mobileMenu .divide-y > a,
body.refresh-header #mobileMenu .divide-y > span,
body.refresh-header #mobileMenu .divide-y > div > a,
body.refresh-header #mobileMenu [data-mobile-page-id] {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-size: 1rem;
    line-height: 1.25rem;
}

/* "Hauptmenü" / "Zurück zum Hauptmenü" bar: same height as the menu items below it */
body.refresh-header #mobileMenu [data-mobile-level] > div:first-child {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    align-items: center;
    line-height: 1.25rem;
}

body.refresh-header #mobileMenu [data-mobile-level] > div:first-child > * {
    line-height: 1.25rem;
}

/* submenu (e.g. Schwerpunkte): title row and sub-items the same 48px height as the main menu items, sub-items keep their indent */
body.refresh-header #mobileMenu [data-mobile-page-id-target] > div {
    padding-top: 0;
    padding-bottom: 0;
}

body.refresh-header #mobileMenu [data-mobile-page-id-target] > div > p {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    line-height: 1.25rem;
}

body.refresh-header #mobileMenu [data-mobile-page-id-target] .divide-y > div {
    padding-top: 0;
    padding-bottom: 0;
}

body.refresh-header #mobileMenu [data-mobile-page-id-target] .divide-y > div > a {
    display: block;
}

/* ------------------------------------------------------------------
 * 7. Press logo bar: same optical height for all logos, calmer spacing
 * ------------------------------------------------------------------ */

body.refresh-references .references-container {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(28, 36, 51, 0.08);
}

@media (min-width: 1024px) {
    body.refresh-references .references-container .lg\:flex {
        align-items: center;
        column-gap: 3.5rem;
    }

    body.refresh-references .references-container .lg\:flex img {
        max-height: 36px;
        transition: opacity 0.2s ease, filter 0.2s ease;
    }

    body.refresh-references .references-container .lg\:flex img:hover {
        opacity: 0.85;
        filter: none;
    }
}

body.refresh-references .references-container .animate-marqueefs-pre img,
body.refresh-references .references-container .animate-marqueefs2-pre img {
    height: 2rem;
}

/* ------------------------------------------------------------------
 * 8. Cards and images: one corner radius, consistent crops
 * ------------------------------------------------------------------ */

body.refresh-image-slider .imageslider-container .splide__slide img {
    border-radius: var(--dp-radius-card);
}

/* the focus area slider no longer loops, so the 16rem "peek" on the right would stay empty on the last page */
@media (min-width: 768px) {
    body.refresh-image-slider .imageslider-container .splide .splide__track {
        padding-right: 0 !important;
    }

    body.refresh-image-slider .imageslider-container .splide::after {
        display: none;
    }
}

body.refresh-image-slider .imageslider-container .splide__slide > div > span {
    display: block;
    margin-top: 0.75rem;
    line-height: 1.35;
}

@media (max-width: 767px) {
    body.refresh-image-slider .imageslider-container .splide__slide img {
        height: 240px;
    }

    body.refresh-image-slider .imageslider-container .splide__slide a.button-animation {
        width: 88px;
        height: 88px;
    }
}

body.refresh-testimonial .testimonialslider-container .splide__slide > div {
    border-radius: var(--dp-radius-card);
}

body.refresh-blog-slider .blogslider-container .splide__slide .rounded-\[8px\] {
    border-radius: var(--dp-radius-card);
}

/* the blog image sits inside the teaser, which "mt-auto" keeps at the bottom of every card: round all corners evenly */
body.refresh-blog-slider .blogslider-container .splide__slide img {
    border-radius: 8px;
}

/* one spacing value for the card: inner padding = pill to headline = headline to image (24px, 12px on mobile).
   The image gap is padding, so "mt-auto" still aligns the images; it is the minimum gap, longer headlines decide the card height */
body.refresh-blog-slider .blogslider-container .splide__slide .p-6 {
    --dp-card-pad: 1.5rem;
    padding: var(--dp-card-pad);
}

/* the headline's line height leaves empty space above the capitals and below the baseline (about 7px at 18px/28px).
   Subtract it so the visible gaps match the padding. Inter Bold metrics: ascent 0.944em, descent 0.222em, cap height 0.727em
   -> space above capitals = 0.5lh - 0.366em, space below baseline = 0.5lh - 0.361em */
body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > span.text-lg {
    margin-top: var(--dp-card-pad);
    margin-top: calc(var(--dp-card-pad) + 0.25rem - (0.5lh - 0.366em)); /* +4px: a filled pill right above the capitals looks tighter than the same white space elsewhere */
    margin-bottom: calc(-1 * (0.5lh - 0.361em));
}

body.refresh-blog-slider .blogslider-container .teaser {
    padding-top: var(--dp-card-pad);
}

/* category pill ("Online-Glücksspiel", "Bank- und Kapitalmarktrecht", ...): same radius as the image, the other element inside the card.
   (inner = outer radius - inset would give 12px - 12/24px padding = 0, i.e. square corners, so the card radius itself is too round for it) */
body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > .rounded-\[40px\] {
    border-radius: 8px;
}

/* every card fills its slide (the link is "flex" without a width, so cards were only as wide as their text and images differed in size) */
body.refresh-blog-slider .blogslider-container .splide__slide > a,
body.refresh-blog-slider .blogslider-container .splide__slide > a > div {
    width: 100%;
}

/* headline at most 4 lines, so every card has the same pill - headline - image rhythm while the images stay aligned */
body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > span.text-lg {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

/* mobile: less card padding so the image gets wider */
@media (max-width: 767px) {
    body.refresh-blog-slider .blogslider-container .splide__slide .p-6 {
        --dp-card-pad: 0.75rem;
    }
}

/* team photos: same black and white look, faces not cut off at the top */
body.refresh-team .testimonialslider-container > .max-w-container img.rounded-full.object-cover {
    object-position: center 25%;
    filter: grayscale(1);
}

/* ------------------------------------------------------------------
 * 9. Colors: only contrast fixes
 * ------------------------------------------------------------------ */

/* testimonial dates were #b1b1b1 (2.1:1), now 4.6:1 */
body.refresh-testimonial .testimonialslider-container .text-\[\#b1b1b1\] {
    color: #707070;
}

body.refresh-page .splide__pagination__page {
    border-color: rgba(26, 58, 96, 0.6);
}

/* ------------------------------------------------------------------
 * 10. Floating "Jetzt Online-Anfrage stellen" button: smaller on
 *     desktop, icon-only on mobile so it does not cover content
 * ------------------------------------------------------------------ */

body.refresh-page #chatbot {
    right: 24px;
    border-width: 2px;
}

body.refresh-page #chatbot.move-in {
    bottom: 24px;
}

/* once the footer's bottom row (copyright) scrolls into view the button stops above it (--dp-footer-overlap is set by the script in fe_page_tailwind) */
body.refresh-page #chatbot {
    transform: translateY(calc(-1 * var(--dp-footer-overlap, 0px)));
}

body.refresh-page #chatbot > span {
    padding: 0.75rem 0.25rem 0.75rem 0.75rem;
    font-size: 0.9375rem;
}

body.refresh-page #chatbot svg {
    height: 44px;
}

@media (max-width: 767px) {
    body.refresh-page #chatbot {
        right: 16px;
        width: 56px;
        height: 56px;
        /* the white glow from chatbot.css (1em blur, 0.5em spread) is far bigger than the small round button: use a subtle dark shadow instead */
        -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        padding: 0;
        gap: 0;
        justify-content: center;
        border-radius: 9999px;
    }

    body.refresh-page #chatbot.move-in {
        bottom: 16px;
    }

    body.refresh-page #chatbot > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    /* icon box fills the round button: icon dead centre, no divider ("flex-item + flex-item" border from chatbot.css) */
    body.refresh-page #chatbot > div {
        padding: 0;
        border-left: 0;
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
    }

    /* loading spinner after a tap: centred in the button as well */
    body.refresh-page #chatbot .chatbotSpinner {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    body.refresh-page #chatbot .w-2 {
        display: none;
    }

    body.refresh-page #chatbot svg {
        width: 26px;
        height: 26px;
        margin: 0;
    }
}

/* ------------------------------------------------------------------
 * 11. Footer: logo aligned with the columns, tighter link lists
 * ------------------------------------------------------------------ */

@media (min-width: 1280px) {
    body.refresh-footer .footer-container .top > div:first-child {
        align-items: flex-start;
    }
}

body.refresh-footer .footer-container .top > .flex-wrap {
    column-gap: 4rem;
    row-gap: 2.5rem;
}

/* keep the three columns in one row on desktop (they wrapped below ~1500px) */
@media (min-width: 1024px) {
    body.refresh-footer .footer-container .top > .flex-wrap {
        flex-wrap: nowrap;
        column-gap: 3rem;
    }

    body.refresh-footer .footer-container .top > .flex-wrap > div {
        flex: 1 1 0;
        min-width: 0;
    }

    body.refresh-footer .footer-container .top > .flex-wrap > div:last-child {
        flex: 0 0 auto;
    }
}

body.refresh-footer .footer-container .top > .flex-wrap > div {
    gap: 1rem;
}

body.refresh-footer .footer-container .top > .flex-wrap > div > div {
    gap: 0.75rem;
}

body.refresh-footer .footer-container .top > .flex-wrap > div > span.font-interSemiBold {
    color: #fff;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.refresh-footer .footer-container .top a,
body.refresh-footer .footer-container .top span {
    line-height: 1.5;
}

/* ==================================================================
 * 12. Redesign "C": the live page's sections, content, navy and Inter,
 *     on a 1280px 12-column grid with a new type scale, a lighter hero,
 *     split buttons, claim badges, a focus-area grid and a review
 *     summary. Markup additions (dp-*) come from the
 *     "_v2" templates.
 * ================================================================== */

body.refresh {
    --dp-navy: #1a3a60;
    --dp-navy-ink: #132d4b;
    --dp-ink: #16202c;
    --dp-muted: #5d6673;
    --dp-line: #e4e7eb;
    --dp-band: #f4f5f7;
    --dp-wrap: 1280px;
    --dp-gut: 20px;
    --dp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dp-section-space: 5rem;
}

@media (min-width: 768px) {
    body.refresh {
        --dp-gut: 32px;
        --dp-section-space: 6rem;
    }
}

@media (min-width: 1024px) {
    body.refresh {
        --dp-gut: 40px;
        --dp-section-space: 7.5rem;
    }
}

/* ---- 12a. Grid: every section on the same 1280px column with the same side gutter ---- */

body.refresh-page .max-w-container,
body.refresh-page .section > .max-w-\[1920px\] {
    max-width: var(--dp-wrap);
}

body.refresh-top-bar .topbar-container,
body.refresh-header .header-container,
body.refresh-hero .hero-container > .flex,
body.refresh-page .section.px-4,
body.refresh-footer .footer-container {
    padding-left: var(--dp-gut);
    padding-right: var(--dp-gut);
}

body.refresh-hero .hero-container .max-w-container {
    padding-left: 0;
    padding-right: 0;
}

/* section headings: centred navy, as on the live page, on a larger scale */
body.refresh-page .section .headline > * {
    font-size: clamp(1.875rem, 1.2rem + 1.6vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

body.refresh-page .section .headline + .splide,
body.refresh-page .section .headline + * {
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    body.refresh-page .section .headline + .splide,
    body.refresh-page .section .headline + * {
        margin-top: 3.5rem;
    }
}

/* ---- 12b. Top bar and header ---- */

/* the e-mail keeps its white pill (the highlight of the top bar), with a soft hover */
body.refresh-top-bar .topbar-container a[href^="mailto:"] {
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    body.refresh-top-bar .topbar-container a[href^="mailto:"]:hover {
        background: #e8eef6;
    }
}

body.refresh-top-bar .topbar-container a[href^="tel:"]:hover {
    opacity: 1;
}

body.refresh-top-bar .topbar-container a[href^="tel:"] {
    opacity: 0.85;
    transition: opacity 0.2s;
}

body.refresh-top-bar .topbar-container .border-l {
    display: none;
}

body.refresh-top-bar .topbar-container .max-w-container > div:last-child {
    gap: 1.75rem;
}

body.refresh-top-bar .topbar-container .max-w-container > div:first-child {
    gap: 1.125rem;
}

/* social icons 18px (inline 24px, hence !important); "in" 1px smaller for the same optical size as the rounded Instagram square */
body.refresh-top-bar #header .topbar-container img[src*="social/"] {
    width: 18px !important;
    height: 18px !important;
    opacity: 0.85;
}

body.refresh-top-bar #header .topbar-container img[src$="social/linkedin.svg"] {
    width: 17px !important;
    height: 17px !important;
}

body.refresh-header #header .header-container {
    filter: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

body.refresh-header #header.dp-scrolled .header-container {
    border-bottom-color: var(--dp-line);
    box-shadow: 0 6px 24px rgba(19, 45, 75, 0.06);
}

@media (min-width: 1024px) {
    /* the header sits on the page grid: the menu spans columns 8-12, so "Schwerpunkte" starts exactly above the hero text */
    body.refresh-header .header-container > .max-w-container {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: 32px;
        align-items: center;
    }

    body.refresh-header .header-container > .max-w-container > a:first-child {
        grid-column: 1 / 4;
    }

    body.refresh-header .header-container .navigation {
        grid-column: 8 / 13;
        font-size: 0.9375rem;
    }

    body.refresh-header #header .navigation > ul {
        justify-content: space-between;
        gap: 0;
    }

    body.refresh-header #header .navigation > ul > li > a,
    body.refresh-header #header .navigation > ul > li > div > button {
        position: relative;
        text-decoration: none;
    }

    body.refresh-header #header .navigation > ul > li > a::after,
    body.refresh-header #header .navigation > ul > li > div > button::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 4px;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s var(--dp-ease);
    }

    body.refresh-header #header .navigation > ul > li > a:hover::after,
    body.refresh-header #header .navigation > ul > li > div > button:hover::after {
        transform: scaleX(1);
    }

    /* Schwerpunkte dropdown: a panel hanging from the header, its text aligned with "Schwerpunkte";
       rows highlight on hover and an arrow slides in */
    body.refresh-header #header .navigation .shadow {
        left: -23px; /* 1px border + 8px panel padding + 14px link padding: item text starts exactly under "Schwerpunkte" */
        right: auto;
        margin-top: var(--dp-dropdown-offset, 2.5rem);
        box-shadow: none;
        background: transparent;
    }

    body.refresh-header #header .navigation ul ul {
        min-width: 22rem;
        padding: 0.5rem;
        border: 1px solid var(--dp-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(19, 45, 75, 0.05), 0 24px 48px rgba(19, 45, 75, 0.14);
        font-family: "DP Inter Medium", "DP Inter", var(--dp-fallback);
        font-weight: 500;
        font-size: 0.9375rem;
        line-height: 1.35;
        color: var(--dp-navy);
    }

    body.refresh-header #header .navigation ul ul.divide-y > li,
    body.refresh-header #header .navigation ul ul li {
        border: 0;
        padding: 0;
    }

    body.refresh-header #header .navigation ul ul a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 0.75rem 0.875rem 0.75rem 0.875rem;
        border-radius: 8px;
        white-space: nowrap;
        text-decoration: none;
        transition: background-color 0.2s;
    }

    body.refresh-header #header .navigation ul ul a::after {
        content: "";
        flex: none;
        width: 16px;
        height: 16px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.25s, transform 0.35s var(--dp-ease);
    }

    body.refresh-header #header .navigation ul ul a:hover,
    body.refresh-header #header .navigation ul ul a:focus-visible {
        background: var(--dp-band);
        text-decoration: none;
    }

    body.refresh-header #header .navigation ul ul a:hover::after,
    body.refresh-header #header .navigation ul ul a:focus-visible::after {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    body.refresh-header .header-container .navigation {
        grid-column: 7 / 13;
    }
}

/* ---- 12c. Hero: lighter overlay, headline + claim + button on the left, text on the right ---- */

body.refresh-hero .hero-container {
    --dp-h1: clamp(2.375rem, 1rem + 3.3vw, 4.125rem);
    overflow: hidden;
}

/* a navy colour tint keeps the photo's own contrast; the shades sit only behind the text (bottom, right) */
body.refresh-hero .hero-container .bg-bgHero {
    background: #97afcc;
    mix-blend-mode: multiply;
}

body.refresh-hero .hero-container > div:first-child > div::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 11;
    background:
        linear-gradient(90deg, rgba(15, 36, 62, 0) 45%, rgba(15, 36, 62, 0.5) 70%, rgba(15, 36, 62, 0.62) 100%),
        linear-gradient(0deg, rgba(15, 36, 62, 0.88) 0%, rgba(15, 36, 62, 0.6) 30%, rgba(15, 36, 62, 0.12) 62%, rgba(15, 36, 62, 0) 100%);
}

body.refresh-hero .hero-container img.object-cover {
    animation: dp-settle 2.4s var(--dp-ease) both;
}

@keyframes dp-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

body.refresh-hero .hero-container .max-w-container {
    gap: 2.5rem;
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

body.refresh-hero .hero-container .left > h1:first-child {
    font-size: var(--dp-h1);
    line-height: 1.06;
    letter-spacing: -0.025em;
    max-width: 11.5em;
    text-wrap: wrap; /* not balanced: "Anwaltstätigkeit ist" stays on the first line */
    text-shadow: 0 1px 18px rgba(10, 25, 45, 0.35);
}

/* right column: lead line, then the copy in Inter Medium 15px (like the menu), full white */
body.refresh-hero .hero-container .right > span {
    gap: 0;
    font-family: "DP Inter Medium", "DP Inter", var(--dp-fallback);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 1px 18px rgba(10, 25, 45, 0.35);
}

body.refresh-hero .hero-container .right > span p {
    margin: 0 0 0.875rem;
}

body.refresh-hero .hero-container .right > span p:last-child {
    margin-bottom: 0;
}

/* the editor sets 12pt / 18pt inline */
body.refresh-hero .hero-container .right > span [style*="font-size"] {
    font-size: inherit !important;
}

body.refresh-hero .hero-container .right > span p:first-child {
    margin-bottom: 1.125rem;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* "Modern. Digital. Spezialisiert." as badges with icons, corners like the buttons */
body.refresh-hero .hero-container .dp-claim {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.75rem 0 0;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-shadow: none;
}

body.refresh-hero .hero-container .right > span p.dp-claim {
    margin-top: 1.75rem;
}

body.refresh-hero .hero-container .dp-claim > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

body.refresh-hero .hero-container .dp-claim svg {
    flex: none;
    color: #8fb0d8;
}

body.refresh-hero .dp-hero-cta {
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
}

body.refresh-hero .dp-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 18px rgba(10, 25, 45, 0.35);
}

body.refresh-hero .dp-rating b {
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 1.125rem;
    color: #fff;
}

body.refresh .dp-stars {
    display: inline-flex;
    gap: 2px;
}

@media (min-width: 1024px) {
    /* 12 columns: headline on 1-7, text on 8-12 (starts under "Schwerpunkte"), both start at the same height, block sits at the bottom */
    body.refresh-hero .hero-container .max-w-container {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 0;
        align-items: start;
        align-content: end;
        min-height: min(78vh, 720px);
        padding-top: 7.5rem;
        padding-bottom: 6rem;
    }

    body.refresh-hero .hero-container .left,
    body.refresh-hero .hero-container .right {
        width: auto;
    }

    body.refresh-hero .hero-container .left {
        grid-column: 1 / 8;
    }

    /* cap height of the lead line = cap height of the headline (Inter: ascent .969, descent .242, cap .727 em) */
    body.refresh-hero .hero-container .right {
        grid-column: 8 / 13;
        margin-top: calc(0.1665 * var(--dp-h1) - 0.3365 * 1.25rem);
    }

    body.refresh-hero .dp-hero-cta {
        margin-top: 2.75rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    body.refresh-hero .hero-container .left {
        grid-column: 1 / 7;
    }

    body.refresh-hero .hero-container .right {
        grid-column: 7 / 13;
    }
}

@media (max-width: 1023px) {
    /* the first round hid the long copy on phones; the redesign shows all of it (the claim badges stay a flex row with gaps) */
    body.refresh-hero .hero-container .right > span p:not(.dp-claim) {
        display: block;
    }
}

@media (max-width: 767px) {
    body.refresh-hero .hero-container .dp-claim {
        gap: 6px;
        font-size: 0.875rem;
    }

    body.refresh-hero .hero-container .dp-claim > span {
        gap: 6px;
        padding: 8px 10px 8px 9px;
    }

    body.refresh-hero .hero-container .dp-claim svg {
        width: 16px;
        height: 16px;
    }
}

/* phones: "Anwaltstätigkeit ist" is about 8.9em wide in Inter SemiBold, so size the headline to the column (screen minus 2 x 20px gutter) / 9 */
@media (max-width: 767px) {
    body.refresh-hero .hero-container {
        --dp-h1: min(2.375rem, calc((100vw - 40px) / 9));
    }
}

/* ---- 12d. Buttons: split, like the floating request button (label | divider | arrow) ---- */

body.refresh .dp-btn {
    display: inline-flex;
    align-items: stretch;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: none;
    transition: background-color 0.3s, color 0.3s;
}

body.refresh .dp-btn__label {
    display: flex;
    align-items: center;
    padding: 0 22px 0 24px;
    line-height: 1.3;
}

body.refresh .dp-btn__icon {
    position: relative;
    flex: none;
    width: 56px;
    overflow: hidden;
    border-left: 1px solid rgba(26, 58, 96, 0.16);
}

body.refresh .dp-btn__icon svg {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -10px;
    transition: transform 0.45s var(--dp-ease);
}

/* the arrow slides out to the right, a second one comes in from the left */
body.refresh .dp-btn__icon svg + svg {
    transform: translateX(-220%);
}

body.refresh .dp-btn:hover .dp-btn__icon svg:first-child {
    transform: translateX(220%);
}

body.refresh .dp-btn:hover .dp-btn__icon svg + svg {
    transform: none;
}

body.refresh .dp-btn:focus-visible {
    outline: 2px solid #8fb0d8;
    outline-offset: 3px;
}

body.refresh .dp-btn--white {
    background: #fff;
    color: var(--dp-navy);
}

body.refresh .dp-btn--white:hover {
    background: #e8eef6;
    color: var(--dp-navy);
}

body.refresh .dp-btn--navy {
    background: var(--dp-navy);
    color: #fff;
}

body.refresh .dp-btn--navy .dp-btn__icon {
    border-left-color: rgba(255, 255, 255, 0.22);
}

body.refresh .dp-btn--navy:hover {
    background: var(--dp-navy-ink);
    color: #fff;
}

/* phones: long labels wrap inside the button instead of running out of the column */
@media (max-width: 767px) {
    body.refresh .dp-btn {
        max-width: 100%;
        height: auto;
        min-height: 56px;
        white-space: normal;
    }

    body.refresh .dp-btn__label {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ---- 12e. Press logos: "Bekannt aus" label, calm grey logos that turn to colour on hover ---- */

body.refresh-references .references-container {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--dp-line);
}

@media (min-width: 1024px) {
    body.refresh-references .references-container .lg\:flex {
        justify-content: space-between;
        align-items: center;
        column-gap: 2.5rem;
    }

    body.refresh-references .references-container .lg\:flex::before {
        content: "Bekannt aus";
        flex: none;
        margin-right: 1rem;
        font-family: "DP Inter Medium", "DP Inter", var(--dp-fallback);
        font-size: 0.8125rem;
        color: var(--dp-muted);
        white-space: nowrap;
    }

    body.refresh-references .references-container .lg\:flex img {
        max-height: 34px;
        opacity: 0.55;
        transition: opacity 0.3s, filter 0.3s;
    }

    body.refresh-references .references-container .lg\:flex img:hover {
        opacity: 1;
        filter: none;
    }
}

/* ---- 12f. Schwerpunkte: 3x2 grid on desktop, slider on tablets and phones. Image cards with the title on the photo; all photos share
 *      one look (black and white with a light navy tint, colour on hover); the whole card is clickable ---- */

body.refresh-image-slider .imageslider-container .splide__slide > div {
    position: relative;
    border-radius: 16px;
    transition: transform 0.5s var(--dp-ease), box-shadow 0.5s;
}

body.refresh-image-slider .imageslider-container .splide__slide:hover > div {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(19, 45, 75, 0.18);
}

/* Safari drops the rounded clip of overflow: hidden while the photo zooms (transform) on hover, so the corners turn
   square; clip-path keeps them round in every browser */
body.refresh-image-slider .imageslider-container .splide__slide .relative {
    border-radius: 16px;
    overflow: hidden;
    -webkit-clip-path: inset(0 round 16px);
    clip-path: inset(0 round 16px);
    background: var(--dp-navy);
    isolation: isolate;
}

body.refresh-image-slider .imageslider-container .splide__slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 0;
    filter: grayscale(1) contrast(1.05);
    transition: transform 1.2s var(--dp-ease), filter 0.8s var(--dp-ease);
}

/* navy tint over the black and white photo */
body.refresh-image-slider .imageslider-container .splide__slide .relative::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #8ea8c8;
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.8s var(--dp-ease);
}

/* navy shade at the bottom, under the title */
body.refresh-image-slider .imageslider-container .splide__slide .relative::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 36, 62, 0) 38%, rgba(15, 36, 62, 0.55) 68%, rgba(15, 36, 62, 0.92) 100%);
    pointer-events: none;
}

body.refresh-image-slider .imageslider-container .splide__slide:hover img {
    transform: scale(1.05);
    filter: none;
}

body.refresh-image-slider .imageslider-container .splide__slide:hover .relative::before {
    opacity: 0;
}

/* round "Entdecken" button stays bottom right; its invisible ::before covers the photo, so the whole card is the link */
body.refresh-image-slider .imageslider-container .splide__slide a.button-animation {
    right: 20px;
    bottom: 20px;
    width: 84px;
    height: 84px;
    gap: 4px;
    font-size: 0.75rem;
    box-shadow: 0 8px 24px rgba(10, 25, 45, 0.3);
    transition: background-color 0.3s, color 0.3s, transform 0.45s var(--dp-ease);
}

body.refresh-image-slider .imageslider-container .splide__slide a.button-animation::before {
    content: "";
    position: absolute;
    top: -2000px;
    right: -2000px;
    bottom: -2000px;
    left: -2000px;
}

body.refresh-image-slider .imageslider-container .splide__slide a.button-animation svg {
    width: 14px;
    height: 14px;
}

body.refresh-image-slider .imageslider-container .splide__slide:hover a.button-animation {
    transform: scale(1.06);
}

/* title on the photo, bottom left, clear of the round button */
body.refresh-image-slider .imageslider-container .splide__slide > div > span {
    position: absolute;
    left: 1.75rem;
    right: calc(84px + 20px + 1.25rem);
    bottom: 1.625rem;
    z-index: 3;
    display: block;
    margin: 0;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
    text-wrap: balance;
    pointer-events: none;
}

/* the slider is switched off from 1025px (template), the list becomes a grid */
@media (min-width: 1025px) {
    body.refresh-image-slider .imageslider-container .splide {
        visibility: visible;
    }

    body.refresh-image-slider .imageslider-container .splide__track {
        padding: 0 !important;
        overflow: visible;
    }

    body.refresh-image-slider .imageslider-container .splide__list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
        transform: none !important;
    }

    body.refresh-image-slider .imageslider-container .splide__slide {
        width: auto !important;
        max-width: none;
        margin: 0 !important;
    }

    body.refresh-image-slider .imageslider-container .splide__pagination {
        display: none;
    }
}

@media (max-width: 1024px) {
    /* room for the lift and shadow inside the slider */
    body.refresh-image-slider .imageslider-container .splide__track {
        padding-top: 0.5rem !important;
        padding-bottom: 2rem !important;
    }
}

/* phones (no hover): one card per swipe with the next one peeking in from the screen edge, dots and the arrows of the
   review slider below. The card in view shows its photo in colour (what hover does on desktop), the others keep the
   navy tint. Title and a small split "Entdecken" button (like the hero buttons) at the bottom of the photo. */
@media (max-width: 767px) {
    body.refresh-image-slider .imageslider-container .splide {
        margin-top: 1.75rem;
    }

    /* the track runs to the right edge of the screen; the theme's wide peek padding (!important) becomes 56px (template) */
    body.refresh-image-slider .section.imageslider-container > .max-w-\[1920px\] > .splide.is-initialized > .splide__track {
        flex: 0 0 calc(100% + 20px);
        max-width: none;
        margin-right: -20px;
        padding: 0 56px 0 0 !important;
    }

    body.refresh-image-slider .imageslider-container .splide__slide > div,
    body.refresh-image-slider .imageslider-container .splide__slide .relative {
        border-radius: 14px;
        -webkit-clip-path: inset(0 round 14px);
        clip-path: inset(0 round 14px);
    }

    body.refresh-image-slider .imageslider-container .splide__slide img {
        aspect-ratio: 4 / 5;
    }

    body.refresh-image-slider .imageslider-container .splide__slide .relative::after {
        background: linear-gradient(180deg, rgba(15, 36, 62, 0) 38%, rgba(15, 36, 62, 0.55) 62%, rgba(15, 36, 62, 0.94) 100%);
    }

    /* the card in view: colour photo, no tint */
    body.refresh-image-slider .imageslider-container .splide__slide.is-active img {
        filter: none;
    }

    body.refresh-image-slider .imageslider-container .splide__slide.is-active .relative::before {
        opacity: 0;
    }

    /* no hover lift on touch screens (a tap would leave the card lifted) */
    body.refresh-image-slider .imageslider-container .splide__slide:hover > div {
        transform: none;
        box-shadow: none;
    }

    body.refresh-image-slider .imageslider-container .splide__slide:hover a.button-animation {
        transform: none;
    }

    /* small split button: "Entdecken" | arrow; its invisible ::before still makes the whole card the link */
    body.refresh-image-slider .imageslider-container .splide__slide a.button-animation {
        top: auto;
        right: auto;
        left: 1.25rem;
        bottom: 1.25rem;
        width: auto;
        height: 42px;
        flex-direction: row;
        gap: 0;
        padding-left: 16px;
        border-radius: 8px;
        font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
        font-weight: 600;
        font-size: 0.875rem;
        letter-spacing: -0.005em;
        box-shadow: none;
    }

    body.refresh-image-slider .imageslider-container .splide__slide a.button-animation svg {
        box-sizing: content-box;
        width: 11px;
        height: 11px;
        margin-left: 14px;
        padding: 15px 15px 16px;
        border-left: 1px solid rgba(26, 58, 96, 0.16);
    }

    /* title above the button */
    body.refresh-image-slider .imageslider-container .splide__slide > div > span {
        left: 1.25rem;
        right: 1.25rem;
        bottom: calc(1.25rem + 42px + 0.875rem);
        font-size: 1.1875rem;
        line-height: 1.28;
        letter-spacing: -0.01em;
        text-wrap: pretty;
    }

    /* card without a link (Sportrecht): the title sits at the bottom */
    body.refresh-image-slider .imageslider-container .splide__slide > div:not(:has(a.button-animation)) > span {
        bottom: 1.25rem;
    }

    body.refresh-image-slider .imageslider-container .splide__arrow {
        width: 44px;
        height: 44px;
        margin-top: 1.5rem;
    }

    body.refresh-image-slider .imageslider-container .splide__pagination {
        margin-top: 1.5rem;
    }
}

/* ---- 12g. Team: the desktop grid on every screen (2 columns on phones, no slider), photos with a thin ring ---- */

body.refresh-team .testimonialslider-container > .max-w-container > .md\:hidden.splide {
    display: none;
}

body.refresh-team .testimonialslider-container > .max-w-container > .hidden.md\:flex {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 2rem;
    align-items: start;
}

body.refresh-team .testimonialslider-container > .max-w-container > .hidden.md\:flex > div {
    width: auto;
    padding: 0;
    gap: 0;
}

body.refresh-team .testimonialslider-container > .max-w-container img.rounded-full {
    width: 208px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 1.625rem;
    padding: 8px;
    border: 1px solid var(--dp-line);
    background: #fff;
    transition: border-color 0.4s;
}

body.refresh-team .testimonialslider-container > .max-w-container > .hidden.md\:flex > div:hover img.rounded-full {
    border-color: var(--dp-navy);
}

body.refresh-team .testimonialslider-container > .max-w-container h4 {
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

body.refresh-team .testimonialslider-container > .max-w-container h4 + p,
body.refresh-team .testimonialslider-container > .max-w-container h4 + ul > li:first-child {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--dp-muted);
}

/* Dr. Redell: qualifications below a hairline, smaller */
body.refresh-team .testimonialslider-container > .max-w-container h4 + ul {
    gap: 0.5rem;
    max-width: 250px;
    margin: 0 auto;
}

body.refresh-team .testimonialslider-container > .max-w-container h4 + ul > li:nth-child(2) {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dp-line);
}

body.refresh-team .testimonialslider-container > .max-w-container h4 + ul > li:nth-child(n+2) {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--dp-muted);
}

body.refresh-team .testimonialslider-container > .max-w-container .flex-row > a.rounded-full {
    margin-top: 1.125rem;
}

@media (max-width: 1199px) {
    body.refresh-team .testimonialslider-container > .max-w-container > .hidden.md\:flex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 4rem;
    }
}

@media (max-width: 767px) {
    body.refresh-team .testimonialslider-container > .max-w-container > .hidden.md\:flex {
        gap: 3rem 1rem;
    }

    body.refresh-team .testimonialslider-container > .max-w-container img.rounded-full {
        width: 148px;
        margin-bottom: 1.125rem;
        padding: 6px;
    }

    body.refresh-team .testimonialslider-container > .max-w-container h4 {
        font-size: 1rem;
    }

    body.refresh-team .testimonialslider-container > .max-w-container h4 + p,
    body.refresh-team .testimonialslider-container > .max-w-container h4 + ul > li:first-child {
        font-size: 0.8125rem;
    }

    body.refresh-team .testimonialslider-container > .max-w-container h4 + ul > li:nth-child(n+2) {
        display: none;
    }
}

/* ---- 12h. Sliders (reviews, Aktuelles): arrows on both sides of the dots, dots as a growing bar ---- */

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide.is-initialized {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide.is-initialized > .splide__track {
    flex: 0 0 100%;
    max-width: 100%;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrows {
    display: contents;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrow {
    position: static;
    order: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: 1.75rem;
    border: 1px solid #c9d0d9;
    border-radius: 50%;
    background: transparent;
    color: var(--dp-navy);
    opacity: 1;
    transform: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrow--next {
    order: 3;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrow--prev svg {
    transform: scaleX(-1);
}

/* no white fade over the next card (on phones the next card simply peeks in) */
:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide::after {
    display: none;
}

/* exactly three (two on tablet) whole cards, no peek */
@media (min-width: 768px) {
    :is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__track {
        padding-right: 0 !important;
    }
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrow:hover:not(:disabled) {
    background: var(--dp-navy);
    border-color: var(--dp-navy);
    color: #fff;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrow:disabled {
    opacity: 0.35;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__pagination {
    position: static;
    order: 2;
    gap: 8px;
    margin-top: 1.75rem;
    padding: 0;
    transform: none;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__pagination li {
    line-height: 0;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: #c9d0d9;
    opacity: 1;
    transform: none;
    transition: width 0.35s var(--dp-ease), background-color 0.3s;
}

:is(body.refresh-image-slider .imageslider-container, body.refresh-testimonial .testimonialslider-container, body.refresh-blog-slider .blogslider-container) > .max-w-\[1920px\] > .splide .splide__pagination__page.is-active {
    width: 28px;
    background: var(--dp-navy);
    transform: none;
}

/* ---- 12i. Reviews: rating summary under the headline, stars on every card, calmer cards ---- */

body.refresh-testimonial .dp-review-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1rem !important;
    font-size: 0.9375rem;
    color: var(--dp-muted);
}

body.refresh-testimonial .dp-review-summary b {
    font-family: "DP Inter Bold", "DP Inter", var(--dp-fallback);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--dp-navy);
}

body.refresh-testimonial .dp-review-summary .dp-stars,
body.refresh-testimonial .testimonialslider-container .splide__slide .dp-stars {
    color: var(--dp-navy);
}

body.refresh-testimonial .dp-review-summary ~ .splide {
    margin-top: 2.5rem;
}

body.refresh-testimonial .testimonialslider-container .splide__slide > div {
    justify-content: flex-start;
    padding: 2.25rem 2.25rem 2rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(19, 45, 75, 0.04), 0 12px 32px rgba(19, 45, 75, 0.05);
    transition: transform 0.4s var(--dp-ease), box-shadow 0.4s;
}

body.refresh-testimonial .testimonialslider-container .splide__slide > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(19, 45, 75, 0.04), 0 20px 44px rgba(19, 45, 75, 0.1);
}

body.refresh-testimonial .testimonialslider-container .splide__slide .dp-stars {
    margin-bottom: 1.25rem;
}

body.refresh-testimonial .testimonialslider-container .testimony-text {
    font-size: 1rem;
    line-height: 1.65;
    color: #2d3540;
}

body.refresh-testimonial .testimonialslider-container .read-more {
    align-self: flex-start;
    margin-top: 0.75rem;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dp-navy);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* author row at the bottom of every card */
body.refresh-testimonial .testimonialslider-container .splide__slide > div > .mt-4 {
    margin-top: auto;
    padding-top: 1.75rem;
}

body.refresh-testimonial .testimonialslider-container .splide__slide > div > .mt-4 > div:first-child {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--dp-line);
    background: #fff;
    overflow: hidden;
}

body.refresh-testimonial .testimonialslider-container .splide__slide > div > .mt-4 .text-primary {
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 0.9375rem;
}

body.refresh-testimonial .testimonialslider-container .splide__slide > div > .mt-4 .text-\[\#b1b1b1\] {
    font-family: "DP Inter", var(--dp-fallback);
    font-weight: 400;
    font-size: 0.8125rem;
    color: var(--dp-muted);
}

@media (max-width: 767px) {
    body.refresh-testimonial .testimonialslider-container .splide__slide > div {
        padding: 1.75rem 1.5rem 1.5rem;
    }
}

/* ---- 12j. Aktuelles: image on top, category, headline, "Weiterlesen" ---- */

body.refresh-blog-slider .blogslider-container .splide__slide .rounded-\[8px\] {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dp-line);
    border-radius: 16px;
    box-shadow: none;
    transition: transform 0.4s var(--dp-ease), box-shadow 0.4s, border-color 0.4s;
}

body.refresh-blog-slider .blogslider-container .splide__slide > a:hover .rounded-\[8px\] {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 20px 44px rgba(19, 45, 75, 0.1);
}

body.refresh-blog-slider .blogslider-container .splide__slide .p-6 {
    padding: 0;
}

/* the image sits in the teaser: move it to the top, edge to edge */
body.refresh-blog-slider .blogslider-container .teaser {
    order: -1;
    margin: 0;
    padding: 0;
}

body.refresh-blog-slider .blogslider-container .teaser p {
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}

body.refresh-blog-slider .blogslider-container .splide__slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
    transition: transform 1s var(--dp-ease);
}

body.refresh-blog-slider .blogslider-container .splide__slide > a:hover img {
    transform: scale(1.05);
}

body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > .rounded-\[40px\] {
    align-self: flex-start;
    margin: 1.625rem 1.75rem 0;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--dp-band);
    font-family: "DP Inter Medium", "DP Inter", var(--dp-fallback);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--dp-navy);
}

body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > span.text-lg {
    margin: 1rem 1.75rem 0;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-decoration: none;
}

body.refresh-blog-slider .blogslider-container .splide__slide .p-6::after {
    content: "Weiterlesen \2192";
    margin-top: auto;
    padding: 1.5rem 1.75rem 1.75rem;
    font-family: "DP Inter SemiBold", "DP Inter", var(--dp-fallback);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dp-navy);
}

body.refresh-blog-slider .dp-blog-more {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

@media (max-width: 767px) {
    body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > .rounded-\[40px\] {
        margin: 1.375rem 1.375rem 0;
    }

    body.refresh-blog-slider .blogslider-container .splide__slide .p-6 > span.text-lg {
        margin: 0.875rem 1.375rem 0;
    }

    body.refresh-blog-slider .blogslider-container .splide__slide .p-6::after {
        padding: 1.25rem 1.375rem 1.5rem;
    }
}

/* ---- 12k. No movement for visitors who asked their system for reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    body.refresh-hero .hero-container img.object-cover {
        animation: none;
    }

    body.refresh .dp-btn__icon svg,
    :is(body.refresh-image-slider, body.refresh-testimonial, body.refresh-blog-slider) .splide__slide > div,
    :is(body.refresh-image-slider, body.refresh-testimonial, body.refresh-blog-slider) .splide__slide > a > div,
    :is(body.refresh-image-slider, body.refresh-testimonial, body.refresh-blog-slider) .splide__slide img,
    body.refresh-team .testimonialslider-container > .max-w-container img.rounded-full,
    body.refresh-header #header .navigation a::after,
    body.refresh-header #header .navigation button::after {
        transition: none;
        transform: none !important;
    }
}

/* ==================================================================
 * 13. Design preview page only (CSS class "design-preview"), review
 *     focus: only the hero, the press logos and the Schwerpunkte are
 *     shown; every article below the Schwerpunkte is hidden (the content
 *     stays in Contao, delete this rule to bring it back). The footer
 *     stays. Never applies to live pages.
 * ================================================================== */

body.design-preview #main .mod_article:has(.imageslider-container) ~ .mod_article {
    display: none;
}
