
#c4374 .ce-gallery img {width: 45%;}
.blogcontainer-main iframe {width:100% !important;}

.blogcontainer-main .frame {
    margin-bottom: 3em;

}

.blogcontainer-main p {
    max-width:100%;
}
span.bloglist__title,
.blogcontainer-main.postview  p {
    max-width:100%;
    /*text-align: justify;*/
}

p.postlist__postdescription {
    text-align: left;
}


.postauthors,
.blogarchivefooter__backlink {
    font-size: 1em;
    line-height: 1.6em;
}

.postauthor__actions,
.blogarchivefooter__backlink {
    font-size: 1.3em;
    line-height: 1.6em;
}

.postauthor__name h3 {
    margin: 0;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Landingpage Blog – Ergänzung zu main-total.css
   Strukturkompatibel mit TYPO3 Blog-Extension (t3ext/blog)
   Klassen: postlist, postmetagroup, blogimage, blogwidget, blogbadge
   ========================================================================== */

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    /* -- Fonts -- */
    --font-display: 'Cabin Sketch', Arial, sans-serif;
    --font-body:    'Open Sans', Georgia, sans-serif;

    /* -- Farben: allgemein -- */
    --color-text:        #222;
    --color-text-body:   #555;
    --color-text-muted:  #999;
    --color-accent:      #E53C21;
    --color-bg-page:     #f4f3ef;
    --color-date-bar:    #747474;

    /* -- Kategorie-Farben (Schulhäuser & Bereiche) -- */
    --cat-feldhof:       #5B9BD5;
    --cat-zentral:       #B07AB8;
    --cat-gutenswil:     #F28E4B;
    --cat-lindenbuel:    #E07B8B;
    --cat-hellwies:      #92BF66;
    --cat-musikschule:   #EFD843;
    --cat-kindergarten:  #F2C14E;
    --cat-hoeh:          #da5460;


    --logo-red:          #C72C39;
    --logo-rose:         #DC9AC1;
    --logo-green:        #8FC18A;
    --logo-blue:         #AABEE2;
    --logo-yellow:       #EFD843;
    --logo-gray:         #8F9090;


    /* -- Post Card -- */
    --card-bg:           #ffffff;
    --card-radius:       0em;
    --card-shadow:       0 6px 22px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.17);
    --card-strip-height: 4px;
    --card-strip-height-hover: 5px;

    /* -- Animation -- */
    --transition-smooth: 0.3s cubic-bezier(.25, .8, .25, 1);
    --anim-fadein-duration: 0.6s;
    --anim-stagger-step: 0.05s;

    /* -- Layout -- */
    --page-max-width: 1180px;
    --grid-gap-sm:    1.25em;
    --grid-gap-md:    4.5em;
    --grid-gap-lg:    1.75em;
}

/* ==========================================================================
   Kategorie-Farbe per data-Attribut (data-blog-category)
   Wird von Strip, Hover-Shadow, Badge und Image-Gradient genutzt
   ========================================================================== */
.postlist__post[data-blog-category="Feldhof"]    { --cat-color: var(--cat-feldhof);    }
.postlist__post[data-blog-category="Zentral"]    { --cat-color: var(--cat-zentral);    }
.postlist__post[data-blog-category="Gutenswil"]  { --cat-color: var(--cat-gutenswil);  }
.postlist__post[data-blog-category="Hellwies"]   { --cat-color: var(--cat-hellwies);   }
.postlist__post[data-blog-category="In der Höh"]   { --cat-color: var(--cat-hoeh);   }
.postlist__post[data-blog-category="Lindenbüel"] { --cat-color: var(--cat-lindenbuel); }
.postlist__post[data-blog-category="Kindergarten"] { --cat-color: var(--cat-kindergarten); }
.postlist__post[data-blog-category="Musikschule"]{ --cat-color: var(--cat-musikschule); --badge-text: #3d3a00; }
.postlist__post[data-blog-category="Kindergarten"] { --badge-text: #3d3a00; }

.postlist__post {
    margin-top: 0;
}

/* ==========================================================================
   Category List Grid
   ========================================================================== */
.bloglist--categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
}

.bloglist--tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
}

@media screen and (min-width: 700px) {
    .bloglist--categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .bloglist--tags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

.bloglist__item--category,
.bloglist__item--tag {
    --list-color: var(--color-accent);
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    padding: 0.85rem 1rem 0.9rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bloglist__item--category:hover,
.bloglist__item--tag:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.bloglist__item--category:hover::before,
.bloglist__item--tag:hover::before {
    height: var(--card-strip-height-hover);
}

.bloglist__categorylink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.bloglist__taglink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.bloglist__categorylink:hover,
.bloglist__categorylink:focus,
.bloglist__taglink:hover,
.bloglist__taglink:focus {
    text-decoration: none;
}

.bloglist__cardtitle {
    font-family: var(--font-body);
    font-size: 125%;
    line-height: 1.25;
    color: inherit;
}

.bloglist__cardarrow {
    color: var(--color-accent);
    font-size: 1.1rem;
    line-height: 1;
    transform: translateX(0);
    transition: transform var(--transition-smooth);
}

.bloglist__item--category:hover .bloglist__cardarrow,
.bloglist__item--tag:hover .bloglist__cardarrow {
    transform: translateX(4px);
}

.bloglist__carddescription {
    margin: 0.45rem 0 0;
    color: var(--color-text-body);
    font-size: 0.94rem;
    line-height: 1.45;
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .bloglist__item--category,
    .bloglist__item--tag,
    .bloglist__cardarrow {
        transition: none;
    }
}
/* ==========================================================================
   Page Overrides
   ========================================================================== */
body.landingpage {
    background-color: var(--color-bg-page);
}

body.landingpage #page-wrapper {
    max-width: var(--page-max-width);
    margin: 0 auto;
}

/* ==========================================================================
   Category teaser block (llbildgalerie semantics)
   ========================================================================== */
.tx-llbildgalerie--blog {
    margin: 0.5rem 0 1.5rem;
}

body.schulhaus.home #page-wrapper #page-body #teaser div.dia,
.tx-llbildgalerie--blog .dia {
    max-width: 430px;
}

.tx-llbildgalerie--blog .dia a {
    text-decoration: none;
}

.tx-llbildgalerie--blog .dia-frame {
    display: block;
    border-radius: 4%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(34, 34, 34, 0.12);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tx-llbildgalerie--blog .dia:hover .dia-frame {
    box-shadow: var(--card-shadow-hover);
}

.tx-llbildgalerie--blog .dia-date,
.tx-llbildgalerie--blog .dia-subject {
    margin: 0.45rem 0 0;
    line-height: 1.35;
}

.tx-llbildgalerie--blog .dia-date {
    font-size: 0.95rem;
    color: var(--color-text-body);
}

.tx-llbildgalerie--blog .dia-subject {
    font-size: 1.15rem;
    font-weight: 700;
}

.tx-llbildgalerie--blog .dia-date a,
.tx-llbildgalerie--blog .dia-subject a {
    color: inherit;
}

body.landingpage #page-body {
    padding-top: 2em;
    padding-bottom: 4em;
}

@media screen and (min-width: 1100px) {
    body.landingpage #page-body {
        top: 0;
        box-shadow: none;
        background: transparent;
        padding: 3em 2.5em 5em;
    }
}


/* ==========================================================================
   Post List Grid
   ========================================================================== */
.postlist {
    display: grid;
    gap: var(--grid-gap-sm);
    grid-template-columns: 1fr;
    padding: 0 0.5em;
}

@media screen and (min-width: 700px) {
    .postlist {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--grid-gap-md);
        padding: 0;
    }
}

/* ==========================================================================
   Post Card Base
   ========================================================================== */
.postlist__post {
    --cat-color: #999;            /* Fallback */
    --badge-text: #fff;           /* Fallback – helle Kategorien überschreiben */

    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: pointer;
    position: relative;

    /* Staggered entrance */
    opacity: 0;
    transform: translateY(24px);
    animation: cardFadeIn var(--anim-fadein-duration) ease forwards;
}

.postlist__post:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* Stagger delays (calc-basiert) */
.postlist__post:nth-child(1)  { animation-delay: calc(1 * var(--anim-stagger-step)); }
.postlist__post:nth-child(2)  { animation-delay: calc(2 * var(--anim-stagger-step)); }
.postlist__post:nth-child(3)  { animation-delay: calc(3 * var(--anim-stagger-step)); }
.postlist__post:nth-child(4)  { animation-delay: calc(4 * var(--anim-stagger-step)); }
.postlist__post:nth-child(5)  { animation-delay: calc(5 * var(--anim-stagger-step)); }
.postlist__post:nth-child(6)  { animation-delay: calc(6 * var(--anim-stagger-step)); }
.postlist__post:nth-child(7)  { animation-delay: calc(7 * var(--anim-stagger-step)); }
.postlist__post:nth-child(8)  { animation-delay: calc(8 * var(--anim-stagger-step)); }
.postlist__post:nth-child(9)  { animation-delay: calc(9 * var(--anim-stagger-step)); }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Top Color Strip (generisch via --cat-color)
   ========================================================================== */
.postlist__post::before {
    content: '';
    display: block;
    height: var(--card-strip-height);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    background: var(--cat-color);
    transition: height var(--transition-smooth);
}

.postlist__post:hover::before {
    height: var(--card-strip-height-hover);
}

/* ==========================================================================
   Featured Image
   ========================================================================== */
.postlist__featuredimage {
    display: block;
    width: 100%;
    position: relative;

    text-decoration: none;

    /* Fallback-Gradient aus --cat-color */
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--cat-color) 20%, white) 0%,
        color-mix(in srgb, var(--cat-color) 80%, black 0%) 60%,
        var(--cat-color) 100%
    );
}

/* Subtile Abdunklung für Lesbarkeit */
.postlist__featuredimage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.postlist__featuredimage--placeholder {
    display: block;
}

.postlist__featuredimageplaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 7;
    position: relative;
    z-index: 3;
}

.postlist__featuredimageicon {
    width: min(30%, 130px);
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}



/* ==========================================================================
   Post Title (List)
   ========================================================================== */
.postlist__posttitle {
    /*font-family: var(--font-display);*/
    line-height: 1.25;
    margin: 0;
    padding: 1em 1.1em 0.4em;
    color: var(--color-text);
}

.postlist__posttitle a,
.postlist__posttitle a:hover,
.postlist__posttitle a:focus,
.postlist__posttitle a:active {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
}

/* ==========================================================================
   Post Meta Group – Overlay auf dem Bild (List View)
   Die postmetagroup--type-listheader wird absolut über dem Bild positioniert.
   Kategorie-Badge: unten links · Datum: oben rechts
   ========================================================================== */
.postmetagroup--type-listheader {
    position: absolute;
    top: 1.5em;
    left: -13px;
    right: 0.7em;
    aspect-ratio: 16 / 7;
    z-index: 5;
    pointer-events: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    font-family: var(--font-body);
}

.postmetagroup--type-listheader .postmetagroup__item {
    pointer-events: auto;
    margin: 0;
    flex-basis: 40%;
}

/* --- Kategorie-Badge: links --- */
.postmetagroup--type-listheader .postmetagroup__item--published {
    flex-basis: 0;
}


.blogbadge {
    border: none;
}

.postmetagroup--type-listheader .postmetagroup__item--category .blogbadge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--badge-text);
    background-color: var(--cat-color);
    padding: 0.6em 0.75em;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Helle Badges: text-shadow entfernen */
.postlist__post[data-blog-category="Musikschule"] .blogbadge {
    text-shadow: none;
}

.postlist__post[data-blog-category="Kindergarten"] .blogbadge {
    text-shadow: none;
}

/* --- Datum: rechts (zweiteiliges Overlay: Tag + Monat) --- */
.postmetagroup--type-listheader .postmetagroup__item--published {
    position: static;
    margin-left: auto;
}

.postmetagroup--type-listheader .postmetagroup__publisheddatelink {
    display: block;
    text-decoration: none;
}

.postmetagroup--type-listheader .postmetagroup__item--published time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.4em;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.postmetagroup__date-day {
    display: block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-date-bar);
    font-family: var(--font-body);
    font-size: 2.25em;
    font-weight: 300;
    line-height: 1;
    padding: 0.15em 0.3em 0.08em;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.postmetagroup__date-month {
    display: block;
    background: var(--color-date-bar);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 300;
    text-transform: capitalize;
    letter-spacing: 0.03em;
    padding: 0.2em 0.5em;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Generische Meta-Gruppen (z.B. listfooter) – normaler Flow */
.postmetagroup:not(.postmetagroup--type-listheader):not(.postmetagroup--type-postheader):not(.postmetagroup--type-postfooter) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em;
    padding: 0 1.4em 0.6em;
    font-family: var(--font-body);
    font-size: 0.9em;
}

.postmetagroup:not(.postmetagroup--type-listheader):not(.postmetagroup--type-postheader):not(.postmetagroup--type-postfooter) .postmetagroup__item {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Post Description (List)
   ========================================================================== */
.postlist__postdescription {
    color: var(--color-text-body);
    margin: 0;
    padding: 0 1.4em 1.5em;
    flex: 1;

    /* Maximal 4 Zeilen anzeigen */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Post List: Pagination
   ========================================================================== */
.postlist__pagination {
    margin-top: 3.8em;
    display: flex;
    justify-content: center;
}

.postlist__pagination--top {
    margin: 0 0 1.4em;
}

.postlist__pagination > * {
    display: flex;
    justify-content: center;
    width: 100%;
}

.postlist__pagination ul,
.postlist__pagination ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.postlist__pagination li {
    margin: 0;
}

.postlist__pagination li > a,
.postlist__pagination li > span {
    min-width: 2.2em;
    height: 2.2em;
    padding: 0 1em;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95em;
    font-weight: 600;
    line-height: 2.1em;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.postlist__pagination li > a:hover,
.postlist__pagination li > a:focus-visible {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
    outline: none;
}

.postlist__pagination li.current > span,
.postlist__pagination li.active > a,
.postlist__pagination li.active > span {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.postlist__pagination .blogpagination__item > a:hover,
.postlist__pagination .blogpagination__item > a:focus-visible,
.postlist__pagination .blogpagination__item--active > a,
.postlist__pagination .blogpagination__item--active > span,
.postlist__pagination .blogpagination__item--active > a:hover,
.postlist__pagination .blogpagination__item--active > a:focus-visible {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Blog Widgets (Sidebar)
   ========================================================================== */
.blogwidgets {
    padding: 1em 0;
}

.blogwidget {
    margin-bottom: 2em;
}

.blogwidget__title {
    font-family: var(--font-display);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--color-accent);
}

.blogwidget__content {
    font-family: var(--font-body);
    font-size: 0.95em;
}

.blogwidgetlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blogwidgetlist__item {
    padding: 0.35em 0;
    border-bottom: 1px dotted #ddd;
}

.blogwidgetlist__item:last-child {
    border-bottom: none;
}

.blogwidgetlist__itemlink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-body);
    transition: color 0.2s;
}

.blogwidgetlist__itemlink:hover {
    color: var(--color-accent);
}

.blogwidgetlist__itemtitle {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blogwidgetlist__itemcount {
    flex-shrink: 0;
    background: #eee;
    border-radius: 2px;
    padding: 0.1em 0.5em;
    font-size: 0.85em;
    color: var(--color-text-muted);
    margin-left: 0.5em;
}

/* Kategorie-Badges in der Sidebar */
.blogwidgetlist--categories .blogwidgetlist__item {
    padding: 0.3em 0;
    border-bottom: none;
}

/*.blogwidgetlist--categories .blogbadge {
    display: inline-block;
    text-decoration: none;
    padding: 0.3em 0.75em;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s;
}*/
/*
.blogwidgetlist--categories .blogbadge:hover {
    opacity: 0.8;
}*/

/* ==========================================================================
   Footer
   ========================================================================== */
.landing-footer {
    text-align: center;
    padding: 3em 1em 2em;
    font-family: var(--font-body);
    font-size: 1.1em;
    color: var(--color-text-muted);
    border-top: 1px dotted #c8c8c8;
    margin-top: 3em;
}

.landing-footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.landing-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Post Detail: Header
   ========================================================================== */
.postheader {
    margin-bottom: 2em;
}

.postheader__featuredimage {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5em;
    box-shadow: var(--card-shadow);
}

.postheader__featuredimage .blogimage--featured {
    position: relative;
    margin: 0;
}

.postheader__featuredimage .blogimage--featured img {
    display: block;

}

.blogimage img {
    width: 100%;
    height: auto
}

.gallery.gallery--images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.gallery.gallery--images .blogimage--galleryitem {
    margin: 0;
    overflow: hidden;
}

.gallery.gallery--images .blogimage--galleryitem img {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (min-width: 700px) {
    .gallery.gallery--images {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery.gallery--images[data-ce-images="1"] {
        grid-template-columns: 1fr;
    }

    .gallery.gallery--images[data-ce-images="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1100px) {
    .gallery.gallery--images {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery.gallery--images[data-ce-images="1"] {
        grid-template-columns: 1fr;
    }

    .gallery.gallery--images[data-ce-images="2"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery.gallery--images[data-ce-images="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

.postheader__title {
    margin: 0;
    padding: 0;
}

.postheader__meta-text {
    margin: 0.45em 0 0;
    color: var(--color-text-muted);
}

.postheader__meta-text time {
    white-space: nowrap;
}

/*@media screen and (min-width: 700px)  { .postheader__title { font-size: 2.8em; } }*/


/* Post-Header Meta Group – modern card-style pills */



.postmetagroup--type-postheader .blogicon {
    font-size: 1.15em;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.postmetagroup--type-postheader .postmetagroup__body {
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.postmetagroup--type-postheader .postmetagroup__prefix {
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1;
}

.postmetagroup--type-postheader .postmetagroup__content {
    font-weight: 600;
    line-height: 1.2;
}

.postmetagroup--type-postheader .postmetagroup__item--published time {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
    background: none;
    border-radius: 0;
    min-width: 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--color-text);
    padding: 0;
    white-space: normal;
}

.postmetagroup--type-postheader .postmetagroup__item--categories .blogbadge,
.postheader .blogbadge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85em;
    color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.postheader[data-blog-category="feldhof"] .blogbadge    { background-color: var(--cat-feldhof); }
.postheader[data-blog-category="zentral"] .blogbadge    { background-color: var(--cat-zentral); }
.postheader[data-blog-category="gutenswil"] .blogbadge  { background-color: var(--cat-gutenswil); }
.postheader[data-blog-category="hellwies"] .blogbadge   { background-color: var(--cat-hellwies); }
.postheader[data-blog-category="lindenbuel"] .blogbadge { background-color: var(--cat-lindenbuel); }
.postheader[data-blog-category="musikschule"] .blogbadge{ background-color: var(--cat-musikschule); color: #3d3a00; text-shadow: none; }
.postheader[data-blog-category="dorf"] .blogbadge       { background-color: var(--cat-dorf); }
.postheader[data-blog-category="kindergarten"] .blogbadge{ background-color: var(--cat-kindergarten); color: #3d3a00; text-shadow: none; }

.blogicon {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
}

.blogicon svg {
    width: 1em;
    height: 1em;
}

.postmetagroup__prefix {
    font-size: 0.85em;
    color: var(--color-text-muted);
    margin-right: 0.3em;
}

/* ==========================================================================
   Post Detail: Content
   ========================================================================== */
.postcontent {
    font-family: var(--font-body);
    font-size: 1.1em;
    line-height: 1.75;
    color: var(--color-text-body);
    margin-bottom: 2.5em;
}

.postcontent h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6em;
    line-height: 1.3;
    color: var(--color-text);
    margin: 1.8em 0 0.6em;
}

.postcontent h2:first-child {
    margin-top: 0;
}

.postcontent p {
    margin: 0 0 1.2em;
}

/* Schulischer Blockquote-Stil */
.blogcontainer-main blockquote {
    --quote-accent: var(--cat-color, var(--color-accent));
    font-size: 110%;
    font-style: italic;
    position: relative;
    margin: 5em 0 5em;
    padding: 1.2em 1.5em 3.1em 1.5em;
    border-left: 6px solid var(--quote-accent);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.blogcontainer-main blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.2em;
    left: 0.2em;
    font-family: var(--font-display);
    font-size: 8em;
    line-height: 1;
    color: color-mix(in srgb, var(--quote-accent) 72%, white);
    pointer-events: none;
}

.blogcontainer-main blockquote > :last-child {
    margin-bottom: 0;
}

.blogcontainer-main blockquote cite {
    display: block;
    margin-top: 0.6em;
    font-style: normal;
    font-weight: 700;
    font-size: 0.92em;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
}

.blogcontainer-main blockquote cite::before {
    content: "Aus dem Schulalltag - ";
    font-weight: 600;
    color: color-mix(in srgb, var(--quote-accent) 68%, #4f4f4f);
}

/* Color accent strip on postcontent via category */
.postcontent[data-blog-category]::before {
    content: '';
    display: block;
    width: 3em;
    height: 3px;
    margin-bottom: 1.5em;
}

.postcontent[data-blog-category="feldhof"]::before    { background: var(--cat-feldhof); }
.postcontent[data-blog-category="zentral"]::before    { background: var(--cat-zentral); }
.postcontent[data-blog-category="gutenswil"]::before  { background: var(--cat-gutenswil); }
.postcontent[data-blog-category="hellwies"]::before   { background: var(--cat-hellwies); }
.postcontent[data-blog-category="lindenbuel"]::before { background: var(--cat-lindenbuel); }
.postcontent[data-blog-category="musikschule"]::before{ background: var(--cat-musikschule); }
.postcontent[data-blog-category="dorf"]::before       { background: var(--cat-dorf); }
.postcontent[data-blog-category="kindergarten"]::before{ background: var(--cat-kindergarten); }

/* ==========================================================================
   Post Detail: Footer
   ========================================================================== */
.postfooter {
    border-top: 1px dotted #ccc;
    padding-top: 1.5em;
    margin-bottom: 2em;
}

.postfooter__meta {
    font-family: var(--font-body);
    font-size: 0.95em;
}

/* Post-Footer Meta Group (inline flow) */
.postmetagroup--type-postfooter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    padding: 0;
    position: static;
    aspect-ratio: unset;
    pointer-events: auto;
}

.postmetagroup--type-postfooter .postmetagroup__item {
    display: flex;
    align-items: center;
    gap: 0.4em;
    position: static;
    pointer-events: auto;
}

.postmetagroup__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5em;
}

.postmetagroup__listitem {
    display: inline;
}

.postmetagroup__listtext a {
    color: var(--color-accent);
    text-decoration: none;
}

.postmetagroup__listtext a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Post Detail: Author
   ========================================================================== */
.postauthors {
    border-top: 1px dotted #B2B2B2;
    background: var(--card-bg);
    padding: 1.8em;
    padding-top: 3em;
    margin-top: 6em;
}

.postauthor--full {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
}

.postauthor__avatar {
    flex-shrink: 0;
}
.postauthor__avatarimage {
    display: block;
}

.postauthor__body {
    flex: 1;
    min-width: 0;
}

.postauthor__intro {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.2em;
}

.postauthor__name {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.4em;
}

.postauthor__name a {
    color: var(--color-text);
    text-decoration: none;
}

.postauthor__name a:hover {
    color: var(--color-accent);
}

.postauthor__bio {
    color: var(--color-text-body);
    margin-bottom: 1em;
    margin-top: 0;
}

.postauthor__bio p {
    margin: 0;
}

.postauthor__actions a {
    font-family: var(--font-body);
    color: var(--color-accent);
    text-decoration: none;
}

.postauthor__actions a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Post Detail: Related Posts Teaser
   ========================================================================== */
.postteaser--related {
    margin-bottom: 2.5em;
}

.postteaser__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4em;
    color: var(--color-text);
    margin: 0 0 1em;
}

.postteaser__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2em;
}

@media screen and (min-width: 700px) {
    .postteaser__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.postteaser__item {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.postteaser__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.blogimage--teaser {
    margin: 0;
    overflow: hidden;
}

.blogimage--teaser img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 170;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.postteaser__item:hover .blogimage--teaser img {
    transform: scale(1.05);
}

.postteaser__itemtitle {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15em;
    line-height: 1.3;
    color: var(--color-text);
    padding: 0.8em 1em;
}

/* ==========================================================================
   Noise Texture Overlay
   ========================================================================== */
body.landingpage::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    .postlist__post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        animation: none;
        opacity: 1;
        transform: none;
    }

    .postlist__post::before {
        height: 3px !important;
        print-color-adjust: exact;
    }

    body.landingpage::before {
        display: none;
    }
}



