/* ═══════════════════════════════════════════════════
   pages.css – Blog-Artikel, Legal, Popup, Galerie
   ═══════════════════════════════════════════════════ */

/* ═══════ BLOG ARTICLE ═══════ */
.article-header {
    padding: 7rem 0 3rem;
    border-bottom: 1px solid var(--color-border-light);
}
.article-header .container { max-width: 740px; }
.article-header__meta {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 1rem;
}
.article-header h1 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600; line-height: 1.2; margin-bottom: 1rem;
}
.article-header__intro {
    font-size: 1.1rem; color: var(--color-text-secondary); line-height: 1.75;
}

.article-body { padding: 3rem 0 var(--section-gap); }
.article-body .container { max-width: 740px; }
.article-body h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 2.5rem 0 1rem; line-height: 1.3; }
.article-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.8rem; }
.article-body p  { margin-bottom: 1.2rem; color: var(--color-text-secondary); line-height: 1.85; }
.article-body a  { color: var(--brand-teal); text-decoration: none; border-bottom: 1px solid var(--color-border); }
.article-body a:hover { border-color: var(--brand-teal); }
.article-body blockquote { border-left: 3px solid var(--brand-teal); padding: 0.8rem 0 0.8rem 1.5rem; margin: 2rem 0; font-style: italic; color: var(--color-text-secondary); }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--color-text-secondary); }
.article-body li { margin-bottom: 0.5rem; list-style: disc; }

.article-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.88rem; font-weight: 600; color: var(--brand-teal);
    text-decoration: none; margin-bottom: 2rem; transition: gap 0.2s var(--ease-out);
}
.article-back:hover { gap: 0.7rem; }


/* ═══════ LEGAL PAGES ═══════ */
.legal-header { padding: 7rem 0 2rem; }
.legal-header .container { max-width: 740px; }
.legal-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; line-height: 1.2; }

.legal-body { padding: 2rem 0 var(--section-gap); }
.legal-body .container { max-width: 740px; }
.legal-body h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 2.5rem 0 0.8rem; line-height: 1.3; }
.legal-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.legal-body p  { margin-bottom: 1rem; color: var(--color-text-secondary); line-height: 1.8; font-size: 0.93rem; }
.legal-body strong { color: var(--color-text); font-weight: 600; }
.legal-body a  { color: var(--brand-teal); text-decoration: none; border-bottom: 1px solid var(--color-border); }
.legal-body a:hover { border-color: var(--brand-teal); }
.legal-body .legal-caps { font-size: 0.85rem; line-height: 1.7; color: var(--color-text-secondary); }


/* ═══════ POPUP / MODAL ═══════ */
.popup {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}
.popup--visible { opacity: 1; visibility: visible; }
.popup__overlay {
    position: absolute; inset: 0;
    background: rgba(29, 29, 31, 0.45);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.popup__box {
    position: relative; z-index: 1;
    background: var(--color-surface); border-radius: 12px;
    padding: 2.5rem 2rem 2rem; max-width: 420px; width: 90%;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(12px); transition: transform 0.3s var(--ease-out);
}
.popup--visible .popup__box { transform: translateY(0); }
.popup__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
}
.popup__icon--ok  { background: var(--green-soft); color: var(--brand-green); }
.popup__icon--err { background: var(--coral-soft); color: var(--brand-coral); }
.popup__text { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.65; margin-bottom: 1.5rem; }
.popup__close { min-width: 140px; }

@media (prefers-color-scheme: dark) {
    .popup__overlay { background: rgba(0, 0, 0, 0.6); }
}


/* ═══════ GALLERY ═══════ */
.gallery { background: var(--color-bg); }
.gallery__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.gallery__item {
    border-radius: 8px; overflow: hidden; aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-muted); font-size: 0.8rem;
}
.gallery__item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.03); }

@media (max-width: 700px) {
    .gallery__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
    .gallery__grid { grid-template-columns: 1fr; }
}