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

/* --- CMS-Overrides --- */
html[location=website] #wrapperall div#mainblock { padding-bottom: 0px; }
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] div.lb9 > div:first-child { padding: 0; }
html[location=website] .subside header[role=banner] { padding-top: 0px !important; }
html[location=website] address[id=IP_footer_address] { display: none; }

/* Sticky-Verhalten der Bootstrap-Cards deaktivieren (wird vom CMS-Template gesetzt, aber nicht gewünscht) */
html[location=website] .card.sticky-top { position: static !important; }

.lb60 > font, .lb60 > p {
    display: none !important;
}

#mainblock {
    overflow: inherit !important;
    position: relative !important;
    z-index: 99 !important;
    background-color: transparent !important;
    padding-bottom: 0px !important;
}

@media screen and (min-width: 1200px) {
    div.lb60 {
        overflow: inherit;
    }

    #wrapperall {
        padding-top: 0px !important;
        overflow: inherit !important;
    }
}

/* --- Variablen --- */
:root {
    --accent: #e3000b;
    --accent-hover: #b80009;
    --dark: #1a1a1a;
    --text: #6b6b6b;
    --text-muted: #666666;
    --bg-light: #f0f0f0;
    --bg-warm: #fafafa;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-xs: 0.25rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* --- Typografie-Basis --- */
.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

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

.section-heading-md {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
}

.section-text strong {
    font-weight: 500;
    color: var(--dark);
}

.section-lead {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

/* --- Buttons --- */
.btn-accent,
.btn-ghost,
.btn-inverse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 2px solid;
    transition: all 0.3s ease, gap 0.4s ease;
    cursor: pointer;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-inverse {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.btn-inverse:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    gap: 1rem;
}

/* Uppercase-Variante */
.btn-upper {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    padding: 1.25rem 2.5rem;
    gap: 1rem;
}

/* --- Hero (Unterseiten) --- */
.page-hero {
    background: var(--dark);
    min-height: clamp(28rem, 50vw, 40rem);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: clamp(10rem, 18vw, 15rem) 0 clamp(8rem, 13vw, 11rem); /* top 0 bottom – bottom steuert Textposition */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    opacity: 0.3;
    transition: transform 12s linear;
}

.page-hero:hover::before {
    transform: scale(1.05);
}

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

.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    margin: 0 auto;
    padding: 0 5%;
}

html[location=website] .page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero-title strong {
    font-weight: 500;
}

.page-hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto;
}

.page-hero .accent-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
}

/* Horizontale Akzent-Linie (zentrierbar via mx-auto) */
.accent-line-h {
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.page-hero .section-label {
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}

/* Hero ohne Hintergrundbild (nur Gradient) */
.page-hero--no-image::before {
    display: none;
}

@media (max-width: 1000px) {
    .page-hero {
        padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 1.5rem 0 1.5rem;
        min-height: 0;
    }
}

/* --- Content-Sektionen --- */
.content-section {
    padding: clamp(4rem, 10vw, 7rem) 5%;
}

.content-section--light {
    background: #fff;
}

.content-section--warm {
    background: var(--bg-warm);
}

.content-section--gray {
    background: var(--bg-light);
}

.content-section--dark {
    background: var(--dark);
    color: #fff;
}

.content-section--flush {
    padding-inline: 0;
}

/* --- Split-Layout (Text + Bild) --- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.split-grid--media {
    grid-template-columns: 3fr 2fr;
    max-width: 1300px;
}

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

/* Media-Rahmen mit Akzent-Linie unten links */
.media-frame {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.media-frame > img,
.media-frame > video {
    width: 100%;
    height: auto;
    display: block;
}

.media-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
}

/* --- Kundenstimmen / Testimonials --- */
.testimonials {
    padding: clamp(4rem, 10vw, 7rem) 5%;
    background: #fff;
}

.testimonials-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 5% 1.5rem;
    margin: 0 -5%;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2.5rem 2.5rem 5rem;
    min-height: 22rem;
    position: relative;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
    flex: 0 0 min(400px, 85vw);
    scroll-snap-align: start;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
    color: #f5b400;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 .5rem;
    padding: 0 .5rem 0 0;
    font-style: italic;
    max-height: 8em;
    overflow-y: auto;
    scrollbar-width: thin;
}

.testimonial-card footer {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
}

.testimonial-card cite {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    font-style: normal;
    display: block;
}

.testimonial-card time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* --- CTA Abschluss-Sektion --- */
.cta-final {
    padding: clamp(4rem, 10vw, 7rem) 5%;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

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

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

.cta-final p {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    font-style: normal;
}

.cta-contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.cta-contact a:hover {
    color: var(--accent);
}

.cta-contact i {
    color: var(--accent);
}

/* --- Inline-CTA (Kontaktzeile) --- */
.cta-line {
    font-size: 1rem;
    color: var(--text);
    font-weight: 300;
}

.cta-line a {
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.3s var(--ease);
}

.cta-line a:hover {
    border-color: var(--accent);
}

/* --- CTA-Band (dunkler Streifen mit Titel + Button) --- */
.cta-band {
    background: var(--dark);
    color: #fff;
    padding: clamp(1.5rem, 3vw, 2.5rem) 5%;
}

.cta-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

html[location=website] .cta-band h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 0.35rem;
    color: #fff;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.cta-band .btn-accent {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cta-band-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-band .btn-accent {
        justify-content: center;
        width: 100%;
    }
}

/* --- Stats-Row (Kennzahlen auf dunklem Hintergrund) --- */
.stats-row {
    padding: clamp(0.5rem, 1.5vw, 1.25rem) 5% clamp(1.5rem, 3vw, 2.5rem);
    background: var(--dark);
}

.stats-row-inner {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 6vw, 4rem);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

/* Helle Variante mit Border (z. B. Geschichts-/Profil-Seiten) */
.stats-row--light {
    background: var(--bg-light);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: clamp(2.5rem, 5vw, 4rem) 5%;
}

.stats-row--light .stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.stats-row--light .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text);
}

@media (max-width: 576px) {
    .stats-row-inner {
        gap: 2rem;
    }
}

/* --- Cards-Grid (Rasterlayout für Karten) --- */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); padding-top: 1.75rem; }

@media (max-width: 991px) {
    .cards-grid--3,
    .cards-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid--3,
    .cards-grid--4 {
        grid-template-columns: 1fr;
    }
    .cards-grid--4 { gap: 3rem; }
}

/* --- Card-Variante: Icon oben (rund, Akzentfarbe) --- */
.card--icon {
    background: var(--bg-light);
    padding: 3.5rem 2rem 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: visible;
}

.card--icon > i {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff !important;
    --fa-primary-color: #fff;
    --fa-secondary-color: #fff;
    --fa-secondary-opacity: 1;
    font-size: 1.4rem;
    line-height: 3.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(227, 0, 11, 0.25);
    transition: all 0.3s var(--ease);
}

.card--icon:hover {
    border-bottom-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card--icon:hover > i {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 0, 11, 0.35);
}

.card--icon h3 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark);
    margin-bottom: 1rem;
}

.card--icon p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 300;
    margin: 0;
}

/* --- Card-Variante: Bild-Hintergrund mit Overlay --- */
.card--image {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    cursor: pointer;
}

.card--image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s var(--ease);
}

.card--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, .55) 0%, rgba(26, 26, 26, .88) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.card--image:hover > img {
    transform: scale(1.08);
}

.card--image:hover::before {
    background: linear-gradient(180deg, rgba(26, 26, 26, .35) 0%, rgba(26, 26, 26, .78) 100%);
}

.card--image > div {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    width: 100%;
}

.card--image .card-link {
    margin-top: auto;
}

.card--image > div > i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.card--image:hover > div > i {
    transform: translateY(-4px);
}

html[location=website] .card--image h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.card--image p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 1.5rem;
    font-weight: 300;
    max-width: 280px;
}

.card-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.card--image:hover .card-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    gap: 0.75rem;
}

/* --- Card-Variante: Icon + Titel + Bullet-Liste (warm background) --- */
.card--list {
    background: var(--bg-warm);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: border-color 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
}

.card--list:hover {
    border-color: #e0e0e0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.card--list > i,
.card--list .service-card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

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

.card--list li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.card--list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background: var(--accent);
}

/* --- Trust-Band (Vertrauensleiste mit Icons) --- */
.trust-band {
    padding: clamp(3rem, 6vw, 5rem) 5%;
    background: var(--bg-light);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.trust-band-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-band-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.trust-band-item i {
    font-size: 1.65rem;
    color: var(--accent);
}

/* --- Google-Rating-Snippet (.auszeichnung) --- */
.auszeichnung .rate::before {
    content: '5.0';
    display: block;
    color: var(--dark);
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.auszeichnung .rate::after {
    content: '★★★★★';
    display: block;
    color: #f5b400;
    font-size: 1.1em;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-top: 0.35rem;
}

/* --- Tag-Liste (z. B. Regionen) --- */
.tag-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 50rem;
    margin: 0 auto;
}

.tag {
    padding: .25rem .75rem;
    background: var(--bg-light);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.tag:hover {
    background: var(--dark);
    color: #fff;
}

.regions-note {
    text-align: center;
    max-width: 50rem;
    margin: 1.5rem auto 0;
}

/* --- Highlight-Box (Zitat-/Hinweis-Kasten mit linker Akzent-Leiste) --- */
.highlight-box {
    background: var(--bg-light);
    border-left: 3px solid var(--accent);
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
}

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