/*
Theme Name: Sachkunde34a
Theme URI: https://xn--34aprfung-u9a.de/
Author: 34aprüfung.de
Description: Schlankes, barrierearmes Theme für die kostenlose Lernplattform zur IHK-Sachkundeprüfung § 34a GewO. Mobile first, ohne externe Schriftarten, ohne Page Builder. Benötigt das Plugin „Sachkunde34a Core“.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sachkunde34a
Tags: education, accessibility-ready, custom-menu, translation-ready
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--s34-text, #22333a);
	background: #fff;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--s34-primary-dark, #0f6646); text-underline-offset: .15em; }
a:hover { color: var(--s34-ink, #123c47); }
h1, h2, h3, h4 { color: var(--s34-ink, #123c47); line-height: 1.25; margin: 1.5em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.site-main:focus { outline: none; }
.s34t-skip { position: absolute; left: -9999px; top: .5rem; z-index: 1000; padding: .6rem 1rem; background: #fff; color: var(--s34-ink); border-radius: 6px; font-weight: 700; }
.s34t-skip:focus { left: .5rem; }
.s34t-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .s34t-wrap { padding: 0 24px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--s34-line, #e1e8ea); backdrop-filter: saturate(1.4) blur(6px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.s34t-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.s34t-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--s34-ink); flex: none; }
.s34t-logo strong { display: block; font-size: 1.2rem; line-height: 1.1; color: var(--s34-ink); letter-spacing: -.02em; }
.s34t-logo strong span { color: var(--s34-primary, #16825a); }
.s34t-logo small { display: block; font-size: .7rem; color: var(--s34-muted); font-weight: 500; }
.s34t-logo.is-light strong, .s34t-logo.is-light small { color: #fff; }
.s34t-logo.is-light strong span { color: #7fe0b5; }
.s34t-nav { margin-left: auto; }
.s34t-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.s34t-menu > li { position: relative; }
.s34t-menu > li > a, .s34t-sub-toggle { display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .75rem; border: 0; border-radius: 8px; background: none; color: var(--s34-ink); font: inherit; font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.s34t-menu > li > a:hover, .s34t-sub-toggle:hover { background: var(--s34-bg, #f4f7f7); }
.s34t-menu > .current-menu-item > a, .s34t-menu > .current-menu-ancestor > .s34t-sub-toggle, .s34t-menu > .current-menu-ancestor > a { color: var(--s34-primary-dark); box-shadow: inset 0 -2px 0 var(--s34-primary); border-radius: 0; }
.s34t-sub-toggle .s34-icon { transition: transform .15s; }
.s34t-sub-toggle[aria-expanded="true"] .s34-icon { transform: rotate(180deg); }
.s34t-menu .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: .4rem; margin: 0; list-style: none; background: #fff; border: 1px solid var(--s34-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(18, 60, 71, .14); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s; }
.s34t-menu li.is-open > .sub-menu, .s34t-menu li:hover > .sub-menu, .s34t-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.s34t-menu .sub-menu a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--s34-ink); text-decoration: none; font-size: .93rem; }
.s34t-menu .sub-menu a:hover { background: var(--s34-primary-soft); color: var(--s34-primary-dark); }
.s34t-header-tools { display: flex; align-items: center; gap: .25rem; }
.s34t-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--s34-ink); cursor: pointer; }
.s34t-icon-btn:hover { background: var(--s34-bg); }
.s34t-burger { display: none; }
.s34t-search { border-top: 1px solid var(--s34-line); background: var(--s34-bg); padding: .9rem 0; }
.s34t-search form, .s34t-searchform { display: flex; gap: .5rem; }
.s34t-search input, .s34t-searchform input { flex: 1; min-height: 46px; padding: .6rem .9rem; border: 1px solid #cfd9dc; border-radius: 8px; font: inherit; }
@media (max-width: 1060px) {
	.s34t-burger { display: grid; }
	.s34t-nav { position: fixed; inset: 72px 0 0 0; z-index: 950; background: #fff; padding: 1rem 16px 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .2s; visibility: hidden; margin: 0; }
	.admin-bar .s34t-nav { top: 118px; }
	.s34t-nav.is-open { transform: none; visibility: visible; }
	.s34t-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.s34t-menu > li > a, .s34t-sub-toggle { width: 100%; justify-content: space-between; padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--s34-line); border-radius: 0; }
	.s34t-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: none; }
	.s34t-menu li.is-open > .sub-menu { display: block; }
	.s34t-menu li:hover > .sub-menu { display: none; }
	.s34t-menu li.is-open:hover > .sub-menu { display: block; }
	.s34t-header-tools { margin-left: auto; }
	body.s34t-menu-open { overflow: hidden; }
}

/* ---------- Page hero ---------- */
.s34-page-hero { padding: 1.25rem 0 1.5rem; background: linear-gradient(180deg, #f4f8f8 0%, #fff 100%); border-bottom: 1px solid var(--s34-line); margin-bottom: 2rem; }
.s34-page-hero h1 { margin: .4rem 0 .35rem; }
.s34-page-hero p { margin: 0; max-width: 760px; color: var(--s34-muted); font-size: 1.05rem; }
.page-uebungstest .s34-page-hero, .page-einstufungstest .s34-page-hero, .page-lernen .s34-page-hero { text-align: center; }
.page-uebungstest .s34-page-hero p, .page-einstufungstest .s34-page-hero p, .page-lernen .s34-page-hero p { margin: 0 auto; }
.page-uebungstest .s34t-crumbs ol, .page-einstufungstest .s34t-crumbs ol, .page-lernen .s34t-crumbs ol { justify-content: center; }
.s34t-crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--s34-muted); }
.s34t-crumbs li + li::before { content: "›"; margin-right: .3rem; }
.s34t-crumbs a { color: var(--s34-muted); text-decoration: none; }
.s34t-crumbs a:hover { text-decoration: underline; }
.s34t-meta { color: var(--s34-muted); font-size: .9rem; }
.s34t-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s34-primary); }

/* ---------- Content ---------- */
.s34t-content { max-width: 820px; padding-bottom: 3rem; }
.s34t-content-wide { padding-bottom: 3rem; }
.s34-prose { font-size: 1.04rem; }
.s34-prose h2 { margin-top: 1.8em; }
.s34-prose ul, .s34-prose ol { padding-left: 1.3rem; }
.s34-prose li { margin: .3rem 0; }
.s34-prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--s34-primary); background: var(--s34-primary-soft); border-radius: 0 10px 10px 0; }
.s34-prose table { width: 100%; border-collapse: collapse; }
.s34-prose th, .s34-prose td { padding: .5rem; border-bottom: 1px solid var(--s34-line); text-align: left; }

/* ---------- Front page ---------- */
.s34t-hero { position: relative; color: #fff; background: #0b1f26 var(--hero) center right / cover no-repeat; overflow: hidden; }
.s34t-hero-inner { min-height: clamp(520px, 72vh, 640px); display: flex; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.s34t-hero-text { max-width: 600px; }
.s34t-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.25rem); margin: 0 0 1rem; line-height: 1.12; letter-spacing: -.02em; }
.s34t-hero h1 span { color: #4fd39a; }
.s34t-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dbe7ea; margin-bottom: 1.25rem; }
.s34t-hero-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .5rem; }
.s34t-hero-list li { display: flex; gap: .55rem; align-items: center; color: #eef4f5; }
.s34t-hero-list .s34-icon { color: #4fd39a; }
.s34t-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.s34t-btn-white { background: #fff !important; border-color: #fff !important; color: var(--s34-ink) !important; }
.s34t-btn-white:hover { background: #eef4f5 !important; }
.s34t-hero-note { margin-top: 1.25rem; font-size: .82rem; color: #a9c0c6; }
.s34t-stats { background: var(--s34-ink); color: #fff; }
.s34t-stats .s34t-wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.s34t-stats strong { display: block; font-size: 1.7rem; color: #7fe0b5; line-height: 1.1; }
.s34t-stats span { font-size: .85rem; color: #c6d6da; }
.s34t-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.s34t-section-soft { background: var(--s34-bg); }
.s34t-section-head { text-align: center; max-width: 760px; margin: 0 auto 1.5rem; }
.s34t-section-head h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.s34t-section-head p { color: var(--s34-muted); margin: 0; }
.s34t-section-head-row { display: flex; justify-content: space-between; align-items: baseline; max-width: none; text-align: left; }
.s34t-textlink { font-weight: 600; text-decoration: none; }
.s34t-teaser-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); background: linear-gradient(135deg, #fff 0%, var(--s34-primary-soft) 100%); border: 1px solid var(--s34-line); border-radius: 18px; box-shadow: var(--s34-shadow); }
.s34t-teaser-card h2 { margin: .25rem 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.s34t-chips-left { justify-content: flex-start; margin: 1rem 0 0; }
.s34t-teaser-actions { display: grid; gap: .75rem; justify-items: center; text-align: center; }
.s34t-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.s34t-feature { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--s34-line); border-radius: 18px; background: #fff; box-shadow: var(--s34-shadow); }
.s34t-feature h2 { margin: .75rem 0 .5rem; }
.s34t-feature .s34-facts { grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: 1rem 0 1.25rem; }
.s34t-feature .s34-facts strong { font-size: 1.5rem; }
.s34t-feature-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--s34-primary-soft); color: var(--s34-primary); }
.s34t-feature-dark { background: var(--s34-ink); color: #dbe7ea; border-color: var(--s34-ink); }
.s34t-feature-dark h2 { color: #fff; }
.s34t-feature-dark .s34t-feature-ic { background: rgba(255, 255, 255, .1); color: #7fe0b5; }
.s34t-ticks { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.s34t-ticks li { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; }
.s34t-ticks .s34-icon { color: #7fe0b5; }
.s34t-cta { background: linear-gradient(120deg, var(--s34-primary-dark), var(--s34-primary)); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.s34t-cta h2 { color: #fff; margin: 0 0 .5rem; }
.s34t-cta p { color: #e3f4ec; margin-bottom: 1.5rem; }

/* ---------- Cards / blog ---------- */
.s34t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.s34t-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--s34-line); border-radius: 14px; overflow: hidden; box-shadow: var(--s34-shadow); }
.s34t-card-media { display: block; aspect-ratio: 16 / 9; background: var(--s34-ink); }
.s34t-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s34t-thumb-art { display: grid; place-items: center; align-content: center; gap: .4rem; width: 100%; height: 100%; background: radial-gradient(circle at 70% 30%, #2a6b77 0%, #123c47 55%, #0b1f26 100%); color: #7fe0b5; }
.s34t-thumb-art em { font-style: normal; font-size: .8rem; font-weight: 700; color: #dbe7ea; letter-spacing: .04em; text-transform: uppercase; }
.s34t-thumb-rechtliches { background: radial-gradient(circle at 70% 30%, #3f5fa8 0%, #1e335f 60%, #121f3b 100%); }
.s34t-thumb-praxis { background: radial-gradient(circle at 70% 30%, #a8663f 0%, #5f3a1e 60%, #3b2412 100%); color: #ffd7a8; }
.s34t-card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.s34t-card h3 { margin: .3rem 0 .5rem; font-size: 1.1rem; }
.s34t-card h3 a { color: var(--s34-ink); text-decoration: none; }
.s34t-card h3 a:hover { color: var(--s34-primary-dark); }
.s34t-card p { color: var(--s34-muted); font-size: .94rem; flex: 1; }
.s34t-card-meta { font-size: .85rem; color: var(--s34-muted); }
.s34t-card-meta a { font-weight: 600; text-decoration: none; }
.s34t-list .s34t-card { flex-direction: row; margin-bottom: 1rem; }
.s34t-list .s34t-card-media { flex: 0 0 280px; aspect-ratio: auto; min-height: 170px; }
.nav-links { display: flex; gap: .4rem; justify-content: center; margin: 2rem 0; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border: 1px solid var(--s34-line); border-radius: 8px; text-decoration: none; color: var(--s34-ink); }
.nav-links .current { background: var(--s34-primary); color: #fff; border-color: var(--s34-primary); }
.s34t-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; padding-bottom: 3rem; }
.s34t-lead-dark { font-size: 1.18rem; color: var(--s34-ink); }
.s34t-aside .s34-card h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.s34t-aside { position: sticky; top: 96px; align-self: start; }
.s34t-aside-links { list-style: none; padding: 0; margin: 0; }
.s34t-aside-links li { padding: .4rem 0; border-top: 1px solid var(--s34-line); }
.s34t-aside-links a { text-decoration: none; font-weight: 500; }

/* ---------- Lesson ---------- */
.s34t-lesson { padding-top: 1.25rem; padding-bottom: 3rem; }
.s34t-lesson-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; margin-top: 1rem; }
.s34t-lesson-nav { position: sticky; top: 96px; align-self: start; background: #fff; border: 1px solid var(--s34-line); border-radius: 14px; padding: .75rem; box-shadow: var(--s34-shadow); }
.s34t-lesson-area { display: flex; gap: .6rem; align-items: center; padding: .4rem .4rem .8rem; border-bottom: 1px solid var(--s34-line); margin-bottom: .5rem; font-weight: 700; font-size: .92rem; color: var(--s34-ink); text-decoration: none; line-height: 1.3; }
.s34t-lesson-area .s34-area-num { width: 32px; height: 32px; font-size: .95rem; }
.s34t-lesson-nav ol { list-style: none; margin: 0; padding: 0; }
.s34t-lesson-nav li a { display: flex; gap: .6rem; padding: .55rem .6rem; border-radius: 8px; color: var(--s34-ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.s34t-lesson-nav li a span { flex: none; min-width: 26px; color: var(--s34-muted); font-weight: 600; }
.s34t-lesson-nav li a:hover { background: var(--s34-bg); }
.s34t-lesson-nav li a.is-current { background: var(--area, var(--s34-primary)); color: #fff; }
.s34t-lesson-nav li a.is-current span { color: #fff; }
.s34t-lesson-nav li a.is-read:not(.is-current)::after { content: "✓"; margin-left: auto; color: var(--s34-primary); font-weight: 700; }
.s34t-lesson-main h1 { margin: 0 0 1rem; }
.s34t-lesson-num { color: var(--area, var(--s34-primary)); }
.s34t-kurz { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--s34-primary-soft); border: 1px solid #cde9da; border-radius: 14px; margin-bottom: 1.25rem; }
.s34t-kurz > span { color: #e0a100; flex: none; }
.s34t-kurz h2 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--s34-primary-dark); }
.s34t-kurz p { margin: 0; }
.s34t-points { display: grid; grid-template-columns: 1fr 220px; gap: 1.25rem; align-items: center; padding: 1.25rem; border: 1px solid var(--s34-line); border-radius: 14px; margin-bottom: 1.25rem; }
.s34t-points h2 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: 1.1rem; }
.s34t-points h2 .s34-icon { color: var(--s34-primary); }
.s34t-points .s34-checks li { align-items: flex-start; }
.s34t-points .s34-checks .s34-icon { margin-top: .2rem; }
.s34t-points-art { display: grid; place-items: center; align-content: center; gap: .5rem; height: 100%; min-height: 170px; border-radius: 12px; background: linear-gradient(140deg, var(--area, #16825a), #123c47); color: #fff; }
.s34t-points-art span { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; opacity: .85; }
.s34t-objectives { padding: 1rem 1.25rem; border-radius: 12px; background: var(--s34-bg); margin-bottom: 1.5rem; }
.s34t-objectives h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.s34t-objectives ul { margin: 0; padding-left: 1.2rem; }
.s34t-example { padding: 1.1rem 1.25rem; border-radius: 12px; border: 1px solid #f0d9a8; background: #fffaf0; margin: 1.5rem 0; }
.s34t-example h2 { display: flex; gap: .4rem; align-items: center; margin: 0 0 .4rem; font-size: 1.05rem; color: #7a4d00; }
.s34t-example p { margin: 0; }
.s34t-merksatz { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-left: 5px solid var(--area, var(--s34-primary)); background: var(--area-soft, var(--s34-primary-soft)); border-radius: 0 12px 12px 0; font-size: 1.08rem; font-weight: 600; color: var(--s34-ink); }
.s34t-merksatz strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--area, var(--s34-primary)); margin-bottom: .2rem; }
.s34t-sources { font-size: .95rem; }
.s34t-sources h2 { font-size: 1.05rem; }
.s34t-sources ul { padding-left: 1.2rem; }
.s34t-lesson-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--s34-line); margin-top: 1.5rem; }
.s34t-lesson-actions [aria-pressed="true"] { border-color: var(--s34-primary); color: var(--s34-primary-dark) !important; background: var(--s34-primary-soft); }
.s34t-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.s34t-prevnext a { display: block; padding: 1rem; border: 1px solid var(--s34-line); border-radius: 12px; text-decoration: none; color: var(--s34-ink); font-weight: 600; }
.s34t-prevnext a:hover { border-color: var(--s34-primary); }
.s34t-prevnext small { display: block; color: var(--s34-muted); font-weight: 400; }
.s34t-prevnext .is-next { text-align: right; }

/* ---------- Area page ---------- */
.s34t-area-hero { background: linear-gradient(180deg, var(--area-soft) 0%, #fff 100%); }
.s34t-area-title { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; }
.s34t-area-title .s34-area-num { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 12px; }
.s34t-area-title h1 { margin: 0 0 .25rem; }
.s34t-area-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
.s34t-lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.s34t-lesson-list a { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1px solid var(--s34-line); border-left: 4px solid var(--area); border-radius: 12px; text-decoration: none; color: var(--s34-text); background: #fff; box-shadow: var(--s34-shadow); }
.s34t-lesson-list a:hover { border-color: var(--area); }
.s34t-lesson-list .s34t-lesson-num { font-weight: 800; font-size: 1.15rem; min-width: 34px; }
.s34t-lesson-list strong { display: block; color: var(--s34-ink); }
.s34t-lesson-list small { display: block; color: var(--s34-muted); font-size: .88rem; }
.s34t-lesson-list .s34-icon { margin-left: auto; color: var(--area); }
.s34t-more-title { margin-top: 3rem; }

/* ---------- Search / 404 ---------- */
.s34t-results { list-style: none; padding: 0; }
.s34t-results li { padding: 1rem 0; border-bottom: 1px solid var(--s34-line); }
.s34t-results a { font-weight: 700; font-size: 1.1rem; margin-left: .5rem; }
.s34t-results p { margin: .3rem 0 0; color: var(--s34-muted); }
.s34t-404 { text-align: center; padding: 4rem 16px 5rem; }
.s34t-404-code { font-size: 5rem; font-weight: 800; color: var(--s34-primary); margin: 0; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #0e2f38; color: #c6d6da; margin-top: 0; }
.s34t-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.site-footer h2 { color: #fff; font-size: .95rem; margin: .5rem 0 .75rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: #dbe7ea; text-decoration: none; }
.site-footer a:hover { color: #7fe0b5; text-decoration: underline; }
.s34t-footer-brand p { font-size: .92rem; margin-top: 1rem; }
.s34t-disclaimer { display: flex; gap: .45rem; align-items: flex-start; padding: .75rem; background: rgba(255, 255, 255, .06); border-radius: 8px; font-size: .85rem !important; }
.s34t-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1rem 0; font-size: .88rem; }
.s34t-footer-bottom .s34t-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.s34t-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.s34t-legal li { margin: 0; }

/* ---------- Blog cover ---------- */
.s34t-cover { margin: 0 0 1.5rem; }
.s34t-cover img { display: block; width: 100%; height: auto; border-radius: 14px; aspect-ratio: 1200 / 630; object-fit: cover; }
.s34t-card-media img { aspect-ratio: 1200 / 630; }

/* ---------- Affiliate ---------- */
.s34t-section-tight { padding: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.s34t-narrow { max-width: 900px; }
.s34t-aff-foot { color: #9fb6bc; font-size: .8rem; }
.s34t-footer-bottom .s34t-wrap > span { max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.s34t-cards { grid-template-columns: repeat(2, 1fr); }
	.s34t-stats .s34t-wrap { grid-template-columns: repeat(3, 1fr); }
	.s34t-footer-grid { grid-template-columns: 1fr 1fr; }
	.s34t-article, .s34t-area-layout { grid-template-columns: 1fr; }
	.s34t-aside { position: static; }
	.s34t-lesson-grid { grid-template-columns: 1fr; }
	.s34t-lesson-nav { position: static; }
}
@media (max-width: 760px) {
	.s34t-hero { background-position: 70% center; }
	.s34t-hero::before { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 38, .55); }
	.s34t-hero-inner { position: relative; min-height: 0; padding-top: 2.5rem; padding-bottom: 2.5rem; }
	.s34t-teaser-card, .s34t-duo, .s34t-points { grid-template-columns: 1fr; }
	.s34t-points-art { min-height: 110px; }
	.s34t-cards { grid-template-columns: 1fr; }
	.s34t-list .s34t-card { flex-direction: column; }
	.s34t-list .s34t-card-media { flex-basis: auto; aspect-ratio: 16 / 9; min-height: 0; }
	.s34t-stats .s34t-wrap { grid-template-columns: repeat(2, 1fr); }
	.s34t-stats .s34t-wrap > div:last-child { grid-column: 1 / -1; }
	.s34t-footer-grid { grid-template-columns: 1fr; }
	.s34t-prevnext { grid-template-columns: 1fr; }
	.s34t-section-head-row { flex-direction: column; gap: .25rem; }
	.s34t-hero-cta .s34-btn { flex: 1 1 100%; }
	.s34t-logo small { display: none; }
}
@media print {
	.site-header, .site-footer, .s34t-crumbs, .s34t-lesson-nav, .s34t-lesson-actions, .s34t-prevnext, .s34t-aside { display: none !important; }
	.s34t-lesson-grid, .s34t-article { display: block; }
	body { font-size: 11pt; }
}
