/* Schule Treis-Karden – Anpassungen (Avada 7.8.2 + Events Calendar). Änderung: Version in schule-anpassungen.php erhöhen. */

/* Sidebar-Widget "Anstehende Veranstaltungen": Datum über dem Titel, wie bisher */
.tribe-events-widget-events-list__event-row { flex-wrap: wrap !important; }
.tribe-events-widget-events-list__event-row .tribe-events-widget-events-list__event-date-tag { width: 100% !important; max-width: none !important; }
.tribe-events-widget-events-list__event-row .tribe-events-widget-events-list__event-wrapper { width: 100% !important; max-width: none !important; }
/* Monatsansicht: Wochentage als Kürzel (Mo, Di, …) statt Einzelbuchstaben */
.tribe-events-calendar-month__header-column-title > span[aria-hidden="true"] { display: none; }
.tribe-events-calendar-month__header-column { font-family: "Antic Slab", serif; text-transform: none; font-size: 16px; color: #747474; }
.tribe-events-calendar-month__header-column::before { text-transform: none; }
.tribe-events-calendar-month__header-column:nth-child(1)::before { content: "Mo"; }
.tribe-events-calendar-month__header-column:nth-child(2)::before { content: "Di"; }
.tribe-events-calendar-month__header-column:nth-child(3)::before { content: "Mi"; }
.tribe-events-calendar-month__header-column:nth-child(4)::before { content: "Do"; }
.tribe-events-calendar-month__header-column:nth-child(5)::before { content: "Fr"; }
.tribe-events-calendar-month__header-column:nth-child(6)::before { content: "Sa"; }
.tribe-events-calendar-month__header-column:nth-child(7)::before { content: "So"; }
/* Kontrast: Überschriften/Links in hellem Grün (#8bc34a, 2,1:1) auf Weiß → dunkleres Markengrün (≥ 4,5:1) */
.blog-shortcode-post-title a, .fusion-post-content .entry-title a, .widget-title, .title-heading-left,
.fusion-carousel-title a, .fusion-blog-layout-timeline .entry-title a { color: #507a10 !important; }
.fusion-carousel-title { word-break: normal; overflow-wrap: anywhere; }
/* Smartphone/Tablet (Avada-Umbruchpunkt 800 px): Kalender-Widget der Startseite direkt unter dem Slider statt am Seitenende */
@media (max-width: 800px) {
	body.home .fusion-builder-row-1 > .fusion-builder-row { display: flex; flex-direction: column; }
	body.home .fusion-builder-row-1 > .fusion-builder-row::before, body.home .fusion-builder-row-1 > .fusion-builder-row::after { display: none; }
	body.home .fusion-builder-row-1 > .fusion-builder-row > .fusion_builder_column_1_3,
	body.home .fusion-builder-row-1 > .fusion-builder-row > .fusion_builder_column_1_3 > .fusion-column-wrapper,
	body.home .fusion-builder-row-1 > .fusion-builder-row > .fusion_builder_column_1_3 .fusion-widget-area { display: contents; }
	body.home .fusion-builder-row-1 .fusion_builder_column_1_3 .tribe-compatibility-container { order: -1; width: 100%; margin-bottom: 20px; }
	/* Beitragsseiten: Kalender in der Handyansicht nicht anzeigen */
	body.single-post #sidebar .tribe-compatibility-container { display: none; }
}
/* Kompakter Kopfbereich (Inhalt beginnt früher, wie bei rsplus-cochem.de): kleineres Logo, weniger Abstand */
.fusion-header .fusion-logo { margin-top: 12px !important; margin-bottom: 12px !important; }
.fusion-header .fusion-logo img.fusion-standard-logo { width: auto; height: auto; max-height: 110px; }
@media (max-width: 800px) {
	.fusion-header .fusion-logo { margin-top: 8px !important; margin-bottom: 8px !important; }
	.fusion-header .fusion-logo img.fusion-standard-logo { max-height: 64px; }
}
/* Schmale obere Leiste (Seitenübersicht, Datenschutz, Impressum, Einloggen) */
.fusion-secondary-header { --sec_menu_lh: 30px; font-size: 13px; }
.fusion-secondary-header .fusion-row,
.fusion-secondary-header .fusion-secondary-menu,
.fusion-secondary-header .fusion-secondary-menu > ul > li { height: 30px; }
/* Avada setzt Höhe 44 px über var(--sec_menu_lh); hier mit höherer Spezifität auf 30 px, damit Icons und Text mittig sitzen. */
.fusion-secondary-header .fusion-secondary-menu > ul > li > a { height: 30px; line-height: 30px; font-size: 13px; padding: 0 11px; }
.fusion-secondary-header .fusion-secondary-menu .fusion-megamenu-icon { font-size: 13px; line-height: 30px; height: auto; }
/* Sidebar-Zusatz (Suche, Neueste Beiträge) nur auf Beitragsseiten, nicht auf der Startseite */
body.home .fusion-widget-area .widget_search, body.home .fusion-widget-area .widget_recent_entries { display: none; }
/* Startseite: Willkommensbereich und Schnellzugriff-Kacheln */
body.home .fusion-page-title-bar { display: none; }
.schule-willkommen { position: relative; padding: 6px 0 22px; }
.schule-willkommen .schule-eyebrow { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: #eaf4d8; color: #3f6309; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.schule-willkommen h1 { margin: 0 0 12px; color: #27360a; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; font-family: "PT Sans", Arial, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.schule-willkommen h1::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, #8bc34a, #1e88c8); }
.schule-willkommen > p { margin: 0; max-width: 46em; color: #4a4a4a; font-size: 19px; line-height: 1.6; }
.schule-kacheln { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 4px 0 18px; }
.schule-kacheln a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 18px 20px; background: #fff; border: 1px solid #e3eadb; border-radius: 16px; box-shadow: 0 2px 12px rgba(40, 60, 10, .07); color: #333; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.schule-kacheln a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #8bc34a, #507a10); }
.schule-kacheln a:nth-child(even)::before { background: linear-gradient(90deg, #4aa3df, #1e88c8); }
.schule-kacheln a:hover, .schule-kacheln a:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(40, 60, 10, .16); border-color: #c8d9b4; }
.schule-kacheln a:focus-visible { outline: 3px solid #1e88c8; outline-offset: 2px; }
.schule-kacheln .schule-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 14px; background: linear-gradient(135deg, #8bc34a, #507a10); color: #fff; }
.schule-kacheln a:nth-child(even) .schule-icon { background: linear-gradient(135deg, #4aa3df, #1e88c8); }
.schule-kacheln .schule-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.schule-kacheln strong { display: block; color: #27360a; font-size: 21px; line-height: 1.25; font-weight: 700; }
.schule-kacheln .schule-sub { display: block; color: #555; font-size: 16px; line-height: 1.4; }
.schule-kacheln .schule-text { display: flex; flex-direction: column; flex: 1 1 auto; }
/* "Mehr erfahren" in allen Kacheln auf gleicher Höhe (unten), auch bei zweizeiligem Untertitel */
.schule-kacheln .schule-mehr { display: block; margin-top: auto; padding-top: 10px; color: #3f6309; font-size: 15px; font-weight: 700; }
.schule-kacheln .schule-mehr::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.schule-kacheln a:hover .schule-mehr::after { transform: translateX(4px); }
@media (max-width: 1150px) { .schule-kacheln { grid-template-columns: repeat(2, 1fr); gap: 20px; } .schule-kacheln a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 520px) { .schule-willkommen .schule-eyebrow { font-size: 12.5px; letter-spacing: .02em; padding: 4px 10px; border-radius: 12px; } .schule-kacheln { grid-template-columns: 1fr; gap: 12px; } .schule-kacheln a { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; } .schule-kacheln .schule-icon { margin: 0; width: 46px; height: 46px; } .schule-kacheln .schule-text { flex: 1; } .schule-willkommen > p { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .schule-kacheln a, .schule-kacheln .schule-mehr::after { transition: none; } .schule-kacheln a:hover { transform: none; } }
/* Abstand vor Unterüberschriften nachfolgender Abschnitte */
body:not(.home) #content .post-content .fusion-fullwidth + .fusion-fullwidth{padding-top:2em !important}
/* Partner und Projekte */
.schule-partner{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:24px}
.schule-partner__karte{border:1px solid #e3ead6;border-radius:12px;padding:18px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column}
.schule-partner__bild{height:150px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.schule-partner__bild img{max-width:100%;max-height:150px;width:auto;height:auto;object-fit:contain}
.schule-partner__karte h3{margin:0 0 8px;font-size:1.05em}
.schule-partner__karte p{margin:0 0 8px}
@media(max-width:900px){.schule-partner{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.schule-partner{grid-template-columns:1fr}}
.schule-partner__intro{max-width:52em;font-size:1.05em;color:#4a4a4a}
.schule-partner__karte{transition:transform .2s,box-shadow .2s,border-color .2s}
.schule-partner__karte:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(40,60,10,.13);border-color:#c8d9b4}
.schule-partner__karte h3{color:#27360a}
.schule-partner__link{margin-top:auto}
.schule-partner__link a{font-weight:700;color:#3f6309}
.schule-partner__link a:hover{color:#27360a}
/* Partnerseite: Überschriften */
body.page-id-23078 #wrapper #main .fusion-text h2{font-size:clamp(22px,3vw,28px)!important;line-height:1.25;color:#27360a!important;margin:38px 0 14px;padding-bottom:8px;border-bottom:2px solid #e3ead6}
.page-id-23078 .fusion-text > p{max-width:52em}
@media(prefers-reduced-motion:reduce){.schule-partner__karte{transition:none}.schule-partner__karte:hover{transform:none}}
