/* Fotogalerie / Фотогалерея — scoped page styling.
   Wrapper: .fotogalery-page. All selectors live below this scope to avoid
   side effects on other pages. Built to match preise / davor-danach visual
   language (existing site design system). */

.fotogalery-page {
    --fg-bg:        #ffffff;
    --fg-bg-alt:    #f6f7f9;
    --fg-border:    #e4e6ea;
    --fg-text:      #1c1f23;
    --fg-muted:     #5b6573;
    --fg-accent:    #c8a25b;
    --fg-radius:    14px;
    --fg-shadow:    0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
}

/* Gold accent helper — wraps key words in headings/links to match Preise tone. */
.fotogalery-page .text-accent {
    color: var(--fg-accent);
}

/* Hero intro wrapper — slightly tighter top padding and left-aligned. */
.fotogalery-page .fg-hero-intro {
    padding: 8px 0 4px;
    text-align: left;
}

/* ── Section frame ───────────────────────────────────────────────────────── */
.fotogalery-page .fg-section {
    padding: 48px 0;
}
.fotogalery-page .fg-section--alt {
    background: var(--fg-bg-alt);
}
.fotogalery-page .fg-section--tight {
    padding: 32px 0;
}
.fotogalery-page .fg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.fotogalery-page .fg-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--fg-accent);
    margin-bottom: 10px;
}
.fotogalery-page .fg-h1,
.fotogalery-page h1.fg-h1 {
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--fg-text);
}
.fotogalery-page .fg-h2,
.fotogalery-page h2.fg-h2 {
    font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem);
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--fg-text);
}
.fotogalery-page .fg-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--fg-muted);
    max-width: 760px;
    margin: 0 0 18px;
}
.fotogalery-page .fg-text p {
    margin: 0 0 12px;
    line-height: 1.6;
}

/* ── CTA row ─────────────────────────────────────────────────────────────── */
.fotogalery-page .fg-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 4px;
}
.fotogalery-page .fg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.1;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.fotogalery-page .fg-btn--primary {
    background: var(--fg-accent);
    color: #fff;
}
.fotogalery-page .fg-btn--primary:hover {
    background: #b58e44;
    color: #fff;
}
.fotogalery-page .fg-btn--ghost {
    background: #fff;
    border-color: var(--fg-border);
    color: var(--fg-text);
}
.fotogalery-page .fg-btn--ghost:hover {
    border-color: var(--fg-accent);
    color: var(--fg-accent);
}

/* ── Card grid (rooms + surfaces + checklist) ────────────────────────────── */
.fotogalery-page .fg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.fotogalery-page .fg-card {
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius);
    padding: 18px 18px 16px;
    box-shadow: var(--fg-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fotogalery-page .fg-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg-text);
    margin: 0;
}
.fotogalery-page .fg-card__text {
    font-size: .94rem;
    line-height: 1.5;
    color: var(--fg-muted);
    margin: 0;
}

/* ── FAQ (static, self-contained in content) ─────────────────────────────── */
.fotogalery-page .fg-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.fotogalery-page .fg-faq__item {
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: 12px;
    padding: 14px 16px;
}
.fotogalery-page .fg-faq__q {
    font-weight: 600;
    color: var(--fg-text);
    margin: 0 0 6px;
    font-size: 1rem;
}
.fotogalery-page .fg-faq__a {
    color: var(--fg-muted);
    line-height: 1.55;
    margin: 0;
    font-size: .95rem;
}

/* ── Internal-link block ─────────────────────────────────────────────────── */
.fotogalery-page .fg-links {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 18px;
}
.fotogalery-page .fg-links li {
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}
.fotogalery-page .fg-links li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--fg-accent);
    font-weight: 700;
}
.fotogalery-page .fg-links a {
    color: var(--fg-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .12s ease, border-color .12s ease;
}
.fotogalery-page .fg-links a:hover {
    color: var(--fg-accent);
    border-bottom-color: var(--fg-accent);
}

/* ── Final CTA block ─────────────────────────────────────────────────────── */
.fotogalery-page .fg-finalcta {
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius);
    padding: 22px 22px 20px;
    box-shadow: var(--fg-shadow);
    display: grid;
    gap: 8px;
}
.fotogalery-page .fg-finalcta__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
.fotogalery-page .fg-finalcta__text {
    margin: 0 0 4px;
    color: var(--fg-muted);
    line-height: 1.55;
}

/* ── Mobile tweaks ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .fotogalery-page .fg-section { padding: 32px 0; }
    .fotogalery-page .fg-card { padding: 16px; }
    .fotogalery-page .fg-btn { padding: 11px 18px; font-size: .95rem; width: 100%; }
    .fotogalery-page .fg-cta-row { flex-direction: column; }
}

/* ── Trust-strip (Preise mechanism, scoped to Fotogalerie) ────────────────
   Mirrors preise-anthracite.css .trust-strip / .trust-item rules so this
   page does not have to load the full preise stylesheet. Marquee JS in
   front.blade.php is shared and gated by $isFotogalery as well. */
.fotogalery-page .trust-strip {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: center;
    align-items:     center;
    gap:             6px 20px;
    font-size:       13px;
    color:           var(--fg-muted);
    border-top:      1px solid var(--fg-border);
    border-bottom:   1px solid var(--fg-border);
    padding:         14px 0;
    margin:          18px 0;
    list-style:      none;
}
.fotogalery-page .trust-item {
    display:     inline-flex;
    align-items: center;
    gap:         5px;
    white-space: nowrap;
}
.fotogalery-page .trust-item .fa {
    color:     var(--fg-accent);
    font-size: 13px;
}

@keyframes fg-trust-scroll {
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .fotogalery-page .trust-strip {
        flex-wrap:          nowrap;
        overflow-x:         auto;
        overflow-y:         hidden;
        justify-content:    flex-start;
        gap:                0 22px;
        scrollbar-width:    none;
        -ms-overflow-style: none;
        padding-left:       2px;
        padding-right:      2px;
    }
    .fotogalery-page .trust-strip::-webkit-scrollbar { display: none; }

    .fotogalery-page .trust-strip:has(.trust-track) {
        overflow: hidden;
        gap:      0;
    }
    .fotogalery-page .trust-track {
        display:     flex;
        align-items: center;
        gap:         0 28px;
        width:       max-content;
        flex-shrink: 0;
        animation:   fg-trust-scroll 24s linear infinite;
        will-change: transform;
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .fotogalery-page .trust-strip:has(.trust-track) { overflow-x: auto; }
    .fotogalery-page .trust-track                   { animation: none; }
}

@media (max-width: 480px) {
    .fotogalery-page .trust-strip { gap: 4px 14px; font-size: 12px; }
}
