/*
Theme Name:   Tina in the Middle (Kadence Child)
Description:  Child-Theme für tinainthemiddle.com auf Basis von Kadence
Template:     kadence
Version:      1.19.0
Text Domain:  kadence-child
*/

/* Eigene Design-Anpassungen kommen ab hier darunter.
   Farben und Schriften werden im Customizer eingestellt, nicht hier. */

/* ==========================================================
   1. Schriften – liegen lokal im Ordner /fonts (DSGVO-konform,
      keine Verbindung zu Google). Lizenz: SIL Open Font License.
   ========================================================== */
@font-face {
	font-family: 'Lora';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/lora-latin-wght-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Lora';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/lora-latin-wght-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url('fonts/mulish-latin-wght-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Mulish';
	font-style: italic;
	font-weight: 200 1000;
	font-display: swap;
	src: url('fonts/mulish-latin-wght-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Josefin Sans';
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url('fonts/josefin-sans-latin-wght-normal.woff2') format('woff2');
}

/* Kadence verwendet diese Variablen für Text und Überschriften */
:root {
	--global-body-font-family: 'Mulish', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--global-heading-font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

/* Überschriften nicht fett, wie im Entwurf */
h1, h2, h3, h4, h5, h6,
.entry-title {
	font-weight: 500;
}

/* ==========================================================
   2. Menü – Großbuchstaben, Abstand, türkise Linie beim aktiven Punkt
   ========================================================== */
.header-navigation .header-menu-container ul li.menu-item > a,
.mobile-navigation ul li a {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 13px;
}
.header-navigation .header-menu-container > ul > li.current-menu-item > a {
	text-decoration: underline;
	text-decoration-color: var(--global-palette2);
	text-decoration-thickness: 2px;
	text-underline-offset: 10px;
}

@font-face {
	font-family: 'Great Vibes';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/great-vibes-latin-400-normal.woff2') format('woff2');
}

/* ==========================================================
   3. Allgemein – türkise Linie ganz oben
   ========================================================== */
body {
	border-top: 4px solid var(--global-palette2);
}

/* ==========================================================
   4. Startseite (Seite mit Blöcken, siehe startseite-bloecke.txt)
   ========================================================== */
.tina-script {
	font-family: 'Great Vibes', cursive;
	color: var(--global-palette1);
	font-size: 2.4rem;
	line-height: 1.2;
	margin-bottom: 0.2em;
}
.tina-hero {
	padding: 2.5rem 0 3rem;
}
.tina-hero h1 {
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	line-height: 1.3;
	margin-top: 0;
}
.tina-hero p:not(.tina-script) {
	color: var(--global-palette5);
}

/* Abschnittstitel „Neueste Beiträge“ mit feiner Linie */
h2.tina-abschnitt {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 1rem 0 2rem;
}
h2.tina-abschnitt::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e7e5e2;
}

/* Beitragsraster */
.tina-neueste .wp-block-post-template {
	gap: 3rem 2rem;
}
.tina-neueste .wp-block-post-featured-image {
	margin-bottom: 1rem;
}
.tina-neueste .wp-block-post-terms {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}
.tina-neueste .wp-block-post-terms a {
	color: var(--global-palette1);
	text-decoration: none;
}
.tina-neueste .wp-block-post-title {
	font-size: 1.35rem;
	line-height: 1.35;
	margin: 0 0 0.6rem;
}
.tina-neueste .wp-block-post-title a {
	color: var(--global-palette3);
	text-decoration: none;
}
.tina-neueste .wp-block-post-excerpt {
	font-size: 0.9rem;
	color: var(--global-palette5);
}
.tina-neueste .wp-block-read-more {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette1);
	text-decoration: none;
}

/* Button „Alle Beiträge ansehen“ */
.tina-button .wp-block-button__link {
	background: var(--global-palette1);
	color: #fff;
	border-radius: 0;
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.9em 2.2em;
}
.tina-button .wp-block-button__link:hover {
	background: var(--global-palette2);
}


/* Werbe-Hinweis unter dem Vorschaubild */
.tina-werbung {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette5);
	margin: -0.5rem 0 0.6rem;
}

/* ==========================================================
   5. Beitragsliste (Blog, Kategorien): ohne „Von Tina • Datum“
   ========================================================== */
.loop-entry .entry-meta {
	display: none;
}

/* Begrüßung über der Beitragsliste: über die ganze Breite des Rasters */
.tina-home-intro {
	grid-column: 1 / -1;
	width: 100%;
}
.tina-home-intro .tina-hero {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

/* Beitragsliste im Stil des Entwurfs */
.loop-entry .entry-taxonomies,
.loop-entry .entry-taxonomies a {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette1);
}
.loop-entry .entry-title {
	font-size: 1.35rem;
	line-height: 1.35;
}
.loop-entry .entry-title a {
	color: var(--global-palette3);
}
.loop-entry .entry-summary {
	font-size: 0.9rem;
	color: var(--global-palette5);
}
.loop-entry .more-link-wrap a,
.loop-entry a.post-more-link {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--global-palette1);
}

/* Werbe-Hinweis in der Beitragsliste: Beiträge mit Schlagwort „Werbung“ */
.loop-entry.tag-werbung .entry-content-wrap::before {
	content: "Werbung";
	display: block;
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette5);
	margin-bottom: 0.6rem;
}

/* Startseite: weniger Abstand zwischen Menü und Begrüßung */
.home .content-area {
	margin-top: 1.5rem;
}
.tina-home-intro .tina-hero {
	padding-top: 0.5rem;
	padding-bottom: 2rem;
}

/* ==========================================================
   6. Beitragsansicht
   ========================================================== */
/* Kategorie, Titel und Datum mittig; ohne „Von Tina“ */
.single-post .entry-header {
	text-align: center;
}
.single-post .entry-header .entry-meta {
	justify-content: center;
}
.single-post .entry-meta .posted-by {
	display: none;
}
.single-post .entry-header .entry-taxonomies,
.single-post .entry-header .entry-taxonomies a {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette1);
}
.single-post .entry-header .entry-meta {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--global-palette5);
}
.single-post .entry-header::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: var(--global-palette2);
	margin: 1.2rem auto 0;
}

/* Bildunterschriften */
.single-post .entry-content figcaption,
.single-post .entry-content .wp-caption-text {
	text-align: center;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--global-palette5);
	margin-top: 0.5rem;
}

/* Trennlinie als drei türkise Punkte */
.single-post .entry-content hr {
	border: 0;
	background: none;
	height: auto;
	text-align: center;
	margin: 2.5rem auto;
}
.single-post .entry-content hr::before {
	content: "\2022  \2022  \2022";
	color: var(--global-palette2);
	letter-spacing: 0.4em;
	white-space: pre;
}

/* Aufzählungspunkte türkis */
.single-post .entry-content ul li::marker {
	color: var(--global-palette2);
}

/* ==========================================================
   7. Footer dunkelbraun, alles mittig
   ========================================================== */
.site-footer,
.site-footer .site-footer-row-container-inner {
	background: #2a201c;
	color: #d9d4cf;
}
.site-footer .site-footer-section {
	justify-content: center;
	text-align: center;
}
.site-footer a {
	color: #fbfaf8;
}
.site-footer a:hover {
	color: var(--global-palette2);
}
.footer-navigation ul li a {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fbfaf8;
}
.site-footer .footer-html {
	font-size: 0.8rem;
	color: #b5aea8;
}

/* Ähnliche Beiträge als Textliste im hellen Kasten */
.tina-aehnliche {
	background: var(--global-palette7);
	padding: 1.5rem 1.8rem;
	margin: 3rem 0 1rem;
}
.tina-aehnliche-titel {
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette1);
	margin: 0 0 0.8rem;
}
.tina-aehnliche ul {
	margin: 0;
	padding-left: 1.2rem;
}
.tina-aehnliche li {
	margin-bottom: 0.4rem;
}
.tina-aehnliche a {
	color: var(--global-palette1);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Footer: Abstände kleiner, Menü-Links hell */
.site-footer .widget {
	margin-bottom: 0;
}
.site-bottom-footer-wrap .site-footer-row-container-inner {
	padding-top: 0;
}
.site-footer .footer-navigation .footer-menu-container > ul > li > a {
	color: #fbfaf8;
}
.site-footer .footer-navigation .footer-menu-container > ul > li > a:hover {
	color: var(--global-palette2);
}

/* Footer-Menü: hell, egal was Kadence einstellt */
.site-footer .footer-navigation a,
.site-footer .footer-navigation .menu-item a {
	color: #fbfaf8 !important;
	opacity: 1 !important;
}
.site-footer .footer-navigation a:hover {
	color: #3db3c4 !important;
}

/* ==========================================================
   8. Handy-Menü (aufgeklappt) in Footer-Farbe
   ========================================================== */
#mobile-drawer .drawer-inner,
.popup-drawer .drawer-inner {
	background: #2a201c !important;
	color: #fbfaf8;
}
#mobile-drawer .mobile-navigation ul li a,
.popup-drawer .mobile-navigation ul li a {
	color: #fbfaf8 !important;
}
#mobile-drawer .mobile-navigation ul li.current-menu-item > a,
#mobile-drawer .mobile-navigation ul li a:hover {
	color: #3db3c4 !important;
}
#mobile-drawer .drawer-header .drawer-toggle,
.popup-drawer .drawer-header .drawer-toggle {
	color: #fbfaf8 !important;
}

/* ==========================================================
   9. Seiten (About, Kooperation, Kontakt …): weniger Abstand oben
   ========================================================== */
.page .content-area {
	margin-top: 1.5rem;
}
.page .entry-header {
	margin-bottom: 1rem;
}
.page .entry-content > :first-child {
	margin-top: 0;
}

/* Werbe-Kennzeichnung über dem Titel im Beitrag (Schlagwort „Werbung“) */
.single-post article.tag-werbung .entry-header::before {
	content: "Werbung";
	display: inline-block;
	font-family: 'Josefin Sans', var(--global-body-font-family);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--global-palette5);
	border: 1px solid #e7e5e2;
	padding: 0.3em 0.8em;
	margin-bottom: 0.8rem;
}

/* ==========================================================
   10. Bilder und Videos im Beitrag einheitlich
   ========================================================== */
/* Alle Bilder mittig, kein Textumfluss mehr */
.single-post .entry-content img,
.single-post .entry-content .wp-block-image,
.single-post .entry-content figure,
.single-post .entry-content .wp-caption {
	display: block;
	float: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 100%;
	height: auto;
}
/* Große Bilder immer volle Spaltenbreite (kleine Bilder werden nicht hochgezogen) */
.single-post .entry-content img.size-large,
.single-post .entry-content img.size-full,
.single-post .entry-content .wp-block-image.size-large img,
.single-post .entry-content .wp-block-image.size-full img,
.single-post .entry-content .wp-caption {
	width: 100% !important;
}
/* Videos: volle Spaltenbreite im Format 16:9 */
.single-post .entry-content iframe[src*="youtube"],
.single-post .entry-content iframe[src*="vimeo"],
.single-post .entry-content .wp-block-embed,
.single-post .entry-content .embed-privacy-container {
	display: block;
	width: 100% !important;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.single-post .entry-content iframe[src*="youtube"],
.single-post .entry-content iframe[src*="vimeo"] {
	height: auto !important;
	aspect-ratio: 16 / 9;
}

/* ==========================================================
   11. Hinweisfenster VG Wort (ab 1.18.0)
   Beide Knöpfe gleich gestaltet, damit Ablehnen genauso leicht ist
   wie Zustimmen.
   ========================================================== */
.tina-vgw-hinweis {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 99999;
	max-width: 34rem;
	margin: 0 auto;
	padding: 1.1rem 1.25rem;
	background: #2a201c;
	color: #fbfaf8;
	border-top: 4px solid #3db3c4;
	border-radius: 6px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
	font-size: .9rem;
	line-height: 1.5;
}
.tina-vgw-hinweis[hidden] { display: none; }
.tina-vgw-hinweis p { margin: 0 0 .75rem; }
.tina-vgw-hinweis .tina-vgw-titel {
	font-family: var(--global-heading-font-family);
	font-size: 1.15rem;
	margin-bottom: .4rem;
}
.tina-vgw-hinweis a { color: #e6f4f6; text-decoration: underline; }
.tina-vgw-knoepfe { display: flex; gap: .75rem; }
.tina-vgw-knoepfe button {
	flex: 1;
	padding: .6rem 1rem;
	background: #fbfaf8;
	color: #2a201c;
	border: 0;
	border-radius: 4px;
	font-family: 'Josefin Sans', sans-serif;
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}
.tina-vgw-knoepfe button:hover,
.tina-vgw-knoepfe button:focus-visible {
	background: #3db3c4;
	color: #2a201c;
}
