/*
Theme Name: THO Vita
Description: Klassisches Theme für die private WordPress-Vorschau nach der HTML-Vorlage.
Version: 1.4.12
Text Domain: tho-vita
*/

:root {
	--ink: #292b2c;
	--muted: #646568;
	--accent: #873e38;
	--line: #e5e1dd;
	--wash: #f6f4f1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--wash); }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #48231f; }
a:focus-visible { outline: 3px solid #b95b45; outline-offset: 5px; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; background: #fff; padding: 10px; z-index: 10; }
.skip:focus { top: 10px; }
#all { width: min(1400px, 100%); margin: 0 auto; padding: 0 56px; position: relative; background: #fff; min-height: 100vh; }
.preview-note { font-size: 12px; letter-spacing: .06em; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
#page_header { border-bottom: 1px solid var(--line); }
.header-art { display: block; width: 100%; margin: 22px 0 0; line-height: 0; }
.header-art img { display: block; width: 100%; height: auto; }
#page_header nav { width: 100%; margin: 18px 0 0 15px; }
#page_header nav ul { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
#page_header nav li { margin: 0; padding: 0; }
#page_header nav a, #page_header nav li > span { display: block; font-size: 16px; font-weight: 500; padding: 0 0 17px; color: #454545; text-decoration: none; border-bottom: 3px solid transparent; }
#page_header nav a:hover { color: var(--accent); }
#page_header nav [aria-current="page"], #page_header nav .current-menu-item > a { color: var(--accent); border-color: var(--accent); font-weight: 600; }
#allCont { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 60px; width: 100%; margin-left: 15px; padding-top: 48px; }
#links { padding: 20px 26px 0 0; border-right: 1px solid var(--line); font-size: 15px; line-height: 1.55; align-self: start; }
#links .brand { display: block; margin: 0 0 30px; text-decoration: none; color: var(--ink); }
#links .brand strong { display: block; font: 500 27px/1.25 Arial, Helvetica, sans-serif; letter-spacing: -.035em; }
#links .brand span { display: block; margin-top: 8px; font-size: 10px; line-height: 1.6; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); }
#links nav { margin-bottom: 20px; }
#links h3 { padding: 0; margin: 0 0 10px; font-size: 12px; letter-spacing: .10em; text-transform: uppercase; color: var(--muted); }
#links ul { list-style: none; padding: 0; margin: 0 0 28px; }
#links li { margin: 3px 0; }
#links nav a:not(:has(img)), #links nav li > span { display: block; padding: 5px 9px; margin-left: -9px; text-decoration: none; border-radius: 3px; color: #4b4b4b; }
#links nav a:hover { background: var(--wash); color: var(--accent); }
#vertikal2 { margin-top: 30px; }
#vertikalQL { border-top: 1px solid var(--line); padding-top: 25px; }
#links .social-links li { display: inline-block; padding-right: 8px; }
#links .social-links img { display: inline; vertical-align: baseline; }
#vertikal3 { font-size: 13px; }
#mitte { min-width: 0; padding: 25px 0 60px; }
.entry-content { display: flow-root; margin-bottom: 38px; }
.home .entry-content > .home-eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.home .entry-content > .home-title { font: 500 clamp(20px, 2.1vw, 27px)/1.25 "Open Sans", Arial, sans-serif; letter-spacing: 0; color: var(--ink); margin: 0 0 30px; }
.home .entry-content > figure.home-image { width: min(100%, 350px); margin: 0 0 28px; }
.home .entry-content > figure.home-image img { display: block; width: 100%; height: auto; }
.home .entry-content > p { font-size: 18px; line-height: 1.8; }
.entry-content h2 { font: 600 17px/1.8 Arial, Helvetica, sans-serif; color: var(--accent); padding: 0; margin: 0 0 17px; }
.entry-content h2:not(:first-child) { margin-top: 66px; }
.entry-content h2:has(+ p) { margin-bottom: 8px; }
.entry-content p { font-size: 17px; line-height: 1.8; margin: 0 0 23px; max-width: 70ch; }
.entry-content ul, .entry-content ol { list-style: none; padding: 0; margin: 0 0 28px; max-width: 70ch; }
.entry-content li { font-size: 17px; line-height: 1.8; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.entry-content > ul:has(> li > a[href^="#jump"]) { display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: none; margin: 0 0 35px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-content > ul:has(> li > a[href^="#jump"]) > li { margin: 0; padding: 0; border: 0; font-size: 14px; }
.entry-content .tho-archive-entry { display: flow-root; margin: 0 0 38px; }
.entry-content .tho-archive-entry h2 { margin: 0 0 8px; }
.tho-separated-archive .entry-content > .tho-archive-entry:has(> .wp-block-group__inner-container > :nth-child(2)) { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 32px; }
.tho-separated-archive .entry-content > .tho-archive-entry li { border-bottom: 0; }
.entry-content .tho-archive-entry figure.wp-block-image:has(> a[href$=".pdf" i]) { display: inline-block; vertical-align: top; width: auto; max-width: 100%; margin: 10px 10px 0 0; }
.entry-content .tho-archive-entry figure.wp-block-image:has(> a[href$=".pdf" i]) img { display: block; width: auto; max-width: 149px; height: auto; border: 1px solid #d6d6d6; }
.entry-content .wp-block-audio { margin: 14px 0 20px; padding: 8px 14px; background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; }
.entry-content .wp-block-audio audio { display: block; width: 100%; max-width: 560px; height: 32px; accent-color: var(--accent); color-scheme: light; filter: grayscale(1); opacity: .4; transition: opacity .2s; }
.entry-content .wp-block-audio audio:hover, .entry-content .wp-block-audio audio:focus-within { opacity: 1; }
.entry-content .wp-block-audio figcaption { margin: 4px 0 0; line-height: 1.4; font-size: 13px; color: var(--muted); }
.entry-content .tho-gallery { margin: 0 0 20px; }
.entry-content .tho-gallery > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.entry-content .tho-gallery figure { margin: 0; max-width: 100%; }
.entry-content .tho-gallery img { display: block; width: auto; height: 110px; max-width: 100%; object-fit: contain; }
.entry-content .tho-book-entry { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 32px; }
.entry-content .tho-book-entry > .wp-block-group__inner-container { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 36px; }
.entry-content .tho-book-entry > .wp-block-group__inner-container > :not(.tho-gallery) { grid-column: 2; }
.entry-content .tho-book-entry > .wp-block-group__inner-container > .tho-gallery { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
.entry-content .tho-book-entry .tho-gallery img { width: auto; height: auto; max-width: 100%; max-height: 320px; border: 1px solid #dedbd7; }
.entry-content .tho-book-entry ul { margin-bottom: 6px; }
.entry-content .tho-book-entry li { margin: 0 0 3px; padding: 0; border: 0; font-size: 15px; line-height: 1.6; }
.tho-lightbox { box-sizing: border-box; width: max-content; max-width: min(94vw, 1200px); max-height: 94vh; padding: 10px; border: 0; margin: auto; background: #fff; color: var(--ink); box-shadow: 0 12px 60px #0006; }
.tho-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.tho-lightbox img { display: block; width: auto; max-width: min(100%, calc(94vw - 20px)); max-height: 70vh; margin: 0 auto; object-fit: contain; }
.tho-lightbox p { box-sizing: border-box; width: fit-content; min-width: 0; max-width: min(70ch, calc(94vw - 20px)); margin: 9px 0 5px; font: 600 13px/1.5 Arial, Helvetica, sans-serif; color: #666; white-space: pre-line; overflow-wrap: anywhere; }
.tho-lightbox-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tho-lightbox-controls button { border: 0; background: #fff; color: #555; padding: 8px 0; font: 12px Arial, Helvetica, sans-serif; cursor: pointer; }
.tho-lightbox-controls button:focus-visible { outline: 2px solid #b95b45; outline-offset: 3px; }
.tho-lightbox-controls button:disabled { opacity: .4; cursor: default; }
.tho-lightbox-count { margin-left: auto; color: #777; font: 12px/1.5 Arial, Helvetica, sans-serif; }
.tho-lightbox-trigger { cursor: zoom-in; }
.entry-content .tho-video-preview { display: inline-block; vertical-align: top; width: calc(50% - 18px); max-width: 360px; margin: 0 16px 24px 0; }
.tho-video-preview .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; background: #171717; }
.tho-video-preview .wp-block-embed__wrapper iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tho-video-open { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; width: 100%; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.tho-video-open span { padding: 7px 12px; border-radius: 3px; background: #222e; color: #fff; font-size: 14px; }
.tho-video-open:focus-visible, .tho-video-lightbox button:focus-visible { outline: 2px solid #b95b45; outline-offset: -2px; }
.tho-video-lightbox { box-sizing: border-box; width: min(1100px, 94vw); max-width: 94vw; max-height: 94vh; margin: auto; padding: 10px; border: 0; background: #000; color: #fff; }
.tho-video-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.tho-video-lightbox button { display: block; margin: 0 0 10px auto; padding: 6px; border: 0; background: #000; color: #fff; font-size: 12px; cursor: pointer; }
.tho-video-lightbox iframe { display: block; width: 100%; height: auto; max-height: 80vh; aspect-ratio: 16 / 9; border: 0; background: #111; }
#page_footer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 20px; }
#page_footer a { color: var(--muted); }
#page_footer ul { list-style: none; padding: 0; margin: 0; }
#page_footer li { display: inline; }
#page_footer li + li::before { content: " · "; }

@media (min-width: 1500px) {
	#all { margin-top: 30px; margin-bottom: 30px; min-height: calc(100vh - 60px); }
}
@media (max-width: 1000px) {
	#all { padding: 0 28px; }
	#allCont { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
	#page_header nav ul { gap: 22px; }
	.entry-content .tho-book-entry > .wp-block-group__inner-container { grid-template-columns: 180px minmax(0, 1fr); column-gap: 24px; }
}
@media (max-width: 720px) {
	#all { padding: 0 21px; }
	.preview-note { font-size: 11px; }
	#page_header nav { margin-top: 14px; }
	#page_header nav ul { gap: 5px 20px; }
	#page_header nav a, #page_header nav li > span { font-size: 15px; padding-bottom: 10px; }
	#allCont { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
	#links { order: 2; border-right: 0; border-top: 1px solid var(--line); padding: 25px 0 0; width: 100%; columns: 2; column-gap: 25px; }
	#links nav { break-inside: avoid; }
	#mitte { order: 1; padding: 0; }
	.home .entry-content > .home-title { font-size: clamp(20px, 5vw, 27px); }
	.home .entry-content > figure.home-image { width: min(100%, 350px); }
	#page_footer { order: 3; width: 100%; flex-wrap: wrap; margin-top: 10px; }
}
@media (max-width: 600px) {
	.entry-content .tho-book-entry > .wp-block-group__inner-container { display: block; }
	.entry-content .tho-book-entry .tho-gallery { margin: 0 0 22px; }
	.entry-content .tho-book-entry .tho-gallery img { max-width: 220px; max-height: 300px; }
	.entry-content .tho-video-preview { display: block; width: 100%; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
