/* HOME-02 occupies only the two home page containers. */
.crasy-home-02 {
    --home-ink: #27152a;
    --home-accent: #99043d;
    --home-surface: #fffaf5;
    --home-border: #ecd3c2;
    --home-cream: #fcf0dd;
    --home-mint: #e6f3ed;
    --home-rose: #fce4e9;
    --home-veil: #fff8f1;
    color: var(--home-ink);
    display: grid;
    gap: clamp(8px, 1.25vw, 16px);
    margin-inline: auto;
    max-width: 1280px;
}
.crasy-home-02[data-theme="dark"] {
    --home-ink: #fff1f7;
    --home-accent: #ff8fba;
    --home-surface: #231825;
    --home-border: #745165;
    --home-cream: #392637;
    --home-mint: #203639;
    --home-rose: #402538;
    --home-veil: #27172b;
}
@media (prefers-color-scheme: dark) {
    .crasy-home-02:not([data-theme="light"]) {
        --home-ink: #fff1f7;
        --home-accent: #ff8fba;
        --home-surface: #231825;
        --home-border: #745165;
        --home-cream: #392637;
        --home-mint: #203639;
        --home-rose: #402538;
        --home-veil: #27172b;
    }
}
.crasy-home-02 a:focus-visible, .crasy-home-02 button:focus-visible, .crasy-home-02 summary:focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 3px;
}
.crasy-home-02 .home02-hero {
    position: relative;
    min-height: clamp(240px, 31vw, 390px);
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--home-veil) 0%, var(--home-veil) 22%, transparent 62%),
        var(--home-surface) url('/images/crasy-home-02-hero.png') center 53% / cover no-repeat;
}
.crasy-home-02 .home02-hero-copy { padding: clamp(18px, 4vw, 56px); max-width: 33rem; }
.crasy-home-02 .home02-hero h1 {
    color: var(--home-ink); margin: 0 0 10px; line-height: .96;
    font: italic 800 clamp(1.7rem, 3.2vw, 3.8rem)/.97 Georgia, serif;
}
.crasy-home-02 .home02-hero h1 em {
    display: block; color: var(--home-accent);
    font-size: 1.45em; letter-spacing: -.05em;
}
.crasy-home-02 .home02-hero p { margin: 0 0 10px; line-height: 1.33; }
.crasy-home-02 .home02-greeting { font-weight: 700; }
.crasy-home-02 .home02-button {
    display: inline-flex; align-items: center; gap: .45em; min-height: 36px;
    padding: 5px 16px; border-radius: 99px; text-decoration: none; color: white;
    background: linear-gradient(#cc225e, #980038); font-weight: 700;
}
.crasy-home-02 .home02-image-credit {
    position: absolute; bottom: 8px; right: 8px; padding: 2px 6px; border-radius: 5px;
    color: white; background: #281425; font-size: .7rem;
}
.crasy-home-02 .home02-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, 1vw, 12px); }
.crasy-home-02 .home02-shortcuts a {
    display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 86px; min-width: 0;
    padding: 7px 3px; border: 1px solid var(--home-border); border-radius: 13px;
    color: var(--home-ink); background: var(--home-cream); text-align: center; text-decoration: none;
    line-height: 1.15; overflow-wrap: anywhere;
}
.crasy-home-02 .home02-shortcuts a:nth-child(2) { background: var(--home-mint); }
.crasy-home-02 .home02-shortcuts a:nth-child(4) { background: var(--home-rose); }
.crasy-home-02 .home02-shortcuts img { object-fit: contain; }
.crasy-home-02 .home02-event {
    display: flex; align-items: center; gap: clamp(12px, 4vw, 48px);
    border: 1px solid var(--home-border); border-radius: 14px; padding: 14px;
    background: linear-gradient(105deg, var(--home-rose), var(--home-cream));
}
.crasy-home-02 .home02-event + .home02-event { margin-top: 8px; }
.crasy-home-02 .home02-event-kind { color: white; background: #99043d; border-radius: 32px; padding: 10px; text-align: center; }
.crasy-home-02 .home02-event p { margin: 4px 0 8px; }
.crasy-home-02 .home02-event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crasy-home-02 .home02-share { color: var(--home-accent); border: 1px solid currentColor; border-radius: 99px; background: transparent; padding: 5px 10px; }
.crasy-home-02--content { margin-block: 12px; background: var(--home-surface); border-radius: 12px; scroll-margin-top: 85px; }
.crasy-home-02 .home02-tip, .crasy-home-02 .home02-categories details, .crasy-home-02 .home02-workshop {
    border: 1px solid var(--home-border); border-radius: 12px;
    background: var(--home-cream); min-width: 0;
}
.crasy-home-02 .home02-tip summary, .crasy-home-02 .home02-categories summary {
    display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 46px; padding: 4px 10px;
}
.crasy-home-02 summary::-webkit-details-marker { display: none; }
.crasy-home-02 summary span { color: var(--home-accent); margin-inline-start: auto; font-size: 1.5rem; }
.crasy-home-02 .home02-tip-body, .crasy-home-02 .home02-categories details[open] { padding-bottom: 10px; }
.crasy-home-02 .home02-tip-body { padding-inline: 10px; }
.crasy-home-02 .home02-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-inline: 10px; }
.crasy-home-02 .home02-section-heading p, .crasy-home-02 .home02-workshop p { margin: 0; color: var(--home-ink); }
.crasy-home-02 .home02-section-heading h2, .crasy-home-02 .home02-tip h2,
.crasy-home-02 .home02-event h2, .crasy-home-02 .home02-workshop h2 {
    margin: 0; color: var(--home-accent); font: italic 700 clamp(1.02rem, 2.2vw, 1.65rem)/1.2 Georgia, serif;
}
.crasy-home-02 .home02-section-heading a, .crasy-home-02 .home02-tip-body > a,
.crasy-home-02 .home02-categories details > a { color: var(--home-accent); font-size: .88rem; font-weight: 700; }
.crasy-home-02 #anleitungen-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(105px, 19%);
    grid-template-columns: none; grid-template-rows: 1fr; gap: 8px;
    overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 0 10px 8px;
}
.crasy-home-02 #anleitungen-grid > * { scroll-snap-align: start; min-width: 0; }
.crasy-home-02 #anleitungen-grid .crasy-photo-card img.product-cover { aspect-ratio: 1.3; object-fit: cover; }
.crasy-home-02 .home02-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.crasy-home-02 .home02-categories details:nth-child(2) { background: var(--home-mint); }
.crasy-home-02 .home02-categories details:nth-child(3) { background: var(--home-rose); }
.crasy-home-02 .home02-categories details[open] { grid-column: 1 / -1; }
.crasy-home-02 .home02-categories details > a { margin-inline: 10px; }
.crasy-home-02 .home02-categories h2 { margin: 0; color: var(--home-ink); font-size: clamp(.85rem, 1.6vw, 1.1rem); line-height: 1.15; }
.crasy-home-02 .home02-workshop { padding: 14px clamp(14px, 4vw, 40px); background: linear-gradient(114deg, var(--home-mint), var(--home-cream), var(--home-rose)); }
.crasy-home-02 .home02-workshop ul { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-left: 18px; margin: 6px 0 0; }
@media (max-width: 600px) {
    .crasy-home-02 .home02-hero { min-height: 235px; align-items: start; background-position: center, 59% 55%; }
    .crasy-home-02 .home02-hero-copy { padding: 14px 10px 38px; max-width: 71%; }
    .crasy-home-02 .home02-hero h1 { font-size: clamp(1.1rem, 5vw, 1.9rem); }
    .crasy-home-02 .home02-hero p { font-size: .79rem; }
    .crasy-home-02 .home02-button { min-height: 34px; padding-inline: 8px; font-size: .76rem; }
    .crasy-home-02 .home02-shortcuts a { min-height: 68px; font-size: clamp(.64rem, 2.4vw, .85rem); }
    .crasy-home-02 .home02-shortcuts img { width: 32px; height: 32px; }
    .crasy-home-02 .home02-section-heading a { font-size: .72rem; white-space: normal; text-align: right; }
    .crasy-home-02 .home02-section-heading p { font-size: .75rem; }
    .crasy-home-02 .home02-categories { grid-template-columns: 1fr; }
}


/* HOME-02a: Stabile horizontale Highlight-Leiste */
.crasy-home-02,
.crasy-home-02--content {
    min-width: 0;
    max-width: 100%;
}

.crasy-home-02--content #anleitungen-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box;
}

.crasy-home-02--content #anleitungen-grid > .download-item {
    flex: 0 0 clamp(145px, 16vw, 220px) !important;
    width: clamp(145px, 16vw, 220px) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.crasy-home-02--content #anleitungen-grid img.product-cover {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.3 !important;
    object-fit: cover !important;
}

@media (max-width: 600px) {
    .crasy-home-02--content #anleitungen-grid > .download-item {
        flex-basis: 145px !important;
        width: 145px !important;
    }
}


/* HOME-02b: Einheitliche maximale Inhaltsbreite */
.crasy-home-02,
.crasy-home-02--content {
    width: 100%;
    max-width: 1280px;
    min-width: 0;
    box-sizing: border-box;
    margin-inline: auto;
}


/* HOME-02c: Dynamischer Tipp des Tages */
.crasy-home-02 .home02-tip summary {
    min-height: 72px;
    padding: 10px 16px;
    gap: 12px;
}

.crasy-home-02 .home02-tip summary > img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.crasy-home-02 .home02-tip-heading {
    flex: 1;
    min-width: 0;
}

.crasy-home-02 .home02-tip-label {
    color: var(--home-ink);
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.crasy-home-02 .home02-tip-heading h2 {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    overflow-wrap: anywhere;
}

.crasy-home-02 .home02-tip-arrow {
    flex-shrink: 0;
    transition: transform .2s ease;
}

.crasy-home-02 .home02-tip[open] .home02-tip-arrow {
    transform: rotate(90deg);
}

@media (max-width: 600px) {
    .crasy-home-02 .home02-tip summary {
        padding: 8px 10px;
        min-height: 64px;
        gap: 8px;
    }

    .crasy-home-02 .home02-tip summary > img {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crasy-home-02 .home02-tip-arrow {
        transition: none;
    }
}


/* HOME-02c.1: Tagestipp als direkte Link-Kachel */
.crasy-home-02 .home02-tip-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--home-ink);
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.crasy-home-02 .home02-tip-link > img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.crasy-home-02 .home02-tip-link .home02-tip-arrow {
    margin-inline-start: auto;
    font-size: 1.5rem;
    color: var(--home-accent);
}

.crasy-home-02 .home02-tip-link:hover {
    border-color: var(--home-accent);
    box-shadow: 0 3px 12px rgba(110,85,132,.12);
}

.crasy-home-02 .home02-tip-link:focus-visible {
    outline: 2px solid var(--home-accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .crasy-home-02 .home02-tip-link {
        min-height: 64px;
        padding: 8px 10px;
        gap: 8px;
    }

    .crasy-home-02 .home02-tip-link > img {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crasy-home-02 .home02-tip-link {
        transition: none;
    }
}
