/* ==========================================================================
   Florian Uhl – Theme-Styles
   Farben, Schriften und Buttons kommen aus theme.json.
   Hier liegt nur das Layout der Seitenbereiche.
   ========================================================================== */

:root {
	--uhl-primary: #51839E;
	--uhl-primary-dark: #3D6880;
	--uhl-primary-deep: #2C5066;
	--uhl-light: #F4F7F9;
	--uhl-cream: #EBE7D9;
	--uhl-coral: #DC5847;
	--uhl-text: #1F2A30;
	--uhl-muted: #42525B;
	--uhl-border: #D5E0E6;
	--uhl-heading: var(--wp--preset--font-family--heading, Quicksand, sans-serif);
	--uhl-radius: 14px;
}

body { margin: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks { padding: 0; }

:focus-visible { outline: 3px solid var(--uhl-coral); outline-offset: 3px; }

/* ---------- Grundbausteine ---------- */

.uhl-container {
	max-width: 1200px;
	margin-inline: auto !important;
	padding-inline: 24px;
	box-sizing: border-box;
	width: 100%;
}

.uhl-main { margin: 0; }
.uhl-content > * { margin-block: 0 !important; }

.uhl-section { padding-block: 88px; }
.uhl-section--light { background: var(--uhl-light); }
.uhl-section--tight { padding-block: 56px; }

.uhl-eyebrow {
	font-family: var(--uhl-heading);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--uhl-primary-dark);
	margin: 0 0 .5rem !important;
}

.uhl-lead { font-size: 1.25rem; color: var(--uhl-muted); max-width: 780px; }
.uhl-muted { color: var(--uhl-muted); }

.uhl-intro > * + * { margin-top: 1rem !important; }
.uhl-intro { margin-bottom: 40px !important; }

/* Bilder ohne Standardabstand */
.uhl-content .wp-block-image,
.uhl-header .wp-block-image { margin: 0; }
.uhl-content .wp-block-image img { display: block; }

/* Buttons */
.uhl-content .wp-block-buttons { gap: 14px; margin-top: 1.5rem !important; }
.wp-block-button__link { min-height: 52px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--uhl-primary-dark);
	border: 2px solid var(--uhl-primary-dark);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #E8F0F4; color: var(--uhl-primary-deep); }
.uhl-btn-light > .wp-block-button__link { background: #fff; color: var(--uhl-primary-deep); }
.uhl-btn-light > .wp-block-button__link:hover { background: #E8F0F4; color: var(--uhl-primary-deep); }
.uhl-btn-ghost > .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }
.uhl-btn-ghost > .wp-block-button__link:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Kopfbereich ---------- */

.uhl-header-top {
	background: linear-gradient(90deg, var(--uhl-primary) 0%, var(--uhl-primary) 22%, #DCE8EE 100%);
}
.uhl-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 18px;
}
.uhl-header-row > * { margin: 0 !important; }
.uhl-logo img { height: 104px; width: auto; display: block; }
.uhl-logo a { display: block; line-height: 0; }
.uhl-tagline {
	max-width: 440px;
	text-align: right;
	font-family: var(--uhl-heading);
	font-weight: 600;
	font-size: 1.375rem;
	line-height: 1.35;
	color: var(--uhl-primary-deep);
}

.uhl-navbar { background: var(--uhl-primary); }
.uhl-nav { font-family: var(--uhl-heading); font-weight: 700; font-size: 1.1875rem; gap: 4px !important; }
.uhl-nav .wp-block-navigation-item__content {
	color: #fff;
	text-decoration: none;
	padding: 14px 20px;
	border-bottom: 3px solid transparent;
	display: block;
}
.uhl-nav .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.16); color: #fff; }
.uhl-nav .current-menu-item > .wp-block-navigation-item__content,
.uhl-nav .wp-block-navigation-item__content[aria-current="page"] { border-bottom-color: var(--uhl-cream); }
.uhl-nav .wp-block-navigation__responsive-container-open { color: #fff; padding: 12px 4px; }
.uhl-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.uhl-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.uhl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.375rem;
	padding: 14px 8px;
	border-bottom: 1px solid rgba(255,255,255,.25);
}

@media (max-width: 900px) {
	.uhl-tagline { display: none; }
}
@media (max-width: 600px) {
	.uhl-logo img { height: 64px; }
	.uhl-header-row { padding-block: 12px; }
	.uhl-header-top { background: linear-gradient(90deg, var(--uhl-primary) 0%, var(--uhl-primary) 45%, #DCE8EE 100%); }
	.uhl-nav { justify-content: flex-end; }
}

/* ---------- Einstieg (Startseite) ---------- */

.uhl-hero-images {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	margin: 0 !important;
}
.uhl-hero-images > .wp-block-column { flex: 1 1 50% !important; min-width: 0; margin: 0 !important; }
.uhl-hero-images > .wp-block-column + .wp-block-column { border-left: 4px solid #fff; }
.uhl-hero-images img { width: 100%; height: 440px; object-fit: cover; }

.uhl-hero-card {
	position: relative;
	max-width: 860px;
	margin: -150px auto 0 !important;
	background: #fff;
	border: 1px solid var(--uhl-border);
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(31,42,48,.10);
	padding: 48px 56px;
	text-align: center;
	box-sizing: border-box;
}
.uhl-hero-card > * { margin-block: 0 !important; }
.uhl-hero-card > * + * { margin-top: 18px !important; }
.uhl-hero-card .uhl-hero-name {
	font-family: var(--uhl-heading);
	font-weight: 700;
	font-size: 1.375rem;
	letter-spacing: .04em;
	color: var(--uhl-primary-dark);
}
.uhl-hero-card .uhl-lead { margin-inline: auto; }
.uhl-hero-card .wp-block-buttons { justify-content: center; margin-top: 26px !important; }

@media (max-width: 700px) {
	.uhl-hero-images img { height: 210px; }
	.uhl-hero-images > .wp-block-column + .wp-block-column { border-left-width: 3px; }
	.uhl-hero-card { margin-top: -48px !important; padding: 28px 22px; text-align: left; }
	.uhl-hero-card .wp-block-buttons { justify-content: stretch; }
	.uhl-hero-card .wp-block-button { width: 100%; }
	.uhl-hero-card .wp-block-button__link { width: 100%; }
}

/* ---------- Leitsatz / Zitate (Koralle-Linie wie im Logo) ---------- */

.uhl-quote {
	max-width: 900px;
	border-left: 4px solid var(--uhl-coral);
	padding-left: 28px;
	box-sizing: border-box;
}
.uhl-quote p {
	margin: 0;
	font-family: var(--uhl-heading);
	font-weight: 600;
	font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
	line-height: 1.5;
	color: var(--uhl-primary-deep);
}

/* ---------- Kachel-Raster ---------- */

.uhl-grid { display: grid !important; gap: 24px; }
.uhl-grid > * { margin: 0 !important; }
.uhl-grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.uhl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.uhl-grid--2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px; }
@media (max-width: 520px) {
	.uhl-grid--2, .uhl-grid--3 { grid-template-columns: 1fr; }
}

.uhl-tile,
.uhl-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--uhl-border);
	border-radius: var(--uhl-radius);
	padding: 32px 28px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}
.uhl-tile > *, .uhl-card > * { margin: 0 !important; }
.uhl-tile > * + *, .uhl-card > * + * { margin-top: 14px !important; }
.uhl-tile { transition: border-color .2s, box-shadow .2s, transform .2s; }
.uhl-tile:hover { border-color: var(--uhl-primary); box-shadow: 0 10px 28px rgba(31,42,48,.08); transform: translateY(-2px); }
.uhl-tile h2, .uhl-tile h3 { font-size: 1.375rem; }
.uhl-tile p { font-size: 1.0625rem; color: var(--uhl-muted); }
.uhl-tile .uhl-tile-items { font-size: .95rem; color: #5A6A73; }
.uhl-tile .uhl-more { margin-top: auto !important; padding-top: 14px; font-weight: 600; }
.uhl-tile .uhl-more a { text-decoration: none; color: var(--uhl-primary-dark); }
/* ganze Kachel klickbar */
.uhl-tile .uhl-more a::after { content: ""; position: absolute; inset: 0; border-radius: var(--uhl-radius); }
.uhl-tile--alt { background: #FBFAF6; border-color: #DDD8C8; }

.uhl-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--uhl-primary); display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
.uhl-icon img { width: 30px !important; height: 30px !important; }
.uhl-icon--alt { background: var(--uhl-cream); }
.uhl-icon--lg { width: 80px; height: 80px; border-radius: 18px; }
.uhl-icon--lg img { width: 40px !important; height: 40px !important; }

.uhl-card h2 { font-size: 1.625rem; }
.uhl-card h3 { font-size: 1.3125rem; }
.uhl-card ul { margin: 0; padding-left: 22px; color: var(--uhl-muted); }
.uhl-card li { margin-bottom: 8px; }
.uhl-card--partner { background: #FBFAF6; border-color: #DDD8C8; }

.uhl-badge {
	align-self: flex-start;
	font-size: .875rem !important;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	background: #E8F0F4;
	color: var(--uhl-primary-deep);
}
.uhl-badge--self { background: var(--uhl-primary-dark); color: #fff; }
.uhl-badge--partner { background: var(--uhl-cream); color: var(--uhl-primary-deep); }

/* ---------- Kurzvorstellung / Über mich ---------- */

.uhl-split { display: flex !important; flex-wrap: wrap; align-items: center; gap: 64px; }
.uhl-split > * { margin: 0 !important; }
.uhl-split--top { align-items: flex-start; }
.uhl-split-text { flex: 1 1 480px; }
.uhl-split-text > * { margin-block: 0 !important; }
.uhl-split-text > * + * { margin-top: 20px !important; }
.uhl-split-text p { font-size: 1.1875rem; line-height: 1.75; color: var(--uhl-muted); }
.uhl-split-text .uhl-eyebrow { font-size: 1.0625rem; line-height: 1.4; color: var(--uhl-primary-dark); }

.uhl-frame {
	padding: 10px;
	background: #fff;
	border: 1px solid var(--uhl-border);
	border-radius: 16px;
	box-sizing: border-box;
}
.uhl-frame img { border-radius: 10px; width: 100%; object-fit: cover; }
.uhl-portrait { flex: 0 1 320px; }
.uhl-portrait img { aspect-ratio: 2 / 3; }
.uhl-portrait--tall { flex: 0 1 380px; }
.uhl-portrait--tall img { aspect-ratio: 7 / 12; object-position: 50% 20%; }
.uhl-photo-wide img { aspect-ratio: 3 / 2; }

@media (max-width: 700px) {
	.uhl-split { gap: 28px; }
	.uhl-split--reverse-mobile { flex-direction: column-reverse; align-items: stretch; }
	.uhl-portrait, .uhl-portrait--tall { flex-basis: 100%; max-width: 360px; margin-inline: auto !important; }
	.uhl-portrait--tall img { aspect-ratio: 4 / 5; object-position: 50% 15%; }
}

/* Stationen */
.uhl-timeline { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.uhl-timeline li {
	margin: 0;
	background: #fff;
	border: 1px solid var(--uhl-border);
	border-top: 4px solid var(--uhl-primary);
	border-radius: 12px;
	padding: 22px 24px;
	color: var(--uhl-muted);
	font-size: 1.0625rem;
	line-height: 1.5;
}
.uhl-timeline li:last-child { border-top-color: var(--uhl-coral); }
.uhl-timeline strong { display: block; font-family: var(--uhl-heading); font-size: 1.625rem; color: var(--uhl-primary-dark); margin-bottom: 6px; }

/* ---------- Detailseiten ---------- */

.uhl-breadcrumb { font-size: 1rem; color: #5A6A73; margin-bottom: 28px !important; }
.uhl-page-head { display: flex !important; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.uhl-page-head > * { margin: 0 !important; }
.uhl-page-head-text { flex: 1 1 600px; }
.uhl-page-head-text > * { margin-block: 0 !important; }
.uhl-page-head-text > * + * { margin-top: 18px !important; }
.uhl-motto { border-left: 4px solid var(--uhl-coral); padding-left: 14px; font-family: var(--uhl-heading); font-weight: 700; font-size: 1.5rem; color: var(--uhl-primary-deep); }

.uhl-note {
	background: #FBFAF6;
	border: 1px solid #DDD8C8;
	border-radius: var(--uhl-radius);
	padding: 24px 28px;
	margin-top: 32px !important;
	color: var(--uhl-muted);
	font-size: 1rem;
}
.uhl-note > * { margin-block: 0 !important; }
.uhl-note > * + * { margin-top: 8px !important; }
.uhl-note strong { color: var(--uhl-text); }

/* ---------- Kontakt ---------- */

.uhl-contact-card { flex-direction: row !important; align-items: center; gap: 18px; padding: 22px 24px; }
.uhl-contact-card > * + * { margin-top: 0 !important; }
.uhl-contact-card .uhl-icon { width: 52px; height: 52px; border-radius: 12px; }
.uhl-contact-card .uhl-icon img { width: 24px !important; height: 24px !important; }
.uhl-contact-card p { margin: 0; font-size: 1.1875rem; font-weight: 600; color: var(--uhl-text); }
.uhl-contact-card p a { color: var(--uhl-text); text-decoration: none; }
.uhl-contact-card p a::after { content: ""; position: absolute; inset: 0; border-radius: var(--uhl-radius); }
.uhl-contact-card small, .uhl-contact-card .uhl-label { display: block; font-size: .9375rem; font-weight: 400; color: #5A6A73; }
.uhl-narrow { max-width: 1000px !important; }

/* ---------- Abschluss-Band ---------- */

.uhl-cta { background: var(--uhl-primary-dark); padding-block: 80px; color: #fff; }
.uhl-cta-row { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.uhl-cta-row > * { margin: 0 !important; }
.uhl-cta-text { max-width: 600px; }
.uhl-cta-text > * { margin-block: 0 !important; }
.uhl-cta-text > * + * { margin-top: 10px !important; }
.uhl-cta h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.125rem); }
.uhl-cta p { color: #E5ECEF; font-size: 1.1875rem; }
.uhl-cta .wp-block-buttons { margin-top: 0 !important; gap: 12px; }
@media (max-width: 600px) {
	.uhl-cta { padding-block: 48px; }
	.uhl-cta .wp-block-buttons, .uhl-cta .wp-block-button, .uhl-cta .wp-block-button__link { width: 100%; }
}

/* ---------- Fußbereich ---------- */

.uhl-footer { background: var(--uhl-text); color: #C9D4DA; padding: 48px 0 32px; font-size: 1rem; }
.uhl-footer p { margin: 0 !important; }
.uhl-footer a { color: #E5ECEF; }
.uhl-footer a:hover { color: #fff; }
.uhl-footer-row { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.uhl-footer-col > * + * { margin-top: 6px !important; }
.uhl-footer-name { font-family: var(--uhl-heading); font-weight: 700; font-size: 1.25rem; color: #fff; }
.uhl-footer-bottom { border-top: 1px solid #3A4850; margin-top: 28px !important; padding-top: 20px; display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .9375rem; }
.uhl-footer-legal a + a { margin-left: 24px; }

/* ---------- Normale Textseiten (Impressum, Datenschutz, neue Seiten) ---------- */

.uhl-page { padding-block: 64px 88px; max-width: 860px !important; }
.uhl-page .wp-block-post-title { margin-bottom: 32px; }
.uhl-prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.uhl-prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }

@media (max-width: 600px) {
	.uhl-section { padding-block: 56px; }
	.uhl-container { padding-inline: 18px; }
}

/* ---------- Ergänzungen ---------- */
.uhl-tile-head { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.uhl-tile-head > * { margin: 0 !important; }
.uhl-tile--row { flex-direction: row; gap: 24px; padding: 36px; }
.uhl-tile--row > * + * { margin-top: 0 !important; }
.uhl-tile--row .uhl-icon { width: 64px; height: 64px; }
.uhl-tile--row .uhl-icon img { width: 32px !important; height: 32px !important; }
.uhl-tile-body { display: flex; flex-direction: column; flex: 1; }
.uhl-tile-body > * { margin: 0 !important; }
.uhl-tile-body > * + * { margin-top: 12px !important; }
.uhl-tile-body h2 { font-size: 1.5rem; }
@media (max-width: 520px) { .uhl-tile--row { flex-direction: column; padding: 26px 22px; } .uhl-tile--row > * + * { margin-top: 16px !important; } }
.uhl-contact-text > * { margin: 0 !important; }
.uhl-quote--spaced { margin: 40px auto 0 !important; }
mark { background: #FDECEA; color: #A63A2B; padding: 0 4px; border-radius: 4px; }
