/* ============================================
   SHARED STYLES
   Gemeinsame Basis für alle Content-Seiten
   ============================================ */

/* ── CMS Scoping / Mainblock ────────────────── */
html[location=website] #wrapperall div#mainblock {
    padding-top: 0;
    padding-bottom: 0;
    overflow: inherit;
    background-color: transparent;
}

html[location=website] .subside #wrapperall div#mainblock,
html[location=website] #wrapperall div#mainblock > main[role=main] > div.lb6,
html[location=website] #wrapperall div#mainblock > main[role=main] div.lb9 {
    margin-block-start: 12rem;
}

html[location=website] #wrapperall div#mainblock > main[role=main] > div.lb6,
html[location=website] #wrapperall div#mainblock > main[role=main] div.lb9 {
    max-width: none;
}

html[location=website] #wrapperall div#mainblock > main[role=main] .mg15 {
    display: none;
}


html[location=website] .subside header[role=banner] {
    padding-top: 0 !important;
}

/* ── Design Tokens ──────────────────────────── */
:root {
    --c-dark: #2a2724;
    --c-light: #fafafa;
    --c-grey: #4a4542;
    --c-taupe: #a99d8f;
    --c-taupe-light: #d4cac3;
    --c-brown: #8b7d6b;
    --c-cream: #f4f3f2;
    --c-warm-white: #fdfcfa;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography & Layout Helpers ────────────── */
.section-luxury {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

/* Doppel-Padding nur vermeiden, wenn zwei Sections den gleichen Hintergrund haben */
.section-luxury.bg-white + .section-luxury.bg-white,
.section-luxury.bg-soft + .section-luxury.bg-soft,
.section-luxury.bg-cream + .section-luxury.bg-cream,
.section-block.bg-white + .section-block.bg-white,
.section-block.bg-soft + .section-block.bg-soft,
.section-block.bg-cream + .section-block.bg-cream {
    padding-top: 0;
}

.headline-xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-lg {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-elegant {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--c-grey);
    font-weight: 300;
}

.accent-line-h {
    width: 60px;
    height: 1px;
    background: var(--c-taupe);
}

/* ── Utility-Klassen ────────────────────────── */
.bg-soft {
    background: var(--c-light);
}

.mw-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mw-540 {
    max-width: 540px;
}

.quote {
    font-style: italic;
    color: var(--c-brown);
}

/* ── Page Header (klassisch, Hero-Bild via ::before seitenspezifisch) ── */
.page-header {
    background: var(--c-dark);
    padding: clamp(13rem, 16.5vw, 15rem) 0 clamp(2.5rem, 6.5vw, 4.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .page-header {
        padding-top: 175px !important;
        padding-bottom: 2rem !important;
    }
}

.page-header::before {
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            135deg,
            rgba(26, 26, 26, 0.55) 0%,
            rgba(26, 26, 26, 0.35) 50%,
            rgba(26, 26, 26, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
}

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

/* ── Section Block (padded section mit 5% horizontal) ── */
.section-block {
    padding: clamp(4rem, 10vw, 7rem) 5%;
}

/* ── 2-Spalten-Grid (Text + Bild / Text + Badge) ── */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 991px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

.two-col-grid p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-grey);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.two-col-grid p:last-child {
    margin-bottom: 0;
}

.two-col-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Split Layout ───────────────────────────── */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 50vh;
}

@media (max-width: 991px) {
    .split-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-content > .split-text {
        order: 1;
    }

    .split-content > .split-image {
        order: 2;
    }
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
}

.split-image {
    position: relative;
    overflow: hidden;
    min-height: 1024px;
}

.split-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Service Cards (Standard-Variante) ──────── */
.service-card {
    background: var(--c-light);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: border-color 0.4s var(--transition-smooth),
    box-shadow 0.4s var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--c-taupe-light);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.service-card > i {
    display: block;
    font-size: 2rem;
    color: var(--c-taupe);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--c-dark);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-grey);
    font-weight: 300;
}

.service-card ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.service-card ul li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-grey);
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.35rem;
    list-style: none !important;
}

.service-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-taupe);
    font-size: 0.85rem;
    line-height: 1.9;
}

/* ── Highlight Box ──────────────────────────── */
.highlight-box {
    background: var(--c-cream);
    border-left: 3px solid var(--c-taupe);
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
}

.highlight-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-grey);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* ── Section Labels & Headings ──────────────── */
.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-taupe);
    margin-bottom: 1rem;
}

.heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--c-dark);
    margin-bottom: 1.5rem;
}

/* ── Intro Section ──────────────────────────── */
.intro-section {
    padding: clamp(4rem, 10vw, 7rem) 5%;
    background: #fff;
}

.intro-section > div {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.intro-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-grey);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.intro-section p:first-of-type {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--c-dark);
    font-weight: 400;
}

/* ── CTA Final ──────────────────────────────── */
.cta-final {
    padding: clamp(4rem, 10vw, 7rem) 5%;
    background: var(--c-cream);
    text-align: center;
    position: relative;
    border-top: 1px solid var(--c-taupe-light);
}

.cta-final > div {
    max-width: 650px;
    margin: 0 auto;
}

.cta-final h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--c-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-final > div > p {
    font-size: 1.05rem;
    color: var(--c-grey);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-final > div > a {
    margin-top: 0.5rem;
}

.cta-final > div > div {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-final > div > div a {
    color: var(--c-brown);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s var(--transition-smooth);
}

.cta-final > div > div a i {
    color: var(--c-taupe);
}

.cta-final > div > div a:hover {
    color: var(--c-dark);
}

/* ── Buttons ────────────────────────────────── */
/* Primary (Taupe) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--c-taupe);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 2px solid var(--c-taupe);
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
    gap: 1rem;
}

/* Submit-Button (eigener Reset, da <input> kein Flex-Kind / Pseudo-Inhalte unterstützt) */
input[type="submit"] {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--c-taupe);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    border: 2px solid var(--c-taupe);
    border-radius: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    outline: none;
    transition: background 0.3s var(--transition-smooth),
    border-color 0.3s var(--transition-smooth),
    color 0.3s var(--transition-smooth);
}

input[type="submit"]:hover,
input[type="submit"]:focus {
    background: var(--c-brown);
    border-color: var(--c-brown);
    color: #fff;
    outline: none;
}

/* Outline (weiß, für dunkle Hintergründe) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #fff;
    color: var(--c-dark);
    border-color: #fff;
    gap: 1rem;
}

/* Dark */
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--c-dark);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 2px solid var(--c-dark);
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: var(--c-taupe);
    border-color: var(--c-taupe);
    color: #fff;
    gap: 1rem;
}

/* ── Team Photo Hover (global, Startseite + Team-Seite) ── */
.home-team-photo,
.team-card > img {
    transition: border-color 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease;
    background: var(--c-taupe);
}

.home-team-card:hover .home-team-photo,
.team-card:hover > img {
    border-color: var(--c-taupe);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 24px rgba(42, 39, 36, 0.12);
}

/* Form */
.form_checkbox_wrapper {
    background: none;
}

/* Bootstrap form-check-input: Legacy-Override aus _basis.scss (input[type="checkbox"]{display:flex}) neutralisieren */
.form-check .form-check-input[type="checkbox"],
html[location=website] .form-check-input[type="checkbox"] {
    display: inline-block !important;
    width: 1em;
    height: 1em;
    margin: 0.25em 0 0 0 !important;
    padding: 0;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: var(--bs-form-check-bg, #fff);
    background-image: var(--bs-form-check-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: var(--bs-border-width, 1px) solid var(--bs-border-color, #dee2e6);
    border-radius: 0.25em;
    flex-shrink: 0;
    vertical-align: top;
}

.form-check .form-check-input[type="checkbox"]::before,
.form-check .form-check-input[type="checkbox"]::after,
html[location=website] .form-check-input[type="checkbox"]::before,
html[location=website] .form-check-input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

.form-check .form-check-input[type="checkbox"]:checked,
html[location=website] .form-check-input[type="checkbox"]:checked {
    background-color: var(--c-taupe);
    border-color: var(--c-taupe);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check .form-check-input[type="checkbox"]:focus,
html[location=website] .form-check-input[type="checkbox"]:focus {
    border-color: var(--c-taupe-light);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(169, 157, 143, 0.25);
}

.bestaetigung.abstand1_bestaetigung {
    display: none;
}

/* List-Group: Item ausblenden*/
li.list-group-item.list-group-item-action:nth-child(4) {
    display: none;
}


.full-text {
    display: block !important;
}