/* ==========================================================================
   SCHNELLE Shop – Startseite, CMS-Seiten und News
   Ergänzt app.css (Tokens, Hero, Karten, Buttons). Die Datei wird im Block
   `stylesheets` vor app.css geladen; Überschreibungen tragen deshalb einen
   Seitenkontext (.home-page, .content-page--cms, …) für höhere Spezifität.
   Reihenfolge: Startseite · Abschnittsköpfe · Aktionen · Kategorien · Wege ·
   News · Kontaktleiste · CMS-Seiten · News-Übersicht · Beitrag · Responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Startseite: Hero (Navy-Fläche, Schild-Panel statt Foto)
   -------------------------------------------------------------------------- */
.home-page .shop-hero { padding: clamp(3rem, 7vw, 5.5rem) 0; background: linear-gradient(135deg, var(--shop-navy) 0%, var(--shop-navy-hover) 100%); }
.home-hero .home-hero__claim { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; color: var(--shop-text-on-dark); font-size: var(--shop-text-sm); letter-spacing: .18em; }
.home-hero .home-hero__claim::before { content: ""; flex: 0 0 auto; width: 2.5rem; height: .25rem; background: var(--shop-accent); }
.home-hero .shop-intro { margin-bottom: 1.75rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.home-hero .shop-hero-panel { display: grid; min-height: 0; align-content: center; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--shop-navy-hover); }
.home-hero-panel__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 2rem 2rem; }
.home-sign { position: relative; display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .75rem 1rem; align-items: center; padding: 1.25rem 1.5rem 1.25rem 1.25rem; background: #fff; border-radius: var(--shop-radius); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.home-sign__block { grid-row: 1 / span 2; align-self: stretch; background: var(--shop-accent); border-radius: 2px; }
.home-sign img { display: block; width: 100%; height: auto; }
.home-sign__claim { color: var(--shop-ink); font-size: var(--shop-text-sm); font-style: italic; font-weight: 700; letter-spacing: .02em; }
.home-hero-panel__caption { position: relative; max-width: 22rem; margin: 0; color: var(--shop-text-on-dark-muted); font-size: var(--shop-text-sm); line-height: 1.5; }

/* --------------------------------------------------------------------------
   2. Abschnittsköpfe
   -------------------------------------------------------------------------- */
.home-section-heading { margin-bottom: 2rem; }
.home-section-heading .shop-eyebrow { margin-bottom: .5rem; }
.home-section-heading h2 { max-width: 26ch; margin: 0; overflow-wrap: anywhere; }
.home-section-heading--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.home-section-heading--split > div { min-width: 0; }
.home-page .shop-arrow-link span { font-style: normal; }

/* --------------------------------------------------------------------------
   3. Aktionen (ContentPromotion, ohne Medien: Navy- und Rot-Kacheln)
   -------------------------------------------------------------------------- */
.home-promotions { padding: clamp(2rem, 5vw, 3.5rem) 0; background: var(--shop-surface); border-bottom: 1px solid var(--shop-line); }
.home-promotion-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.home-promotion-list > li { min-width: 0; }
.home-promotion { position: relative; display: grid; min-height: 9.5rem; height: 100%; align-content: end; gap: .35rem; padding: 1.25rem 1.5rem; overflow: hidden; border-radius: var(--shop-radius); color: var(--shop-text-on-dark); text-decoration: none; transition: transform var(--shop-transition), box-shadow var(--shop-transition); }
.home-promotion::after { content: ""; position: absolute; top: -3rem; right: -3rem; width: 9rem; height: 9rem; border: 1.2rem solid rgba(255, 255, 255, .12); border-radius: 50%; }
.home-promotion--navy { background: var(--shop-navy); }
.home-promotion--accent { background: var(--shop-accent); }
a.home-promotion:hover, a.home-promotion:focus-visible { color: var(--shop-text-on-dark); box-shadow: var(--shop-shadow-lg); transform: translateY(-2px); }
a.home-promotion:focus-visible { outline-color: var(--shop-text-on-dark); }
.home-promotion__eyebrow { color: var(--shop-text-on-dark); /* 78 % Weiß auf Rot erreichte nur 4,1:1 */ font-size: var(--shop-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-promotion__title { font-size: var(--shop-text-xl); font-style: italic; font-weight: 800; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.home-promotion__link { margin-top: .5rem; font-size: var(--shop-text-sm); font-weight: 700; }
.home-promotion__link i { font-style: normal; }

/* --------------------------------------------------------------------------
   4. Kategorie-Raster (aktive Wurzelkategorien)
   -------------------------------------------------------------------------- */
.home-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.home-category-grid > li { min-width: 0; }
.home-categories .home-category-card { height: 100%; min-height: 9rem; padding: 1rem; }
.home-categories .home-category-card .shop-category-card__title { font-size: .95rem; overflow-wrap: anywhere; hyphens: auto; }
.home-categories .home-category-card .shop-category-card__count { color: var(--shop-navy); font-weight: 700; }
.home-categories .home-category-card .shop-category-card__count i { font-style: normal; }

/* --------------------------------------------------------------------------
   5. Drei Wege (bestehende Karten, mit Zielverweis)
   -------------------------------------------------------------------------- */
.home-paths .shop-path-card { display: flex; flex-direction: column; }
.home-paths .shop-path-card .shop-arrow-link { position: relative; z-index: 1; display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 1.5rem; }
.home-paths .shop-path-card-accent .shop-arrow-link { color: var(--shop-text-on-dark); }
.home-paths .shop-path-card-accent .shop-arrow-link:hover { color: var(--shop-text-on-dark); }

/* --------------------------------------------------------------------------
   6. News-Karten (letzte drei Beiträge)
   -------------------------------------------------------------------------- */
.home-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.home-news .home-news-card { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; transition: border-color var(--shop-transition), box-shadow var(--shop-transition); }
.home-news .home-news-card:hover { border-color: var(--shop-line-strong); box-shadow: var(--shop-shadow); }
.home-news .home-news-card:focus-within { box-shadow: var(--shop-focus-ring); }
.home-news .home-news-card h3 { margin: 0; font-size: var(--shop-text-lg); }
.home-news .home-news-card h3 a { color: inherit; text-decoration: none; }
.home-news .home-news-card h3 a:hover { color: var(--shop-navy); }
.home-news .home-news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.home-news .home-news-card p { flex: 1 1 auto; margin: 0; }
.home-news-card__link { margin-top: .25rem; color: var(--shop-navy); font-size: var(--shop-text-sm); font-weight: 700; }
.home-news-card__link i { font-style: normal; }

/* --------------------------------------------------------------------------
   7. Kontaktleiste (Schiefer, Platzhalter bis zur Freigabe der Daten)
   -------------------------------------------------------------------------- */
.home-page .shop-contact-bar { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--shop-ink); }
.home-contact__inner { display: grid; gap: 2rem; }
.home-contact .shop-eyebrow { color: var(--shop-text-on-dark-muted); }
.home-contact h2 { max-width: 18ch; margin-bottom: 1rem; color: var(--shop-text-on-dark); }
.home-contact__text p { max-width: 36rem; margin: 0; color: var(--shop-text-on-dark-muted); }
.home-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.home-contact__actions .shop-button-on-dark { color: var(--shop-navy); }
.home-contact__actions .shop-button-on-dark:hover, .home-contact__actions .shop-button-on-dark:focus { color: var(--shop-navy-hover); }
.home-contact .shop-arrow-link { color: var(--shop-text-on-dark); }
.home-contact .shop-arrow-link:hover { color: var(--shop-text-on-dark); }
.home-contact__facts { display: grid; gap: .75rem; margin: 0; }
.home-contact__facts > div { padding: 1rem 1.25rem; border-left: .25rem solid var(--shop-accent); border-radius: 0 var(--shop-radius) var(--shop-radius) 0; background: rgba(255, 255, 255, .06); }
.home-contact__facts dt { margin-bottom: .2rem; color: var(--shop-text-on-dark-muted); font-size: var(--shop-text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-contact__facts dd { margin: 0; color: var(--shop-text-on-dark); font-size: var(--shop-text-lg); font-weight: 700; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   8. CMS-Seiten und Beiträge: breite Spalte, ruhiges Lesemaß für Fließtext
   -------------------------------------------------------------------------- */
.content-page--cms, .content-page--post, .content-page--news { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.content-page--cms .content-page-inner, .content-page--post .content-page-inner { max-width: 64rem; }
.content-page-header { margin-bottom: 1.5rem; }
.content-page-header .shop-eyebrow { margin-bottom: .75rem; }
.content-page--cms .content-page-inner > h1, .content-page--post .content-page-header h1 { max-width: 46rem; margin: 0 0 1.25rem; }
.content-page--cms .content-page-inner > h2 { max-width: 46rem; margin: 2.75rem 0 1rem; }
.content-page--cms .content-page-inner > h3 { max-width: 46rem; margin: 2rem 0 .75rem; }
.content-page--post .content-page-inner > h2 { max-width: 46rem; margin: 2.5rem 0 1rem; font-size: var(--shop-text-2xl); }
.content-page--cms .content-page-text, .content-page--post .content-page-text { max-width: 46rem; margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.75; }
.content-page--cms .content-page-text + .content-page-text, .content-page--post .content-page-text + .content-page-text { margin-top: -.25rem; }
.content-page-lead, .content-page--post .content-page-header .content-page-lead { margin-bottom: .5rem; font-size: var(--shop-text-lg); line-height: 1.65; color: var(--shop-text); }
.content-page--cms .content-page-notice, .content-page--post .content-page-notice { max-width: 46rem; margin: 2rem 0; padding: 1.25rem 1.5rem; border-radius: 0 var(--shop-radius) var(--shop-radius) 0; }
.content-page--cms .content-page-notice strong, .content-page--post .content-page-notice strong { font-size: var(--shop-text-base); }
.content-page-action { margin: 1.5rem 0 2rem; }
.content-page--cms .content-page-image, .content-page--post .content-page-image { max-width: 46rem; margin: 2rem 0; }
.content-page--cms .content-product-grid, .content-page--cms .content-category-grid, .content-page--post .content-product-grid, .content-page--post .content-category-grid { margin: 3rem 0; padding-top: 2.5rem; border-top: 1px solid var(--shop-line); }
.content-page--cms .content-product-grid__heading, .content-page--post .content-product-grid__heading { align-items: flex-end; gap: .5rem 1.5rem; }
.content-page--cms .content-product-grid__heading h2, .content-page--cms .content-category-grid > h2, .content-page--post .content-product-grid__heading h2, .content-page--post .content-category-grid > h2 { max-width: none; margin: 0 0 1rem; font-size: var(--shop-text-2xl); }
.content-page--cms .content-product-grid__heading .shop-arrow-link, .content-page--post .content-product-grid__heading .shop-arrow-link { margin-bottom: 1.1rem; color: var(--shop-navy); }
.content-page--cms .content-product-grid__heading .shop-arrow-link:hover, .content-page--post .content-product-grid__heading .shop-arrow-link:hover { color: var(--shop-accent); }
.content-page-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--shop-line); }
.content-page-back span { font-style: normal; }

/* --------------------------------------------------------------------------
   9. News-Übersicht: Kartenraster und Leerzustand
   -------------------------------------------------------------------------- */
.content-page-header--index { max-width: 46rem; margin-bottom: 2.5rem; }
.content-page-header--index h1 { margin-bottom: 1rem; }
.content-page--news .content-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.content-page--news .content-post-card { position: relative; display: flex; flex-direction: column; gap: .6rem; margin: 0; padding: 1.5rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-canvas); transition: border-color var(--shop-transition), box-shadow var(--shop-transition); }
.content-page--news .content-post-card:hover { border-color: var(--shop-line-strong); box-shadow: var(--shop-shadow); }
.content-page--news .content-post-card:focus-within { box-shadow: var(--shop-focus-ring); }
.content-page--news .content-post-card time { color: var(--shop-text-muted); font-size: var(--shop-text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.content-page--news .content-post-card h2 { max-width: none; margin: 0; font-size: var(--shop-text-xl); }
.content-page--news .content-post-card h2 a { color: inherit; text-decoration: none; }
.content-page--news .content-post-card h2 a:hover { color: var(--shop-navy); }
.content-page--news .content-post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.content-page--news .content-post-card p { flex: 1 1 auto; margin: 0; font-size: var(--shop-text-sm); line-height: 1.6; }
.content-page--news .content-post-card__link { position: relative; z-index: 1; margin-top: .25rem; padding-top: 0; }
.content-page--news .content-post-empty { max-width: 42rem; border: 1px dashed var(--shop-line-strong); border-radius: var(--shop-radius); }
.content-page--news .content-post-empty .content-page-empty { margin: 0 0 .5rem; font-size: var(--shop-text-lg); }

/* --------------------------------------------------------------------------
   10. Beitrag: Kopf mit Rubrik und Datum
   -------------------------------------------------------------------------- */
.content-page-header--post { margin-bottom: 2rem; }
.content-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.content-post-meta time { color: var(--shop-text-muted); letter-spacing: .08em; }
.content-post-meta__separator { color: var(--shop-line-strong); }

/* --------------------------------------------------------------------------
   11. Responsive Anpassungen (390 → 820 → 1440)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
    .home-categories .home-category-card { padding: 1.25rem; }
    .home-categories .home-category-card .shop-category-card__title { font-size: var(--shop-text-lg); }
    .home-category-grid { gap: 1rem; }
}

@media (min-width: 768px) {
    .home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-contact__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .home-hero .shop-hero-panel { min-height: 22rem; }
    .home-contact__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
    .home-contact__facts { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
    .home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .home-hero .shop-hero-panel { max-width: 32rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-sign { transform: none; }
    .home-promotion, a.home-promotion:hover, a.home-promotion:focus-visible, .home-news .home-news-card, .content-page--news .content-post-card { transform: none; transition: none; }
}

/* ==========================================================================
   12. Kategorie- und Aktionsinhalte (E-36)
   Aktion im Hero (statt Schild-Panel), Aktionskacheln mit Bild,
   Kategoriekarten mit Bild und Kurztext (Startseite und CMS-Raster).
   ========================================================================== */
.home-hero .home-hero-promotion { align-content: end; gap: 0; padding: 0; color: var(--shop-text-on-dark); }
.home-hero-promotion__picture { display: block; }
.home-hero-promotion__picture img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.home-hero-promotion__body { position: relative; display: grid; gap: .6rem; justify-items: start; padding: clamp(1.25rem, 3vw, 2rem); }
.home-hero-promotion__eyebrow { margin: 0; color: var(--shop-text-on-dark); font-size: var(--shop-text-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.home-hero-promotion__eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: .2rem; margin-right: .6rem; vertical-align: middle; background: var(--shop-accent); }
.home-hero-promotion__title { margin: 0; color: var(--shop-text-on-dark); font-size: var(--shop-text-2xl); font-style: italic; font-weight: 800; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.home-hero-promotion__text { margin: 0; color: var(--shop-text-on-dark-muted); line-height: 1.55; }
.home-hero-promotion__cta { margin-top: .4rem; }

.home-promotion--image { min-height: 13rem; background: var(--shop-navy); }
.home-promotion--image::after { display: none; }
.home-promotion__picture { position: absolute; inset: 0; }
.home-promotion__picture img { width: 100%; height: 100%; object-fit: cover; }
/* Verlauf für Lesbarkeit von weißer Schrift auf beliebigen Motiven (Kontrast ≥ 4,5:1 im Textbereich). */
.home-promotion--image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 48, 79, .1) 0%, rgba(18, 48, 79, .92) 70%); }
.home-promotion--image > span, .home-promotion--image > strong { position: relative; z-index: 2; }
.home-promotion__text { position: relative; font-size: var(--shop-text-sm); line-height: 1.45; }

.home-categories .shop-category-card--image .shop-category-card__count { color: var(--shop-text-on-dark); }
.shop-category-card__teaser { position: relative; color: var(--shop-text-muted); font-size: var(--shop-text-sm); line-height: 1.4; }
.shop-category-card--image .shop-category-card__teaser { color: var(--shop-text-on-dark); }
.shop-category-card--image .shop-category-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }

.content-category-grid .content-category-card__teaser { position: relative; color: var(--shop-text-muted); font-size: var(--shop-text-sm); line-height: 1.4; }
.content-category-grid .content-category-card--image { min-height: 12rem; color: var(--shop-text-on-dark); background: var(--shop-navy); }
.content-category-grid .content-category-card--image::before { display: none; }
.content-category-grid .content-category-card--image .shop-category-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.content-category-grid .content-category-card--image > :not(img) { position: relative; z-index: 1; }
/* Verlauf über dem Kategoriebild: Kicker, Name und Link bleiben auf jedem Motiv lesbar (Design-Review a62) */
.content-category-grid .content-category-card--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 57, 97, .2) 0%, rgba(24, 57, 97, .88) 62%, rgba(24, 57, 97, .96) 100%); }
.content-category-grid .content-category-card--image > span,
.content-category-grid .content-category-card--image b,
.content-category-grid .content-category-card--image .content-category-card__teaser { color: var(--shop-text-on-dark); }
.content-category-grid .content-category-card--image:hover { color: var(--shop-text-on-dark); background: var(--shop-navy-hover); }

@media (min-width: 992px) {
    .home-hero .home-hero-promotion { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .content-category-grid .content-category-card--image:hover { transform: none; }
}
/* Ende Abschnitt 12 (E-36) */

/* ==========================================================================
   13. Formatierter Text (E-45, Blocktyp `richtext`)
   Bereinigtes HTML aus dem Blockeditor bzw. der OXID-Übernahme: Absätze,
   Zwischenüberschriften (h2–h4), Listen, Zitate, Tabellen und Links.
   Tabellen scrollen auf schmalen Bildschirmen innerhalb des Blocks.
   ========================================================================== */
.content-richtext { max-width: 46rem; margin: 0 0 1.5rem; overflow-wrap: anywhere; font-size: 1.0625rem; line-height: 1.75; color: var(--shop-text); }
.content-richtext > :first-child { margin-top: 0; }
.content-richtext > :last-child { margin-bottom: 0; }
.content-richtext p { margin: 0 0 1rem; }
.content-richtext h2 { margin: 2rem 0 .75rem; font-size: var(--shop-text-2xl); line-height: 1.25; }
.content-richtext h3 { margin: 1.75rem 0 .6rem; font-size: var(--shop-text-xl); line-height: 1.3; }
.content-richtext h4 { margin: 1.5rem 0 .5rem; font-size: var(--shop-text-lg); line-height: 1.35; }
.content-richtext ul, .content-richtext ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.content-richtext li { margin: .2rem 0; }
.content-richtext li > ul, .content-richtext li > ol { margin: .2rem 0 0; }
.content-richtext ul li::marker { color: var(--shop-accent); }
.content-richtext a { color: var(--shop-navy); font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
.content-richtext a:hover, .content-richtext a:focus-visible { color: var(--shop-accent); }
.content-richtext blockquote { margin: 1.5rem 0; padding: .75rem 1.25rem; border-left: .25rem solid var(--shop-navy); background: var(--shop-surface); font-style: italic; }
.content-richtext hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--shop-line); opacity: 1; }
.content-richtext table { display: block; width: max-content; max-width: 100%; margin: 0 0 1.25rem; overflow-x: auto; border-collapse: collapse; font-size: var(--shop-text-sm); line-height: 1.5; -webkit-overflow-scrolling: touch; }
.content-richtext th, .content-richtext td { min-width: 6rem; padding: .5rem .75rem; border: 1px solid var(--shop-line); text-align: left; vertical-align: top; }
.content-richtext th, .content-richtext thead td { background: var(--shop-surface); font-weight: 700; }
.content-richtext tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--shop-surface) 55%, transparent); }
.content-richtext sub, .content-richtext sup { font-size: .75em; }
.product-content .content-richtext, .category-content .content-richtext { max-width: 70ch; }
/* Die Beschreibung der Artikelseite ist zugleich Blockbereich: Raster und Bilder dürfen die volle Spalte nutzen. */
main .product-description.product-content { max-width: none; }
/* Ende Abschnitt 13 (E-45) */
