/*
 * wojci.com – One-Pager René Wojciechowski
 *
 * Aufbau wie die bisherige wojci.com: links das Foto (steht am Desktop still), rechts der Inhalt zum Scrollen.
 * Farben und Schrift aus der Marke wojciechowski.de: Gold #CBB586 (Logo, Knöpfe), Text schwarz #0A0A0A, Linien #DDD,
 * Schrift Onest (OFL, selbst gehostet).
 * Renés Vorgaben: nichts Schwarzes oder Dunkles als Fläche, keine Verläufe, kein Leuchten, kein Glas, keine Schatten,
 * Navigation rechtsbündig (Desktop 18 px, Handy 19 px), Kopf nicht fixiert.
 *
 * Die Abschnitte sind Blöcke (inc/inhalte.php); gestaltet wird über ihre CSS-Klassen (abschnitt, label, karte …).
 */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/onest-symbole.woff2") format("woff2"); unicode-range: U+2190, U+2192, U+2194-2199, U+25A0-27BF; }

:root {
	--tinte: #0a0a0a;
	--weiss: #fff;
	--gold: #cbb586;
	--gold-dunkel: #b8a170;
	--gold-text: #8a7340;
	--gold-hell: #f8f4ea;
	--linie: #ddd;
	--schrift: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rand: clamp(24px, 5vw, 80px);
	--abstand: clamp(64px, 8vw, 112px);
	--radius: 10px;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font: 400 19px/1.6 var(--schrift); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold-text); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
strong { font-weight: 650; }
::selection { background: var(--gold); color: var(--weiss); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 18px; background: var(--weiss); border: 1px solid var(--tinte); border-radius: 999px; font-weight: 600; text-decoration: none; }
.sprung:focus { top: 16px; }

/* ---------- Raster: Handy untereinander, ab 960 px Foto links, Inhalt rechts ---------- */

.seite { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "bild" "inhalt"; }
.kopf { grid-area: kopf; }
.bild { grid-area: bild; }
.inhalt { grid-area: inhalt; min-width: 0; padding: 0 var(--rand); }
@media (min-width: 960px) {
	.seite { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-template-areas: "bild kopf" "bild inhalt"; }
}

/* WordPress-Admin-Leiste: nicht festkleben (Kopf und Foto sollen oben bündig bleiben). */
@media (min-width: 601px) { html #wpadminbar { position: absolute; } }

/* ---------- Foto ---------- */

.bild__rahmen { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.bild__rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 600px) and (max-width: 959px) { .bild__rahmen { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) {
	/* Wie bisher: Das Foto steht still, nur der Inhalt rechts scrollt (Wunsch aus dem Konzept). */
	.bild__rahmen { position: sticky; top: 0; height: 100vh; height: 100dvh; aspect-ratio: auto; }
	.bild__rahmen img { object-position: 50% 40%; }
}

/* ---------- Kopf mit Navigation (scrollt mit weg) ---------- */

.kopf { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--rand); border-bottom: 1px solid var(--linie); }
.kopf__name { font-size: 18px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.kopf__menue { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: -4px; padding: 0 4px 0 12px; background: none; border: 0; color: var(--tinte); font: 500 19px/1 var(--schrift); cursor: pointer; }
.kopf__menue svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.navi { display: none; }
.navi.ist-offen { display: block; position: absolute; top: 100%; right: 0; left: 0; z-index: 5; padding: 8px var(--rand) 20px; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.navi__liste { display: flex; flex-direction: column; align-items: flex-end; margin: 0; padding: 0; list-style: none; text-align: right; }
.navi__liste a { display: block; padding: 10px 0; font-size: 19px; font-weight: 500; text-decoration: none; }
.navi__liste a:hover { color: var(--gold-text); }
@media (min-width: 960px) {
	.kopf { justify-content: flex-end; min-height: 88px; padding-block: 0; border-bottom: 0; }
	.kopf__name { display: none; }
}
@media (min-width: 1280px) {
	.kopf__menue { display: none; }
	.navi, .navi.ist-offen { display: block; position: static; padding: 0; border: 0; }
	.navi__liste { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
	.navi__liste a { padding: 6px 0; font-size: 18px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .45em; }
	.navi__liste a:hover { color: var(--tinte); text-decoration-color: var(--gold); }
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: var(--abstand); border-top: 1px solid var(--linie); }
.abschnitt--start, .inhalt > .abschnitt:first-child { padding-top: clamp(40px, 6vw, 72px); border-top: 0; }
.abschnitt > p + p { margin-top: 1em; }

.label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.label::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--gold); }

.abschnitt h2 { margin-bottom: 20px; font-size: clamp(30px, 2.7vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin-bottom: 16px; font-size: clamp(21px, 1.6vw, 24px); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; text-wrap: pretty; }
.gruppe { margin: 56px 0 8px; font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.gruppe__text { margin-bottom: 4px; font-size: 17px; }

/* Start */
.start__titel { font-size: clamp(40px, 3.7vw, 60px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
.start__unterzeile { margin-top: 10px; font-size: clamp(20px, 1.7vw, 25px); font-weight: 450; }
.start__text { margin-top: 28px; font-size: clamp(19px, 1.45vw, 21px); line-height: 1.55; text-wrap: pretty; }

.belege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; }
.belege li { padding-left: 16px; border-left: 2px solid var(--gold); font-size: 15px; line-height: 1.35; }
.belege strong { display: block; margin-bottom: 4px; font-size: clamp(24px, 2.1vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
@media (max-width: 420px) {
	.belege { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.belege li { display: flex; align-items: baseline; gap: 10px; }
	.belege strong { display: inline; min-width: 84px; margin: 0; font-size: 24px; }
}

/* Knöpfe (Block „Buttons“) */
.wp-block-buttons.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.knoepfe .wp-block-button { margin: 0; }
.knoepfe .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; background: var(--gold); border: 1px solid var(--gold); border-radius: 999px; color: var(--weiss); font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .15s, border-color .15s; }
.knoepfe .wp-block-button__link:hover { background: var(--gold-dunkel); border-color: var(--gold-dunkel); color: var(--weiss); }
.knoepfe .knopf--linie .wp-block-button__link { background: var(--weiss); border-color: var(--tinte); color: var(--tinte); }
.knoepfe .knopf--linie .wp-block-button__link:hover { background: var(--gold-hell); color: var(--tinte); }
.knoepfe--mehr { margin-top: 28px; }
@media (max-width: 480px) { .knoepfe .wp-block-button, .knoepfe .wp-block-button__link { width: 100%; } }

/* Social Icons (Block „Social Icons“) */
.wp-block-social-links.sozial { display: flex; gap: 8px; margin: 28px 0 0 -10px; padding: 0; list-style: none; }
.sozial .wp-social-link { margin: 0; background: none !important; color: var(--tinte) !important; }
.sozial .wp-social-link a, .sozial .wp-block-social-link-anchor { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: inherit; }
.sozial .wp-social-link svg { width: 24px; height: 24px; fill: currentColor; }
.sozial .wp-social-link:hover { color: var(--gold-text) !important; transform: none; }

/* Karten: Beteiligungen und Exits – die ganze Karte ist klickbar (Link des Logos bzw. der Domain) */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 20px; }
.karte { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid var(--linie); border-radius: var(--radius); transition: border-color .15s; }
.karte:hover { border-color: var(--gold); }
.karte a::after, .kachel a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.karte .karte__logo { display: flex; align-items: center; height: 64px; margin: 0 0 18px; }
.karte .karte__logo a { display: flex; align-items: center; height: 100%; }
.karte .karte__logo img { width: auto; max-width: 78%; height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.karte__name { font-size: 17px; font-weight: 650; line-height: 1.3; }
.karte__text { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.karte__link { margin-top: auto; padding-top: 14px; color: var(--gold-text); font-size: 15px; font-weight: 500; }
.karte__link a { text-decoration: none; }
.karte:hover .karte__link a { color: var(--gold-text); text-decoration: underline; }
.karten--exits { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.karte--exit { padding: 18px 18px 16px; }
.karte--exit .karte__logo { height: 48px; margin-bottom: 14px; }
.karte--exit .karte__logo img { max-height: 40px; }
.karte--exit .karte__name { font-size: 16px; }

/* Kacheln: eigene Brands */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 20px; }
.kachel { position: relative; display: flex; flex-direction: column; padding: 16px 16px 14px; border: 1px solid var(--linie); border-radius: var(--radius); transition: border-color .15s; }
.kachel:hover { border-color: var(--gold); }
.kachel .kachel__logo { display: flex; align-items: center; height: 44px; margin: 0 0 12px; }
.kachel .kachel__logo a { display: flex; align-items: center; height: 100%; }
.kachel .kachel__logo img { width: auto; max-width: 92%; height: auto; max-height: 34px; object-fit: contain; object-position: left center; }
.kachel__name { font-size: 15px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.kachel__text { margin-top: 2px; font-size: 14px; line-height: 1.35; }
@media (max-width: 420px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fakten der drei Angebote */
.fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 32px; }
.fakt { padding: 20px 22px; background: var(--gold-hell); border-radius: var(--radius); }
.fakt__titel { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.fakt__text { margin-top: 6px; font-size: 15px; line-height: 1.4; }

/* Handy: Karten und Fakten zweispaltig, damit die Seite nicht endlos wird */
@media (max-width: 599px) {
	.karten, .karten--exits, .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.karte, .karte--exit { padding: 16px 14px 14px; overflow-wrap: break-word; }
	.karte .karte__logo, .karte--exit .karte__logo { height: 44px; margin-bottom: 12px; }
	.karte .karte__logo img { max-width: 100%; max-height: 36px; }
	.karte__name, .karte--exit .karte__name { font-size: 15px; }
	.karte__text, .karte__link { font-size: 14px; }
	.karte__text { hyphens: auto; }
	.karte__link { overflow-wrap: anywhere; }
	.fakt { padding: 16px 14px; hyphens: auto; }
	.fakt__titel { font-size: 18px; }
	.fakt__text { font-size: 14px; }
	.gruppe { margin-top: 44px; }
}

/* Über mich: drei Worte (Nummer per Zähler) */
.worte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: wort; }
.worte li { padding-top: 14px; border-top: 2px solid var(--gold); font-size: 15px; line-height: 1.4; counter-increment: wort; }
.worte li::before { content: "0" counter(wort); display: block; margin-bottom: 6px; color: var(--gold-text); font-size: 14px; font-weight: 650; letter-spacing: .08em; }
.worte strong { display: block; margin-bottom: 4px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* Werdegang: Jahr fett links, Text rechts */
.zeitleiste { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.zeitleiste li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 16px; line-height: 1.45; }
.zeitleiste strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) { .zeitleiste li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.steckbrief { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 32px; }
.steckbrief p { font-size: 16px; line-height: 1.55; }

/* Kontakt: Symbole für Telefon und E-Mail */
.kontakt { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.kontakt li { font-size: 18px; }
.kontakt a { display: inline-flex; align-items: center; gap: 10px; }
.kontakt a::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--gold-text); -webkit-mask: var(--symbol) center / contain no-repeat; mask: var(--symbol) center / contain no-repeat; }
.kontakt a[href^="tel:"] { --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h3.5l2 5L8 10a11.5 11.5 0 0 0 6 6l1.5-2.5 5 2V19a2 2 0 0 1-2 2A16 16 0 0 1 3 5.5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.kontakt a[href^="mailto:"] { --symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3z'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E"); }

/* Fuß (Muster „Fußzeile“): Copyright links, Impressum und Datenschutz rechts */
.fuss { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 24px 0 40px; border-top: 1px solid var(--linie); font-size: 14px; }
.fuss p { margin: 0; }
.fuss__links a + a { margin-left: 20px; }

/* Andere Seiten (z. B. Datenschutzerklärung): normaler Fließtext */
.eintrag .abschnitt--start { padding-bottom: 28px; }
.eintrag .text { padding-top: 36px; }
.text { font-size: 17px; line-height: 1.65; }
.text > * + * { margin-top: 1em; }
.text > :first-child { margin-top: 0; }
.text h2 { margin-top: 2em; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.text h3 { margin-top: 1.6em; font-size: 20px; font-weight: 650; line-height: 1.3; }
.text ul, .text ol { padding-left: 1.3em; }
.text li + li { margin-top: .3em; }
