/* ============================================
   GLOBAL COMPONENTS & DESIGN TOKENS (2026)
   ============================================ */

:root {
    /* Enhanced Design Tokens */
    --c-primary: #9D191B;
    --c-primary-dark: #7E1415;
    --c-primary-light: rgba(157, 25, 27, 0.1);
    --c-text: #2C3E50;
    --c-text-muted: #6B7B8D;
    --c-bg: #FFFFFF;
    --c-bg-alt: #F7F7F7;
    --c-border: #E8E8E8;
    --c-white: #FFFFFF;

    --s-container: 1200px;
    --s-section: clamp(4rem, 8vw, 8rem);
    
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 24px;
    
    --sh-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Layout Components --- */
.l-container {
    max-width: var(--s-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.l-section {
    padding-block: var(--s-section);
}

/* --- Global Component: Section Header --- */
.c-section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    max-width: 800px;
    margin-inline: auto;
}

.c-section-header--left {
    text-align: left;
    margin-inline: 0;
}

.c-section-header__eyecatcher {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-primary);
    margin-bottom: 0.75rem;
}

.c-section-header__title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--c-text);
}

.c-section-header__divider {
    width: 60px;
    height: 3px;
    background: var(--c-primary);
    margin-inline: auto;
    border-radius: 2px;
}

.c-section-header--left .c-section-header__divider {
    margin-inline: 0;
}

.c-section-header__text {
    margin-top: 1.5rem;
    font-size: var(--fs-md);
    color: var(--c-text-muted);
}

/* --- Global Component: Card (Service) --- */
.c-card {
    background: var(--c-white);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base);
    display: flex;
    flex-direction: column;
}

.c-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
}

.c-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.c-card:hover .c-card__image {
    transform: scale(1.05);
}

.c-card__body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.c-card__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 0.5rem;
}

.c-card__text {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-card-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Global Component: Testimonial --- */
.c-testimonial {
    background: var(--c-bg-alt);
    padding: 2.5rem;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.c-testimonial:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
}

.c-testimonial__stars {
    color: #F1C40F;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.c-testimonial__text {
    font-style: italic;
    color: var(--c-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.c-testimonial__name {
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    color: var(--c-primary);
}

/* --- Global Component: Trust Item --- */
.c-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.c-trust-item__icon {
    width: 24px;
    height: 24px;
    color: var(--c-primary);
}

.c-trust-item__text {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

/* --- Hero Specific Extensions --- */
.hero-labels {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-rating {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--r-sm);
    backdrop-filter: blur(4px);
}

.hero-rating .stars {
    color: #F1C40F;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-labels {
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: var(--fs-2xl);
    }
}

/* --- Search Results Component --- */
.c-search-results {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1200;
    padding: 2.5rem 0;
    display: none;
    border-top: 1px solid #eee;
    animation: slideInDown 0.3s ease-out;
}

.c-search-results.visible {
    display: block;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.search-result-item {
    display: block;
    padding: 1.5rem;
    background: var(--c-bg-alt);
    border-radius: 12px;
    text-decoration: none;
    color: var(--c-text);
    transition: all 0.3s ease;
    border: 1px solid var(--c-border);
}

.search-result-item:hover {
    background: var(--c-white);
    border-color: var(--c-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--c-primary-light);
}

.search-result-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.search-result-item span {
    font-size: 0.7rem;
    opacity: 0.6;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.search-results-close {
    background: var(--c-white);
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
}

.search-results-close:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   GLOBAL: MATERIAL VERGLEICHS-GRID
   Reusable on boeden, zimmertueren, and any future page.
   ============================================ */
.b-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.b-compare-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.b-compare-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.b-compare-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.b-compare-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.b-compare-card:hover .b-compare-img-wrap img {
    transform: scale(1.06);
}

.b-compare-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(20, 25, 35, 0.85) 0%, transparent 100%);
    color: var(--white);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    padding: 2rem 1.25rem 1rem;
}

.b-compare-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.b-compare-inner-cols {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    flex: 1;
}

.b-acc-meta {
    padding: 0.75rem 0 1rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.b-acc-meta strong {
    color: var(--text-dark);
    font-style: normal;
}

.b-acc-col {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-light);
}

.b-acc-col h4 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
}

.b-acc-col--pro {
    min-height: 280px;
    flex: none;
}

.b-acc-col--pro h4 {
    background: linear-gradient(90deg, #9D191B, #C0392B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.b-acc-col--con {
    min-height: 160px;
    flex: none;
}

.b-acc-col--con h4 {
    color: #4a5568;
}

.b-acc-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.b-acc-col ul li {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 1.1rem;
    position: relative;
}

.b-acc-col--pro ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #9D191B;
    font-weight: var(--fw-bold);
}

.b-acc-col--con ul li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: #4a5568;
    font-weight: var(--fw-bold);
}

@media (max-width: 1200px) {
    .b-compare-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .b-compare-grid {
        grid-template-columns: 1fr;
    }
    .b-acc-cols {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

