/* Weser Theme – Block: Inspiration-Kategorie-Kacheln */
/* Abstand oberhalb/unterhalb der Sektion: assets/css/section-spacing.css */
.block-inspiration-categories {
    background: var(--color-white);
}

/* Figma: T/M 25px/35px · Desktop 40px/auto (vorher clamp = krummer Zwischenwert) */
.insp-cat-headline {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-dark);
    font-size: 25px;
    line-height: 35px;
    margin-bottom: 28px;
}

@media (min-width: 1200px) {
    .insp-cat-headline {
        font-size: 40px;
        line-height: normal;
    }
}

.insp-cat-tile {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4 / 3;
    background: var(--color-light);
}

.insp-cat-tile-img,
.insp-cat-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Abdunkelung unten für Lesbarkeit des Labels */
.insp-cat-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 11, 28, 0.65) 0%, rgba(4, 11, 28, 0.15) 35%, rgba(4, 11, 28, 0) 60%);
    transition: background var(--transition);
}

.insp-cat-tile:hover::after {
    background: linear-gradient(to top, rgba(4, 11, 28, 0.75) 0%, rgba(4, 11, 28, 0.25) 45%, rgba(4, 11, 28, 0.05) 75%);
}

/* Ist eine <h3> (SEO/Gliederung), sieht aber nicht danach aus. Die drei Resets
   sind deshalb nötig, damit die Kachel exakt wie vorher steht:
   - margin: 0 – Bootstraps .5rem Heading-Margin würde die absolut positionierte
     Beschriftung um 8px nach oben schieben (die `bottom`-Kante misst am Margin-Rand).
   - line-height: 1.65 – bisher vom Body geerbt; als h3 käme sonst 26px aus
     typography.css. Tablet/Desktop überschreiben weiter unten mit festen Werten.
   - font-weight/-size wie gehabt; sie schlagen die h3-Stufe. */
.insp-cat-tile-name {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 2;
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: 1.25rem;
    line-height: 1.65;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.insp-cat-tile img {
    transition: transform var(--transition);
}
.insp-cat-tile:hover img {
    transform: scale(1.04);
}

/* Mobil: Literata Bold 18/20 – Figma-Wert vom User, 2026-09-16 (vorher
   17/28). `right` ist neu: Ohne rechte Grenze lief ein langer Name aus der
   Kachel und wurde abgeschnitten („Lieblingsplat…", Kundenfeedback 01,
   Mobil 30). Jetzt bricht er um. Innenabstand 14/12 ohne Figma-Vorgabe. */
@media (max-width: 575px) {
    .insp-cat-tile-name {
        font-size: 18px;
        line-height: 20px;
        left: 14px;
        right: 14px;
        bottom: 12px;
    }
}

/* Figma: Tablet 18px/20px · Desktop 24px/30px */
@media (min-width: 768px) {
    .insp-cat-tile-name {
        font-size: 18px;
        line-height: 20px;
    }
}

@media (min-width: 1200px) {
    .insp-cat-tile-name {
        font-size: 24px;
        line-height: 30px;
    }
}

/* Intro (Headline + Text) über den Kacheln.
   Figma: T/M 25px/36px · Desktop 40px/auto (vorher clamp = krummer Zwischenwert) */
.insp-cat-intro-headline {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold, 600);
    color: var(--color-dark);
    font-size: 25px;
    line-height: 36px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 16px;
}

@media (min-width: 1200px) {
    .insp-cat-intro-headline {
        font-size: 40px;
        line-height: normal;
    }
}
/* line-height: normal – Kundenfeedback 01, vom User am 2026-09-09 auf Figmas
   „Auto" gestellt. Vorher erbte der Absatz die 1.65 aus base.css. */
.insp-cat-intro {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--color-text);
    line-height: normal;
}
.insp-cat-intro > :first-child { margin-top: 0; }
.insp-cat-intro > :last-child { margin-bottom: 0; }

/* Figma: Auf Seiten mit den Kategorie-Kacheln (= Inspirations-Übersicht) hat der
   CTA darunter dieselbe Headline-Größe wie Kategorie- und Detailseite (34px).
   Über die Geschwister-Beziehung statt Page-ID, damit es beim Umbenennen der
   Seite nicht bricht. Der text-cta-Block auf normalen Seiten bleibt bei 32px. */
@media (min-width: 1200px) {
    .block-inspiration-categories ~ .block-text-cta .text-cta-headline {
        font-size: 34px;
        line-height: normal;
    }
}
