/*
Theme Name: Denktiegel
Author: Denktiegel
Description: Theme für den Verlag Denktiegel. Startseite mit Banner und sechs Themenbereichen, Bücher mit Kauflink und Videos, Reels und Videos pro Themenbereich, Blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: denktiegel
*/

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
	--nacht: #150703;      /* fast schwarzes Dunkelbraun aus dem Banner */
	--braun: #261108;      /* dunkelbraune Flächen */
	--linie: #432411;      /* Trennlinien */
	--bronze: #B38A63;     /* Akzent, Nebentexte */
	--kupfer: #946643;     /* feine Zierlinie */
	--champagner: #E1CEAE; /* Schrift und Knöpfe */
	--serif: "EB Garamond", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nacht); color: var(--champagner); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--champagner); }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--champagner); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dt-skip { position: absolute; left: -999px; top: 0; background: var(--champagner); color: var(--nacht); padding: 12px 16px; z-index: 10; }
.dt-skip:focus { left: 0; }

/* Kopfzeile */
.dt-header { background: var(--nacht); border-bottom: 1px solid var(--linie); }
.dt-header__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; min-height: 80px; padding: 10px 40px; }
.dt-marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.dt-marke__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dt-marke__name { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.dt-nav { flex: 1 1 auto; }
.dt-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 34px; }
.dt-nav__list a { display: block; padding: 12px 0; text-decoration: none; }
.dt-nav__list .current-menu-item > a { border-bottom: 1px solid var(--bronze); }
.dt-suche { display: flex; align-items: center; border: 1px solid var(--linie); }
.dt-suche input { width: 130px; height: 42px; padding: 0 12px; border: 0; background: transparent; color: var(--champagner); font: inherit; }
.dt-suche input::placeholder { color: var(--bronze); opacity: 1; }
.dt-suche button { width: 44px; height: 42px; border: 0; background: transparent; color: var(--champagner); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dt-admin { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--bronze); text-decoration: none; font-weight: 600; }
.dt-themenleiste { border-top: 1px solid var(--linie); background: var(--braun); }
.dt-themenleiste__innen { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 0 40px; font-size: 14px; }
.dt-themenleiste a { padding: 12px 0; text-decoration: none; }
.dt-themenleiste a.ist-aktiv { border-bottom: 2px solid var(--champagner); font-weight: 600; }

/* Startseite */
.dt-banner { display: block; width: 100%; height: auto; }
.dt-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 10px 40px; min-height: 64px; background: var(--braun); border-top: 1px solid var(--kupfer); border-bottom: 1px solid var(--linie); }
.dt-leitsatz { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; }
.dt-leiste__kanaele { display: flex; flex-wrap: wrap; gap: 12px; }
.dt-themen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dt-thema { display: flex; flex-direction: column; gap: 14px; min-height: 216px; padding: 32px 28px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.dt-thema:last-child { border-right: 0; }
.dt-thema__strich { width: 36px; height: 2px; background: var(--bronze); }
.dt-thema__name { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.15; text-decoration: none; }
.dt-thema__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.dt-thema__links a { color: var(--bronze); padding: 10px 0; }
.dt-thema__links a:hover { color: var(--champagner); }

/* Knöpfe */
.dt-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--champagner); color: var(--nacht); border: 1px solid var(--champagner); text-decoration: none; font-weight: 600; }
.dt-btn:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--nacht); }
.dt-btn--linie { background: transparent; color: var(--champagner); border-color: var(--bronze); font-weight: 500; }
.dt-btn--linie:hover { background: var(--linie); border-color: var(--champagner); color: #FFFFFF; }
.dt-btn--gross { min-height: 50px; padding: 0 22px; }
.dt-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Abschnitte und Raster */
.dt-abschnitt { padding: 56px 0; }
.dt-abschnitt--hell { background: var(--braun); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.dt-innen { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.dt-innen--schmal { max-width: 800px; }
.dt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.dt-seitenkopf { padding: 40px 0; background: var(--braun); border-bottom: 1px solid var(--linie); }
.dt-pfad { margin: 0 0 10px; font-size: 14px; color: var(--bronze); }
.dt-einleitung { max-width: 720px; margin-top: 14px; font-size: 18px; }
.dt-meta { color: var(--bronze); margin: 8px 0 0; }
.dt-leer { color: var(--bronze); }
.dt-raster { display: grid; gap: 36px 28px; }
.dt-raster--buecher { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dt-raster--klein { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dt-raster--videos { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: start; }
.dt-raster--beitraege { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Buchkarte */
.dt-buch { display: flex; flex-direction: column; text-decoration: none; }
.dt-buch__cover { display: block; aspect-ratio: 2 / 3; background: var(--braun); border: 1px solid var(--linie); overflow: hidden; }
.dt-buch__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-buch__leer { display: flex; height: 100%; align-items: center; justify-content: center; padding: 16px; text-align: center; font-family: var(--serif); font-size: 20px; }
.dt-buch__titel { margin-top: 12px; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.dt-buch__autor { font-size: 14px; color: var(--bronze); }

/* Beitragskarte */
.dt-beitrag { display: flex; flex-direction: column; background: var(--braun); border: 1px solid var(--linie); text-decoration: none; }
.dt-abschnitt--hell .dt-beitrag { background: var(--nacht); }
.dt-beitrag__bild img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dt-beitrag__text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.dt-beitrag__meta { font-size: 13px; color: var(--bronze); }
.dt-beitrag__titel { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.dt-beitrag__auszug { font-size: 15px; }

/* Videos */
.dt-video__titel { margin-top: 10px; font-weight: 500; }
.dt-video--einzeln { max-width: 420px; margin-top: 24px; }
.dt-player { position: relative; background: var(--braun); border: 1px solid var(--linie); overflow: hidden; }
.dt-abschnitt--hell .dt-player { background: var(--nacht); }
.dt-player--hoch { aspect-ratio: 9 / 16; }
.dt-player--quer { aspect-ratio: 16 / 9; }
.dt-player--instagram { aspect-ratio: 9 / 19; }
.dt-player video, .dt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.dt-player__start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 20px; border: 0; background: transparent; color: var(--champagner); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.dt-player__start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.dt-player__knopf, .dt-player__text, .dt-player__hinweis { position: relative; }
.dt-player__knopf { width: 64px; height: 64px; border-radius: 50%; background: var(--champagner); color: var(--nacht); display: flex; align-items: center; justify-content: center; }
.dt-player__text { font-weight: 600; }
.dt-player__hinweis { font-size: 12px; max-width: 220px; }
.dt-player__start:hover .dt-player__knopf { background: #FFFFFF; }

/* Buchseite */
.dt-buchseite { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; margin-top: 20px; align-items: start; }
.dt-buchseite__cover img { display: block; width: 100%; border: 1px solid var(--linie); }
.dt-untertitel { margin: 6px 0 0; font-family: var(--serif); font-size: 24px; }
.dt-knoepfe--kauf { margin: 24px 0 28px; }
.dt-buchdaten { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--linie); }
.dt-buchdaten dt { font-size: 13px; color: var(--bronze); }
.dt-buchdaten dd { margin: 0; }

/* Fliesstext */
.dt-text { max-width: 70ch; font-size: 18px; line-height: 1.7; }
.dt-text h2, .dt-text h3 { margin: 1.6em 0 0.5em; }
.dt-text img { height: auto; }
.dt-text blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--bronze); font-family: var(--serif); font-size: 22px; }
.dt-titelbild { margin: 24px 0; }
.dt-titelbild img { display: block; width: 100%; }

/* Seitenzahlen */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--linie); text-decoration: none; }
.pagination .page-numbers.current { background: var(--champagner); color: var(--nacht); border-color: var(--champagner); }

/* Fusszeile */
.dt-footer { background: var(--braun); border-top: 1px solid var(--kupfer); font-size: 14px; }
.dt-footer__innen { max-width: 1280px; margin: 0 auto; padding: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; }
.dt-footer__name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.dt-footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.dt-footer__links a { padding: 12px 0; }

/* Schmalere Bildschirme */
@media (max-width: 1100px) {
	.dt-themen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dt-thema { min-height: 170px; }
	.dt-thema:nth-child(3n) { border-right: 0; }
}
@media (max-width: 760px) {
	.dt-header__zeile, .dt-leiste, .dt-themenleiste__innen, .dt-innen, .dt-footer__innen { padding-left: 20px; padding-right: 20px; }
	.dt-nav { order: 5; flex-basis: 100%; }
	.dt-nav__list { justify-content: flex-start; gap: 0 22px; }
	.dt-suche { flex: 1 1 140px; }
	.dt-suche input { width: 100%; }
	.dt-themen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dt-thema { padding: 22px 20px; min-height: 150px; }
	.dt-thema:nth-child(3n) { border-right: 1px solid var(--linie); }
	.dt-thema:nth-child(2n) { border-right: 0; }
	.dt-thema__name { font-size: 21px; }
	.dt-buchseite { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.dt-buchseite__cover { max-width: 280px; }
	.dt-abschnitt { padding: 40px 0; }
	.dt-raster--buecher { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
	.dt-raster--beitraege { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
	.dt-btn, .dt-player__knopf { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
