/*
Theme Name: Siebenbürger Traun (Twenty Twenty-Five Child)
Template: twentytwentyfive
Description: Design-Ebene für die Siebenbürger Traun auf Basis des offiziellen WordPress-Themes Twenty Twenty-Five. Das Eltern-Theme bekommt weiter alle Updates von WordPress; dieses Child-Theme enthält nur Farben, Schriften, Abstände, Kopf- und Fußbereich und Block-Vorlagen – keine eigene Programmlogik.
Author: Siebenbürger Traun
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siebenbuerger-traun-tt5
*/

/* ------------------------------------------------------------
   Kleine Textstile – im Editor über „Erweitert › Zusätzliche CSS-Klasse“
   kicker   = rote Dachzeile in Großbuchstaben
   lead     = größerer Einleitungstext
   brotkrumen = Pfad „Start / Gruppen / Jugend“
   ------------------------------------------------------------ */
.kicker {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warmrot);
	margin-bottom: 0;
}
.lead {
	font-size: var(--wp--preset--font-size--einleitung);
	color: var(--wp--preset--color--grau-text);
}
.brotkrumen {
	font-size: var(--wp--preset--font-size--klein);
	color: var(--wp--preset--color--grau-text);
}
.brotkrumen a { color: inherit; }

/* Fokus immer sichtbar (Tastaturbedienung) */
a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--ocker);
	outline-offset: 2px;
}

/* Buttons: Mindesthöhe 44 px, Umriss-Variante */
.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--heritage-blau);
	border: 2px solid currentColor;
	padding: 12px 26px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--wp--preset--color--warmrot);
}

/* Bilder: weiche Ecken */
.wp-block-image img,
.wp-block-post-featured-image img { border-radius: 8px; }
.wp-block-image figcaption {
	text-align: left;
	border-left: 2px solid var(--wp--preset--color--ocker);
	padding-left: 12px;
}

/* ------------------------------------------------------------
   Kopf & Fuß
   ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--wp--preset--color--rahmen); background: #fff; }
.site-header .wp-block-site-title a { color: var(--wp--preset--color--heritage-blau); }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--warmrot); }
.site-header .wp-block-navigation .current-menu-item > a,
.site-header .wp-block-navigation [aria-current="page"] {
	color: var(--wp--preset--color--warmrot);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--warmrot);
}
.site-header .wp-block-button__link { padding: 10px 20px; min-height: 44px; }

.site-footer, .site-footer p { color: #DCE3EC; }
.site-footer a { color: #DCE3EC; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-titel { color: #fff; font-weight: 700; }
.site-footer .footer-unten {
	border-top: 1px solid #3A5578;
	font-size: 14px;
}

/* ------------------------------------------------------------
   Dunkle Flächen: Cover, blaue und rote Bänder
   ------------------------------------------------------------ */
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3, .wp-block-cover p,
.has-heritage-blau-background-color h1, .has-heritage-blau-background-color h2,
.has-heritage-blau-background-color h3, .has-heritage-blau-background-color p,
.has-warmrot-background-color h1, .has-warmrot-background-color h2,
.has-warmrot-background-color h3, .has-warmrot-background-color p { color: #fff; }

.wp-block-cover .kicker,
.has-heritage-blau-background-color .kicker { color: var(--wp--preset--color--gold-hell); }
.wp-block-cover .lead,
.has-heritage-blau-background-color .lead { color: #E8EDF3; }
.wp-block-cover .brotkrumen,
.wp-block-cover .brotkrumen a { color: #C9D3DF; }
.has-heritage-blau-background-color a:not(.wp-element-button),
.has-warmrot-background-color a:not(.wp-element-button) { color: #fff; }

.wp-block-cover .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.has-heritage-blau-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--heritage-blau);
}
.has-warmrot-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--warmrot);
}
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link,
.has-heritage-blau-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-warmrot-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }

/* ------------------------------------------------------------
   Karten (Blockstil „Karte“ / „Karte mit Rahmen“ auf Gruppen)
   ------------------------------------------------------------ */
.wp-block-group.is-style-karte,
.wp-block-group.is-style-karte-rahmen {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}
.wp-block-group.is-style-karte-rahmen { border: 1px solid var(--wp--preset--color--rahmen); }
.has-weiss-background-color .wp-block-group.is-style-karte,
.wp-block-group.is-style-karte.auf-weiss { background: var(--wp--preset--color--hellgrau); }
.is-style-karte > .wp-block-image,
.is-style-karte-rahmen > .wp-block-image { margin: 0; }
.is-style-karte > .wp-block-image img,
.is-style-karte-rahmen > .wp-block-image img { border-radius: 0; width: 100%; }
.karte-inhalt { padding: 24px; }
.karte-inhalt > * { margin-top: 0; margin-bottom: 0; }
.karte-inhalt > * + * { margin-top: 8px; }
.karte-inhalt h3 a { text-decoration: none; color: var(--wp--preset--color--heritage-blau); }
.karte-inhalt h3 a:hover { color: var(--wp--preset--color--warmrot); }
.karte-inhalt .kicker { font-size: 13px; letter-spacing: .1em; }
.karte-inhalt p:not(.kicker) { font-size: 16px; color: var(--wp--preset--color--grau-text); }

/* Veranstaltungs-Karte: Datums-Kachel */
.datum-kachel {
	flex: none;
	width: 80px;
	min-height: 88px;
	border-radius: 8px;
	background: var(--wp--preset--color--heritage-blau);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
	padding: 8px 4px;
}
.datum-kachel p { color: #fff; margin: 0; text-align: center; }
.datum-kachel .tag { font-size: 30px; font-weight: 700; }
.datum-kachel .monat { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.veranstaltung { padding: 24px; }
.veranstaltung .geaendert { color: var(--wp--preset--color--warmrot); font-weight: 700; font-size: 15px; }
.veranstaltung dl, .veranstaltung .eckdaten { font-size: 16px; }

/* Kontaktkarte */
.kontaktkarte { padding: 28px; }
.kontaktkarte a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.kontaktkarte .stand { font-size: 14px; color: var(--wp--preset--color--grau-text); }

/* Fakten-Leiste (Steckbrief einer Gruppe) */
.fakt strong { display: block; color: var(--wp--preset--color--heritage-blau); }
.fakt { font-size: 16px; color: var(--wp--preset--color--grau-text); padding-left: 34px; position: relative; }
.fakt::before {
	content: "";
	position: absolute; left: 0; top: 2px;
	width: 22px; height: 22px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A33A3A' stroke-width='2.2'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}

/* Zeitleiste */
.zeitleiste { position: relative; }
.zeitleiste-eintrag {
	position: relative;
	padding-left: 40px;
	padding-bottom: 28px;
	margin-top: 0 !important;
}
.zeitleiste-eintrag::before {
	content: "";
	position: absolute; left: 0; top: 8px;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--wp--preset--color--ocker);
}
.zeitleiste-eintrag::after {
	content: "";
	position: absolute; left: 6px; top: 26px; bottom: 0;
	width: 2px; background: #E3D6BF;
}
.zeitleiste-eintrag:last-child::after { display: none; }
.zeitleiste-eintrag > * { margin: 0; }
.zeitleiste-eintrag > * + * { margin-top: 4px; }
.zeitleiste-eintrag .jahr { font-size: 24px; font-weight: 700; color: var(--wp--preset--color--warmrot); }
.zeitleiste-eintrag p:not(.jahr) { font-size: 16px; color: var(--wp--preset--color--grau-text); }

/* Downloadzeile */
.downloadzeile {
	border: 1px solid var(--wp--preset--color--rahmen);
	border-radius: 8px;
	padding: 16px 20px 16px 60px;
	position: relative;
	background: #fff;
}
.downloadzeile::before {
	content: "";
	position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317365D' stroke-width='1.8'%3E%3Cpath d='M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
}
.downloadzeile p { margin: 0; }
.downloadzeile .titel { font-weight: 700; color: var(--wp--preset--color--heritage-blau); }
.downloadzeile .meta { font-size: 14px; color: var(--wp--preset--color--grau-text); }

/* Hinweis-Box (z. B. vor sensiblen Inhalten) */
.hinweis {
	background: var(--wp--preset--color--off-white);
	border-radius: 8px;
	padding: 28px;
}

/* Inhaltsverzeichnis */
.inhaltsverzeichnis {
	border-top: 3px solid var(--wp--preset--color--heritage-blau);
	padding-top: 16px;
}
.inhaltsverzeichnis ul { list-style: none; padding: 0; margin: 0; }
.inhaltsverzeichnis li { padding: 6px 0; }
.inhaltsverzeichnis a { text-decoration: none; }
.inhaltsverzeichnis a:hover { text-decoration: underline; }

/* Ornament-Trenner (Blockstil auf „Trennzeichen“) */
.wp-block-separator.is-style-ornament {
	border: 0 !important;
	width: 120px !important;
	max-width: 120px;
	height: 12px;
	margin-left: 0;
	opacity: 1;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='%23C58A2A'%3E%3Crect x='0' y='5' width='44' height='2'/%3E%3Cpath d='M60 0 66 6 60 12 54 6Z'/%3E%3Cpath d='M50 3 53 6 50 9 47 6Z'/%3E%3Cpath d='M70 3 73 6 70 9 67 6Z'/%3E%3Crect x='76' y='5' width='44' height='2'/%3E%3C/svg%3E");
}
.has-text-align-center .wp-block-separator.is-style-ornament,
.wp-block-separator.is-style-ornament.aligncenter { margin-left: auto; margin-right: auto; }

/* Zitat ohne Balken links */
.wp-block-quote { border-left: 0; padding-left: 0; }
.wp-block-quote cite { font-family: var(--wp--preset--font-family--source-sans-3); font-style: normal; font-size: 16px; }

/* Beiträge im Raster */
.wp-block-post-template .wp-block-post-title a { text-decoration: none; }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--wp--preset--color--warmrot); }

/* „Nach oben“-Link */
.nach-oben a { font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
	.wp-block-buttons.volle-breite-mobil > .wp-block-button { width: 100%; }
	.wp-block-buttons.volle-breite-mobil .wp-block-button__link { width: 100%; }
}

/* Farbige Abschnitte nahtlos aneinander (kein Weißraum dazwischen) */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }
main > .wp-block-post-content:last-child > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--60)); }

/* Kategorien als Filter-Chips (Aktuelles) */
.kategorien { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.kategorien li a {
	display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
	padding: 10px 18px; border-radius: 999px; background: #fff;
	border: 1px solid #D4D9DF; text-decoration: none; font-weight: 600; font-size: 16px;
}
.kategorien li.current-cat a { background: var(--wp--preset--color--heritage-blau); color: #fff; border-color: transparent; }
