/* ArtStudio – zentrale Website-Gestaltung
   Die Werte kommen aus den gespeicherten Einstellungen in site_settings. */

html {
    font-size: var(--site-font-size, 18px);
}

body {
    font-family: var(--site-font-family, 'DM Sans', Arial, sans-serif);
    font-size: 1rem;
    line-height: var(--site-line-height, 1.75);
}

/* Navigation und obere Seitenbereiche */
.primary-nav a {
    font-family: inherit;
    font-size: .76rem;
}

.brand-kicker {
    font-family: inherit;
    font-size: .62rem;
}

.eyebrow {
    font-family: inherit;
    font-size: .66rem;
}

.text-link {
    font-family: inherit;
    font-size: .75rem;
}

.hero-intro,
.hero-intro.artist-rich-text {
    font-family: inherit;
    font-size: .9rem;
    line-height: var(--site-line-height, 1.75);
}

.hero-image-caption span {
    font-size: .62rem;
}

.hero-image-caption strong {
    font-size: 1rem;
}

.hero-index,
.hero-vertical-note {
    font-size: .65rem;
}

/* Überschriften skalieren mit der gewählten Grundschriftgröße */
.hero h1 {
    font-family: var(--site-font-family);
    font-size: clamp(2.7rem, 6.4vw, 4.9rem);
}

.section-heading h2,
.artist-copy h2,
.news-inner h2,
.contact-section h2 {
    font-family: var(--site-font-family);
    font-size: clamp(2.22rem, 5vw, 3.56rem);
}

.shop-heading h2 {
    font-family: var(--site-font-family);
    font-size: clamp(2.1rem, 4.8vw, 3.45rem);
}

.section-note {
    font-size: .82rem;
}

/* Galerie-Kategorien und Unterkategorien */
.category-pill {
    font-family: inherit;
    font-size: .75rem;
}

.category-subrow .category-pill {
    font-size: .70rem;
}

.category-intro {
    font-family: inherit;
    font-size: .9rem;
    line-height: var(--site-line-height, 1.75);
}

/* Bildtitel und Bildbeschreibungen */
.art-card-meta strong {
    font-family: var(--site-font-family);
    font-size: .9rem;
}

.art-card-meta small {
    font-size: .65rem;
}

.art-card-meta i {
    font-size: 1.1rem;
}

.gallery-all-works .art-card-meta strong {
    font-size: .70rem;
}

.gallery-all-works .art-card-meta small {
    font-size: .58rem;
}

.gallery-category .art-card-meta strong {
    font-size: .82rem;
}

.gallery-category .art-card-meta small {
    font-size: .62rem;
}

/* Einführung, Über mich, Atelier und Info/Shop */
.empty-gallery h3 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.empty-gallery p:not(.eyebrow) {
    font-size: .85rem;
}

.artist-rich-text,
.artist-copy .artist-rich-text,
.artist-copy > p:not(.eyebrow):not(.artist-signature),
.news-inner > p,
.news-inner > .news-rich-text,
.shop-rich-text,
.contact-section > p:not(.eyebrow),
.contact-section > .contact-rich-text {
    font-family: inherit;
    font-size: .9rem;
    line-height: var(--site-line-height, 1.75);
}

/* Schaltflächen und Fußbereich */
.contact-button {
    font-family: inherit;
    font-size: .76rem;
}

.contact-hint,
.site-footer {
    font-size: .68rem;
}

/* Großansicht der Kunstwerke */
.dialog-info h2 {
    font-family: var(--site-font-family);
    font-size: 1.65rem;
}

.dialog-info p:not(.eyebrow),
.dialog-rich-description {
    font-size: .85rem;
    line-height: var(--site-line-height, 1.75);
}

.dialog-counter {
    font-size: .68rem;
}

/* Smartphone-Anpassung */
@media (max-width: 700px) {
    .primary-nav a {
        font-size: .82rem;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .section-heading h2,
    .artist-copy h2,
    .news-inner h2,
    .contact-section h2 {
        font-size: clamp(2.17rem, 11vw, 3rem);
    }

    .category-pill {
        font-size: .72rem;
    }

    .category-subrow .category-pill {
        font-size: .68rem;
    }

    .gallery-all-works .art-card-meta strong {
        font-size: .68rem;
    }

    .gallery-category .art-card-meta strong {
        font-size: .75rem;
    }
}


/* Vorrang für die individuellen Überschriften-Einstellungen */
.hero h1,
.section-heading h2,
.artist-copy h2 {
    font-family: var(--heading-font, var(--serif)) !important;
    font-weight: var(--heading-weight, 500) !important;
    font-style: var(--heading-style, normal) !important;
    color: var(--heading-color, #F7F2F8) !important;
    line-height: var(--heading-line-height, 1.1) !important;
    letter-spacing: var(--heading-letter-spacing, -.045em) !important;
}

.hero h1 {
    font-size: var(--heading-size, 88px) !important;
}

.section-heading h2,
.artist-copy h2 {
    font-size: var(--heading-size, 64px) !important;
}

.hero h1 i,
.section-heading h2 i,
.artist-copy h2 i {
    color: var(--heading-accent-color, var(--lavender-bright)) !important;
    font-style: inherit !important;
}

@media (max-width: 700px) {
    .hero h1 {
        font-size: var(--heading-mobile-size, 70px) !important;
    }

    .section-heading h2,
    .artist-copy h2 {
        font-size: var(--heading-mobile-size, 54px) !important;
    }
}


/* Individuelle Überschriften: Aktuelles, Shop und Kontakt */
.news-inner h2,
.shop-heading h2,
.contact-section h2 {
    font-family: var(--heading-font, var(--serif)) !important;
    font-size: var(--heading-size, 64px) !important;
    font-weight: var(--heading-weight, 500) !important;
    font-style: var(--heading-style, normal) !important;
    color: var(--heading-color, #F7F2F8) !important;
    line-height: var(--heading-line-height, 1.1) !important;
    letter-spacing: var(--heading-letter-spacing, -.045em) !important;
}

.news-inner h2 *,
.shop-heading h2 *,
.contact-section h2 * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}

.news-inner h2 i,
.news-inner h2 em,
.shop-heading h2 i,
.shop-heading h2 em,
.contact-section h2 i,
.contact-section h2 em {
    color: var(--heading-accent-color, var(--lavender-bright)) !important;
}

@media (max-width: 700px) {
    .news-inner h2,
    .shop-heading h2,
    .contact-section h2 {
        font-size: var(--heading-mobile-size, 54px) !important;
    }
}
