/* --- DESIGNEREI CORE STYLE SHEET --- */
:root {
    --color-yellow: #e3f40f;
    --color-green: #A0CD49;
    --color-darkgreen: #668728;

    /* Brand Chartreuse / Neon Yellow-Green */
    --color-dark: #131313;
    --color-darker: #0a0a0a;
    --color-light: #f5f2eb;
    --color-xlight: #FAFAF1;

    /* Sand/Beige Background tone */
    --color-white: #ffffff;
    --color-text-dark: #1a1a1a;
    --color-text-light: #f5f5f5;
    --color-gray: #555555;
    --color-gray-light: #e2dfd8;
    --font-main: 'Work Sans', sans-serif;
    --font-serif: 'Bad Script', serif;
}

/* work-sans-300 - latin */
@font-face {
    font-display: swap;

    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/work-sans-v24-latin-300.woff2') format('woff2');

    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-regular - latin */
@font-face {
    font-display: swap;

    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/work-sans-v24-latin-regular.woff2') format('woff2');

    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* work-sans-700 - latin */
@font-face {
    font-display: swap;

    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/work-sans-v24-latin-700.woff2') format('woff2');

    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* bad-script-regular - latin */
@font-face {
    font-display: swap;

    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Bad Script';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/bad-script-v18-latin-regular.woff2') format('woff2');

    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--color-green) var(--color-darker);
    scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CSS_Grid Setup */
.mainGrid {
    display: grid;
    grid-template-columns: 1fr repeat(12, 1fr) 1fr;
    grid-column-gap: 24px;
    width: 100%;
    position: relative;
    z-index: 2;
    align-items: center;

    /* Vertikale Zentrierung Standard */
    grid-template-rows: auto;

    /* padding-bottom entfernt, da wir sections nutzen */
}

@media (max-width:767px) {
    .mainGrid {
        grid-column-gap: 12px;
    }
}

@media (min-width: 1544px) {
    .mainGrid {
        grid-template-columns: 1fr repeat(12, 88px) 1fr;
    }
}

.coreGrid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 24px;
    grid-column: 2 / span 12;
    grid-row-gap: 24px;
    position: relative;
    width: 100%;
}

@media (max-width:767px) {
    .coreGrid {
        grid-column: 1 / span 14;
        grid-column-gap: 12px;
        grid-row-gap: 24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Layout Atoms (Grid Columns) */
.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-6--center {
    grid-column: 4 / span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-8--center {
    grid-column: 3 / span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-10--center {
    grid-column: 2 / span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 1279px) {
    .col-l-0 {
        display: none;
    }

    .col-l-3 {
        grid-column: span 3;
    }

    .col-l-4 {
        grid-column: span 4;
    }

    .col-l-5 {
        grid-column: span 5;
    }

    .col-l-6 {
        grid-column: span 6;
    }

    .col-l-6--center {
        grid-column: 4 / span 6;
    }

    .col-l-7 {
        grid-column: span 7;
    }

    .col-l-8 {
        grid-column: span 8;
    }

    .col-l-8--center {
        grid-column: 3 / span 8;
    }

    .col-l-9 {
        grid-column: span 9;
    }

    .col-l-10 {
        grid-column: span 10;
    }

    .col-l-10--center {
        grid-column: 2 / span 10;
    }

    .col-l-12 {
        grid-column: span 12;
    }
}

@media (max-width:949px) {
    .col-m-0 {
        display: none;
    }

    .col-m-3 {
        grid-column: span 3;
    }

    .col-m-4 {
        grid-column: span 4;
    }

    .col-m-5 {
        grid-column: span 5;
    }

    .col-m-6 {
        grid-column: span 6;
    }

    .col-m-6--center {
        grid-column: 4 / span 6;
    }

    .col-m-7 {
        grid-column: span 7;
    }

    .col-m-8 {
        grid-column: span 8;
    }

    .col-m-8--center {
        grid-column: 3 / span 8;
    }

    .col-m-9 {
        grid-column: span 9;
    }

    .col-m-10 {
        grid-column: span 10;
    }

    .col-m-10--center {
        grid-column: 2 / span 10;
    }

    .col-m-12 {
        grid-column: span 12;
    }
}

@media (max-width:767px) {
    .col-s-0 {
        display: none;
    }

    .col-s-3 {
        grid-column: span 3;
    }

    .col-s-4 {
        grid-column: span 4;
    }

    .col-s-6 {
        grid-column: span 6;
    }

    .col-s-6--center {
        grid-column: 4 / span 6;
    }

    .col-s-8 {
        grid-column: span 8;
    }

    .col-s-8--center {
        grid-column: 3 / span 8;
    }

    .col-s-9 {
        grid-column: span 9;
    }

    .col-s-10--center {
        grid-column: 2 / span 10;
    }

    .col-s-12 {
        grid-column: span 12;
    }
}

@media (max-width: 477px) {
    .col-xs-0 {
        display: none;
    }

    .col-xs-12 {
        grid-column: span 12;
    }
}

/* Section colors & paddings */
.section-padding {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
    height: 100vh;
}

.section-padding--auto {
    height: auto;
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.bg-darker {
    background-color: var(--color-darker);
    color: var(--color-text-light);
}

.bg-light {
    background-color: var(--color-light);
    color: var(--color-text-dark);
}

.bg-xlight {
    background-color: var(--color-xlight);
    color: var(--color-text-dark);
}

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

.mb_1 {
    margin-bottom: 1.5rem;
}

.mb_2 {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4.5rem 0;
    }

    .mb_2 {
        margin-bottom: 2rem;
    }
}

/* Typografie */
.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.text-yellow {
    color: var(--color-yellow);
}

.text-dark {
    color: var(--color-text-dark);
}

.text-hero-designerei {
    font-size: 4rem;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -1.5px;
}

.text-h2-designerei {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-h3 {
    font-size: 1.4rem;
    line-height: 1.15;
}

.text-body {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-align: left;
}

@media (max-width:500px) {
    .text-body {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

.text-small {
    font-size: 0.85rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-darkgreen);
    display: inline-block;
    margin-bottom: 1.25rem;
}

#ueber-mich .section-tag {
    color: var(--color-yellow);
}

@media (max-width: 768px) {
    .text-hero-designerei {
        font-size: 2.5rem;
    }

    .text-h2-designerei {
        font-size: 1.85rem;
    }
}

/* Flex helper */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-4 {
    gap: 1rem;
}

/* Hero Section */
.hero-wrapper,
.intro-img {
    position: relative;
    height: 100vh;
    object-fit: cover;
    object-position: top right;
    width: 100vw;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo-text {
    font-size: 6rem;
    font-weight: 300;
    color: white;
    letter-spacing: 0.1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-text span {
    font-weight: 300;
}

.hero-subtitle {
    color: var(--color-yellow);
    font-size: 1.15rem;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero-logo-text {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.4em;
    }
}

/* Navbar */
.navbar-designerei {
    height: 4.5rem;
    display: flex;
    align-items: center;
    left: 0;
    width: 100%;
}

.nav-links-designerei a,
.logo_sub,
.logo_main,
.show-mobile line {
    transition: all 0.4s ease-in;
}

.navbar-designerei.light .nav-links-designerei a {
    color: #131313;
}

.navbar-designerei.light .logo_sub {
    fill: #668728;
}

.navbar-designerei.light .logo_main {
    fill: #000000;
}

.navbar-designerei.light .show-mobile line {
    stroke: #000000;
}

.light .nav-links-designerei a,
.light .logo_sub,
.light .logo_main,
.light .show-mobile line {
    transition: all 0.3s ease-out;
}

.nav-inner {
    grid-column: 2 / span 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.nav-logo-sub {
    color: var(--color-yellow);
    font-size: 0.48rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    font-weight: 600;
}

.nav-links-designerei {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links-designerei a {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: flex-end;
    margin-bottom: -1px;
}

.nav-links-designerei a:hover {
    font-weight: 700;
}

@media (max-width: 1279px) {
    .hidden-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .active-mobile-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 4.5rem;
        left: 0;
        width: 100%;
        background: #000000dd;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 10px 30px -10px #00000077;
        padding: 2.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 90;
        gap: 1.5rem;
        transition: all 0.4s ease-in;
    }

    .light .active-mobile-menu {
        background: #f5f2ebdd;
        transition: all 0.3s ease-out;
        box-shadow: 0 10px 30px -10px #00000033;
    }

    header.bg-darker .active-mobile-menu {
        background: var(--color-darker);
    }
}

@media (min-width: 1280px) {
    .show-mobile {
        display: none !important;
    }
}

/* Buttons */
.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-text-dark) !important;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--color-yellow);
    font-size: 0.95rem;
}

.btn-yellow:hover {
    background-color: transparent;
    color: var(--color-darkgreen) !important;
    border-color: var(--color-darkgreen);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-light) !important;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--color-text-light);
    font-size: 0.95rem;
}

.btn-outline:hover {
    background-color: var(--color-text-light);
    color: var(--color-text-dark) !important;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-text-dark) !important;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--color-text-dark);
    font-size: 0.95rem;
}

.btn-outline-dark:hover {
    background-color: var(--color-text-dark);
    color: var(--color-white) !important;
}

/* Grayscale Image effect */
.img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.grayscale-img {
    width: 100%;
    transition: all 0.8s ease;
    display: block;
}

.img-wrapper:hover .grayscale-img {
    filter: grayscale(0);
    transform: scale(1.02);
}

/* Philosophie Elements */
.philosophie-keywords-1 {
    font-size: 2.25rem;
    color: var(--color-text-dark);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    line-height: 1;
}

.pen-floating {
    max-height: auto;
    width: 50%;
    position: absolute;
    right: 5%;
    z-index: 2;
    bottom: 60vh;
}

.philosophie-keywords-2 {
    font-size: 1.3rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    line-height: 1;
}

.philosophie-keywords-2 .separator {
    color: var(--color-green);
}

/* Quote Box with grid system background */
.quote-box {
    padding: 3.5rem 3rem;
    position: relative;
}

.italic-quote {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    line-height: 1.4;
    color: var(--color-text-dark);
    font-style: italic;
    position: relative;
    z-index: 2;
}

.quote-mark {
    position: absolute;
    font-size: 8rem;
    color: var(--color-yellow);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1;
    opacity: 0.85;
    user-select: none;
    z-index: 1;
}

.quote-mark.top {
    top: -2rem;
    right: 1.5rem;
}

.quote-mark.bottom {
    bottom: -4rem;
    left: 1rem;
}

/* Leistungen Cards */
.mein-revier-title {
    color: var(--color-darkgreen);
    font-weight: 300;
    font-family: var(--font-main);
    font-size: 6rem;
    line-height: 1;
}

.text-right-desktop {
    text-align: right;
}

@media (max-width: 1279px) {
    .mein-revier-title {
        font-size: 2.5rem;
    }

    .text-right-desktop {
        text-align: left;
        justify-content: flex-start !important;
    }
}

.card-hover-effect {
    transition: transform 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
}

.card-img-container {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-yellow-bg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yellow-placeholder-graphic {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: -2px;
}

.service-card {
    border-top: 2px solid var(--color-yellow);
    padding-top: 0.5rem;
    margin-top: 1.5rem;
}

.service-card li {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li::after {
    content: '→';
    color: var(--color-yellow);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
}

.service-card li:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Timeline / Referenzen */
.timeline-container {
    position: relative;
    margin-top: 4rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 5fr 2fr 4fr;
    margin-bottom: 4rem;
    align-items: center;
}

.timeline-img-col {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.timeline-img-col img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.fallback-timeline-img {
    width: 100%;
    height: 200px;
    background: var(--color-gray-light);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
    color: var(--color-gray);
}

.timeline-node-col {
    position: relative;
    height: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-node-col::before {
    content: '';
    position: absolute;
    top: -2rem;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--color-green);
    z-index: 1;
}

.timeline-row:last-child .timeline-node-col::before {
    bottom: 50%;
}

.timeline-row:first-child .timeline-node-col::before {
    top: 50%;
}

.timeline-badge-capsule {
    background-color: var(--color-darkgreen);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(227, 244, 15, 0.2);
}

.timeline-badge-year {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.timeline-text-col {
}

.tag-badge {
    background: rgba(227, 244, 15, 0.15);
    border: 1px solid rgba(227, 244, 15, 0.25);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
    border-radius: 3px;
}

/* Vertical Text design */
.vertical-text-wrapper {
    display: flex;
    justify-content: center;
}

.vertical-text {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 6rem;
    color: var(--color-green);
    font-weight: 300;
    text-transform: uppercase;
    display: flex;
    user-select: none;
    line-height: 1;
    max-height: 100%;
    text-align: center;
    transform: rotate(180deg);
    position: absolute;
}

@media (max-width: 991px) {
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }

    .timeline-node-col {
        grid-row: 1;
        min-height: auto;
        height: 40px;
        justify-content: flex-start;
        align-items: center;
        padding-left: 10px;
    }

    .timeline-node-col::before {
        display: none;
    }

    .timeline-img-col {
        justify-content: flex-start;
        padding-left: 35px;
    }

    .timeline-text-col {
        padding-left: 35px;
    }

    .vertical-text-wrapper {
        display: none;
    }
}

/* Kontakt Card */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
}

/* Map Placeholder Wrapper */
.map-column-wrapper {
    position: relative;
    height: 100%;
    min-height: 380px;
    border-radius: 4px;
    overflow: hidden;
    background-image: url('assets/map.jpg');
    background-size: cover;
}

.studio-badge-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.studio-arrow-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.studio-arrow-btn:hover {
    transform: scale(1.08);
}

@media (max-width: 949px) {
    .map-column-wrapper {
        min-height: 620px;
        margin-top: 1.5rem;
    }

    .studio-badge-card {
        padding: 1.5rem;
    }
}

/* Footer elements */
.footer-bottom-link:hover {
    color: var(--color-yellow);
}

.social-circle-btn {
    background: var(--color-light);
    color: var(--color-text-dark);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.social-circle-btn:hover {
    background: var(--color-yellow);
    color: var(--color-text-dark);
    transform: translateY(-2px);
}

.intro-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#hero {
    z-index: 0;
    height: 100vh;
}

#philosophie {
    min-height: 150vh;
    position: relative;
    z-index: 1;
}

#philosophie-content {
    color: var(--color-text-dark);
    padding: 7rem 0;
    position: relative;
    height: 200vh;
    z-index: 1;
    overflow: hidden;
}

@media (max-width:767px) {
    #philosophie-infos {
        background-color: #ffffffdd;
        position: relative;
        z-index: 1;
        padding: 1rem;
    }
}

#scribble {
    position: absolute;
    z-index: 2;
    align-self: flex-end;
    grid-column: span 6;
    width: 100%;
    bottom: 0;
    right: 0;
    height: auto;
}

#leistungen:before {
    content: '';
    display: block;
    height: 100%;
    background: #FFFBF0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    min-width: 300px;
    width: 38.2%;
}

#referenzen:before {
    content: '';
    display: block;
    min-width: 300px;
    width: 38.2%;
    height: 100%;
    background: linear-gradient(180deg, #FFFBF0 0%, #FAFAF1 100%);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

header {
    position: fixed;
    top: 0;
    z-index: 100;
}

.spacer {
    width: 48px;
    height: 4px;
    background: var(--color-green);
    margin-bottom: 3rem;
}

#raster_text,
#raster_keys {
    position: absolute;
    width: 100%;
    opacity: 0;
    top: 0;
    left: 0;
}

.textblock {
    position: relative;
    min-height: 100px;
}

@media (max-width:500px) {
    .textblock {
        min-height: 100px;
    }
}

/* Additional specific styling for legal pages to maintain high readability */
.agb-container {
    max-width: 800px;
    margin: 0 auto;
}

.agb-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 6rem;

    /* Ensure section title is visible below sticky nav when clicking TOC links */
}

.agb-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-green);
    padding-bottom: 0.5rem;
    display: inline-block;
    letter-spacing: -0.5px;
}

.agb-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #2b2b2b;
}

.agb-paragraph strong {
    color: var(--color-dark);
    margin-right: 0.5rem;
    font-weight: 700;
}

.agb-toc-link:hover {
    text-decoration: underline;
    color: #000 !important;
}

@media (max-width: 767px) {
    .agb-toc-list {
        grid-template-columns: 1fr !important;
    }
}

.schnellzugriff {
    background: var(--color-xlight);
    padding: 2rem;
    border-radius: 4px;
}

@media (max-width:948px) {
    .moverlay {
        background-color: #000000bb;
        align-items: center;
        display: flex;
    }

    .moverlay--light {
        background-color: #ffffffdd;
        align-items: center;
        display: flex;
    }
}
