/* Wrapper für das Service-Karussell (für zukünftige Nav-Buttons) */
.services-carousel-wrapper {
    position: relative;
    margin: 0;
}

.service-focus-strip,
.machine-proof-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: -24px auto 26px;
    max-width: 920px;
}

.service-focus-strip span {
    background: var(--atelier-paper, #fffaf0);
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 999px;
    color: var(--primary-color);
    font-weight: 800;
    padding: 8px 14px;
}

.machine-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.machine-proof-grid div {
    background: rgba(44, 48, 58, 0.04);
    border: 1px solid var(--atelier-border, rgba(44,48,58,.1));
    border-radius: 20px;
    padding: 18px;
}

.machine-proof-grid strong,
.machine-proof-grid span {
    display: block;
}

.machine-proof-grid strong {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.machine-proof-grid span {
    color: var(--atelier-ink-soft, #68717d);
}

.services-carousel-wrapper.full-width-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Grids für Leistungen und Reviews */
.grid-services {
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Zentriert die Karten vertikal, falls sie unterschiedlich hoch sind */
    perspective: 1500px; /* Stärkerer 3D-Effekt durch geringere Distanz */
    padding: 60px max(20px, calc((100vw - 1160px) / 2)); /* Exakte Ausrichtung der ersten Karte am Text-Container */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
}
.grid-services::-webkit-scrollbar { display: none; }

.grid-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    width: 320px; /* Etwas breiter für mehr Präsenz */
    flex-shrink: 0; /* Verhindert das Stauchen der Karten */
    min-height: 450px; /* Etwas höher für ein besseres Seitenverhältnis */
    border-radius: 24px; /* Weichere Ecken */
    box-shadow: 0 18px 42px rgba(44, 48, 58, 0.20);
    transform-style: preserve-3d;
    transform: scale(0.95);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    scroll-snap-align: center;
}

.card:hover {
    transform: scale(1.025) translateY(-8px);
    box-shadow: 0 26px 58px rgba(44, 48, 58, 0.28);
    z-index: 10;
}

/* Schiebt die nachfolgenden Karten auf dem Kleiderständer zur Seite, wenn eine herausgezogen wird */
.card:hover ~ .card {
    transform: translateX(15px) scale(0.95);
}

.card.is-open {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    z-index: 20;
}

.card.is-open ~ .card {
    transform: translateX(15px) scale(0.95);
}

/* Der goldene "Scherenschnitt" - Die goldene Linie */
.card::before {
    content: '';
    position: absolute;
    top: 25px; /* Wie eine edle Naht etwas vom Rand entfernt */
    left: 0;
    width: 0; /* Startet mit 0 Breite */
    height: 3px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color); /* Goldenes Leuchten für den Schnitt */
    z-index: 3;
}

/* Die Schere selbst, die vor der Linie herfährt */
.card::after {
    content: '✂';
    position: absolute;
    top: -4px; /* Klingen genau auf der goldenen Linie positioniert (noch weiter nach oben korrigiert) */
    left: 0;
    font-size: 38px; /* Schere deutlich massiver und größer */
    color: #e0e0e0; /* Silberne Scherenfarbe */
    z-index: 4;
    opacity: 0;
    transform: translateX(-50%) rotate(45deg); /* Dreht die Schere in die Schnittrichtung */
    filter: drop-shadow(3px 3px 3px rgba(0,0,0,0.8));
}

/* Animation wird per JS getriggert */
.card.is-visible::before {
    animation: scissor-cut-line 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card.is-visible::after {
    animation: scissor-cut-icon 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scissor-cut-line {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes scissor-cut-icon {
    0% { left: 0%; opacity: 1; }
    90% { opacity: 1; } /* Bleibt sichtbar bis kurz vorm Rand */
    100% { left: 100%; opacity: 0; }
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    border-radius: 24px; /* Damit der Hintergrund nicht übersteht, da .card kein overflow: hidden mehr hat */
    clip-path: inset(0 0 0 0 round 24px);
    transform: scale(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
    z-index: 0;
}

.card-background.sharp {
    filter: blur(0);
    transform: scale(1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    clip-path: inset(0 0 0 0 round 24px);
    background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.18));
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Schiebt den Text nach unten */
    height: 100%;
}

/* Navigation Buttons für Karussell */
.carousel-nav {
    position: absolute;
    top: 80%; /* Pfeile ins untere Drittel der Kartenhöhe verschoben */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30; /* Über den Karten */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: max(2%, calc((100vw - 1250px) / 2)); /* Bleibt auf großen Monitoren in der Nähe der Karten */
}

.carousel-nav.next {
    right: max(2%, calc((100vw - 1250px) / 2)); /* Bleibt auf großen Monitoren in der Nähe der Karten */
}

/* Klasse zum dynamischen Ausblenden der Pfeile per JS */
.carousel-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Optimierung für sehr breite Monitore (21:9) */
@media (min-width: 2500px) {
    .grid-services {
        justify-content: center; /* Zentriert alle Karten perfekt auf extrem breiten Monitoren */
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 760px) {
    .machine-proof-grid {
        grid-template-columns: 1fr;
    }

    .service-focus-strip {
        margin-top: -16px;
    }
}

.card h3 {
    margin-bottom: 15px;
    font-size: 2.2rem; /* Überschrift vergrößert für die großen Karten */
    color: white; /* Überschrift jetzt weiß */
}

/* Aufklappender Stoff-Container (volle Breite) */
.fabric-container {
    position: relative;
    margin-top: 20px;
    background-color: #fdfaf6; /* Helles cremeweiß für Stoff-Look */
    color: #2c303a;
    border-radius: 26px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, max-height 0.7s ease-in-out;
    z-index: 5;
    overflow: hidden;
    max-height: 0; /* Startet komplett geschlossen */
    /* Stoff Textur & Ziernaht */
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 4px);
    border-top: 2px dashed var(--secondary-color);
    box-shadow: 0 24px 55px rgba(44, 48, 58, 0.14);
}

.fabric-container.is-open {
    max-height: 1500px; /* Großer Wert, damit der Inhalt Platz hat */
    animation: fabric-unfold 0.45s ease;
}

@keyframes fabric-unfold {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.98); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* Scrollbar für den Stoff */
.fabric-content { 
    padding: 40px; 
    text-align: left; 
    max-height: 50vh; /* Maximale Höhe, bevor Scrollen beginnt */
    overflow-y: auto;
}

/* Scrollbar für den Stoff */
.fabric-content::-webkit-scrollbar { width: 8px; }
.fabric-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
.fabric-content::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 4px; }

.fabric-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.fabric-content p, .fabric-content li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}
.fabric-content ul { padding-left: 20px; margin-bottom: 15px; }
