/* =========================================================
   Sven Burkhard – Gestaltung
   Werte aus der früheren Squarespace-Seite (Vorlage 7.0 mit Seitenleiste) gemessen.
   ========================================================= */

:root {
	--sb-font: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif; /* freie Schrift (SIL OFL), nah an Proxima Nova */
	--sb-text: #666666;      /* Fliesstext */
	--sb-dunkel: #121212;    /* Titel, Überschriften */
	--sb-nav: #1f1f1f;       /* Menü */
	--sb-grau: #a3a3a3;      /* aktiver Menüpunkt, Hover, «Menu» */
	--sb-meta: #919191;      /* Datum, Tags */
	--sb-linie: #bbbbbb;
	--sb-knopf: #272727;
	--sb-luecke: 10px;       /* Abstand zwischen den Galeriebildern */
	--sb-links: 290px;       /* Beginn des Inhalts (50 + 180 + 60) */
	--sb-rechts: 65px;
	/* Leben um zu Lernen */
	--luzl-creme: #EEE3C7;
	--luzl-sand: #E2CEA3;
	--luzl-oliv: #5E5031;
	--luzl-oliv-mittel: #8E7A4F;
	--luzl-gold: #C69F62;
	--luzl-salbei: #B2B388;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--sb-text);
	font-family: var(--sb-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: .01em;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--sb-dunkel); text-decoration: none; transition: color .15s; }
a:hover { color: var(--sb-grau); }
.sb-content a { color: var(--sb-dunkel); font-weight: 600; }
.sb-content a:hover { color: var(--sb-grau); }

img { max-width: 100%; height: auto; display: block; }

strong, b { font-weight: 600; }

h1, h2, h3, h4 { color: var(--sb-dunkel); font-weight: 500; letter-spacing: 0; line-height: 1.2; margin: 0 0 .8em; }
.sb-content h1 { font-size: 27px; font-weight: 500; }
.sb-content h2 { font-size: 22px; }
.sb-content h3 { font-size: 15.6px; letter-spacing: .01em; }
.sb-content h4 { font-size: 14px; }

p { margin: 0 0 1em; }

hr, .wp-block-separator { border: 0; height: 1px; background: var(--sb-linie); margin: 34px 0; opacity: 1; }
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: 100%; max-width: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

button { font: inherit; }

/* ---------- Seitenleiste ---------- */

.sb-sidebar {
	position: fixed;
	top: 50px;
	left: 50px;
	width: 180px;
	bottom: 0;
	overflow-y: auto;
	z-index: 20;
}

.sb-sidebar__title {
	display: block;
	color: var(--sb-dunkel);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	margin-bottom: 30px;
}
.sb-sidebar__title span { display: block; }
.sb-sidebar__title:hover { color: var(--sb-dunkel); }

.sb-menu-toggle { display: none; }

.sb-nav { list-style: none; margin: 0; padding: 0; }
.sb-nav li { margin: 0; }
.sb-nav a { color: var(--sb-nav); display: inline-block; }
.sb-nav a:hover,
.sb-nav .current-menu-item > a,
.sb-nav .current_page_item > a,
.sb-nav .current-menu-ancestor > a { color: var(--sb-grau); }
.blog .sb-nav .current_page_parent > a,
.single-post .sb-nav .current_page_parent > a,
.archive .sb-nav .current_page_parent > a { color: var(--sb-grau); }

.sb-nav--haupt { font-size: 16px; font-weight: 500; line-height: 1.6; letter-spacing: -.01em; }
.sb-nav--haupt li { margin-bottom: 6.4px; }
.sb-nav--zweit { margin-top: 20px; font-size: 13px; line-height: 1.6; letter-spacing: 0; }
.sb-nav--zweit li { margin-bottom: 5.2px; }

.sb-slideshow-controls {
	position: fixed;
	left: 50px;
	bottom: 70px;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sb-nav);
}
.sb-slideshow-controls p { margin: 0 0 8px; }
.sb-slideshow-controls button,
.sb-diashow__mobil button {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--sb-nav); font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.sb-slideshow-controls button:hover,
.sb-diashow__mobil button:hover { color: var(--sb-grau); }
body.sb-diashow-offen .sb-slideshow-controls { display: block !important; }

/* ---------- Inhaltsbereich ---------- */

.sb-main {
	margin-left: var(--sb-links);
	padding: 40px var(--sb-rechts) 60px 0;
	min-height: 100vh;
}

.sb-page .sb-content,
.sb-page__title { padding: 0 10px; }
.sb-page__title { font-size: 27px; font-weight: 500; text-align: center; margin: 0 0 40px; }

.sb-content > * { max-width: 100%; }
.sb-content .wp-block-columns { gap: 34px; margin-bottom: 1em; }
.sb-content figure { margin: 0 0 1em; }
.sb-content figcaption,
.sb-content .wp-element-caption { font-size: 11px; color: var(--sb-meta); margin-top: 6px; text-align: left; }
.sb-content .wp-block-embed { margin: 0 0 6px; }
.sb-content .wp-block-embed figcaption { margin-bottom: 30px; }
.sb-content .wp-block-spacer { margin: 0; }

/* Raster-Galerie (z. B. 52 Frames): quadratisch, 4 pro Reihe */
.sb-content .wp-block-gallery.sb-raster { gap: 20px; }
.sb-content .wp-block-gallery.sb-raster .wp-block-image { aspect-ratio: 1; }
.sb-content .wp-block-gallery.sb-raster .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* Diashow-Galerie im Inhalt (z. B. Wilder) */
.sb-slider { margin: 0 0 30px; }
.sb-slider__buehne { position: relative; background: #f3f3f3; aspect-ratio: 3 / 2; overflow: hidden; }
.sb-slider__buehne img { width: 100%; height: 100%; object-fit: cover; }
.sb-slider__pfeil {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 12px; cursor: pointer;
	text-shadow: 0 0 6px rgba(0,0,0,.45); opacity: .85;
}
.sb-slider__pfeil:hover { opacity: 1; }
.sb-slider__pfeil--zurueck { left: 4px; }
.sb-slider__pfeil--weiter { right: 4px; }
.sb-slider__leiste { display: flex; gap: 0; margin-top: 20px; overflow-x: auto; scrollbar-width: thin; }
.sb-slider__leiste button { flex: 0 0 auto; border: 0; padding: 0; margin: 0; cursor: pointer; opacity: .45; background: none; }
.sb-slider__leiste button.ist-aktiv, .sb-slider__leiste button:hover { opacity: 1; }
.sb-slider__leiste img { height: 80px; width: 80px; object-fit: cover; }

/* ---------- Galerie-Seiten: Masonry + Diashow ---------- */

.sb-masonry-quelle { display: none; }
.no-js .sb-masonry-quelle { display: block; }

.sb-masonry { display: flex; gap: var(--sb-luecke); align-items: flex-start; }
.sb-masonry__spalte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sb-luecke); }
.sb-masonry__bild { display: block; padding: 0; border: 0; background: #f3f3f3; cursor: pointer; width: 100%; }
.sb-masonry__bild img { width: 100%; height: auto; transition: opacity .3s; }
.sb-masonry__bild:hover img { opacity: .9; }

.sb-diashow {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 280px;
	right: 40px;
	background: #fff;
	z-index: 15;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sb-diashow[hidden] { display: none; }
.sb-diashow__bild { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 50px 0; }
.sb-diashow__bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: e-resize; }
.sb-diashow__mobil { display: none; }
body.sb-diashow-offen { overflow: hidden; }

/* ---------- Journal ---------- */

.sb-journal { padding: 0 10px; max-width: 554px; }
.sb-post { margin-bottom: 90px; }
.sb-post__title { font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0 0 6px; }
.sb-post__title a { color: var(--sb-dunkel); }
.sb-post__title a:hover { color: var(--sb-grau); }
.sb-meta { color: var(--sb-meta); font-size: 14px; margin: 0 0 20px; }
.sb-meta a { color: var(--sb-meta); font-weight: 400; }
.sb-meta a:hover { color: var(--sb-dunkel); }
.sb-post__tags { margin-top: 24px; }
.sb-pager { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 40px; }
.sb-pager a { color: var(--sb-nav); }
.sb-journal__filter { margin-bottom: 40px; }

/* ---------- Kontaktformular ---------- */

.sb-form p { margin: 0 0 22px; }
.sb-form label { display: block; color: var(--sb-dunkel); font-size: 14px; margin-bottom: 4px; }
.sb-form .req { color: var(--sb-meta); font-size: 11px; }
.sb-form input[type="text"],
.sb-form input[type="email"],
.sb-form textarea {
	width: 100%;
	border: 1px solid #a9a9a9;
	background: #fafafa;
	padding: 10px;
	font: inherit;
	color: var(--sb-dunkel);
	border-radius: 0;
}
.sb-form input[type="text"], .sb-form input[type="email"] { height: 38px; }
.sb-form textarea { min-height: 100px; resize: vertical; }
.sb-form input:focus, .sb-form textarea:focus { outline: none; border-color: var(--sb-dunkel); background: #fff; }
.sb-form button {
	background: var(--sb-knopf);
	color: #fff;
	border: 0;
	padding: 14px 35px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}
.sb-form button:hover { background: #000; }
.sb-hp { position: absolute; left: -9999px; }
.sb-form__ok { color: var(--sb-dunkel); font-weight: 700; }
.sb-form__err { color: #b00020; }

/* ---------- Handy und schmale Fenster ---------- */

@media (max-width: 800px) {
	.sb-sidebar { position: static; width: auto; padding: 26px 20px 30px; overflow: visible; }
	.sb-sidebar__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
	.sb-sidebar__title { margin: 0; }
	.sb-sidebar__title span { display: inline; }
	.sb-menu-toggle {
		display: block; background: none; border: 0; padding: 0; cursor: pointer;
		color: var(--sb-grau); font-size: 16px; font-weight: 500; line-height: 1.2;
	}
	.sb-sidebar__nav { display: none; }
	.sb-slideshow-controls { display: none !important; }

	.sb-mobilnav { background: var(--sb-grau); padding: 30px 20px; text-align: center; }
	.sb-mobilnav[hidden] { display: none; }
	.sb-mobilnav__list { list-style: none; margin: 0; padding: 0; }
	.sb-mobilnav__list a { display: block; color: #f2f2f2; font-size: 17px; font-weight: 500; padding: 13px 0; }
	.sb-mobilnav__list .current-menu-item > a,
	.sb-mobilnav__list .current_page_item > a,
	.sb-mobilnav__list a:hover { color: #fff; }

	.sb-main { margin-left: 0; padding: 30px 20px 50px; }
	.sb-page .sb-content, .sb-page__title, .sb-journal { padding: 0; }
	.sb-masonry { gap: 20px; }
	.sb-masonry__spalte { gap: 20px; }

	.sb-diashow { left: 0; right: 0; flex-direction: column; }
	.sb-diashow__bild { padding: 20px; flex: 1 1 auto; height: auto; min-height: 0; }
	.sb-diashow__mobil {
		display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: baseline;
		padding: 0 20px 26px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-nav);
	}
	.sb-diashow__mobil [data-sb="thumbs"] { flex-basis: 100%; margin-top: 8px; }
	.sb-content .wp-block-gallery.sb-raster { gap: 10px; }
}

/* =========================================================
   Startseite svenburkhard.com
   ========================================================= */

.sb-start { background: #fff; }
.sb-start-main { max-width: 1240px; margin: 0 auto; padding: 50px 50px 30px; }
.sb-start-content > * { margin-top: 0; }

.sb-start .sb-start-name {
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--sb-dunkel);
	margin: 0 0 14px;
}
.sb-start .sb-start-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--sb-text); max-width: 640px; margin: 0 0 40px; letter-spacing: 0; }

.sb-start .sb-kacheln { gap: var(--sb-luecke) !important; margin: 0 0 60px; }
.sb-start .sb-kacheln > .wp-block-column { flex-basis: 50%; }

.sb-kachel.wp-block-cover {
	position: relative;
	min-height: min(72vh, 640px) !important;
	padding: 40px;
	align-items: flex-end;
	overflow: hidden;
}
.sb-kachel .wp-block-cover__inner-container { position: static; width: 100%; }
.sb-kachel .wp-block-cover__inner-container > * { position: relative; z-index: 2; }
.sb-kachel .wp-block-cover__inner-container > h2 { z-index: 3; }
.sb-kachel .wp-block-cover__image-background { transition: transform .8s ease; }
.sb-kachel:hover .wp-block-cover__image-background { transform: scale(1.03); }
.sb-kachel h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; margin: 0 0 8px; color: inherit; }
.sb-kachel h2 a { color: inherit; }
.sb-kachel h2 a::after { content: ""; position: absolute; inset: -2000px; }
.sb-kachel p { font-size: 16px; margin: 0 0 18px; color: inherit; max-width: 420px; }
.sb-kachel .sb-kachel__mehr { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0; }

.sb-kachel--foto { color: #fff; }
.sb-kachel--coaching { color: var(--luzl-oliv); background: var(--luzl-creme); }
.sb-kachel--coaching::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -40px;
	width: 70%;
	aspect-ratio: 1;
	background: url("../img/luzl-form.svg") no-repeat center / contain;
	pointer-events: none;
	transition: transform .8s ease;
}
.sb-kachel--coaching:hover::before { transform: rotate(-4deg) scale(1.03); }

.sb-start .sb-start-bio { max-width: 640px; font-size: 16px; color: var(--sb-text); margin: 0 0 50px; }

.sb-start-footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px;
	border-top: 1px solid #e5e5e5; padding-top: 20px; font-size: 13px; color: var(--sb-meta);
}
.sb-start-footer__nav { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.sb-start-footer__nav a { color: var(--sb-nav); }

@media (max-width: 800px) {
	.sb-start-main { padding: 30px 20px 20px; }
	.sb-start .sb-kacheln { gap: 20px !important; }
	.sb-kachel.wp-block-cover { min-height: 70vw !important; padding: 26px; }
}
