/* ============================================
   SHOWROOM â€“ Page-Specific Styles (showroom.css)
   Stefan Kübrich GmbH & Co. KG
   ============================================ */

/* ============================================
   1. HERO SECTION
   ============================================ */
.sr-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #11151d;
    color: var(--white);
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.sr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(15, 18, 25, 0.90) 0%,
        rgba(15, 18, 25, 0.65) 50%,
        rgba(15, 18, 25, 0.25) 100%
    );
    z-index: 0;
}

.sr-hero-inner {
    position: relative;
    z-index: 1;
}

.sr-hero-content {
    max-width: 700px;
}

.sr-hero-pre {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(157, 25, 27, 0.35);
    border: 1px solid rgba(157, 25, 27, 0.5);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.sr-hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
}

.sr-hero-sub {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    margin-bottom: 2.75rem;
    max-width: 600px;
}

/* Decorative scroll hint at the bottom of hero */
.sr-hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    animation: sr-bounce 2.2s ease-in-out infinite;
}

@keyframes sr-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================
   2. FEATURES SECTION (Vorfreude)
   ============================================ */
.sr-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* ============================================
   3D FLIP CARDS
   ============================================ */

/* Outer wrapper – sets the perspective for the 3D depth effect */
.sr-flip-wrapper {
    perspective: 1200px;
    cursor: pointer;
    /* Inherits the grid cell; no extra sizing needed */
}

/* Inner element rotates around the Y-axis */
.sr-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Desktop: flip on hover of the wrapper */
@media (hover: hover) and (pointer: fine) {
    .sr-flip-wrapper:hover .sr-flip-inner {
        transform: rotateY(180deg);
    }
}

/* Mobile / touch: flip on .is-flipped class (toggled via JS) */
.sr-flip-wrapper.is-flipped .sr-flip-inner {
    transform: rotateY(180deg);
}

/* Shared face styles */
.sr-flip-front,
.sr-flip-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Front face – keeps all existing card styles, just loses the hover lift */
.sr-flip-front {
    transform: rotateY(0deg);
    /* override absolute so flex children still work */
    position: relative;
    /* keep it above the back during initial render */
    z-index: 2;
    /* We need to be absolute for backface to work */
}

/* Allow the front to sit properly inside a preserve-3d container */
.sr-flip-front.sr-feature-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Back face – starts hidden (rotated 180°) */
.sr-flip-back {
    transform: rotateY(180deg);
    background: var(--text-dark);
    box-shadow: var(--shadow-md);
}

/* Elevate shadow on hover/flip for both sides */
.sr-flip-wrapper:hover .sr-flip-front,
.sr-flip-wrapper:hover .sr-flip-back,
.sr-flip-wrapper.is-flipped .sr-flip-front,
.sr-flip-wrapper.is-flipped .sr-flip-back {
    box-shadow: var(--shadow-xl);
}

.sr-flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Subtle "flip" hint label at the bottom of the front face */
.sr-flip-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sr-flip-hint--light {
    color: rgba(255, 255, 255, 0.75);
}

.sr-flip-wrapper:hover .sr-flip-hint,
.sr-flip-wrapper:focus .sr-flip-hint {
    opacity: 1;
}

.sr-feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover-Effekt wird durch Flip-Wrapper übernommen; .sr-feature-card:hover hier deaktiviert */

/* Highlighted center card */
.sr-feature-card--highlight {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
}

.sr-feature-card--highlight .sr-feature-title {
    color: var(--white);
}

.sr-feature-card--highlight .sr-feature-text {
    color: rgba(255, 255, 255, 0.9);
}

.sr-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(157, 25, 27, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.sr-feature-icon svg {
    width: 26px !important;
    height: 26px !important;
}

.sr-feature-card--highlight .sr-feature-icon {
    background: rgba(255, 255, 255, 0.18);
}

.sr-feature-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.sr-feature-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   3. ANREISE-SEKTION (Karte & Kontakt)
   ============================================ */
.sr-anreise-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.sr-anreise-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    line-height: 1.2;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.sr-anreise-text {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Stylische Kontakt-Box */
.sr-contact-box {
    background: var(--bg-light-grey);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sr-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sr-contact-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: rgba(157, 25, 27, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.sr-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sr-contact-label {
    font-size: var(--fs-xs, 0.75rem);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.sr-contact-value {
    font-size: var(--fs-base);
    color: var(--text-dark);
    font-weight: var(--fw-medium);
    line-height: 1.55;
}

.sr-contact-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    transition: opacity var(--transition-fast);
}

.sr-contact-link:hover {
    opacity: 0.75;
}

.sr-contact-cta {
    margin-top: 0.5rem;
    align-self: flex-start;
}

/* Maps Wrapper */
.sr-maps-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.sr-maps-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    background: var(--white);
    color: var(--text-dark);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sr-maps-badge svg { color: var(--accent-red); }

.sr-maps-wrapper iframe {
    display: block;
    border-radius: var(--radius-lg);
}

/* ============================================
   4. NAVI-RETTER SECTION
   ============================================ */
.sr-navi-subtitle {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
    text-align: center;
}

.sr-navi-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.sr-navi-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 1.35rem);
    min-width: 280px;
}

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

.sr-navi-img-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.sr-navi-card:hover .sr-navi-img-wrap img {
    transform: scale(1.06);
}

.sr-navi-step-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    background: var(--accent-red);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(157, 25, 27, 0.5);
}

.sr-navi-step-badge--pill {
    width: auto;
    height: 36px;
    padding: 0 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sr-navi-body {
    padding: 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sr-navi-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.sr-navi-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   5. CTA
   ============================================ */
.sr-cta-coffee-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(157, 25, 27, 0.08);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

/* ============================================
   RESPONSIVE: Tablet & Mobile
   ============================================ */
@media (max-width: 1024px) {
    .sr-anreise-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sr-features-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }

    .sr-navi-grid {
        flex-direction: column;
        align-items: center;
        max-width: 480px;
        margin-inline: auto;
    }

    .sr-navi-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sr-hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .sr-hero-sub {
        font-size: var(--fs-base);
    }

    .sr-features-grid,
    .sr-navi-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Anreise-Grid: 1 Spalte auf Mobile */
    .sr-anreise-section .fade-in-element[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Maps-Iframe: Mindesthöhe auf Mobile sicherstellen */
    .sr-anreise-section iframe {
        min-height: 400px !important;
        height: 400px !important;
    }

    /* MOBILE FONT SIZE NORMALIZATION */
    h1, .sr-hero-title { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h2, .sr-anreise-title { font-size: 1.8rem !important; line-height: 1.3 !important; }
    main p, .sr-hero-sub, .sr-anreise-text, .sr-navi-subtitle, .sr-feature-text { font-size: 1rem !important; line-height: 1.5 !important; }
}

/* Background Hero Slider for Showroom.html */
.sr-hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    aspect-ratio: auto !important;
}

.sr-hero-slider .showroom-slider-track {
    height: 100%;
}

.sr-hero-slider .showroom-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.sr-hero-slider .showroom-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .sr-hero-slider .showroom-slide img {
        object-fit: cover;
    }
}

