/* ============================================
   INDEX.HTML — Home Page Sections
   ============================================ */

/* ========== SPLIT SECTION ========== */
.split-section { padding-bottom: clamp(3rem, 5vw, 5rem); }

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1300px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .split-grid { grid-template-columns: 1fr 1fr; }
}

/* Wrapper — Entry-Animation via animation-timeline.
   Timeline besetzt opacity + transform + filter auf .split-tile-wrap.
   .split-tile selbst bleibt frei für Hover-Effekte. */
.split-tile-wrap {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
}

@keyframes split-tile-enter {
    from { opacity: 0; transform: translateY(32px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@supports (animation-timeline: view()) {
    .split-tile-wrap {
        animation: split-tile-enter linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
}

@supports not (animation-timeline: view()) {
    .split-tile-wrap {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Tile itself — no entry state, only hover interaction */
.split-tile {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    box-shadow: var(--depth-rest);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition:
        transform 0.5s var(--ease),
        border-color 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

@media (min-width: 900px) {
    .split-tile { aspect-ratio: 1/1.1; }
}

.split-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-highlight);
    pointer-events: none;
    z-index: 2;
}

.split-tile-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.split-tile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: brightness(0.7) contrast(1.08) saturate(0.92);
    transition: transform 1.2s var(--ease), filter 1s var(--ease);
}

.split-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 65%, transparent) 35%,
            color-mix(in srgb, var(--bg) 15%, transparent) 75%,
            transparent 100%);
}

.split-tile-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(to top,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 82%, transparent) 40%,
            color-mix(in srgb, var(--bg) 50%, transparent) 80%,
            color-mix(in srgb, var(--bg) 25%, transparent) 100%);
    transition: opacity 0.6s var(--ease);
}

.split-tile-content {
    position: relative;
    z-index: 3;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.split-tile-content .label {
    margin-bottom: 0;
}

.split-tile-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
}

.split-tile-content p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.7;
    max-width: 420px;
}

.split-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
    transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.split-tile-cta span {
    transition: transform 0.3s var(--ease);
    display: inline-block;
}

/* Hover only when tile is ready (prevents hover during entrance animation) */
@media (hover: hover) and (min-width: 1025px) {
    .split-tile:is(:hover, .sticky-hover) {
        transform: scale(1.015);
        border-color: var(--accent-25);
        box-shadow: var(--depth-hover), var(--depth-glow);
    }
    .split-tile:is(:hover, .sticky-hover) .split-tile-bg img {
        transform: scale(1.08);
        filter: brightness(0.95) contrast(1.1) saturate(1.02);
    }
    .split-tile:is(:hover, .sticky-hover) .split-tile-cta {
        color: var(--accent);
        gap: 0.75rem;
    }
    .split-tile:is(:hover, .sticky-hover) .split-tile-cta span {
        transform: translateX(3px);
    }
    /* Cross-dim — other tile dims when one is hovered.
       Doppelter Layer: Bg-Filter + Overlay-::before-Opacity (Gradient-Snap vermieden). */
    .split-grid:is(:hover, .has-sticky-hover) .split-tile:not(:hover):not(.sticky-hover) .split-tile-bg img {
        filter: saturate(0.5) brightness(0.5);
    }
    .split-grid:is(:hover, .has-sticky-hover) .split-tile:not(:hover):not(.sticky-hover) .split-tile-overlay::before {
        opacity: 1;
    }
}

/* ========== USP SECTION ========== */
.usp-section {
    background: transparent;
}

/* ========== BLUEPRINT WRAP (CTA + Footer) ========== */
/* Blueprint-Underlay über den Abschluss-Bereich (Projekt starten + Footer).
   invert-Filter macht helle Bauplan-Linien zu dunklem Negativ-Pattern.
   ::before extends über Wrap-Grenzen hinaus (inset: -280px 0) damit Blueprint
   sanft in die Reviews-Section darüber bleedet.
   Mask mit großen Fade-Zonen löst die Top-Grenze optisch auf. */
/* Blueprint-wrap wurde nach style.css umgezogen — global verfügbar für alle Seiten */

.usp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: clamp(3rem, 6vw, 5rem) auto 0;
}

@media (min-width: 720px) {
    .usp-grid { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
}

@media (min-width: 1024px) {
    .usp-grid { grid-template-columns: repeat(3, 1fr); }
}

.usp-point {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.usp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-60);
    flex-shrink: 0;
    margin-top: 0.6em;
}

.usp-text {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.usp-point h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

.usp-point p {
    font-size: 14.5px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========== ZULETZT GEBAUT — Carousel (PA Grundstein Pattern, 1:1) ========== */
.zg-section {
    background: transparent;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    padding: var(--section-pad) 0;
}

/* No custom animatable properties needed —
   info is always visible, only scale animates via scroll-timeline. */

.zg-carousel {
    position: relative;
    margin-top: 3rem;
}

/* Native scroll container — no JS transforms */
.zg-viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zg-viewport::-webkit-scrollbar {
    display: none;
}

/* Track: flex row.
   padding-left centers the FIRST slide (PA Grundstein pattern).
   ::after pseudo-element creates trailing space so LAST slide also centers. */
.zg-track {
    display: flex;
    gap: 32px;
    padding-left: calc((100vw - min(65vw, 720px)) / 2);
}

.zg-track::after {
    content: '';
    flex: 0 0 calc((100vw - min(65vw, 720px)) / 2 - 32px);
    /* subtract gap (32px) since flex gap adds space before ::after */
}

@media (max-width: 767px) {
    .zg-track {
        gap: 16px;
        padding-left: calc((100vw - 82vw) / 2);
    }
    .zg-track::after {
        flex: 0 0 calc((100vw - 82vw) / 2 - 16px);
    }
}

/* Each slide */
.zg-slide {
    flex-shrink: 0;
    width: 65vw;
    max-width: 720px;
    scroll-snap-align: center;
    position: relative;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 767px) {
    .zg-slide {
        width: 82vw;
    }
}

/* Scroll-driven: subtle scale — slides edge is 0.95, center is 1.0 */
@supports (animation-timeline: view()) {
    @keyframes zg-scale {
        0%   { transform: scale(0.95); }
        50%  { transform: scale(1); }
        100% { transform: scale(0.95); }
    }

    .zg-slide {
        animation: zg-scale linear both;
        animation-timeline: view(inline);
        animation-range: contain 0% contain 100%;
    }
}

/* Image container: tile-depth-glass-touch pattern (konsistent mit Split/Service-Tiles) */
.zg-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--depth-rest);
    isolation: isolate;
    transition: box-shadow 0.5s var(--ease);
}

@media (min-width: 768px) {
    .zg-image {
        aspect-ratio: 16/10;
    }
}

/* Diagonal Glass-Highlight (135deg) — simuliert Licht auf Glasscheibe */
.zg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-highlight);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.zg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hover: Shadow wird tiefer + Accent-Glow, Bild zoomt subtil */
@media (hover: hover) and (min-width: 1025px) {
    .zg-slide:hover .zg-image {
        box-shadow: var(--depth-hover), var(--depth-glow);
    }
    .zg-slide:hover .zg-image img {
        transform: scale(1.03);
    }
}

/* Info UNDER the image — immer voll sichtbar */
.zg-info {
    padding-top: 1.25rem;
    text-align: center;
}

.zg-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.6rem;
}

.zg-info h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.zg-info p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.55;
}

/* Nav: centered below carousel — PA minimal pattern */
.zg-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 0 var(--container-pad);
}

.zg-prev,
.zg-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}

.zg-prev:hover,
.zg-next:hover {
    border-color: var(--accent);
    color: var(--text);
}

.zg-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.zg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: var(--border-strong);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    padding: 0;
}

.zg-dot:hover {
    background: var(--text-muted);
}

.zg-dot.active {
    width: 24px;
    border-radius: 3px;
    background: var(--accent);
}

/* CTA unter Carousel */
.zg-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ========== AUSSTELLUNG TEASER ========== */
.ausstellung-teaser {
    background: var(--bg);
    position: relative;
}

.ausstellung-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

@media (min-width: 960px) {
    .ausstellung-inner {
        grid-template-columns: 1fr 1.1fr;
        gap: 5rem;
    }
}

.ausstellung-text {
    max-width: 520px;
}

.ausstellung-text h2 {
    margin-bottom: 1.25rem;
}

.ausstellung-text > p {
    font-size: 1.0625rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.ausstellung-hours {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ausstellung-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 14px;
}

.ausstellung-hours-label {
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.ausstellung-hours-val {
    color: var(--text);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ausstellung-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.ausstellung-image {
    position: relative;
    aspect-ratio: 5/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--depth-rest);
    border: 1px solid var(--border);
}

.ausstellung-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-highlight);
    pointer-events: none;
    z-index: 2;
}

.ausstellung-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.05) saturate(0.95);
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    background: transparent;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.reviews-section .section-header strong {
    color: var(--accent-light);
    font-weight: 500;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 720px) {
    .reviews-grid { grid-template-columns: 1fr 1fr; }
}

.review-card {
    position: relative;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border-radius: var(--radius-md);
    background: linear-gradient(to bottom,
                    rgba(240, 232, 217, 0.04),
                    rgba(240, 232, 217, 0.01));
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(240, 232, 217, 0.06),
                0 3px 10px var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    isolation: isolate;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.review-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-highlight);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.review-card > * {
    position: relative;
    z-index: 1;
}

.review-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.review-card-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.review-card-google {
    flex-shrink: 0;
}

.review-card-stars {
    color: var(--accent-light);
    font-size: 14px;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px var(--accent-25);
}

.review-card-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.45;
    color: var(--text);
    letter-spacing: -0.01em;
    font-style: italic;
}

.review-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.review-card-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
}

.review-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@media (hover: hover) and (min-width: 1025px) {
    .review-card:hover {
        transform: translateY(-2px);
        border-color: var(--accent-25);
        box-shadow: inset 0 1px 0 rgba(240, 232, 217, 0.1),
                    0 12px 30px var(--shadow-md);
    }
}

.reviews-cta {
    text-align: center;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: transparent;
    text-align: center;
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-inner .label {
    margin-bottom: 0;
}

.cta-inner h2 {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.cta-inner > p {
    color: var(--text-body);
    font-size: 1.0625rem;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.cta-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 520px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
