/* Sun für Joomla 5, Stil „bluegray“
   Werte stammen aus styles/bluegray/style.less des Originals. */

@font-face {
    font-family: 'yootheme_weather';
    src: url('../fonts/yootheme_weather.woff') format('woff');
    font-display: swap;
}

:root {
    --sun-text: #22344d;
    --sun-body-font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --sun-head-font: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    --sun-link: #6089c4;
    --sun-link-hover: #324869;
    --sun-primary: #2d405e;
    --sun-secondary: #3f6fb6;
    --sun-muted-bg: #f9f9f9;
    --sun-border: #e9eaeb;
    --sun-page-bg: #eaebee;
    --sun-navbar-bg: #3f6fb6;
    --sun-navbar-link: #c5dcff;
    --sun-dropdown-bg: rgba(45, 65, 95, .98);
    --sun-dropdown-link: #98adcf;
    --sun-toolbar-text: #888f99;
    --sun-toolbar-link: #8eb9f8;
    --sun-footer-bg: #38619d;
    --sun-footer-text: #c5dcff;
    --sun-radius: 4px;
    --sun-gap: 25px;
    --sun-nav-height: 95px;
    --sun-max: 1200px;

    --sun-tag-1: #a8d216;
    --sun-tag-2: #f56100;
    --sun-tag-3: #d40448;
    --sun-tag-4: #ffc349;
    --sun-tag-5: #3674d1;
    --sun-tag-6: #3fb648;
    --sun-tag-7: #000c0b;
    --sun-tag-8: #c6a435;
    --sun-tag-9: #3932ba;
    --sun-tag-10: #6cc3f3;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font: 300 16px/26px var(--sun-body-font);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    background: #fff;
    color: var(--sun-text);
}

body { margin: 0; }

.tm-body-background { background: var(--sun-page-bg); }
html:has(.tm-body-background) { background: var(--sun-page-bg); }
body { min-height: 100vh; }

a { color: var(--sun-link); text-decoration: none; }
a:hover { color: var(--sun-link-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--sun-secondary); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px;
    font-family: var(--sun-head-font);
    font-weight: 400;
    color: var(--sun-text);
    text-transform: none;
}
h1 { font-size: 30px; line-height: 40px; }
h2 { font-size: 24px; line-height: 30px; }
h3 { font-size: 18px; line-height: 24px; }
h4 { font-size: 16px; line-height: 22px; }

img, video { max-width: 100%; height: auto; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tm-skip {
    position: absolute; left: 8px; top: -60px; z-index: 100;
    background: var(--sun-primary); color: #fff; padding: 8px 14px;
}
.tm-skip:focus { top: 8px; }

/* Seitenbreite ---------------------------------------------------------- */

.tm-wrap { width: 100%; max-width: var(--sun-max); margin: 0 auto; padding: 0; }
.tm-page-large .tm-wrap { max-width: 1600px; }
.tm-page-full .tm-wrap { max-width: none; }

@media (min-width: 1220px) {
    .tm-container { margin-top: var(--sun-gap); margin-bottom: var(--sun-gap); }
    .tm-page-full .tm-container { margin-top: 0; margin-bottom: 0; }
}

/* Toolbar --------------------------------------------------------------- */

.tm-toolbar {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px var(--sun-gap); font-size: 13px; color: var(--sun-toolbar-text);
}
.tm-toolbar a { color: var(--sun-toolbar-link); }
.tm-toolbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
@media (max-width: 767px) { .tm-toolbar { display: none; } }

/* Navbar ---------------------------------------------------------------- */

.tm-navbar {
    display: flex; align-items: center; min-height: var(--sun-nav-height);
    background: var(--sun-navbar-bg); position: relative;
}
.tm-container:not(.tm-wrap-full) .tm-navbar { border-radius: var(--sun-radius) var(--sun-radius) 0 0; }

.tm-brand, .tm-brand-small {
    display: flex; align-items: center; align-self: stretch;
    padding: 0 var(--sun-gap); color: var(--sun-primary); background: #fff;
}
.tm-brand:hover, .tm-brand-small:hover { text-decoration: none; }
.tm-brand img { display: block; max-height: 80px; width: auto; }
.tm-brand p, .tm-brand .mod-custom { margin: 0; }

.tm-menu { margin-right: auto; }
.tm-menu ul { list-style: none; margin: 0; padding: 0; }
.tm-menu > ul, .tm-menu .mod-menu { display: flex; align-items: stretch; }

.tm-menu li { position: relative; }
.tm-menu li > a,
.tm-menu li > span {
    display: block; height: var(--sun-nav-height); line-height: var(--sun-nav-height);
    padding: 0 15px; font: 400 16px/var(--sun-nav-height) var(--sun-head-font);
    color: var(--sun-navbar-link); text-transform: none; position: relative;
}
.tm-menu li > a:hover { text-decoration: none; color: #fff; }
.tm-menu li.active > a { color: #fff; }
.tm-menu li.active > a::after,
.tm-menu li > a:hover::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 30px;
    height: 1px; background: currentColor;
}

/* Dropdown: öffnet per Hover, Tastatur-Fokus und Klick */
.tm-menu li > ul {
    display: none; position: absolute; top: 100%; left: 0; z-index: 50;
    min-width: 220px; padding: 15px 0; background: var(--sun-dropdown-bg);
    border-radius: 0 0 var(--sun-radius) var(--sun-radius);
}
.tm-menu li:hover > ul,
.tm-menu li:focus-within > ul { display: block; }
.tm-menu li > ul a {
    display: block; height: auto; line-height: 24px; padding: 7px 25px;
    color: var(--sun-dropdown-link); font-size: 15px;
}
.tm-menu li > ul a:hover { color: #fff; }
.tm-menu li > ul a::after { display: none; }

.tm-headerbar { padding: 0 var(--sun-gap); }
.tm-search { padding: 0 var(--sun-gap); }
.tm-search input[type="search"],
.tm-search input[type="text"] {
    width: 160px; height: 36px; border: 0; border-bottom: 1px solid rgba(255,255,255,.5);
    background: transparent; color: #fff; font: inherit; padding: 0 6px;
}

/* Umschalten zwischen großer und kleiner Navigation */
.tm-small-only { display: none; }
@media (max-width: 959px) {
    .tm-large-only { display: none !important; }
    .tm-small-only { display: flex; }
    .tm-navbar { justify-content: space-between; flex-direction: row-reverse; }
    .tm-brand-small { margin-right: auto; }
}

.tm-offcanvas-toggle {
    align-items: center; justify-content: center; width: 60px; height: 60px;
    border: 0; background: transparent; cursor: pointer; color: #fff;
}
.tm-burger, .tm-burger::before, .tm-burger::after {
    display: block; width: 22px; height: 2px; background: currentColor; content: '';
}
.tm-burger { position: relative; }
.tm-burger::before { position: absolute; top: -7px; }
.tm-burger::after { position: absolute; top: 7px; }

/* Off-Canvas */
.tm-offcanvas {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 85vw); z-index: 1001;
    transform: translateX(100%); transition: transform .25s ease; display: block;
}
.tm-offcanvas[hidden] { display: block; visibility: hidden; }
.tm-offcanvas.is-open { transform: none; visibility: visible; }
.tm-offcanvas-bar {
    height: 100%; overflow-y: auto; padding: 25px; background: var(--sun-primary);
    color: #b9c3d4;
}
.tm-offcanvas-bar a { color: #8eb9f8; }
.tm-offcanvas-bar ul { list-style: none; margin: 0; padding: 0; }
.tm-offcanvas-bar li a { display: block; padding: 8px 0; color: #c5dcff; }
.tm-offcanvas-backdrop {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .4);
}
.tm-offcanvas-backdrop[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tm-offcanvas { transition: none; } }

/* Inhaltsbereiche ------------------------------------------------------- */

.tm-container-background { background: #fff; }

.tm-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tm-section > * { padding: var(--sun-gap); min-width: 0; }
.tm-section > * + * { border-left: 1px solid var(--sun-border); }
@media (max-width: 959px) {
    .tm-section > * + * { border-left: 0; border-top: 1px solid var(--sun-border); }
}

.tm-block-muted { background: var(--sun-muted-bg); }
.tm-block-divider { background: #fff; }
.tm-section { border-top: 1px solid var(--sun-border); }

.tm-middle { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--sun-border); }
.tm-sidebars-1 .tm-middle { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.tm-sidebars-2 .tm-middle { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 959px) {
    .tm-sidebars-1 .tm-middle, .tm-sidebars-2 .tm-middle { grid-template-columns: 1fr; }
}

.tm-main { min-width: 0; }
.tm-main > .tm-section { border-top: 0; }
.tm-content { padding: var(--sun-gap); }
.tm-sidebar { padding: var(--sun-gap); border-left: 1px solid var(--sun-border); }
@media (max-width: 959px) { .tm-sidebar { border-left: 0; border-top: 1px solid var(--sun-border); } }

/* Module (Chrome „html5“) */
.moduletable, .mod-custom { margin: 0 0 var(--sun-gap); }
.moduletable:last-child { margin-bottom: 0; }
.moduletable > h3, .moduletable > h2 { font-size: 20px; line-height: 25px; margin-bottom: 20px; }
.moduletable ul { padding-left: 0; list-style: none; margin: 0; }
.moduletable li { padding: 6px 0; border-bottom: 1px solid var(--sun-border); }
.moduletable li:last-child { border-bottom: 0; }

/* Breadcrumbs */
.mod-breadcrumbs__wrapper, nav[aria-label="Breadcrumbs"] { margin: 0 0 20px; }
.breadcrumb, .mod-breadcrumbs.breadcrumb { background: transparent; padding: 0; margin: 0; border-radius: 0; }
.mod-breadcrumbs__divider { display: none; }
.mod-breadcrumbs__here { display: none; }
.breadcrumb-item + .breadcrumb-item::before, .mod-breadcrumbs__item + .mod-breadcrumbs__item::before { content: none; }
.mod-breadcrumbs { font-size: 13px; padding: 0 0 15px; }
.mod-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mod-breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--sun-toolbar-text); }

/* Artikel */
.com-content-article__body, .item-page { max-width: 80ch; }
.page-header h1, .page-header h2 { font-size: 30px; line-height: 40px; }
.article-info { font-size: 13px; color: var(--sun-toolbar-text); }
.article-info dd { display: inline; margin: 0 12px 0 0; }
.article-info dt { display: none; }

/* Tags: farbiger Rand je Tag-ID über Klasse tm-tag-N */
.tm-tag-1 { --tag: var(--sun-tag-1); } .tm-tag-2 { --tag: var(--sun-tag-2); }
.tm-tag-3 { --tag: var(--sun-tag-3); } .tm-tag-4 { --tag: var(--sun-tag-4); }
.tm-tag-5 { --tag: var(--sun-tag-5); } .tm-tag-6 { --tag: var(--sun-tag-6); }
.tm-tag-7 { --tag: var(--sun-tag-7); } .tm-tag-8 { --tag: var(--sun-tag-8); }
.tm-tag-9 { --tag: var(--sun-tag-9); } .tm-tag-10 { --tag: var(--sun-tag-10); }
[class*="tm-tag-"] .badge, [class*="tm-tag-"].tm-title-border { border-left: 3px solid var(--tag, var(--sun-secondary)); padding-left: 8px; }

/* Formulare, Buttons, Tabellen */
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
    width: 100%; max-width: 100%; padding: 6px 10px; border: 1px solid var(--sun-border);
    border-radius: var(--sun-radius); background: #fff; color: var(--sun-text);
}
.btn, button[type="submit"] {
    display: inline-block; padding: 8px 18px; border: 0; border-radius: var(--sun-radius);
    background: var(--sun-secondary); color: #fff; cursor: pointer;
}
.btn:hover, button[type="submit"]:hover { background: var(--sun-primary); color: #fff; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--sun-border); text-align: left; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 20px 0; }
.pagination a, .pagination span { display: block; padding: 4px 10px; border: 1px solid var(--sun-border); border-radius: var(--sun-radius); }
.pagination .active span { background: var(--sun-secondary); border-color: var(--sun-secondary); color: #fff; }

/* Systemmeldungen */
joomla-alert, .alert { display: block; margin: 0 0 20px; padding: 12px 16px; border-radius: var(--sun-radius); background: var(--sun-muted-bg); border-left: 4px solid var(--sun-secondary); }

/* Footer ---------------------------------------------------------------- */

.tm-footer {
    position: relative; padding: 40px var(--sun-gap); background: var(--sun-footer-bg);
    color: var(--sun-footer-text); text-align: center; font-size: 13px;
}
.tm-footer a { color: #e2edff; }
@media (min-width: 1220px) { .tm-footer { border-radius: 0 0 var(--sun-radius) var(--sun-radius); } }

.tm-totop {
    position: absolute; top: -20px; left: 50%; width: 40px; height: 40px; margin-left: -20px;
    border-radius: 50%; background: var(--sun-secondary) url('../images/totop_scroller.svg') center / 16px no-repeat;
}
.tm-totop:hover { background-color: #334f7a; }

/* Offline- und Fehlerseite */
.tm-offline-box { max-width: 480px; margin: 12vh auto; padding: 40px; background: #fff; border-radius: var(--sun-radius); text-align: center; }

/* Komponentenansicht ohne Rahmen */
.tm-component .tm-content { padding: var(--sun-gap); }

/* Navbar-Suche: Symbol und Platzhalter in Weiß */
.tm-search ::placeholder { color: rgba(255,255,255,.75); }
.tm-search button, .tm-search .btn { background: transparent; color: #fff; padding: 0 8px; }
.tm-search svg, .tm-search .icon-search { fill: #fff; color: #fff; }

/* Toolbar: Trennstrich zwischen den Links */
.tm-toolbar li + li::before { content: ''; display: inline-block; width: 1px; height: 12px; margin-right: 16px; background: var(--sun-toolbar-text); opacity: .6; }
.tm-toolbar ul { align-items: center; }

/* Blauer Streifen: im Modul die Klasse „tm-block-alternative“ (Modul-Klassensuffix) eintragen */
.tm-block-alternative { background: var(--sun-secondary); color: var(--sun-navbar-link); text-align: center; }
.tm-block-alternative h1, .tm-block-alternative h2, .tm-block-alternative h3, .tm-block-alternative p { color: #fff; margin: 0; font-family: var(--sun-head-font); }
.tm-block-alternative h2, .tm-block-alternative p { font-size: 26px; line-height: 34px; }

/* Banner (Ersatz für das Widgetkit-Slideshow)
   Im Modul „Eigener Inhalt“ den Modulklassen-Suffix " tm-hero" eintragen. */
.tm-section > .tm-hero { padding: 0; border-left: 0; }
.tm-hero figure { position: relative; margin: 0; overflow: hidden; background: var(--sun-primary); }
.tm-hero img { display: block; width: 100%; height: auto; min-height: 220px; object-fit: cover; }
.tm-hero figcaption {
    position: absolute; inset: auto 0 0 0; padding: 60px 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    color: #fff; font-family: var(--sun-head-font);
    font-size: 22px; line-height: 30px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.tm-hero figcaption strong { display: block; font-size: 38px; line-height: 44px; font-weight: 500; }
.tm-hero figcaption span { display: block; font-size: 22px; line-height: 30px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tm-hero figure::after {
    content: ''; position: absolute; right: 24px; bottom: 24px; width: 12px; height: 12px;
    border-radius: 50%; background: #fff;
}
@media (max-width: 767px) {
    .tm-hero figcaption { padding: 30px 20px 18px; font-size: 16px; line-height: 22px; }
    .tm-hero figcaption strong { font-size: 24px; line-height: 30px; }
    .tm-hero figcaption span { font-size: 16px; line-height: 22px; }
}

/* Banner ohne Modulabstand */
.tm-hero, .tm-hero .mod-custom, .tm-hero.moduletable { margin: 0; }
.tm-section:has(> .tm-hero) { border-top: 0; }

/* Login-Formular: Passwort-Knopf und Abstände */
.input-password-toggle { background: transparent; color: var(--sun-text); border: 1px solid var(--sun-border); padding: 4px 10px; }
.input-group { display: flex; align-items: stretch; gap: 4px; }
.input-group > input { flex: 1 1 auto; }

/* Handy: kleines Logo und Off-Canvas-Menü mit Unterpunkten */
.tm-brand-small img { display: block; max-height: 56px; width: auto; }
.tm-brand-small p, .tm-brand-small .mod-custom { margin: 0; }
@media (max-width: 959px) { .tm-navbar { min-height: 72px; flex-direction: row; } }
.tm-offcanvas-toggle { width: 72px; height: 72px; }
.tm-offcanvas-bar li a { font-size: 17px; line-height: 24px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.tm-offcanvas-bar li li a { padding-left: 18px; font-size: 15px; color: #98adcf; }
.tm-offcanvas-bar li.active > a, .tm-offcanvas-bar li.current > a { color: #fff; }

/* Kachel-Raster für Kategorie-Übersichten (Katalog) */
.com-content-category-blog__items {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 0 0 24px;
}
.com-content-category-blog__items .blog-item {
    position: relative; display: flex; flex-direction: column; margin: 0;
    background: #fff; border: 1px solid var(--sun-border); border-radius: var(--sun-radius); overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.com-content-category-blog__items .blog-item:hover { box-shadow: 0 6px 18px rgba(34, 52, 77, .12); transform: translateY(-2px); }
.com-content-category-blog__items .item-image {
    float: none !important; margin: 0; aspect-ratio: 4 / 3; background: var(--sun-muted-bg);
    display: flex; align-items: center; justify-content: center; padding: 10px;
}
.com-content-category-blog__items .item-image img { width: 100%; height: 100%; object-fit: contain; }
.com-content-category-blog__items .item-content {
    position: relative; flex: 1; padding: 14px 16px 0; font-size: 14px; line-height: 21px;
    max-height: 190px; overflow: hidden;
}
.com-content-category-blog__items .item-content::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.com-content-category-blog__items .page-header h2 { font-size: 17px; line-height: 23px; margin: 0 0 8px; }
.com-content-category-blog__items .page-header h2 a { color: var(--sun-text); }
.com-content-category-blog__items .page-header h2 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.com-content-category-blog__items .blog-item:hover .page-header h2 a { color: var(--sun-link); text-decoration: none; }
.com-content-category-blog__items .article-info,
.com-content-category-blog__items .readmore { display: none; }
.com-content-category-blog__items .item-content h3 { font-size: 15px; line-height: 21px; margin: 8px 0 4px; }
.com-content-category-blog__items .item-content ul, .com-content-category-blog__items .item-content ol { margin: 4px 0; padding-left: 18px; }
.com-content-category-blog__items .item-content img { display: none; }
.com-content-category-blog__items .blog-item::after {
    content: 'Weiterlesen ›'; display: block; padding: 10px 16px 14px; font-size: 14px; color: var(--sun-link);
}
.com-content-category-blog__items .blog-item:not(:has(.item-image))::before {
    content: ''; display: block; height: 6px; background: var(--sun-secondary);
}

/* Einzelbeitrag: Bild rechts neben dem Text */
.com-content-article .item-image.float-end, .com-content-article figure.float-end { float: right; max-width: 45%; margin: 0 0 16px 24px; }
@media (max-width: 767px) { .com-content-article figure.float-end { float: none; max-width: 100%; margin: 0 0 16px; } }

/* Startseite: Kooperationspartner (bottom-a) */
.phs-partner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; padding: 10px 0; }
.phs-partner a { display: block; }
.phs-partner img { display: block; max-height: 64px; max-width: 170px; width: auto; height: auto; opacity: .85; transition: opacity .15s; }
.phs-partner a:hover img { opacity: 1; }
#tm-bottom-a .moduletable > h3 { text-align: center; }

/* Startseite: Neueste Publikationen / Tagesmeldungen (bottom-b) */
#tm-bottom-b .newsflash { display: flex; flex-wrap: wrap; gap: 20px; }
#tm-bottom-b .mod-articlesnews__item { flex: 1 1 140px; }
#tm-bottom-b .newsflash-title { font-size: 15px; line-height: 21px; margin: 0 0 8px; }
#tm-bottom-b .newsflash-image { margin: 0; }
#tm-bottom-b .newsflash-image img { display: block; max-height: 240px; width: auto; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
#tm-bottom-b .newsflash:not(:has(img)) { display: block; }
#tm-bottom-b .newsflash:not(:has(img)) .mod-articlesnews__item { padding: 8px 0; border-bottom: 1px solid var(--sun-border); }
#tm-bottom-b .newsflash:not(:has(img)) .newsflash-title { margin: 0; font-weight: 400; }

/* Fußbereich mit Linkspalten (bottom-c) */
#tm-bottom-c { background: var(--sun-primary); color: #b9c3d4; border-top: 0; font-size: 14px; line-height: 22px; }
#tm-bottom-c > * + * { border-left-color: rgba(255,255,255,.08); }
#tm-bottom-c h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
#tm-bottom-c a { color: #c5dcff; }
#tm-bottom-c a:hover { color: #fff; }
#tm-bottom-c .moduletable li { border-bottom: 0; padding: 3px 0; }
#tm-bottom-c p { margin: 0 0 10px; }
.tm-footer p { margin: 0; }

.phs-social a { display: inline-flex; align-items: center; gap: 10px; }
.phs-social .phs-ico { flex: none; width: 22px; height: 22px; }

/* Beitragsinfos (Autor, Kategorie, Datum, Zugriffe) ausblenden */
.article-info, dl.article-info { display: none !important; }

/* Startseite: Titel des Begrüßungsbeitrags ausblenden */
.blog-featured .item-title:has(a[href*="startseite-begruessung"]) { display: none; }

/* Startseite: Beiträge mit mehr Luft und Trenner */
.blog-featured .blog-item { position: relative; padding: 36px 0 40px; }
.blog-featured .items-leading .blog-item { padding-top: 4px; }
.blog-featured .blog-item + .blog-item,
.blog-featured .blog-items + .blog-items .blog-item:first-child { border-top: 3px solid var(--sun-secondary); }

.blog-featured .item-content::after { content: ''; display: block; clear: both; }
.blog-featured .item-title { font-size: 26px; line-height: 34px; margin: 0 0 16px; }
.blog-featured .item-title a { color: var(--sun-primary); }
.blog-featured .item-title a:hover { color: var(--sun-link); text-decoration: none; }
.blog-featured .item-content p { margin: 0 0 14px; }
.blog-featured .item-content h3 { font-size: 22px; line-height: 30px; color: var(--sun-primary); margin: 0 0 14px; }
.blog-featured .item-content .btn { margin-top: 6px; }
.blog-featured .item-content img[style*="float: right"] { border-radius: var(--sun-radius); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
@media (max-width: 767px) {
    .blog-featured .blog-item { padding: 28px 0 30px; }
    .blog-featured .item-content img[style*="float: right"] { float: none !important; display: block; max-width: 100% !important; margin: 0 0 16px !important; }
}

/* Startseite: Exponate in drei Spalten */
.phs-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.phs-cols > div { background: var(--sun-muted-bg); border-radius: var(--sun-radius); padding: 18px 20px; }
.phs-cols h3 { margin-top: 0 !important; }
.phs-cols ul { margin: 0; padding-left: 18px; }
.phs-cols li { padding: 3px 0; }
@media (max-width: 767px) { .phs-cols { grid-template-columns: 1fr; } }

/* Größere, besser lesbare Schrift in allen Beiträgen */
.tm-content { font-size: 18px; line-height: 30px; font-weight: 400; }
.tm-content .page-header h1, .tm-content .page-header h2, .tm-content h1 { font-size: 32px; line-height: 42px; }
.tm-content h3 { font-size: 22px; line-height: 30px; }
.tm-content .mod-breadcrumbs { font-size: 14px; }
.blog-featured .item-title { font-size: 28px; line-height: 36px; }
.com-content-category-blog__items .item-content { font-size: 15px; line-height: 23px; max-height: 200px; }
.com-content-category-blog__items .page-header h2 { font-size: 18px; line-height: 24px; }
.com-content-category-blog__items .blog-item::after { font-size: 15px; }
#tm-bottom-b, #tm-bottom-c { font-size: 15px; line-height: 24px; }

/* YouTube: Platzhalter mit Klick-Zustimmung */
.phs-yt { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 0 0 20px; border-radius: var(--sun-radius);
    background: linear-gradient(135deg, var(--sun-primary), #1b2a40); color: #dfe6f1; overflow: hidden; }
.phs-yt__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 24px; text-align: center; font-size: 15px; line-height: 22px; }
.phs-yt__title { font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.phs-yt__title::before { content: ''; display: inline-block; width: 30px; height: 21px; margin-right: 10px; vertical-align: -4px;
    background: #f00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 21'%3E%3Cpath fill='%23fff' d='M12 6v9l8-4.5z'/%3E%3C/svg%3E") center/100% no-repeat; border-radius: 5px; }
.phs-yt__text { max-width: 520px; margin: 0 0 16px; }
.phs-yt__text a, .phs-yt__link { color: #c5dcff; }
.phs-yt__link { margin-top: 10px; font-size: 14px; }
.phs-yt.is-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .phs-yt { aspect-ratio: auto; min-height: 260px; } }
