/* Base Styles */
:root {
    --gfp-orange: #FF6600;
    --gfp-orange-hover: #e65c00;
    --gfp-orange-band: #FF6600;
    --gfp-dark: #5A4A42;
    /* Grayish-brown text color */
    --gfp-bg: #F8F8F8;
    --gfp-gray-light: #E8E8E8;
    --gfp-history-bg: #7a7570;
    --gfp-history-bg-deep: #6e6964;
    --gfp-footer: #6e6964;
    --gfp-text: #5A4A42;
    /* Same as dark for consistency */
    --gfp-font: "News Cycle", sans-serif;
    --gfp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gfp-mark: 7px;
    --gfp-shadow-sm: 0 2px 10px rgba(42, 42, 42, 0.06);
    --gfp-shadow-lg: 0 40px 80px -24px rgba(42, 42, 42, 0.22);
}

/* Kontakt-Drawer: Direktkontakt (tel/mailto) – kein Browser-Standard für :link/:visited */
#contact-drawer-panel a.contact-drawer-direct-link:link,
#contact-drawer-panel a.contact-drawer-direct-link:visited {
    color: rgba(90, 74, 66, 0.9);
}

#contact-drawer-panel a.contact-drawer-direct-link:hover {
    color: var(--gfp-orange);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    background-color: #ffffff;
    min-height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    font-family: var(--gfp-font);
    color: var(--gfp-text);
}

/* Tailwind-Utilities an Markenfarben ausrichten (Bronze-Grau statt Schwarz) */
.text-gfp-dark {
    color: var(--gfp-dark) !important;
}

.text-gfp-text {
    color: var(--gfp-text) !important;
}

/* Hide fixed background at bottom of viewport */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-color: var(--gfp-history-bg-deep);
    z-index: 5;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gfp-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gfp-orange-hover);
}

/* Hide scrollbar for the menu panel specifically to prevent the orange line */
#sub-menu-panel::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    /* make scrollbar invisible */
}

#sub-menu-panel {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Slide in from right animation for menu content */
@keyframes slideInFromRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Stacking-Kontext ohne transform — translateZ(0) würde position:fixed
   in Nachfahren (Partner-Scroll-Pin) am falschen Vorfahren verankern. */
.z-force {
    isolation: isolate;
    overflow-x: hidden;
}


.watermark-rotate {
    animation: rotate-subtle 120s linear infinite;
    /* Very slow, subtle rotation - 2 minutes per rotation */
}

/* Radio Note Animations */
@keyframes note-fly-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-20px, -100px) rotate(-15deg) scale(1.2);
    }
}

@keyframes note-fly-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(20px, -80px) rotate(15deg) scale(1);
    }
}

@keyframes note-fly-3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(10px, -120px) rotate(-5deg) scale(1.1);
    }
}

.playing .note-1 {
    animation: note-fly-1 2s infinite ease-out;
}

.playing .note-2 {
    animation: note-fly-2 2s infinite ease-out 0.6s;
}

.playing .note-3 {
    animation: note-fly-3 2s infinite ease-out 1.2s;
}

@media (max-width: 767px) {
    #menu-overlay .menu-item>a {
        font-size: 1rem !important;
        line-height: 1.25;
    }
}

/* Watermark Sprite Utilities */
.watermark-sprite {
    background-image: url('images/logo-upload.png');
    background-size: 300% 100%;
    /* 3 tiles wide */
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.watermark-tile-g {
    background-position: 0% 0;
}

.watermark-tile-f {
    background-position: 50% 0;
}

.watermark-tile-p {
    background-position: 100% 0;
}

/* Header States */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header.scrolled #header-watermark {
    opacity: 0.05;
}

/* Logo-Wechsel Startseite: oben logo-full, nach Scroll logo-full2 – sofortiger Wechsel */
body.gfp-home #logo-full,
body.gfp-home #logo-short {
    transition: none;
    object-fit: contain;
    object-position: center;
    transform-origin: center center;
}

body.gfp-home #main-header:not(.gfp-header-scrolled) #logo-full {
    opacity: 1;
}

body.gfp-home #main-header:not(.gfp-header-scrolled) #logo-short {
    opacity: 0;
}

body.gfp-home #main-header.gfp-header-scrolled #logo-full {
    opacity: 0;
}

body.gfp-home #main-header.gfp-header-scrolled #logo-short {
    opacity: 1;
}

body.gfp-home .gfp-header-logo-plate-inner {
    overflow: hidden;
}

body.gfp-home #main-header:not(.gfp-header-scrolled) .gfp-header-logo-plate-inner,
body.gfp-home #main-header.gfp-header-scrolled .gfp-header-logo-plate-inner {
    width: 10.5rem;
    height: 2.75rem;
}

body.gfp-subpage #logo-full {
    opacity: 1 !important;
}

body.gfp-subpage #logo-short {
    opacity: 0 !important;
    pointer-events: none;
}

/* White background for logo on scrolled header for better visibility */
header.scrolled .logo-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Ensure the 'a' tag doesn't have the background anymore */
header.scrolled .logo-wrapper a {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* White background for footer logo for better visibility */
.logo-white-bg {
    background: #e8e8e8;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Service Card Positions + shared hover-border shell */
@property --gfp-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.service-card {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

.gfp-card-shell,
.service-card-shell {
    position: relative;
    border-radius: 1.5rem;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.gfp-card-border-track,
.service-card-border-track {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--gfp-border-angle),
        rgba(255, 102, 0, 0.22) 0deg,
        rgba(255, 102, 0, 0.22) 250deg,
        #FF6600 300deg,
        #FF6600 330deg,
        rgba(255, 102, 0, 0.22) 360deg
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover .service-card-shell {
    transform: translateY(-10px);
}

.partner-scatter-item:hover .gfp-card-shell {
    transform: none;
}

.gfp-card-shell:hover .gfp-card-border-track,
.service-card:hover .service-card-border-track,
.partner-scatter-item:hover .gfp-card-border-track {
    opacity: 1;
    animation: gfp-service-border-spin 1.35s linear infinite;
}

.service-card-inner {
    position: relative;
    z-index: 1;
    background: #fff;
}

@media (min-width: 768px) {
    #services.gfp-services-reveal.services-scroll-reveal-active {
        overflow-x: clip;
    }

    #services.gfp-services-reveal.services-scroll-reveal-active .service-card {
        transition: none !important;
        will-change: transform, opacity;
    }
}

@keyframes gfp-service-border-spin {
    to {
        --gfp-border-angle: 360deg;
    }
}

/* Sektions-Überschriften: beim Scrollen einblenden */
.gfp-heading-reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.gfp-heading-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .gfp-heading-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Karten: von unten einblenden (Karriere, News) */
.gfp-card-reveal-bottom {
    opacity: 0;
    transform: translateY(3.5rem);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.gfp-card-reveal-bottom.is-visible {
    opacity: 1;
    transform: none;
}

.gfp-card-inner {
    position: relative;
    z-index: 1;
}

.career-venko-card-shell.gfp-card-shell:hover {
    transform: translateY(-8px);
}

/* Karriere: Galerie-Marquee (v2-Stil) */
.career-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.career-marquee--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.career-marquee__track {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    animation: careerMarquee 34s linear infinite;
}

.career-marquee__item {
    width: clamp(260px, 34vw, 420px);
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    overflow: hidden;
    flex: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.career-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes careerMarquee {
    to {
        transform: translateX(-50%);
    }
}

/* Karriere: Accordion- & Sektionsüberschriften in Markenfarbe */
.career-accordion-stack .category-accordion-trigger > .font-serif,
.career-accordion-stack .career-section-gallery > h2,
.career-accordion-stack .career-section-award > h2,
.career-accordion-stack .career-section-venko h2 {
    color: var(--gfp-dark) !important;
}

.career-digital-teaser {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(42, 42, 42, 0.1);
    background: #fff;
    box-shadow: var(--gfp-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.35s var(--gfp-ease), transform 0.35s var(--gfp-ease), border-color 0.35s var(--gfp-ease);
}

@media (min-width: 768px) {
    .career-digital-teaser {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
    }
}

.career-digital-teaser:hover {
    border-color: rgba(255, 102, 0, 0.28);
    box-shadow: 0 14px 36px -12px rgba(255, 102, 0, 0.18);
    transform: translateY(-3px);
}

.career-digital-teaser__icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.1);
    color: var(--gfp-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.career-digital-teaser__cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gfp-orange);
    transition: color 0.25s ease;
}

.career-digital-teaser:hover .career-digital-teaser__cta {
    color: var(--gfp-orange-hover);
}

/* Unterseiten: abschließendes Kontakt-/CTA-Kästchen (Fußzeilen-Grau + Orange-Glow) */
.gfp-page-cta {
    background: linear-gradient(180deg, var(--gfp-history-bg) 0%, var(--gfp-history-bg-deep) 100%);
    border: 1px solid rgba(255, 102, 0, 0.24);
    border-radius: 1rem;
    padding: 2rem;
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 102, 0, 0.1),
        0 14px 36px -10px rgba(255, 102, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.gfp-page-cta h2 {
    color: #fff !important;
}

.gfp-page-cta p {
    color: rgba(255, 255, 255, 0.88);
}

.gfp-page-cta a,
.gfp-page-cta button {
    display: inline-block;
    background: var(--gfp-orange);
    color: #fff !important;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-family: var(--gfp-font);
    font-size: 1rem;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow:
        0 0 22px rgba(255, 102, 0, 0.42),
        0 6px 18px rgba(0, 0, 0, 0.18);
}

.gfp-page-cta a:hover,
.gfp-page-cta button:hover {
    background: var(--gfp-orange-hover);
    box-shadow:
        0 0 30px rgba(255, 102, 0, 0.55),
        0 8px 22px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Karriere: Initiativbewerbung (v2-Layout, v1-Typografie) */
.career-quote {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    background: var(--gfp-light, #F5F5F5);
    border-radius: 1.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(42, 42, 42, 0.1);
}

.career-quote__photo {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.career-quote__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.career-quote__text {
    font-family: "News Cycle", sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.5;
    color: var(--gfp-text, #4A4A4A);
    font-style: italic;
    font-weight: 400;
}

.career-quote__author {
    margin-top: 1.5rem;
    font-family: "News Cycle", sans-serif;
}

.career-quote__author strong {
    display: block;
    color: var(--gfp-dark, #2A2A2A);
    font-size: 1.05rem;
    font-weight: 700;
}

.career-quote__author span {
    color: var(--gfp-orange, #FF6600);
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .career-quote {
        grid-template-columns: 1fr;
    }

    .career-quote__photo {
        max-width: 260px;
        margin: 0 auto;
    }
}

.gfp-news-feed {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* News-Seite: DATEV links, Kanzlei-News rechts */
.gfp-news-page {
    width: 100%;
}

.gfp-news-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .gfp-news-split {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2rem, 4vw, 3.5rem);
        align-items: stretch;
    }
}

.gfp-news-split__heading {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(90, 74, 66, 0.12);
}

#news-kanzlei-heading {
    font-size: 1.875rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    #news-kanzlei-heading {
        font-size: 2.25rem;
    }
}

.gfp-news-datev-embed {
    width: 100%;
    height: 13cm;
    min-height: 13cm;
    max-height: 13cm;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    z-index: 0;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(90, 74, 66, 0.1);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.35rem;
    scrollbar-gutter: stable;
}

@media (min-width: 1024px) {
    .gfp-news-datev {
        min-height: 0;
    }

    .gfp-news-datev-embed {
        flex: 1 1 auto;
        height: auto;
        min-height: 16cm;
        max-height: 75vh;
    }

    .gfp-news-kanzlei {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .gfp-news-kanzlei-list {
        flex: 1 1 auto;
        min-height: 16cm;
        max-height: 75vh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        padding-right: 0.2rem;
    }
}

.gfp-news-datev {
    overflow: visible;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.gfp-news-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.gfp-news-page-body main {
    flex: 1 0 auto;
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

body.gfp-news-page-body #news-page-layout {
    position: relative;
    z-index: 1;
}

body.gfp-news-page-body footer#kontakt {
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.gfp-news-datev-embed iframe,
.gfp-news-datev-embed img,
.gfp-news-datev-embed > div {
    max-width: 100% !important;
}

.gfp-news-kanzlei-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3vw, 2.5rem);
}

.gfp-news-kanzlei-item {
    padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
    border-bottom: 1px solid rgba(90, 74, 66, 0.1);
}

.gfp-news-kanzlei-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.gfp-news-kanzlei-item__image {
    margin-bottom: 1rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(90, 74, 66, 0.1);
    background: #fff;
}

.gfp-news-kanzlei-item__image img {
    display: block;
    width: 100%;
    max-height: 16rem;
    object-fit: cover;
}

.gfp-news-kanzlei-item__body,
.gfp-news-kanzlei-item__col {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--gfp-text);
}

.gfp-news-kanzlei-item__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .gfp-news-kanzlei-item__cols {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.gfp-news-kanzlei-item .gfp-news-col-html p {
    margin-bottom: 0.75rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html p:last-child {
    margin-bottom: 0;
}

.gfp-news-kanzlei-item .gfp-news-col-html h1,
.gfp-news-kanzlei-item .gfp-news-col-html h2,
.gfp-news-kanzlei-item .gfp-news-col-html h3 {
    font-family: var(--gfp-font);
    color: var(--gfp-dark);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html h2 {
    font-size: 1.5rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html h3 {
    font-size: 1.375rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html a {
    color: var(--gfp-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gfp-news-kanzlei-item .gfp-news-col-html ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html b,
.gfp-news-kanzlei-item .gfp-news-col-html strong {
    font-weight: 700;
}

.gfp-news-kanzlei-item .gfp-news-col-html i,
.gfp-news-kanzlei-item .gfp-news-col-html em {
    font-style: italic;
}

.gfp-news-kanzlei-item .gfp-news-col-html hr.gfp-news-col-hr {
    border: none;
    height: 2px;
    background: #FF6600;
    margin: 0.85em 0;
    width: 100%;
    max-width: 100%;
    opacity: 1;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-fs-sm {
    font-size: 1rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-fs-md {
    font-size: 1.125rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-fs-lg {
    font-size: 1.25rem;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-case-up {
    text-transform: uppercase;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-case-down {
    text-transform: lowercase;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-case-normal {
    text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .gfp-card-reveal-bottom {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Intersection Observer Transitions - DISABLED for immediate loading */
.scroll-trigger {
    opacity: 1 !important;
    transform: none !important;
}

#radio-text span {
    white-space: normal;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Menu items */
.menu-item a {
    position: relative;
    display: block;
}

/* Counter animation */
.counter-item [data-target] {
    transition: all 0.5s ease;
}

/* Paper Note Effect */
.paper-note {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: rotate(0deg) !important;
    /* Force straight */
}

.paper-note:hover {
    transform: translateY(-8px) !important;
    /* Lift on hover */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Blend Mode Utility for White Textures/Logos */
.blend-multiply {
    mix-blend-mode: multiply;
}

/* Watermark Sprite Utilities */
/* Watermark Sprite Utilities - Updated for Logo V2 */
.watermark-sprite {
    background-image: url('images/logo-upload-v2.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

.watermark-tile-g {
    background-position: center;
}

.watermark-tile-f {
    background-position: center;
}

.watermark-tile-p {
    background-position: center;
}

/* Facts Counter Font Override - Requests "finer" (lighter) font */
.counter-item .font-serif {
    font-weight: 300 !important;
    font-size: 3.5rem !important;
    /* Slightly smaller */
}


/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hero Slide Transition */
.slide {
    transition: opacity 1.5s ease-in-out;
}

/* Cremeweiß nahe Hausfoto – weicher Übergang beim Laden */
.hero-page-bg {
    background-color: #faf9f6;
}

/* Seitenuebergaenge: globales Overlay */
#page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #faf9f6;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease;
}

#page-transition-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

#page-transition-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Slide 1: sanftes Einblenden nach load */
img.hero-slide-start.hero-first-fade {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.hero-slide-start.hero-first-fade.hero-first-img-visible {
    opacity: 1;
}

/* Hero Startbild slide4.jpg (Mobil): volle Fläche, cover, leichte Skalierung – keine grauen Ränder */
@media (max-width: 640px) {
    #hero-slideshow {
        background-color: #faf9f6;
    }

    #hero-slideshow .slide:first-child {
        overflow: hidden;
    }

    #hero-slideshow .slide:first-child img.hero-slide-start {
        object-fit: cover !important;
        object-position: 15% center;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        inset: 0 !important;
        transform: scale(1.05);
        transform-origin: 15% 50%;
    }
}

/* Hero slide4 / alternatives: zentriert */
@media (max-width: 639px) {
    .object-position-left-custom {
        object-position: center center;
        background-position: center center !important;
    }
}

@media (min-width: 640px) {
    .object-position-left-custom {
        object-position: center center;
        background-position: center center !important;
    }
}

/* Hero image_0 (Haus): mobil etwas nach links */
@media (max-width: 639px) {
    .object-position-hero-image0 {
        object-position: 15% center;
    }
}

@media (min-width: 640px) {
    .object-position-hero-image0 {
        object-position: center center;
    }
}

/* Partner-Fade: Köpfe nicht abschneiden (Fokus Gesicht) */
#partner-fade-img.partner-fade-photo,
img.partner-fade-photo {
    object-fit: cover;
    object-position: center 10%;
}

/* Partner-Karte (nur Mobil sichtbar): kein Abschneiden, kompakter Fließtext */
.partner-fade-card {
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .partner-fade-body-inner {
        overflow-x: hidden;
        overflow-y: visible;
        word-break: break-word;
        hyphens: auto;
    }

    .partner-fade-body-inner .partner-list-item {
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    .partner-fade-body-inner .partner-section-title {
        font-size: 0.7rem;
    }

    .partner-fade-body-inner .page-text-content h4 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .partner-fade-body-inner .partner-fade-tap-hint {
        margin: 1rem 0 0;
        padding: 0 0.25rem 0.25rem;
        text-align: center;
        font-family: 'News Cycle', sans-serif;
        font-size: 0.78rem;
        line-height: 1.45;
        color: #FF6600;
        letter-spacing: 0.03em;
    }

    .partner-fade-tap-hint[hidden] {
        display: none !important;
    }
}

/* Intro Overlay Fade */
#intro-video-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'News Cycle', sans-serif !important;
    letter-spacing: -0.04em !important;
}

/* Image Blend for Sketches */
img[src*="sketch"] {
    mix-blend-mode: multiply;
    filter: contrast(1.2);
}

/* 3D Partner Book Styles */
#partner-book-container {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    min-height: 700px;
    position: relative;
    z-index: 20;
    /* Ensure book is above any section watermarks */
}

/* Cross-Fade nur Mobil: kompaktere Bühne */
@media (max-width: 767px) {
    #partner-book-container:has(#partner-fade-view) {
        min-height: 0;
        padding: 2rem 0 4rem;
    }
}

/* Buch-Bühne: weniger GPU-Flackern, klarer Clip */
.partner-book-stage {
    contain: paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#partner-book {
    position: relative;
    width: 900px;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

/* Book Covers */
.book-cover {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #423026 0%, #2b1d16 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 5px 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 5px 15px 15px 5px;
    z-index: 1;
}

.book-cover.left {
    left: 0;
    transform-origin: right;
    border-radius: 15px 5px 5px 15px;
}

.book-cover.right {
    right: 0;
    transform-origin: left;
}

/* Leather texture simulation */
.book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* The Spine */
.book-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100%;
    background: #1a110d;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Book Pages */
.book-page {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    transform-origin: left;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 2;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.book-page.flipped {
    transform: rotateY(-180deg);
}

.page-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    background: #fdfaf3;
    /* Aged paper color */
    padding: 2.5rem;
    box-shadow: inset 3px 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Paper texture simulation */
.page-face::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Remove paper texture and white padding from image pages to avoid interference with image details/colors */
.page-face:has(.page-image) {
    padding: 0 !important;
    background: #f5f5f5 !important;
    box-shadow: none !important;
}

.page-face:has(.page-image)::after {
    display: none;
}

.page-face.back {
    transform: rotateY(180deg);
    box-shadow: inset -3px 0 10px rgba(0, 0, 0, 0.1);
}

/* Page Content Classes */
.page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Reset all potential visual artifacts */
    filter: brightness(1) contrast(1) !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    /* Force high-quality GPU rendering and prevent sub-pixel blurring */
    transform: translateZ(1px);
    /* Push slightly ahead of the page background */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    background-color: #f5f5f5;
}

.mobile-simple-book .partner-book-stage {
    perspective: 1000px !important;
    contain: strict;
}

.mobile-simple-book #partner-book {
    transition: opacity 0.28s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.mobile-simple-book .book-page {
    transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.mobile-simple-book .page-face {
    box-shadow: inset 1px 0 4px rgba(0, 0, 0, 0.08) !important;
}

.page-text-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Navigation Buttons */
#book-nav {
    position: sticky;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    flex-shrink: 0;
}

.book-btn {
    position: relative;
    z-index: 100;
    background: var(--gfp-dark);
    color: white;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.75rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.book-btn:hover {
    background: var(--gfp-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Modal Styles */
/* Career Benefits Section */
.benefit-tile {
    background: #f8f9fa;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.benefit-tile:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--gfp-orange-light);
}

.benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gfp-orange);
}

/* Location Section */
.standort-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    max-height: 460px;
    background: #e8e8e8;
}

.standort-photo-bg {
    display: block;
}

.standort-map-card {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 10;
    display: block;
    width: min(240px, calc(100% - 2rem));
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(42, 42, 42, 0.22);
    border: 1px solid rgba(42, 42, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.standort-map-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(42, 42, 42, 0.28);
}

.standort-map-card-map {
    height: 108px;
    overflow: hidden;
    background: #e5e7eb;
}

.standort-map-card-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    filter: grayscale(1) contrast(1.15) opacity(0.92);
}

.standort-map-card-body {
    padding: 0.75rem 0.9rem 0.85rem;
}

.standort-map-card-label {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF6600;
}

.standort-map-card-address {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--gfp-dark);
    font-weight: 500;
}

.standort-map-card-cta {
    margin: 0;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.68rem;
    color: var(--gfp-text);
    transition: color 0.25s ease;
}

.standort-map-card:hover .standort-map-card-cta {
    color: #FF6600;
}

.standort-map-card--inline {
    position: static;
    width: 100%;
    max-width: 100%;
}

.standort-map-card--inline .standort-map-card-map {
    height: 220px;
}

@media (min-width: 768px) {
    .standort-map-card--inline .standort-map-card-map {
        height: 260px;
    }
}

@media (max-width: 767px) {
    #standort-section {
        overflow-x: hidden;
    }

    #standort-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    #standort-section .grid > * {
        min-width: 0;
        max-width: 100%;
    }

    #standort-section .scroll-trigger {
        opacity: 1 !important;
        transform: none !important;
    }

    #standort-section .grid {
        gap: 2rem;
    }

    .standort-map-card--inline {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .standort-map-card--inline .standort-map-card-map {
        height: 120px;
    }

    .standort-map-card-body {
        padding: 0.65rem 0.75rem 0.75rem;
    }

    .standort-photo-frame {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 0;
        max-height: none;
        margin-inline: auto;
    }

    .standort-photo-bg {
        object-fit: cover;
        object-position: center center;
    }
}

@media (min-width: 768px) {
    /* Nur schwebende Karte (Legacy), nicht die Inline-Karte auf der Startseite */
    .standort-map-card:not(.standort-map-card--inline) {
        right: 1.35rem;
        bottom: 1.35rem;
        width: min(255px, 42%);
    }

    .standort-map-card:not(.standort-map-card--inline) .standort-map-card-map {
        height: 118px;
    }

    #standort-section .standort-map-card--inline {
        width: 100%;
        max-width: 100%;
    }

    #standort-section .grid {
        gap: 3rem;
    }
}

/* Legacy – falls noch referenziert */
.location-map-container {
    height: 450px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background-color: #e5e7eb;
    background-image: radial-gradient(var(--gfp-orange-light) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Instagram Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.insta-item {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 53, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

#contact-modal {
    background: rgba(10, 20, 30, 0.4);
    /* removed duplicate backdrop-filter here */
}

#modal-content {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close {
    cursor: pointer;
}

/* Form Styles */
input::placeholder,
textarea::placeholder {
    color: rgba(10, 20, 30, 0.3);
    font-size: 0.9rem;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FF6600'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Partner Details inside book */
.partner-entry {
    font-size: 0.75rem;
    color: var(--gfp-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.partner-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gfp-text);
    opacity: 0.6;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 2px;
}

.partner-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.partner-list-item {
    font-size: 0.85rem;
    color: var(--gfp-text);
    line-height: 1.4;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.partner-list-item::before {
    content: "•";
    color: var(--gfp-orange);
    font-weight: bold;
}

/* =============================================
   RESPONSIVE DESIGN – MOBILE (< 768px)
   ============================================= */
@media (max-width: 767px) {

    /* Header */
    header#main-header {
        padding-top: 0.875rem !important;
        padding-bottom: 0.875rem !important;
    }

    /* Header: oben transparent, beim Scrollen weiß */
    header#main-header:not(.gfp-header-scrolled) {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: transparent;
    }

    header#main-header.gfp-header-scrolled {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 3px rgba(42, 42, 42, 0.08);
        border-bottom: 1px solid rgba(42, 42, 42, 0.06);
    }

    header#main-header .logo-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(calc(-50% - 6px));
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        z-index: 5;
    }

    header#main-header .logo-wrapper a {
        pointer-events: auto;
        display: inline-block;
        width: auto;
        height: auto;
        max-width: min(11rem, 52vw);
    }

    header#main-header .gfp-header-logo-plate-inner {
        display: block;
        height: 2.75rem;
        width: 10.5rem;
        max-width: 100%;
    }

    header#main-header:not(.gfp-header-scrolled) .gfp-header-logo-plate {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        max-width: 100%;
        transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
    }

    header#main-header.gfp-header-scrolled .gfp-header-logo-plate {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Logo: alte Regel entfernt – Größe über gfp-header-logo-plate-inner */

    /* Buttons noch kompakter auf sehr kleinen Screens */
    #contact-trigger span {
        font-size: 10px !important;
    }

    #contact-trigger svg {
        display: none !important;
    }

    /* Gap im Button-Container verringern */
    header .flex.items-center.gap-2 {
        gap: 0.5rem !important;
    }

    /* Header scrolled: no logo background box */
    header.scrolled .logo-wrapper {
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    header.scrolled .logo-wrapper a {
        padding: 0 !important;
    }

    /* Right side buttons adjustment to prevent overlap */
    header .flex.items-center.gap-2 a {
        font-size: 0.55rem !important;
        /* Further shrink links to fit News */
        padding: 0.2rem 0.4rem !important;
    }

    #contact-trigger {
        padding: 0.2rem 0.4rem !important;
        /* Shrink Kontakt button */
    }

    /* Menu Overlay: weniger Seitenabstand, kleinere Schrift */
    #menu-overlay {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        align-items: flex-start !important;
        padding-top: 5rem !important;
        justify-content: flex-start !important;
    }

    #menu-overlay .menu-item a {
        font-size: 2.25rem !important;
        /* text-4xl */
        line-height: 1.2 !important;
    }

    #menu-overlay ul {
        gap: 1.25rem !important;
    }

    /* ── HERO TEXT BOX ──────────────────────────────── */
    /* Karte selbst: kompakteres Padding */
    #hero-text-box {
        padding: 1rem !important;
    }

    /* Hero-Titel: deutlich kleiner auf Mobile */
    #hero-title {
        font-size: 1.25rem !important;
        /* Slightly larger, no weird word breaks */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hero-Beschreibung: kleiner */
    #hero-desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Hero-Wrapper: volle Breite mit seitlichem Abstand */
    #hero-slideshow~div,
    [id="hero-text-box"] {
        box-sizing: border-box !important;
    }

    /* ── SERVICE CARDS ───────────────────────────────── */
    /* Service Cards: Stacking – negative Offsets deaktivieren */
    .service-card {
        left: 0 !important;
        max-width: 100% !important;
    }

    /* Service Card H3: Schrift auf Mobile deutlich kleiner */
    .service-card h3 {
        font-size: 1.375rem !important;
        /* 22px */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    /* Service Card Beschreibung */
    .service-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Service Card Bilder: Höhe auf Mobile begrenzen */
    .service-card .relative.h-64 {
        height: 180px !important;
    }

    /* service card Innenabstand */
    .service-card-content {
        padding: 1rem !important;
    }

    /* ── COUNTER ────────────────────────────────────── */
    .counter-item .font-serif {
        font-size: 3rem !important;
    }

    /* ── TEAM CAROUSEL ───────────────────────────────── */
    .team-card {
        width: calc(85vw) !important;
        max-width: 340px !important;
    }

    /* ── MANDANTEN INFO ─────────────────────────────── */
    #services~section a.bg-white {
        padding: 1.5rem !important;
    }

    /* ── FOOTER ─────────────────────────────────────── */
    footer {
        padding-top: 3rem !important;
        padding-bottom: 5rem !important;
    }

    footer .container.mx-auto.px-6.grid {
        gap: 2.5rem !important;
    }

    footer .container.mx-auto.px-6.mt-16 {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }

    /* Jobs Section */
    .paper-note {
        transform: none !important;
    }

    /* Watermark GFP Text: kleiner auf Mobile */
    .fixed.inset-0 h2 {
        font-size: 50vw !important;
    }

    /* Intro Video Skip-Button besser erreichbar */
    #skip-intro {
        bottom: 5rem !important;
        right: 1rem !important;
    }

    /* ── 3D BOOK RESPONSIVE (ABSOLUTE JS SCALING) ───────────────── */
    #partner-book-container {
        padding: 0 !important;
        /* Height will be exactly 600px * the JS scale factor */
        height: calc(600px * var(--scale, 1)) !important;
        min-height: auto !important;
        position: relative;
        overflow: hidden !important;
        /* Hide any overlapping 3D clipping during flip */
    }

    #partner-book {
        /* Maintain strict 900x600 Desktop footprint */
        width: 900px !important;
        height: 600px !important;

        /* Pin to top left of container and scale down perfectly */
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        margin-left: calc(-450px * var(--scale, 1)) !important;

        transform-origin: top left !important;
        transform: scale(var(--scale, 1)) !important;
    }

    /* We need to ensure the pages don't stretch vertically if the text gets too long on mobile */
    .page-face {
        overflow: hidden !important;
    }

    /* Remove previous padding hacks for mobile image covering */
    .image-page-face {
        padding: 0 !important;
        background: #f5f5f5 !important;
        box-shadow: none !important;
    }

    .page-image {
        /* Object cover the native 450x600 footprint */
        object-fit: cover !important;
        background-color: transparent !important;
        padding: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .partner-image-container {
        height: 200px !important;
        margin-bottom: 0.25rem !important;
    }

    .partner-image-container img {
        object-fit: contain !important;
    }

    header.scrolled .logo-wrapper a {
        padding: 0 !important;
    }

    /* Right side buttons adjustment to prevent overlap */
    header .flex.items-center.gap-2 a {
        font-size: 0.75rem !important;
        /* Shrink Karriere link */
    }

    #contact-trigger {
        padding: 0.3rem 0.6rem !important;
        /* Shrink Kontakt button */
    }

    /* Menu Overlay: weniger Seitenabstand, kleinere Schrift */
    #menu-overlay {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        align-items: flex-start !important;
        padding-top: 5rem !important;
        justify-content: flex-start !important;
    }

    #menu-overlay .menu-item a {
        font-size: 2.25rem !important;
        /* text-4xl */
        line-height: 1.2 !important;
    }

    #menu-overlay ul {
        gap: 1.25rem !important;
    }

    /* ── HERO TEXT BOX ──────────────────────────────── */
    /* Karte selbst: kompakteres Padding */
    #hero-text-box {
        padding: 1rem !important;
    }

    /* Hero-Titel: deutlich kleiner auf Mobile */
    #hero-title {
        font-size: 1.25rem !important;
        /* Slightly larger, no weird word breaks */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hero-Beschreibung: kleiner */
    #hero-desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Hero-Wrapper: volle Breite mit seitlichem Abstand */
    #hero-slideshow~div,
    [id="hero-text-box"] {
        box-sizing: border-box !important;
    }

    /* ── SERVICE CARDS ───────────────────────────────── */
    /* Service Cards: Stacking – negative Offsets deaktivieren */
    .service-card {
        left: 0 !important;
        max-width: 100% !important;
    }

    /* Service Card H3: Schrift auf Mobile deutlich kleiner */
    .service-card h3 {
        font-size: 1.375rem !important;
        /* 22px */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    /* Service Card Beschreibung */
    .service-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* Service Card Bilder: Höhe auf Mobile begrenzen */
    .service-card .relative.h-64 {
        height: 180px !important;
    }

    /* service card Innenabstand */
    .service-card-content {
        padding: 1rem !important;
    }

    /* ── COUNTER ────────────────────────────────────── */
    .counter-item .font-serif {
        font-size: 3rem !important;
    }

    /* ── TEAM CAROUSEL ───────────────────────────────── */
    .team-card {
        width: calc(85vw) !important;
        max-width: 340px !important;
    }

    /* ── MANDANTEN INFO ─────────────────────────────── */
    #services~section a.bg-white {
        padding: 1.5rem !important;
    }

    /* ── FOOTER ─────────────────────────────────────── */
    footer {
        padding-top: 3rem !important;
        padding-bottom: 5rem !important;
    }

    footer .container.mx-auto.px-6.grid {
        gap: 2.5rem !important;
    }

    footer .container.mx-auto.px-6.mt-16 {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: left !important;
        /* Changed from center to left for better mobile alignment */
    }

    /* Ensure the bottom links (Impressum, Datenschutz, etc) align left on mobile too */
    footer .flex.flex-col.sm\:flex-row.gap-4 {
        justify-content: flex-start !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    /* Jobs Section */
    .paper-note {
        transform: none !important;
    }

    /* Watermark GFP Text: kleiner auf Mobile */
    .watermark-container h2 {
        font-size: 50vw !important;
    }

    /* Intro Video Skip-Button besser erreichbar */
    #skip-intro {
        bottom: 5rem !important;
        right: 1rem !important;
    }

    /* ── 3D BOOK RESPONSIVE (ABSOLUTE JS SCALING) ───────────────── */
    #partner-book-container {
        padding: 0 !important;
        /* Height will be exactly 600px * the JS scale factor */
        height: calc(600px * var(--scale, 1)) !important;
        min-height: auto !important;
        position: relative;
        overflow: hidden !important;
        /* Hide any overlapping 3D clipping during flip */
    }

    #partner-book {
        /* Maintain strict 900x600 Desktop footprint */
        width: 900px !important;
        height: 600px !important;

        /* Pin to top left of container and scale down perfectly */
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        margin-left: calc(-450px * var(--scale, 1)) !important;

        transform-origin: top left !important;
        transform: scale(var(--scale, 1)) !important;
    }

    /* We need to ensure the pages don't stretch vertically if the text gets too long on mobile */
    .page-face {
        overflow: hidden !important;
    }

    /* Remove previous padding hacks for mobile image covering */
    .image-page-face {
        padding: 0 !important;
        background: #f5f5f5 !important;
        box-shadow: none !important;
    }

    .page-image {
        /* Object cover the native 450x600 footprint */
        object-fit: cover !important;
        background-color: transparent !important;
        padding: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .partner-image-container {
        height: 200px !important;
        margin-bottom: 0.25rem !important;
    }

    .partner-image-container img {
        object-fit: contain !important;
        background: #fdfdfd;
        border-radius: 8px !important;
    }

    .page-text-content {
        /* Scale text UP inside the container so it's readable when the whole book is SCALED DOWN by JS */
        padding: 1.5rem !important;
        overflow-y: hidden !important;
        hyphens: auto !important;
    }

    .page-text-content h4 {
        /* Boost heavily for scale */
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.1 !important;
        overflow-wrap: break-word !important;
    }

    .partner-entry,
    .partner-section-title {
        font-size: 1.1rem !important;
    }

    .page-text-content p,
    .partner-list-item {
        /* Boost slightly so scale still renders readable */
        font-size: 1rem !important;
        line-height: 1.3 !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    .book-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        bottom: 10px !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }

    #prev-page {
        margin-right: 1rem !important;
    }
}

/* =============================================
   RESPONSIVE DESIGN – TABLET (768px – 1023px)
   ============================================= */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Header */
    header#main-header {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    /* Logo: etwas kleiner auf Tablet */
    header .absolute.left-1\/2 a {
        width: 220px !important;
        height: 60px !important;
    }

    #partner-book {
        transform: scale(0.8) !important;
    }

    /* Menu Overlay */
    #menu-overlay {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }

    #menu-overlay .menu-item a {
        font-size: 3.5rem !important;
        /* zwischen text-5xl und text-7xl */
    }

    /* Service Cards: Offset etwas reduzieren */
    .service-card.md\:left-32 {
        left: 2rem !important;
    }

    .service-card.md\:-left-20 {
        left: -1rem !important;
    }

    /* Facts on tablet */
    .counter-item .font-serif {
        font-size: 3rem !important;
    }

    /* Footer gap auf Tablet */
    footer .container.mx-auto.px-6.grid {
        gap: 2rem !important;
    }
}

/* =============================================
   RESPONSIVE DESIGN – KLEINE PHONES (< 400px)
   ============================================= */
@media (max-width: 399px) {

    #menu-overlay .menu-item a {
        font-size: 1.75rem !important;
        /* text-3xl */
    }

    /* Extremely narrow screens: keep logo without separate background box */
    header.scrolled .logo-wrapper {
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .team-card {
        width: 90vw !important;
    }

    header .absolute.left-1\/2 {
        /* Remove absolute centering on very small screens to prevent overlap with the side buttons */
        position: static !important;
        transform: none !important;
        flex-grow: 1;
        display: flex;
        justify-content: center;
        padding-right: 0.5rem;
        /* give space before right buttons */
    }

    header .absolute.left-1\/2 a {
        width: 80px !important;
        height: 24px !important;
        position: relative !important;
        transform: none !important;
    }

    /* Shrink buttons for mobile to fit side-by-side */
    header .bg-gfp-orange,
    #news-btn-mobile,
    #contact-trigger {
        padding: 0.2rem 0.3rem !important;
        font-size: 7px !important;
        white-space: nowrap;
    }

    header .flex.items-center.gap-2 {
        gap: 2px !important;
    }

    header .container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    /* Contact Modal Mobile Fixes (< 400px) */
    #modal-content {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 8px !important;
    }

    #modal-content .p-8 {
        padding: 1.25rem !important;
    }

    #modal-content h3 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
        position: relative;
        z-index: 10;
    }

    /* Fix the massive descriptive background text that overflows */
    #modal-content .bg-gfp-orange .absolute span {
        font-size: 5rem !important;
        opacity: 0.3 !important;
    }

    #modal-content p {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }

    #modal-content form {
        gap: 0.75rem !important;
        padding: 0 !important;
    }

    #modal-content label {
        font-size: 0.75rem !important;
    }

    #modal-content input,
    #modal-content select,
    #modal-content textarea {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    #modal-content button[type="submit"] {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
        margin-top: 0.5rem !important;
    }
}

/* =============================================
   RESPONSIVE DESIGN – EXTREM KLEINE PHONES (< 360px)
   (Verhindert das Umbrechen des Karriere-Buttons in den DevTools)
   ============================================= */
@media (max-width: 359px) {
    header .absolute.left-1\/2 a {
        width: 65px !important;
        height: 20px !important;
        transform: none !important;
    }

    header .bg-gfp-orange,
    #news-btn-mobile,
    #contact-trigger {
        padding: 0.2rem 0.3rem !important;
        font-size: 6px !important;
        letter-spacing: -0.5px !important;
    }
}

/* ──────────────────────────────────────────────────
   REMOVED MOBILE PARTNER CARDS STYLES 
   (Restored 3D Book on Mobile Instead)
   ────────────────────────────────────────────────── */

/* =============================================
   Formulare Lightbox (Infografiken)
   ============================================= */
.gfp-no-scroll {
    overflow: hidden !important;
}

.gfp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
    perspective: 1600px;
}

.gfp-lightbox.is-open {
    pointer-events: auto;
    opacity: 1;
}

.gfp-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 600ms ease;
}

.gfp-lightbox__backdrop.is-open {
    opacity: 1;
}

.gfp-lightbox__figure {
    position: fixed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55);
    transform: translate(0px, 0px) scale(1, 1);
    transition:
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 600ms ease,
        border-radius 600ms ease;
    border-radius: 22px;
    will-change: transform;
    transform-style: preserve-3d;
}

.gfp-lightbox__figure.is-open {
    border-radius: 18px;
    box-shadow: 0 32px 80px -26px rgba(0, 0, 0, 0.75);
}

.gfp-lightbox__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.gfp-lightbox__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.gfp-lightbox__title {
    flex: 1;
    font-family: 'News Cycle', sans-serif;
    letter-spacing: -0.04em;
    font-size: 0.85rem;
    color: rgba(42, 42, 42, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gfp-lightbox__btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(42, 42, 42, 0.95);
    padding: 10px 14px;
    border-radius: 999px;
    font-family: 'News Cycle', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
    text-decoration: none;
    white-space: nowrap;
}

.gfp-lightbox__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 102, 0, 0.25);
}

.gfp-lightbox__btn--close {
    background: var(--gfp-orange);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.gfp-lightbox__btn--close:hover {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
    .gfp-lightbox__controls {
        padding: 10px 10px;
        gap: 10px;
    }

    .gfp-lightbox__btn {
        padding: 9px 10px;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gfp-lightbox,
    .gfp-lightbox__backdrop,
    .gfp-lightbox__figure {
        transition: none !important;
    }
}

/* Admin: News — Vorschau & WYSIWYG (Zeitungsspalten) */
#gfp-admin-news-preview-body .gfp-news-two-col {
    min-height: 12rem;
}

#gfp-admin-news-preview-body .gfp-news-col-text,
#gfp-admin-news-preview-body .gfp-news-col-html {
    font-family: var(--gfp-font);
}

#gfp-admin-news-preview-body .gfp-news-col-html .gfp-news-fs-sm {
    font-size: 9px !important;
}

#gfp-admin-news-preview-body .gfp-news-col-html .gfp-news-fs-md {
    font-size: 10px !important;
}

#gfp-admin-news-preview-body .gfp-news-col-html .gfp-news-fs-lg {
    font-size: 11px !important;
}

#gfp-admin-news-preview-body .gfp-news-col-html p {
    margin: 0 0 0.45em 0;
}

#gfp-admin-news-preview-body .gfp-news-col-html p:last-child {
    margin-bottom: 0;
}

#gfp-admin-news-preview-body .gfp-news-col-half {
    flex: 1 1 0;
    min-width: 0;
}

#gfp-admin-news-preview-body .gfp-news-col-html hr.gfp-news-col-hr,
.gfp-news-editor-col.gfp-news-col-html hr.gfp-news-col-hr {
    border: none;
    height: 2px;
    background: #FF6600;
    margin: 0.65em 0;
    width: 100%;
    max-width: 100%;
    opacity: 1;
}

/* Admin News-Editor: Breite ≈ öffentliche Kanzlei-Spalte, aber deutlich höher & lesbarer */
.gfp-admin-news-wysiwyg-wrap {
    width: 100%;
    max-width: min(100%, 42rem);
}

.gfp-admin-news-page-box {
    width: 100%;
    max-width: min(100%, 42rem);
    box-sizing: border-box;
}

.gfp-admin-news-text-columns {
    align-items: stretch;
}

.gfp-news-editor-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: min(58vh, 560px);
    max-height: min(75vh, 760px);
    overflow: auto;
    box-sizing: border-box;
    padding: 1rem 1.15rem;
    background: #fdfaf5;
    font-family: var(--gfp-font);
    font-size: 1.5rem;
    line-height: 1.65;
    color: #000;
    outline: none;
}

.gfp-news-editor-col.admin-news-ce-single {
    width: 100% !important;
    max-width: 100% !important;
}

.gfp-news-editor-col:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.45);
}

.gfp-news-editor-col b,
.gfp-news-editor-col strong {
    font-weight: 700;
}

.gfp-news-editor-col i,
.gfp-news-editor-col em {
    font-style: italic;
}

.gfp-news-editor-rule {
    width: 1px;
    margin-left: 11px;
    margin-right: 11px;
    background: rgba(0, 0, 0, 0.22);
    align-self: stretch;
    min-height: 2rem;
}

.gfp-admin-news-text-columns.gfp-admin-news--mobile {
    flex-direction: column !important;
}

.gfp-admin-news--mobile .gfp-news-editor-rule {
    width: 100%;
    height: 1px;
    margin: 10px 0;
    min-height: 0;
}

.gfp-admin-news--mobile .gfp-news-editor-col {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.gfp-news-editor-col.gfp-news-col-html p {
    margin: 0 0 0.45em 0;
}

.gfp-news-editor-col.gfp-news-col-html p:last-child {
    margin-bottom: 0;
}

.gfp-news-case-up {
    text-transform: uppercase;
}

.gfp-news-case-down {
    text-transform: lowercase;
}

.gfp-news-case-normal {
    text-transform: none;
}

.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-case-up,
.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-case-down,
.gfp-news-kanzlei-item .gfp-news-col-html .gfp-news-case-normal,
#gfp-admin-news-preview-body .gfp-news-col-html .gfp-news-case-up,
#gfp-admin-news-preview-body .gfp-news-col-html .gfp-news-case-down,
#gfp-admin-news-preview-body .gfp-news-col-html .gfp-news-case-normal {
    display: inline;
}

.gfp-news-editor-col .gfp-news-fs-sm {
    font-size: 1.25rem !important;
}

.gfp-news-editor-col .gfp-news-fs-md {
    font-size: 1.5rem !important;
}

.gfp-news-editor-col .gfp-news-fs-lg {
    font-size: 1.75rem !important;
}

/* Unterseiten: kein Logo-Platten-Hintergrund in Startposition */
body.gfp-subpage header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-header-logo-plate {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.gfp-subpage a.gfp-main-back-link {
    display: none !important;
}

/* Fixierte Kreis-Buttons: Kompass (rechts) & Zurück (links, Unterseiten) */
.gfp-floating-circle-btn,
.gfp-header-compass-btn,
.gfp-subpage-home-link.gfp-floating-circle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.2rem;
    border: 1px solid rgba(90, 74, 66, 0.18);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(42, 42, 42, 0.12);
    color: var(--gfp-dark);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.gfp-floating-circle-btn:hover,
.gfp-header-compass-btn:hover,
.gfp-subpage-home-link.gfp-floating-circle-btn:hover {
    border-color: rgba(255, 102, 0, 0.45);
    background: #fff;
    color: var(--gfp-orange);
    transform: none;
}

.gfp-compass-icon,
.gfp-back-icon {
    width: 2.05rem;
    height: 2.05rem;
    display: block;
    flex-shrink: 0;
}

.gfp-header-compass-btn__label,
.gfp-floating-circle-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#floating-nav {
    position: fixed;
    top: 5.15rem;
    right: 0.75rem;
    left: auto;
    z-index: 50;
}

.gfp-header-compass-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(14rem, 88vw);
    margin-top: 0;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(42, 42, 42, 0.1);
    background: #fff;
    box-shadow: 0 20px 40px rgba(42, 42, 42, 0.14);
    z-index: 80;
}

.gfp-subpage-home-nav {
    position: fixed;
    top: 5.15rem;
    left: 0.75rem;
    right: auto;
    z-index: 50;
}

@media (min-width: 768px) {
    .gfp-floating-circle-btn,
    .gfp-header-compass-btn,
    .gfp-subpage-home-link.gfp-floating-circle-btn {
        width: 3.1rem;
        height: 3.1rem;
        padding: 0.3rem;
    }

    .gfp-header-compass-btn {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(255, 102, 0, 0.32);
        box-shadow: 0 6px 18px rgba(42, 42, 42, 0.1);
    }

    .gfp-header-compass-btn:hover {
        background: #fff;
        border-color: rgba(255, 102, 0, 0.55);
    }

    .gfp-subpage-home-link.gfp-floating-circle-btn {
        background: var(--gfp-orange);
        border-color: rgba(255, 255, 255, 0.28);
        color: #fff;
        box-shadow: 0 6px 18px rgba(255, 102, 0, 0.28);
    }

    .gfp-subpage-home-link.gfp-floating-circle-btn:hover {
        background: var(--gfp-orange-hover, #e55a00);
        border-color: rgba(255, 255, 255, 0.4);
        color: #fff;
    }

    #floating-nav {
        top: 8.85rem;
        right: 1.15rem;
    }

    .gfp-subpage-home-nav {
        top: 8.85rem;
        left: 1.15rem;
    }

    .gfp-compass-icon {
        width: 2.35rem;
        height: 2.35rem;
    }

    .gfp-back-icon {
        width: 1.95rem;
        height: 1.95rem;
    }
}

@media (max-width: 767px) {
    #menu-home-tiny-link {
        display: none !important;
    }
}

/* Legacy: orangene Text-Pills (Cookie-Banner o.ä.) */
.gfp-corner-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--gfp-orange);
    color: #fff !important;
    font-family: var(--gfp-font);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.gfp-corner-nav-btn:hover {
    background: var(--gfp-orange-hover);
    color: #fff !important;
}

@media (min-width: 768px) {
    body.gfp-subpage header#main-header.gfp-header--inline-nav .gfp-inline-nav-right {
        padding-right: 0;
    }

    /* Unterseiten: Kopfzeilen-Navigation wie Startseite */
    body.gfp-subpage .gfp-inline-nav-link,
    body.gfp-subpage .gfp-nav-leistungen-trigger {
        font-size: 1.25rem !important;
    }
}

@media (min-width: 1024px) {
    body.gfp-subpage .gfp-inline-nav-link,
    body.gfp-subpage .gfp-nav-leistungen-trigger {
        font-size: 1.5rem !important;
    }
}

/* Unterseiten: mehr Luft zwischen Kopfzeile und erstem Inhalt */
body.gfp-subpage main {
    padding-top: clamp(7.75rem, 17vw, 10.5rem) !important;
}

@media (min-width: 768px) {
    body.gfp-subpage main {
        padding-top: clamp(8.5rem, 12vw, 11rem) !important;
    }
}

/* Mobile Kopfzeile rechts: Burger-Schnellmenü (News, Karriere, Kontakt) */
@media (max-width: 767px) {
    header#main-header #news-btn-header,
    header#main-header #karriere-btn-header,
    header#main-header #contact-trigger {
        display: none !important;
    }

    header#main-header .container > .flex.items-center.gap-3:last-child {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }
}

/* =============================================
   DESKTOP INLINE HEADER (ab 768px)
   ============================================= */
@media (min-width: 768px) {
    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom-color: transparent !important;
    }

    header#main-header.gfp-header--inline-nav.gfp-header-scrolled {
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 1px 3px rgba(42, 42, 42, 0.08);
        border-bottom: 1px solid rgba(42, 42, 42, 0.06);
    }

    header#main-header.gfp-main-header,
    header#main-header.gfp-header--inline-nav {
        transition: none;
    }

    header#main-header.gfp-header--inline-nav .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: flex-end;
        min-height: 5.5rem;
        position: relative;
        width: 100%;
    }

    header#main-header.gfp-header--inline-nav .gfp-inline-nav-left {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        display: flex !important;
        max-width: none;
        padding-bottom: 1.05rem;
    }

    header#main-header.gfp-header--inline-nav .logo-wrapper {
        grid-column: 2;
        grid-row: 1;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        justify-self: center;
        pointer-events: auto;
        max-width: min(20rem, 34vw);
        padding-bottom: 0.35rem;
    }

    header#main-header.gfp-header--inline-nav .logo-wrapper a {
        display: inline-block;
        width: auto;
        height: auto;
        max-width: 100%;
    }

    body.gfp-home #main-header:not(.gfp-header-scrolled) .gfp-header-logo-plate-inner,
    body.gfp-home #main-header.gfp-header-scrolled .gfp-header-logo-plate-inner {
        width: 16rem;
        height: 5rem;
    }

    /* Logo-Platte oben ohne Milchglas-Hintergrund */
    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-header-logo-plate {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        max-width: 100%;
        transition: background-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, border-radius 0.25s ease;
    }

    header#main-header.gfp-header--inline-nav.gfp-header-scrolled .gfp-header-logo-plate {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    @media (min-width: 1024px) {
        header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-header-logo-plate {
            padding: 0;
        }
    }

    header#main-header.gfp-header--inline-nav .gfp-inline-nav-right {
        grid-column: 3;
        grid-row: 1;
        justify-self: start;
        display: flex !important;
        max-width: none;
        padding-bottom: 1.05rem;
    }

    header#main-header.gfp-header--inline-nav .container > .flex.items-center.gap-3.relative,
    header#main-header.gfp-header--inline-nav .container > .flex.items-center.gap-3:not(.gfp-inline-nav-left):not(.gfp-inline-nav-right),
    header#main-header.gfp-header--inline-nav #radio-container-desktop,
    header#main-header.gfp-header--inline-nav #menu-toggle,
    header#main-header.gfp-header--inline-nav #news-btn-header,
    header#main-header.gfp-header--inline-nav #karriere-btn-header,
    header#main-header.gfp-header--inline-nav #contact-trigger,
    header#main-header.gfp-header--inline-nav #mobile-quick-menu-toggle {
        display: none !important;
    }

    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-tone-white,
    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-leistungen-trigger {
        color: rgba(255, 255, 255, 0.96);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
    }

    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-tone-orange {
        color: rgba(255, 255, 255, 0.96);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
    }

    header#main-header.gfp-header--inline-nav.gfp-header-scrolled .gfp-nav-tone-white,
    header#main-header.gfp-header--inline-nav.gfp-header-scrolled .gfp-nav-leistungen-trigger {
        color: var(--gfp-dark);
        text-shadow: none;
    }

    header#main-header.gfp-header--inline-nav.gfp-header-scrolled .gfp-nav-tone-orange {
        color: var(--gfp-dark);
        text-shadow: none;
    }

    header#main-header.gfp-header--inline-nav.gfp-header-scrolled .gfp-nav-leistungen-trigger {
        color: var(--gfp-dark);
    }

    .gfp-inline-nav-link,
    .gfp-nav-leistungen-trigger {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .gfp-inline-nav-link::after,
    .gfp-nav-leistungen-trigger::after {
        display: none;
    }

    .gfp-inline-nav-link:hover,
    header#main-header.gfp-header--inline-nav .gfp-nav-leistungen-trigger:hover {
        color: var(--gfp-orange) !important;
        opacity: 1;
        text-shadow: none;
    }

    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-inline-nav-link:hover,
    header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-leistungen-trigger:hover {
        text-shadow: none;
    }

    .gfp-nav-leistungen-panel {
        background: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    .gfp-nav-leistungen.is-open .gfp-nav-leistungen-panel {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .gfp-nav-leistungen.is-open .gfp-nav-leistungen-chevron {
        transform: rotate(180deg);
    }

    .gfp-nav-leistungen-panel a {
        text-shadow: none;
        color: var(--gfp-dark);
    }

    .gfp-nav-digitale-panel {
        background: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    .gfp-nav-digitale.is-open .gfp-nav-digitale-panel {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .gfp-nav-digitale.is-open .gfp-nav-digitale-chevron {
        transform: rotate(180deg);
    }

    .gfp-nav-digitale-panel a {
        text-shadow: none;
        color: var(--gfp-dark);
    }

    body.gfp-subpage header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-tone-white,
    body.gfp-subpage header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-leistungen-trigger {
        color: var(--gfp-dark);
        text-shadow: none;
    }

    body.gfp-subpage header#main-header.gfp-header--inline-nav:not(.gfp-header-scrolled) .gfp-nav-tone-orange {
        color: var(--gfp-dark);
        text-shadow: none;
    }
}

/* Digitale Kanzlei – Unterseite & Buttons */
.gfp-digitale-kanzlei__intro {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.gfp-digitale-kanzlei__page-title {
    font-family: var(--gfp-font);
    font-size: clamp(1.875rem, 4.5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 400;
    color: var(--gfp-dark);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.gfp-digitale-kanzlei__intro-text {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.65;
    color: var(--gfp-text);
    font-weight: 300;
    max-width: 52rem;
}

.gfp-digitale-kanzlei__sections {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
}

.gfp-digitale-kanzlei__section {
    scroll-margin-top: clamp(9rem, 14vw, 12rem);
}

.gfp-digitale-kanzlei__section-title {
    font-family: var(--gfp-font);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 400;
    color: var(--gfp-dark);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.gfp-digitale-kanzlei__lead {
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.65;
    color: var(--gfp-text);
    font-weight: 300;
    margin-bottom: 1.75rem;
}

.gfp-digitale-kanzlei__cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.gfp-digitale-kanzlei__card {
    border: 1px solid rgba(42, 42, 42, 0.14);
    border-radius: 1rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: #fff;
    box-shadow: 0 4px 18px rgba(42, 42, 42, 0.06);
}

.gfp-digitale-kanzlei__card-title {
    font-family: var(--gfp-font);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--gfp-dark);
    margin: 0 0 1rem;
    line-height: 1.25;
}

.gfp-digitale-kanzlei__card .gfp-digitale-kanzlei__bullets {
    margin-bottom: 0;
}

.gfp-digitale-kanzlei__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.gfp-digitale-kanzlei__bullets {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gfp-digitale-kanzlei__bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.6;
    color: var(--gfp-text);
    font-weight: 300;
}

.gfp-digitale-kanzlei__bullets li::before {
    content: '';
    flex: none;
    width: var(--gfp-mark);
    height: var(--gfp-mark);
    background: var(--gfp-orange);
    transform: translateY(-0.06em);
}

.gfp-btn-primary {
    display: inline-block;
    background: var(--gfp-orange);
    color: #fff !important;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    font-family: var(--gfp-font);
    font-size: 1rem;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 102, 0, 0.22);
}

.gfp-btn-primary:not(:disabled):not([aria-disabled="true"]) {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.gfp-btn-primary:not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--gfp-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 102, 0, 0.28);
}

.gfp-btn-primary:disabled,
.gfp-btn-primary[aria-disabled="true"] {
    opacity: 0.92;
    cursor: default;
    transform: none;
}

/* =============================================
   HOME HERO (v2-Stil auf Startseite)
   ============================================= */
.home-hero-v2 {
    isolation: isolate;
}

.home-hero-v2__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    animation: homeHeroKenburns 9s ease-out forwards;
}

@keyframes homeHeroKenburns {
    from {
        transform: scale(1.14);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .home-hero-v2__img {
        object-position: 8% center;
    }
}

.home-hero-v2__overlay {
    background: linear-gradient(to top, rgba(20, 19, 17, 0.85) 0%, rgba(20, 19, 17, 0.25) 45%, rgba(20, 19, 17, 0.45) 100%);
}

.home-hero-v2__eyebrow-line {
    width: 34px;
    height: 1px;
    background: #FF6600;
    flex-shrink: 0;
}

.home-hero-v2__amp {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #FF6600;
}

.home-hero-v2__desc-line {
    display: block;
    max-width: none;
    white-space: nowrap;
}

.home-hero-v2__desc-tagline {
    display: block;
    margin-top: 0.35rem;
    white-space: normal;
}

@media (max-width: 479px) {
    .home-hero-v2__desc-line {
        font-size: clamp(0.68rem, 3.1vw, 0.875rem);
    }
}

.home-hero-v2__scroll-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), #FF6600);
}

@media (max-width: 767px) {
    body.gfp-home .home-hero-v2__content {
        justify-content: flex-end;
    }

    body.gfp-home .home-hero-v2__content > .container {
        padding-bottom: 3.5rem;
        transform: translateY(-9rem);
    }

    body.gfp-home #hero-title {
        font-size: 2.15rem !important;
        line-height: 1.08 !important;
        margin-bottom: 0.65rem !important;
    }

    body.gfp-home #hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
    }

    body.gfp-home .home-hero-v2__eyebrow {
        margin-bottom: 0.85rem;
    }

    body.gfp-home .home-hero-v2__scroll {
        bottom: 1rem;
    }
}

#admin-radio-bar {
    display: flex;
}

/* =============================================
   DESKTOP PARTNER SCATTER (ab 768px)
   ============================================= */
@media (min-width: 768px) {
    #team.partner-team-active {
        overflow: visible !important;
    }

    .partner-scroll-track {
        position: relative;
        width: 100%;
    }

    .partner-scroll-pin {
        background: #F5F5F5;
        padding-top: clamp(3rem, 8vh, 5rem);
        padding-bottom: clamp(2rem, 5vh, 3rem);
        box-sizing: border-box;
    }

    .partner-scroll-title {
        visibility: visible !important;
        margin-bottom: clamp(1.5rem, 3vh, 2.25rem) !important;
    }

    .partner-scatter-mount {
        width: 100%;
    }

    .partner-scatter-desktop {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .partner-row-stage {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    /* ca. 4–6 cm Abstand zwischen den Kartenzeilen (nur vertikal) */
    .partner-row-stage + .partner-row-stage {
        margin-top: clamp(2.25rem, 3.2vw, 3.5rem);
    }

    .partner-row-stage--single {
        margin-top: clamp(2rem, 2.8vw, 3rem);
    }

    .partner-scatter-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: clamp(1.25rem, 2.8vw, 2.25rem);
        width: 100%;
        overflow: visible;
    }

    .partner-scatter-row--single {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .partner-scatter-row--single .partner-scatter-item {
        width: calc((100% - clamp(1.25rem, 2.8vw, 2.25rem)) / 2);
        max-width: calc((100% - clamp(1.25rem, 2.8vw, 2.25rem)) / 2);
        flex: 0 1 auto;
    }

    .partner-scatter-item {
        width: 100%;
        min-width: 0;
        will-change: transform, opacity;
    }

    .partner-scatter-shell {
        border-radius: 1.35rem;
        height: 100%;
    }

    .partner-scatter-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: clamp(0.75rem, 1.5vw, 1rem);
        background: #fff;
        border-radius: calc(1.35rem - 2px);
        padding: clamp(0.75rem, 1.4vw, 1rem);
        box-shadow: 0 14px 40px rgba(42, 42, 42, 0.11);
        border: 1px solid rgba(255, 102, 0, 0.22);
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }

    .partner-scatter-card--reverse {
        flex-direction: row-reverse;
    }

    .partner-scatter-photo {
        flex: 0 0 58%;
        border-radius: 0.9rem;
        overflow: hidden;
        height: 100%;
        min-height: 0;
        box-shadow: 0 8px 24px rgba(42, 42, 42, 0.12);
    }

    .partner-scatter-photo-img {
        width: 100%;
        height: 100%;
        min-height: inherit;
        object-fit: cover;
        object-position: 32% 16%;
        display: block;
    }

    .partner-scatter-text {
        flex: 1 1 42%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0.2rem 0.15rem;
        min-width: 0;
    }

    .partner-scatter-text h4 {
        font-size: clamp(1.1rem, 1.6vw, 1.45rem) !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.2 !important;
    }

    .partner-scatter-text .partner-entry {
        font-size: clamp(0.78rem, 1vw, 0.9rem);
        margin-bottom: 0.5rem;
    }

    .partner-scatter-text .partner-section-title {
        font-size: 0.68rem;
        margin-top: 0.3rem;
        margin-bottom: 0.2rem;
    }

    .partner-scatter-text .partner-list-item {
        font-size: clamp(0.74rem, 0.95vw, 0.86rem);
        line-height: 1.38;
    }

    #partner-book-container,
    #book-nav {
        display: none !important;
    }
}

/* Admin: Formulare & Downloads Editor */
.admin-dl-col-fold > summary::-webkit-details-marker {
    display: none;
}

.admin-dl-col-fold[open] > summary {
    border-bottom-color: rgba(255, 102, 0, 0.22);
    background: linear-gradient(to right, rgba(255, 102, 0, 0.06), #fff);
}

.admin-dl-card-panel + .admin-dl-card-panel {
    margin-top: 0;
}

.admin-dl-card-panel:not(:last-child) {
    margin-bottom: 0;
}

#admin-prozess-editor-root .admin-dl-col-fold .space-y-5 > .admin-dl-card-panel {
    box-shadow: 0 2px 8px rgba(42, 42, 42, 0.06);
}

#admin-prozess-editor-root .admin-dl-infocard-drop.is-dragover,
#admin-prozess-editor-root .admin-dl-file-drop.is-dragover {
    border-color: #FF6600;
    background: rgba(255, 102, 0, 0.06);
}

/* =========================================================================
   Leistungs-Kärtchen (v2-Stil auf Startseite v1)
   ========================================================================= */
.gfp-services {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
}

.gfp-service {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(42, 42, 42, 0.1);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--gfp-shadow-sm);
    transition: box-shadow 0.6s var(--gfp-ease), transform 0.6s var(--gfp-ease);
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .gfp-service {
        grid-template-columns: 1fr 1fr;
    }
}

.gfp-service:hover {
    box-shadow: var(--gfp-shadow-lg);
    transform: translateY(-6px);
}

@media (min-width: 768px) {
    .gfp-service--reverse .gfp-service__media {
        order: -1;
    }
}

.gfp-service__body {
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gfp-service__index {
    font-family: var(--gfp-font);
    font-size: 0.95rem;
    color: var(--gfp-orange);
    letter-spacing: 0.1em;
}

.gfp-service__title {
    font-family: var(--gfp-font);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--gfp-dark);
    margin: 0 0 1rem;
}

.gfp-service__text {
    color: var(--gfp-text);
    font-weight: 400;
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.gfp-service__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: grid;
    gap: 0.65rem;
}

.gfp-service__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.98rem;
    color: var(--gfp-text);
}

.gfp-service__list li::before {
    content: "";
    flex: none;
    width: var(--gfp-mark);
    height: var(--gfp-mark);
    background: var(--gfp-orange);
    transform: translateY(-0.06em);
}

/* Orange Logo-Vierecke als Listenmarker (Unterseiten) */
.gfp-mark-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gfp-mark-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 300;
    color: var(--gfp-text);
    line-height: 1.65;
}

.gfp-mark-list li::before {
    content: "";
    flex: none;
    width: var(--gfp-mark);
    height: var(--gfp-mark);
    background: var(--gfp-orange);
    transform: translateY(-0.06em);
}

@media (min-width: 768px) {
    .gfp-mark-list--split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5rem;
        row-gap: 0.75rem;
    }
}

/* Kooperationspartner-Unterseite */
.gfp-cooperation-grid {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    grid-template-columns: minmax(0, 1fr);
    max-width: 42rem;
}

.gfp-cooperation-card--compact {
    max-width: 100%;
}

.gfp-cooperation-card--featured {
    max-width: 100%;
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.gfp-cooperation-card {
    background: #fff;
    border: 1px solid rgba(42, 42, 42, 0.1);
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: var(--gfp-shadow-sm);
}

.gfp-cooperation-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gfp-cooperation-card__link:hover .gfp-link-arrow {
    color: var(--gfp-orange);
}

.gfp-cooperation-card__logo {
    margin-bottom: 1.25rem;
}

.gfp-cooperation-card__logo img {
    display: block;
    width: min(220px, 100%);
    height: auto;
    object-fit: contain;
}

.gfp-cooperation-card--external .gfp-cooperation-card__logo img {
    filter: none;
}

.gfp-cooperation-card--featured .gfp-cooperation-card__logo {
    display: flex;
    justify-content: center;
}

.gfp-cooperation-card--featured .gfp-cooperation-card__logo img {
    width: min(320px, 100%);
    margin-inline: auto;
}

.gfp-cooperation-card__link--logo {
    display: block;
    margin-bottom: 1.25rem;
    text-align: center;
}

.gfp-cooperation-card__email {
    color: #005a9c;
}

.gfp-service__media {
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

@media (min-width: 768px) {
    .gfp-service__media {
        min-height: 340px;
    }
}

.gfp-service__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--gfp-ease);
}

.gfp-service:hover .gfp-service__media img {
    transform: scale(1.06);
}

.gfp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gfp-orange);
    margin-top: auto;
}

.gfp-link-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
}

.gfp-service:hover .gfp-link-arrow svg {
    transform: none;
}

/* =========================================================================
   Partner-Grid (v2-Stil, versetztes 4+3-Layout)
   ========================================================================= */
.gfp-partners-v1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .gfp-partners-v1 {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.6rem;
    }

    .gfp-partners-v1 .gfp-partner:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
    .gfp-partners-v1 .gfp-partner:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
    .gfp-partners-v1 .gfp-partner:nth-child(3) { grid-column: 5 / 7; grid-row: 1; }
    .gfp-partners-v1 .gfp-partner:nth-child(4) { grid-column: 7 / 9; grid-row: 1; }
    .gfp-partners-v1 .gfp-partner:nth-child(5) { grid-column: 2 / 4; grid-row: 2; }
    .gfp-partners-v1 .gfp-partner:nth-child(6) { grid-column: 4 / 6; grid-row: 2; }
    .gfp-partners-v1 .gfp-partner:nth-child(7) { grid-column: 6 / 8; grid-row: 2; }
}

.gfp-partner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #2a2a2a;
    aspect-ratio: 3 / 4;
    cursor: default;
    box-shadow: var(--gfp-shadow-sm);
}

.gfp-partner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% center;
    transition: transform 0.9s var(--gfp-ease), filter 0.6s;
    filter: grayscale(0.15);
}

/* Venko Pavic: bereits zentriert – unverändert lassen */
.gfp-partners-v1 .gfp-partner:nth-child(6) img {
    object-position: center center;
}

/* Einzelkorrektur: etwas weiter links */
.gfp-partners-v1 .gfp-partner:nth-child(1) img,
.gfp-partners-v1 .gfp-partner:nth-child(2) img,
.gfp-partners-v1 .gfp-partner:nth-child(3) img,
.gfp-partners-v1 .gfp-partner:nth-child(5) img {
    object-position: 33% center;
}

.gfp-partner:hover img {
    transform: scale(1.07);
    filter: grayscale(0);
}

.gfp-partner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 19, 17, 0.92) 0%, rgba(20, 19, 17, 0.1) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.gfp-partner__name {
    font-family: var(--gfp-font);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    line-height: 1.15;
}

.gfp-partner__role {
    font-size: 0.8rem;
    color: var(--gfp-orange);
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.gfp-partner__detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--gfp-ease), opacity 0.5s var(--gfp-ease), margin 0.5s var(--gfp-ease);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.5;
}

.gfp-partner:hover .gfp-partner__detail {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.7rem;
}

.gfp-partner__entry {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.5rem;
}

/* Gestrichelte / Skizzen-Hintergründe in Kopf- und Fußzeile ausblenden */
header#main-header > .absolute.inset-0.pointer-events-none,
#header-watermark,
footer > .absolute.inset-0.pointer-events-none,
footer > .absolute.inset-0.flex.items-center.justify-center {
    display: none !important;
}

/* Exzellenter Service: klassisches GFP-Orange, kompakter Bereich */
.gfp-service-band {
    background-color: var(--gfp-orange);
    padding-block: clamp(2.75rem, 4.5vw, 3.5rem);
}

.gfp-service-band__intro {
    margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.gfp-service-band__grid {
    gap: clamp(1rem, 2vw, 1.35rem);
}

.gfp-service-band__card {
    display: block;
    background: #fff;
    padding: clamp(1.35rem, 2.2vw, 1.65rem);
    border-radius: 1.15rem;
    box-shadow: 0 10px 28px -14px rgba(42, 42, 42, 0.22);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.gfp-service-band__card:hover {
    box-shadow: 0 16px 36px -12px rgba(42, 42, 42, 0.28);
    transform: translateY(-4px);
}

.gfp-service-band__icon {
    font-size: clamp(1.65rem, 2.4vw, 1.85rem);
    margin-bottom: 0.75rem;
    line-height: 1;
    transform: none !important;
}

.gfp-service-band__card:hover .gfp-service-band__icon {
    transform: none !important;
}

.gfp-service-band__title {
    font-family: var(--gfp-font);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    font-weight: 400;
    color: var(--gfp-dark);
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.gfp-service-band__text {
    font-size: 0.8125rem;
    color: var(--gfp-text);
    font-weight: 300;
    line-height: 1.55;
}

/* Kopfzeile: Hintergrund beim Scrollen ohne Verzögerung */
header#main-header.gfp-main-header,
header#main-header.gfp-header--inline-nav {
    transition: none;
}

/* Einheitlicher leichter Hover-Hüpfer für orangene Buttons */
a.bg-gfp-orange,
button.bg-gfp-orange,
a[class*="bg-gfp-orange"]:not([class*="bg-gfp-orange-light"]),
button[class*="bg-gfp-orange"]:not([class*="bg-gfp-orange-light"]),
.gfp-corner-nav-btn,
.apply-direct-btn,
#karriere-btn-header,
.gfp-orange-lift,
.gfp-btn-primary:not(:disabled):not([aria-disabled="true"]) {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

a.bg-gfp-orange:hover,
button.bg-gfp-orange:hover,
a[class*="bg-gfp-orange"]:not([class*="bg-gfp-orange-light"]):hover,
button[class*="bg-gfp-orange"]:not([class*="bg-gfp-orange-light"]):hover,
.gfp-corner-nav-btn:hover,
.apply-direct-btn:hover,
#karriere-btn-header:hover,
.gfp-orange-lift:hover,
.gfp-btn-primary:not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-3px);
}

.gfp-corner-nav-btn:hover {
    background: var(--gfp-orange-hover);
    color: #fff !important;
}

/* Kopfzeile: kein langes transition-all (verhindert Scroll-Flackern) */
header#main-header.gfp-main-header {
    transition: none;
}

/* =========================================================================
   Standort (v2 auf v1)
   ========================================================================= */
.gfp-v1-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (min-width: 768px) {
    .gfp-v1-split {
        grid-template-columns: 1fr 1fr;
        gap: clamp(2.5rem, 6vw, 5rem);
        align-items: stretch;
    }

    .gfp-v1-split__content {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .gfp-v1-split__text {
        margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    }

    .gfp-standort-photo {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
    }
}

.gfp-map-card {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.1);
    background: #fff;
    box-shadow: var(--gfp-shadow-sm);
    transition: box-shadow 0.5s var(--gfp-ease), transform 0.5s var(--gfp-ease);
    color: inherit;
    text-decoration: none;
}

.gfp-map-card:hover {
    box-shadow: 0 14px 40px -12px rgba(42, 42, 42, 0.16);
    transform: translateY(-4px);
}

.gfp-map-card__frame {
    height: 240px;
    position: relative;
}

.gfp-map-card__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.3) contrast(1.05);
}

@media (min-width: 768px) {
    .gfp-map-card.gfp-map-card--fill {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .gfp-map-card.gfp-map-card--fill .gfp-map-card__frame {
        flex: 1 1 auto;
        height: auto;
        min-height: 10rem;
    }

    .gfp-map-card.gfp-map-card--fill .gfp-map-card__body {
        flex-shrink: 0;
    }
}

.gfp-map-card__body {
    padding: 1.5rem 1.7rem;
}

.gfp-map-card__label {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gfp-orange);
}

.gfp-map-card__addr {
    font-family: var(--gfp-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gfp-dark);
    margin: 0.4rem 0 0.7rem;
}

.gfp-standort-photo {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--gfp-shadow-sm);
}

.gfp-standort-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.career-jobs-section-label {
    font-family: var(--gfp-font);
    font-size: 1.35rem;
    color: var(--gfp-dark);
    margin: 0 0 0.35rem;
}

.career-jobs-divider {
    border: none;
    height: 2px;
    background: var(--gfp-orange);
    margin: 1.75rem 0 1.25rem;
    border-radius: 1px;
}

/* =========================================================================
   Unsere Geschichte (Timeline, warmes Logo-Grau)
   ========================================================================= */
.gfp-history--warm {
    background: linear-gradient(180deg, var(--gfp-history-bg) 0%, var(--gfp-history-bg-deep) 100%);
    color: rgba(255, 255, 255, 0.9);
}

/* Meilensteine: Fußzeilen-Grau (Test – leicht rückgängig machbar) */
.gfp-history--light-bg {
    background: linear-gradient(180deg, var(--gfp-history-bg) 0%, var(--gfp-history-bg-deep) 100%);
    color: rgba(255, 255, 255, 0.9);
}

.gfp-history--light-bg .gfp-history__intro h2 {
    color: #fff;
}

.gfp-history--light-bg .gfp-history__intro p {
    color: rgba(255, 255, 255, 0.78);
}

.gfp-history--light-bg .gfp-history__rail {
    background: rgba(255, 255, 255, 0.18);
}

.gfp-history--light-bg .gfp-history__dot {
    background: var(--gfp-history-bg-deep);
    border-color: rgba(255, 255, 255, 0.4);
}

.gfp-history--light-bg .gfp-history__card {
    background: #fff;
    border: 1px solid rgba(42, 42, 42, 0.1);
    border-radius: 22px;
    box-shadow: var(--gfp-shadow-sm);
    backdrop-filter: none;
}

.gfp-history--light-bg .gfp-history__entry.is-active .gfp-history__card {
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: var(--gfp-shadow-sm);
}

.gfp-history--light-bg .gfp-history__card h3 {
    color: var(--gfp-dark);
    font-weight: 700;
}

.gfp-history--light-bg .gfp-history__card p {
    color: var(--gfp-text);
    font-weight: 400;
    line-height: 1.6;
}

.gfp-history--light-bg .gfp-history__year {
    color: var(--gfp-orange);
}

.gfp-history__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1.5rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--gfp-font);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s var(--gfp-ease), border-color 0.3s var(--gfp-ease), color 0.3s var(--gfp-ease);
}

.gfp-history__toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 102, 0, 0.45);
}

.gfp-history__toggle-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s var(--gfp-ease);
}

.gfp-history__toggle[aria-expanded="true"] .gfp-history__toggle-icon {
    transform: rotate(180deg);
}

.gfp-history__intro {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.gfp-history__intro h2 {
    color: #fff;
}

.gfp-history__intro p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
    line-height: 1.65;
}

.gfp-history__timeline {
    position: relative;
    max-width: 1080px;
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
}

.gfp-history__rail {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    overflow: hidden;
}

.gfp-history__rail-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gfp-orange);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.35);
}

.gfp-history__entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gfp-history__entry:last-child {
    margin-bottom: 0;
}

.gfp-history__dot {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 10px;
    height: 10px;
    margin-top: 0.55rem;
    background: var(--gfp-history-bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
    transition: border-color 0.4s var(--gfp-ease), background 0.4s var(--gfp-ease), box-shadow 0.4s var(--gfp-ease);
}

.gfp-history__entry.is-active .gfp-history__dot {
    background: var(--gfp-orange);
    border-color: var(--gfp-orange);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.18);
}

.gfp-history__card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    backdrop-filter: blur(6px);
    transition: border-color 0.4s var(--gfp-ease), transform 0.5s var(--gfp-ease);
    width: clamp(280px, 38vw, 340px);
    max-width: 100%;
    box-sizing: border-box;
}

.gfp-history__entry.is-active .gfp-history__card {
    border-color: rgba(255, 102, 0, 0.35);
}

.gfp-history__entry--left .gfp-history__card {
    grid-column: 1;
    text-align: left;
    justify-self: end;
}

.gfp-history__entry--right .gfp-history__card {
    grid-column: 3;
    text-align: left;
    justify-self: start;
}

.gfp-history__year {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gfp-orange);
    margin-bottom: 0.45rem;
}

.gfp-history__card h3 {
    color: #fff;
    font-family: var(--gfp-font);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gfp-history__card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
}

.gfp-history__stack {
    grid-column: 1;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: clamp(280px, 38vw, 340px);
    max-width: 100%;
}

.gfp-history__entry--right .gfp-history__stack {
    grid-column: 3;
    justify-self: start;
}

.gfp-history__photos-below {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.35rem, 0.75vw, 0.5rem);
}

.gfp-history__stack > .gfp-history__photo {
    align-self: center;
    margin-inline: auto;
}

.gfp-history__photos-below--quad {
    gap: clamp(0.3rem, 0.65vw, 0.45rem);
}

.gfp-history__photo {
    flex: 0 0 auto;
    width: clamp(56px, 11vw, 80px);
    margin: 0;
    transform: none;
}

.gfp-history__photos-below .gfp-history__photo {
    width: clamp(52px, 10vw, 72px);
}

.gfp-history__photos-below--quad .gfp-history__photo {
    flex: 0 0 auto;
    width: clamp(56px, 11vw, 80px);
    max-width: none;
    min-width: 0;
}

@media (max-width: 920px) {
    .gfp-history__photos-below--quad .gfp-history__photo {
        flex: 0 0 auto;
        width: clamp(56px, 11vw, 80px);
        max-width: none;
    }
}

.gfp-history__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 0, 0.28);
    box-shadow: 0 8px 20px rgba(42, 40, 37, 0.12);
}

.gfp-history__photo--partner img {
    object-position: center 14%;
}

.gfp-history__photo-link {
    display: none;
}

.gfp-history__entry--has-photo .gfp-history__card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

.gfp-history--light-bg .gfp-history__photo img {
    border-color: rgba(255, 102, 0, 0.35);
    box-shadow: 0 10px 28px rgba(42, 40, 37, 0.1);
}

@media (max-width: 760px) {
    .gfp-history__rail {
        left: 11px;
        transform: translateX(-50%);
    }

    .gfp-history__entry {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 1.15rem;
    }

    .gfp-history__dot {
        grid-column: 1;
        grid-row: 1;
    }

    .gfp-history__stack {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .gfp-history__entry--left .gfp-history__stack,
    .gfp-history__entry--right .gfp-history__stack {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    .gfp-history__entry--left .gfp-history__card,
    .gfp-history__entry--right .gfp-history__card {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        justify-self: stretch;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .gfp-history__entry--has-photo .gfp-history__card {
        margin-top: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .gfp-history__photos-below--quad .gfp-history__photo {
        flex: 0 0 auto;
        width: clamp(56px, 11vw, 80px);
        max-width: 120px;
        min-width: 0;
    }

    .gfp-history__photo {
        max-width: 120px;
        margin-inline: auto;
    }

    .gfp-history__toggle {
        display: inline-flex;
    }
}

.gfp-history__toggle {
    display: inline-flex;
}

.gfp-history__timeline--collapsible:not(.is-expanded) {
    display: none;
}

.gfp-digitale-kanzlei__cta {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 767px) {
    .gfp-media-badge--video {
        display: none !important;
    }
}

/* Fußzeile: Kooperationen */
footer#kontakt .gfp-footer-grid--with-coop,
footer.bg-gfp-footer .gfp-footer-grid--with-coop {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    footer#kontakt .gfp-footer-grid--with-coop,
    footer.bg-gfp-footer .gfp-footer-grid--with-coop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    footer#kontakt .gfp-footer-grid--with-coop,
    footer.bg-gfp-footer .gfp-footer-grid--with-coop {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gfp-footer__coop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gfp-footer__coop-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: opacity 0.3s var(--gfp-ease);
}

.gfp-footer__coop-link:hover {
    opacity: 0.88;
}

.gfp-footer__coop-link img {
    display: block;
    width: auto;
    max-width: 120px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem;
}

/* Fußzeile: gleiches Warmgrau + Verlauf wie Statistik-Bereich */
footer#kontakt,
footer.bg-gfp-footer {
    background: linear-gradient(180deg, var(--gfp-history-bg) 0%, var(--gfp-history-bg-deep) 100%) !important;
    padding-top: 4rem !important;
    padding-bottom: 5rem !important;
}

footer#kontakt > div.container.mt-16,
footer.bg-gfp-footer > div.container.mt-16 {
    margin-top: 2.5rem !important;
    padding-top: 1.5rem !important;
}

@media (max-width: 767px) {
    footer#kontakt,
    footer.bg-gfp-footer {
        padding-top: 2.75rem !important;
        padding-bottom: 4rem !important;
    }

    footer#kontakt > div.container.mt-16,
    footer.bg-gfp-footer > div.container.mt-16 {
        margin-top: 2rem !important;
        padding-top: 1.25rem !important;
    }
}

/* Footer Social */
.gfp-footer__social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gfp-footer__social a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.4s var(--gfp-ease);
}

.gfp-footer__social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.4s var(--gfp-ease), border-color 0.4s var(--gfp-ease), transform 0.4s var(--gfp-ease);
}

.gfp-footer__social a svg {
    width: 20px;
    height: 20px;
}

.gfp-footer__social a:hover .gfp-footer__social-icon {
    background: var(--gfp-orange);
    border-color: var(--gfp-orange);
    transform: translateY(-3px);
}

/* =========================================================================
   Intro-Video (v2-Layout auf v1)
   ========================================================================= */
.gfp-intro-v1 {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    column-gap: clamp(1.5rem, 5vw, 4.5rem);
    row-gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: center;
}

.gfp-intro-v1__title {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: left;
    margin: 0;
}

.gfp-intro-v1__subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    margin: 0.65rem 0 0;
    line-height: 1.35;
}

.gfp-intro-v1__prose {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
}

.gfp-intro-v1__media {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    min-width: 0;
}

.gfp-intro-v1__prose p {
    margin: 0;
}

.gfp-intro-v1__prose p + p {
    margin-top: 1.25rem;
}

.gfp-video-v1 {
    position: relative;
    width: 100%;
}

.gfp-video-v1__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--gfp-shadow-lg);
    background: #000;
}

.gfp-video-v1__frame iframe,
.gfp-video-v1__frame video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.38);
    transform-origin: center center;
    border: 0;
    pointer-events: none;
}

.gfp-media-badge {
    position: absolute;
    z-index: 2;
    background: rgba(248, 247, 244, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 14px 40px -12px rgba(42, 42, 42, 0.16);
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.gfp-media-badge--video {
    right: -1.2rem;
    bottom: 1.8rem;
}

.gfp-media-badge__num {
    font-family: var(--gfp-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gfp-orange);
    line-height: 1;
}

.gfp-media-badge__label {
    font-family: var(--gfp-font);
    font-size: 0.8rem;
    color: var(--gfp-text);
    line-height: 1.3;
}

@media (max-width: 820px) {
    .gfp-intro-v1 {
        grid-template-columns: 1fr;
        align-items: start;
        row-gap: 1.75rem;
    }

    .gfp-intro-v1__subtitle {
        grid-column: 1;
        grid-row: 2;
    }

    .gfp-intro-v1__prose,
    .gfp-intro-v1__media {
        grid-column: 1;
        align-self: start;
    }

    .gfp-intro-v1__prose {
        grid-row: 3;
    }

    .gfp-intro-v1__media {
        grid-row: 4;
    }
}

/* Statistik-Zähler: gleiches Warmgrau wie Geschichte */
.gfp-stats-v1.gfp-history--warm {
    border-bottom: none;
}

.gfp-stats-v1 .counter-item {
    position: relative;
    padding: 1rem;
}

@media (min-width: 768px) {
    .gfp-stats-v1 .counter-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 70%;
        background: rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 820px) {
    .gfp-media-badge--video {
        position: static;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
        width: fit-content;
    }

    .gfp-video-v1 {
        display: grid;
        gap: 0;
    }

    .gfp-video-v1__frame {
        border-radius: 22px;
    }
}

/* =========================================================================
   Startseite: Typografie eine Stufe größer (Logos/Bilder unverändert)
   ========================================================================= */
body.gfp-home {
    font-size: 1.125rem;
    line-height: 1.65;
}

body.gfp-home .text-xs {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

body.gfp-home .text-sm {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

body.gfp-home .text-base {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

body.gfp-home .text-lg {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

body.gfp-home .text-xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

body.gfp-home .text-2xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

body.gfp-home .text-3xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

body.gfp-home .text-4xl {
    font-size: 3rem !important;
    line-height: 1.1 !important;
}

body.gfp-home .text-5xl {
    font-size: 3.75rem !important;
    line-height: 1.05 !important;
}

body.gfp-home .text-6xl {
    font-size: 4.5rem !important;
    line-height: 1 !important;
}

body.gfp-home .text-7xl {
    font-size: 6rem !important;
    line-height: 1 !important;
}

body.gfp-home .text-8xl {
    font-size: 8rem !important;
    line-height: 1 !important;
}

body.gfp-home .text-9xl {
    font-size: 9rem !important;
    line-height: 1 !important;
}

body.gfp-home .text-\[10px\] {
    font-size: 0.75rem !important;
}

body.gfp-home .home-hero-v2__eyebrow {
    font-size: 0.8125rem !important;
}

body.gfp-home .home-hero-v2__scroll {
    font-size: 0.75rem !important;
}

@media (min-width: 640px) {
    body.gfp-home .sm\:text-xs {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
    }

    body.gfp-home .sm\:text-lg {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }

    body.gfp-home .sm\:text-6xl {
        font-size: 4.5rem !important;
        line-height: 1 !important;
    }
}

@media (min-width: 768px) {
    body.gfp-home .md\:text-sm {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }

    body.gfp-home .md\:text-xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }

    body.gfp-home .md\:text-4xl {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }

    body.gfp-home .md\:text-5xl {
        font-size: 3.75rem !important;
        line-height: 1.05 !important;
    }

    body.gfp-home .md\:text-7xl {
        font-size: 6rem !important;
        line-height: 1 !important;
    }

    body.gfp-home .gfp-inline-nav-link,
    body.gfp-home .gfp-nav-leistungen-trigger {
        font-size: 1.25rem !important;
    }
}

@media (min-width: 1024px) {
    body.gfp-home .lg\:text-5xl {
        font-size: 3.75rem !important;
        line-height: 1.05 !important;
    }

    body.gfp-home #hero-title {
        font-size: 6rem !important;
    }

    body.gfp-home .gfp-inline-nav-link,
    body.gfp-home .gfp-nav-leistungen-trigger {
        font-size: 1.5rem !important;
    }
}

/* Komponenten-Schrift (Startseite) */
body.gfp-home .gfp-service__title {
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
}

body.gfp-home .gfp-service__text {
    font-size: 1.125rem;
}

body.gfp-home .gfp-service__list li {
    font-size: 1.0625rem;
}

body.gfp-home .gfp-link-arrow {
    font-size: 1.0625rem;
}

body.gfp-home .gfp-partner__name {
    font-size: clamp(1.125rem, 2.8vw, 1.5rem);
}

body.gfp-home .gfp-partner__role {
    font-size: 0.875rem;
}

body.gfp-home .gfp-partner__detail {
    font-size: 0.9375rem;
}

body.gfp-home .gfp-partner__entry {
    font-size: 0.8125rem;
}

body.gfp-home .gfp-service-band__title {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
}

body.gfp-home .gfp-service-band__text {
    font-size: 0.9375rem;
}

body.gfp-home .gfp-history__intro p {
    font-size: 1.125rem;
}

body.gfp-home .gfp-history__year {
    font-size: 0.875rem;
}

body.gfp-home .gfp-history__card h3 {
    font-size: clamp(1.1875rem, 2.2vw, 1.375rem);
}

body.gfp-home .gfp-history__card p {
    font-size: 1.0625rem;
}

body.gfp-home .gfp-map-card__label {
    font-size: 0.8125rem;
}

body.gfp-home .gfp-map-card__addr {
    font-size: 1.375rem;
}

body.gfp-home .gfp-media-badge__num {
    font-size: 2.25rem;
}

body.gfp-home .gfp-media-badge__label {
    font-size: 0.875rem;
}

body.gfp-home .gfp-nav-leistungen-panel a {
    font-size: 1rem !important;
}

/* Intro: Video-Spalte fix, Text darf wachsen */
body.gfp-home .gfp-intro-v1__media {
    align-self: center;
}

body.gfp-home .gfp-video-v1__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* =========================================================================
   Cookie-Einwilligung
   ========================================================================= */
body.gfp-cookie-banner-open {
    overflow: hidden;
}

.gfp-cookie-banner {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.45);
    backdrop-filter: blur(4px);
}

.gfp-cookie-banner[hidden] {
    display: none !important;
}

.gfp-cookie-banner__panel {
    width: min(100%, 42rem);
    max-height: min(92vh, 40rem);
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(90, 74, 66, 0.12);
    box-shadow: 0 24px 60px -20px rgba(42, 42, 42, 0.35);
    color: var(--gfp-text);
}

.gfp-cookie-banner__title {
    font-family: var(--gfp-font);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--gfp-dark);
    margin-bottom: 0.75rem;
}

.gfp-cookie-banner__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gfp-text);
    margin-bottom: 1.25rem;
}

.gfp-cookie-banner__text a {
    color: var(--gfp-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gfp-cookie-banner__text a:hover {
    color: var(--gfp-orange-hover);
}

.gfp-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gfp-cookie-banner__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-family: var(--gfp-font);
    font-size: 0.875rem;
    color: var(--gfp-dark);
    background: #fff;
    border: 1px solid rgba(90, 74, 66, 0.22);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.gfp-cookie-banner__btn-secondary:hover {
    border-color: var(--gfp-orange);
    color: var(--gfp-orange);
}

.gfp-cookie-settings {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(90, 74, 66, 0.12);
    display: grid;
    gap: 1rem;
}

.gfp-cookie-settings[hidden] {
    display: none !important;
}

.gfp-cookie-settings__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gfp-cookie-settings__row--muted {
    opacity: 0.65;
}

.gfp-cookie-settings__label {
    font-size: 0.9375rem;
    color: var(--gfp-dark);
    margin-bottom: 0.2rem;
}

.gfp-cookie-settings__hint {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--gfp-text);
    max-width: 26rem;
}

.gfp-cookie-settings__always {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gfp-orange);
    white-space: nowrap;
}

.gfp-cookie-settings__save {
    justify-self: start;
    margin-top: 0.25rem;
}

.gfp-cookie-toggle {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.gfp-cookie-toggle--disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.gfp-cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gfp-cookie-toggle__track {
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(90, 74, 66, 0.22);
    position: relative;
    transition: background-color 0.2s ease;
}

.gfp-cookie-toggle__track::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.gfp-cookie-toggle input:checked + .gfp-cookie-toggle__track {
    background: var(--gfp-orange);
}

.gfp-cookie-toggle input:checked + .gfp-cookie-toggle__track::after {
    transform: translateX(1.25rem);
}

.gfp-consent-embed--blocked {
    display: none !important;
}

.gfp-map-card__frame,
.gfp-video-v1__frame {
    position: relative;
}

.gfp-consent-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f3f1 0%, #ebe6e1 100%);
    color: var(--gfp-text);
}

.gfp-consent-placeholder__title {
    font-family: var(--gfp-font);
    font-size: 1.0625rem;
    color: var(--gfp-dark);
}

.gfp-consent-placeholder__text {
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 22rem;
}

.gfp-consent-placeholder__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gfp-consent-placeholder__btn {
    font-size: 0.8125rem;
}

.gfp-consent-placeholder__link {
    font-family: var(--gfp-font);
    font-size: 0.8125rem;
    color: var(--gfp-orange);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gfp-consent-placeholder__link:hover {
    color: var(--gfp-orange-hover);
}

@media (min-width: 640px) {
    .gfp-cookie-banner {
        align-items: center;
    }
}

/* =========================================================================
   Einheitliches GFP-Orange (#FF6600)
   ========================================================================= */
.bg-gfp-orange,
.bg-gfp-orange\/90 {
    background-color: var(--gfp-orange) !important;
}

.text-gfp-orange {
    color: var(--gfp-orange) !important;
}

.border-gfp-orange {
    border-color: var(--gfp-orange) !important;
}

a.bg-gfp-orange.hover\:bg-opacity-90:hover,
button.bg-gfp-orange.hover\:bg-opacity-90:hover,
.bg-gfp-orange.hover\:bg-opacity-90:hover {
    background-color: var(--gfp-orange-hover) !important;
    opacity: 1 !important;
}

.hover\:text-orange-500:hover {
    color: var(--gfp-orange) !important;
}
