/*
Theme Name:         Plum Steuerberatung
Theme URI:          https://plum-steuerberatung.com/
Description:        Eigenständiges, schlankes WordPress-Theme für die Kanzlei Plum Steuerberatung. Nachbau des bisherigen Financia-Designs, jedoch ohne Alt-Plugin-Abhängigkeiten (WPBakery, Slider Revolution), PHP-8-kompatibel, mit lokal gehosteten Schriften, eingebautem Slider und vollständiger Customizer-Steuerung.
Version:            1.0.39
Author:             Erstellt für Steffen Prey
Requires at least:  6.0
Tested up to:       6.6
Requires PHP:       7.4
License:            GNU General Public License v2 or later
License URI:        http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        plum-steuerberatung
Tags:               custom-colors, custom-menu, custom-logo, featured-images, translation-ready, responsive-layout, block-styles
*/

/* =========================================================
   1. Design-Tokens (per Customizer überschreibbar)
   ========================================================= */
:root {
	--plum:         #410055; /* Sekundärfarbe / Links / Akzente */
	--plum-dark:    #340044; /* Hover */
	--plum-accent:  #5a1160; /* Tertiärfarbe */
	--plum-light:   #d49de8; /* heller Akzent */
	--plum-border:  #72007F; /* Rahmen des Inhaltscontainers */
	--heading:      #333333; /* Überschriften */
	--text:         #222222; /* Fließtext */
	--muted:        #949494; /* gedämpfter Text */
	--page-bg:      #e6e8f1; /* Seitenhintergrund */
	--container-bg: #ffffff; /* Inhaltscontainer */
	--maxwidth:     1200px;
	--heading-weight: 400;   /* Schriftstärke der Überschriften (Customizer) */
	--footer-bg:    #ece9f1; /* Footer-Hintergrund (Customizer) */
	--footer-text:  #444444; /* Footer-Text (Customizer) */
	--nav-line:     #c7c0d4; /* Linie unter der Navigation (Customizer) */
	--strength-circle: #72007F; /* Kreisfarbe der Stärken-Icons (Customizer) */
	/* Schriftarten (per Customizer wählbar) */
	--font-heading: 'Playfair Display', Georgia, serif;
	--font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-menu:    'Open Sans', Arial, sans-serif;
	--font-footer:  'Open Sans', Arial, sans-serif;
}

/* =========================================================
   2. Reset / Grundlagen
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background-color: var(--page-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--plum-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--heading);
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: var(--heading-weight, 400);
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.2em; }
blockquote {
	font-family: 'Lora', Georgia, serif;
	font-style: italic;
	border-left: 3px solid var(--plum);
	margin: 1.5em 0;
	padding: .5em 1.25em;
	color: var(--heading);
}
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid #e2e2ea; margin: 2em 0; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--plum); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color:#fff; }

/* =========================================================
   3. Layout: Boxed-Container (wie im Original)
   ========================================================= */
.site {
	max-width: var(--maxwidth);
	margin: 50px auto;
	background: var(--container-bg);
	border: 2px solid var(--plum-border);
}
@media (max-width: 1240px) {
	.site { margin: 0 auto; border-left: 0; border-right: 0; }
}
.container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}
.section { padding: 55px 0; }
.section--tight { padding: 35px 0; }
.text-center { text-align: center; }

/* =========================================================
   4. Kopfbereich / Menü
   ========================================================= */
.site-header {
	position: relative;
	background: var(--container-bg);
	text-align: center;
}
.site-branding {
	padding: 28px 20px 14px;
}
.site-branding img { display: inline-block; margin: 0 auto; }
.custom-logo-link img,
.site-logo img { max-width: 240px; width: auto; height: auto; }
.site-title-text {
	font-family: var(--font-heading);
	font-size: 1.8rem; color: var(--plum); margin: 0;
}
.site-description { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }

/* Sticky-Navigationsleiste */
.main-navigation {
	background: var(--container-bg);
	border-bottom: 2px solid var(--nav-line, #c7c0d4);
	position: sticky;
	top: 0;
	z-index: 200;
}
.main-navigation .container { position: relative; }
.nav-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	font-family: var(--font-menu);
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
	display: block;
	padding: 18px 16px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--plum);
	text-transform: uppercase;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
	color: var(--heading);
}
/* Untermenüs */
.nav-menu ul.sub-menu {
	list-style: none;
	position: absolute;
	left: 0; top: 100%;
	min-width: 220px;
	margin: 0; padding: 6px 0;
	background: #fff;
	border-top: 3px solid var(--plum);
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .18s ease;
	z-index: 300;
}
.nav-menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu ul.sub-menu a { display: block; padding: 9px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #545454; }
.nav-menu ul.sub-menu a:hover { color: var(--plum); background: #f6f4f8; }

/* Mobile-Toggle */
.menu-toggle {
	display: none;
	background: none; border: 0; cursor: pointer;
	font-size: 15px; font-weight: 600; color: var(--plum);
	padding: 14px 16px; width: 100%;
	align-items: center; justify-content: center; gap: 8px;
}
.menu-toggle .bars { display: inline-block; width: 22px; height: 2px; background: var(--plum); position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--plum); }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }

@media (max-width: 900px) {
	.menu-toggle { display: flex; }
	.nav-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
	}
	.nav-menu.is-open { display: flex; }
	.nav-menu > li > a { padding: 13px 16px; border-top: 1px solid #f0eef3; text-align: center; }
	.nav-menu ul.sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border-top: 0; background: #faf9fb; min-width: 0;
	}
	.nav-menu ul.sub-menu a { text-align: center; }
}

/* =========================================================
   5. Slider (eingebaut, ersetzt Slider Revolution)
   ========================================================= */
.hero-slider { position: relative; overflow: hidden; background: #d9dbe6; }
.hero-slider__track { position: relative; }
.hero-slide {
	display: none;
	position: relative;
}
.hero-slide.is-active { display: block; animation: slideFade .8s ease; }
@keyframes slideFade { from { opacity: .35; } to { opacity: 1; } }
.hero-slide img { width: 100%; height: auto; }
.hero-slide__caption {
	position: absolute; left: 0; right: 0; bottom: 8%;
	text-align: center; padding: 0 20px;
}
.hero-slide__caption .inner {
	display: inline-block;
	background: rgba(65,0,85,.78);
	color: #fff;
	padding: 14px 26px;
	max-width: 80%;
}
.hero-slide__caption h2 { color: #fff; margin: 0 0 .2em; font-size: 1.8rem; }
.hero-slide__caption p { color: #f3e9f6; margin: 0; }

.hero-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,.55); border: 0; cursor: pointer;
	width: 46px; height: 46px; font-size: 22px; color: var(--plum);
	display: flex; align-items: center; justify-content: center;
	transition: background .2s;
}
.hero-nav:hover { background: rgba(255,255,255,.9); }
.hero-nav--prev { left: 12px; }
.hero-nav--next { right: 12px; }
.hero-dots {
	position: absolute; left: 0; right: 0; bottom: 14px;
	display: flex; justify-content: center; gap: 9px;
}
.hero-dots button {
	width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff;
	background: transparent; padding: 0; cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }
@media (max-width: 600px) {
	.hero-slide__caption .inner { max-width: 96%; padding: 8px 14px; }
	.hero-slide__caption h2 { font-size: 1.15rem; }
	.hero-nav { width: 36px; height: 36px; font-size: 18px; }
}

/* =========================================================
   6. Sektions-Titel (Overline-Label + Playfair-Titel)
   ========================================================= */
.section-heading {
	position: relative;
	text-align: center;
	margin-bottom: 40px;
	padding: 26px 0;
	overflow: hidden;
}
/* Großes, blasses Wort als Wasserzeichen – vertikal mittig hinter dem Titel (wie im Original) */
.section-heading .overline {
	position: absolute;
	top: 50%; left: 0; right: 0;
	transform: translateY(-50%);
	max-width: 100%;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(2.4rem, 7vw, 4.4rem);
	line-height: 1;
	color: var(--plum-light);
	opacity: var(--overline-opacity, .35);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.section-heading h2 {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin: 0;
}

/* =========================================================
   7. Welcome / Intro
   ========================================================= */
/* Begrüßungstext linksbündig, schmaler (Richtwert ca. 12 Wörter pro Zeile) */
.intro-text { max-width: 640px; margin: 0 auto; text-align: left; color: var(--text); }

/* Welcome-Headline zweizeilig wie im Original */
.plum-welcome .section-heading h2 {
	max-width: 26ch;
	margin-left: auto;
	margin-right: auto;
	text-wrap: balance;
}

/* =========================================================
   8. Leistungen (3 Bild-Kacheln)
   ========================================================= */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
/* Einfarbige Pflaume-Kacheln mit weißer Schrift (wie im Original) */
.service-card {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 300px;
	padding: 24px 18px;
	text-decoration: none;
	transition: filter .25s ease;
}
.service-card:hover { filter: brightness(1.08); }
.service-card__title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.4;
	color: #fff;
}
.service-card:hover .service-card__title { color: #fff; }
@media (max-width: 800px) {
	.services-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
	.service-card { min-height: 200px; }
}

/* =========================================================
   9. Stärken (Icon-Boxen)
   ========================================================= */
.strengths-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}
.strength {
	text-align: center;
	padding: 10px 6px;
}
.strength__icon {
	width: 84px; height: 84px; margin: 0 auto 14px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--strength-circle, #72007F);
	color: #fff;
}
/* Kein Hover-Effekt – die Stärken sind keine Links */
.strength__icon svg { width: 42px; height: 42px; }
/* Eigene, hochgeladene Grafik füllt den runden Button aus */
.strength__icon--image { overflow: hidden; padding: 0; }
.strength__icon--image img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
.strength__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--heading);
	margin: 0;
}
@media (max-width: 900px) { .strengths-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .strengths-grid { grid-template-columns: repeat(2, 1fr); } }

/* Alternierender Sektionshintergrund */
.section--alt { background: #f7f6fa; }
/* Hintergrund der Sektion „Unsere Leistungen" – im Customizer einstellbar */
.plum-services { background: var(--services-bg, #f7f6fa); }

/* =========================================================
   10. Inhaltsseiten
   ========================================================= */
/* Seitentitel mit Wasserzeichen-Wort – KEIN farbiger Balken (wie im Original) */
.page-heading {
	position: relative;
	text-align: center;
	overflow: hidden;
	padding: 30px 0;
	margin: 6px 0 8px;
}
/* Größerer Abstand zwischen Titel und Inhalt, wenn keine Breadcrumb angezeigt wird */
.page-heading + .entry-content { margin-top: 52px; }
.page-heading .overline {
	position: absolute;
	top: 50%; left: 0; right: 0;
	transform: translateY(-50%);
	max-width: 100%;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.4rem);
	line-height: 1;
	color: var(--plum-light);
	opacity: var(--overline-opacity, .35);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.page-heading h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--heading);
}
.breadcrumbs {
	text-align: center;
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 52px;
}
.breadcrumbs a { color: var(--plum); }

.entry-content { max-width: 1000px; margin: 0 auto; }
.entry-content img { margin: 10px 0; }
.entry-content h2 { color: var(--heading); margin-top: 1.4em; }
.entry-content h3 { color: var(--heading); }
.entry-content a { text-decoration: underline; }
.entry-content ul li { margin-bottom: .35em; }
/* Schmale Textspalte (Richtwert ca. 12 Wörter pro Zeile) */
.entry-content .plum-narrow { max-width: 640px; }

/* Zwei-/Dreispaltige Info-Blöcke via Gutenberg-Spalten bleiben nutzbar */
.wp-block-columns { gap: 30px; }
/* Mehr Abstand zwischen Bild und Text in den Leistungs-Zeilen (Bild links / Text rechts) */
.entry-content .wp-block-columns.are-vertically-aligned-center { gap: 50px; }
@media (max-width: 800px) {
	.entry-content .wp-block-columns.are-vertically-aligned-center { gap: 20px; }
}
/* "Über uns": größerer vertikaler Abstand zwischen den beiden gestapelten
   Bildern in der rechten Spalte – analog zum Original */
.entry-content .wp-block-column .wp-block-image + .wp-block-image { margin-top: 45px; }
@media (max-width: 800px) {
	.entry-content .wp-block-column .wp-block-image + .wp-block-image { margin-top: 22px; }
}
/* "Über uns": Fließtext auf ca. 10 Wörter pro Zeile begrenzen */
.entry-content .wp-block-columns.are-vertically-aligned-top .wp-block-column p { max-width: 520px; }
/* "Über uns": die beiden Zwischenüberschriften im betonten Stil, aber linksbündig
   (Pflaumefarbe, Playfair, nicht fett, feine Linie darüber). */
.entry-content .wp-block-columns.are-vertically-aligned-top .wp-block-column h3 {
	text-align: left;
	color: var(--plum);
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 1.6rem;
	line-height: 1.25;
	letter-spacing: .01em;
	margin-top: 34px;
}
.entry-content .wp-block-columns.are-vertically-aligned-top .wp-block-column h3:first-child {
	margin-top: 0;
}
/* "Über uns": Überschrift „Unsere Mitarbeiter" zentriert, mit blassem
   Wasserzeichen-Wort dahinter (Text via Customizer), feiner Linie darüber
   (volle Breite: Text bis Bilder) und mehr Weißraum oben.
   Umgesetzt direkt auf der bestehenden Überschrift – kein Inhalts-Import nötig. */
.entry-content .wp-block-columns + h2 {
	position: relative;
	z-index: 0;
	text-align: center;
	color: var(--heading);
	border-top: 1px solid var(--nav-line);
	margin-top: 52px;
	padding: 42px 0 24px;
	overflow: hidden;
}
.entry-content .wp-block-columns + h2::before {
	content: var(--team-overline, "Coworkers");
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	z-index: -1;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(2.4rem, 7vw, 4.4rem);
	line-height: 1;
	color: var(--plum-light);
	opacity: var(--overline-opacity, .35);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
/* ---------------------------------------------------------
   Wiederverwendbarer Blockstil „Plum – Betonte Überschrift"
   Im Editor als Stil für Überschrift/Absatz wählbar (Klasse is-style-plum-accent).
   Wird zusätzlich automatisch auf die „Auszüge …"-Zeile der Seite Leistungen
   angewendet, damit sie ohne Inhalts-Import sofort erscheint.
   --------------------------------------------------------- */
.entry-content .is-style-plum-accent,
.entry-content .wp-block-columns.are-vertically-aligned-center + p {
	position: relative;
	text-align: center;
	color: var(--plum);
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 1.6rem;
	line-height: 1.25;
	letter-spacing: .01em;
	border-top: 1px solid var(--nav-line);
	margin-top: 48px;
	padding-top: 30px;
}
.entry-content .is-style-plum-accent strong,
.entry-content .wp-block-columns.are-vertically-aligned-center + p strong {
	font-weight: 400;
	color: inherit;
}
/* "Leistungen": Schluss-Absatz (nach dem zweispaltigen Block, ohne Ausrichtung)
   auf ca. 14 Wörter pro Zeile begrenzen. */
.entry-content .wp-block-columns:not([class*="are-vertically-aligned"]) + p {
	max-width: 740px;
}

/* Team-/Mitarbeiterliste */
.staff-list { columns: 2; column-gap: 40px; }
.staff-list .staff { break-inside: avoid; margin-bottom: 22px; }
.staff strong { color: var(--heading); }
@media (max-width: 700px) { .staff-list { columns: 1; } }

/* Stellenanzeige-Kasten (Wir suchen) – zentriert mit Rahmen wie im Original */
.job-box {
	border: 2px solid var(--plum-border);
	padding: 28px 32px;
	max-width: 720px;
	margin: 8px auto 26px;
	text-align: center;
}
.job-box ul {
	display: inline-block;
	text-align: left;
	margin: 0 auto;
}
/* Stellenanzeige ohne Rahmen */
.job-plain { max-width: 720px; margin: 8px auto 26px; text-align: center; }
.job-plain ul { display: inline-block; text-align: left; margin: 0 auto; }
/* Text unterhalb des Kastens: gleiche Breite und Ausrichtung wie der Kasten */
.job-box ~ p, .job-plain ~ p { max-width: 720px; margin-left: auto; margin-right: auto; }

/* =========================================================
   11. Footer
   ========================================================= */
.site-footer {
	background: var(--footer-bg, #ece9f1);
	color: var(--footer-text, #444444);
	padding-left: 30px; /* wie bisheriges Custom-CSS */
	font-family: var(--font-footer);
}
.site-footer a { color: var(--plum); }
.site-footer a:hover { color: var(--plum-dark); }
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
	padding: 26px 20px;
	max-width: 1140px;
	margin: 0 auto;
}
/* Footer-Kontakt in drei Spalten (flacher, wie im Original) */
.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
	font-size: 14px;
	line-height: 1.6;
}
.footer-cols strong { color: inherit; }
@media (max-width: 700px) {
	.footer-cols { grid-template-columns: 1fr; gap: 14px; text-align: center; }
}
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 26px 20px; }
.footer-brand { font-size: 15px; margin-bottom: 14px; }
.footer-brand strong { color: inherit; }
.site-footer h3 {
	color: inherit; font-size: 1.15rem; margin-bottom: 14px;
	position: relative; padding-bottom: 10px;
}
.site-footer h3::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 40px; height: 2px; background: var(--plum);
}
.footer-bottom {
	text-align: center;
	padding: 16px 20px;
	border-top: 1px solid rgba(0,0,0,.12);
	font-size: 13px;
	color: var(--muted);
}
.footer-contact strong { color: inherit; }
.footer-contact p { margin: 0 0 1em; }

/* =========================================================
   12. Buttons / Helfer
   ========================================================= */
.btn {
	display: inline-block;
	background: var(--plum);
	color: #fff;
	padding: 12px 26px;
	font-weight: 600;
	border: 0; cursor: pointer;
	transition: background .2s ease;
}
.btn:hover { background: var(--plum-dark); color: #fff; }

::selection { background: var(--plum); color: #fff; }

/* WordPress-Standardklassen */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }

/* Pagination */
.pagination { text-align: center; margin: 30px 0; }
.pagination .page-numbers {
	display: inline-block; padding: 8px 14px; margin: 0 3px;
	border: 1px solid #ddd; color: var(--plum);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

/* Blog-/News-Liste */
.post-card {
	border-bottom: 1px solid #ececf2;
	padding-bottom: 26px; margin-bottom: 26px;
}
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--plum); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
