/*
Theme Name: LE MATIN
Description: Edles Nachrichten-Theme für LE MATIN – Agence de Presse. Schwarz, Elfenbein und Gold, mit Skyline von Paris, Berlin und Casablanca. Schriften lokal eingebunden (keine Verbindung zu Google).
Version: 1.0.1
Requires at least: 5.6
Requires PHP: 7.4
Text Domain: lematin
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ink: #111111; --ink-2: #2a2826; --ivory: #f8f5ef; --paper: #ffffff;
	--gold: #b8924a; --gold-l: #d9bc7c; --gold-d: #8a6a2e;
	--muted: #6f6a62; --rule: #e5ddcf;
	--serif: 'Playfair Display', Georgia, serif;
	--display: 'Cormorant Garamond', Georgia, serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menu { list-style: none; margin: 0; padding: 0; }

/* ---------- Obere Leiste ---------- */
.topbar { background: var(--ink); color: #cfc8bb; font-size: 12px; letter-spacing: .08em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 20px; }
.topbar .today, .topbar span { white-space: nowrap; }
.topbar .cities { font-family: var(--display); font-size: 14px; letter-spacing: .3em; color: var(--gold-l); }
.topbar .links .menu { display: flex; gap: 22px; }
.topbar a:hover { color: var(--gold-l); }

/* ---------- Kopf mit Logo ---------- */
.masthead { background: var(--paper); position: relative; }
.masthead > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 26px; padding-bottom: 18px; }
.site-logo { margin: 0; line-height: 0; font-size: 0; }
.site-logo a { display: block; width: 380px; color: var(--ink); }
.site-logo svg { width: 100%; height: auto; display: block; }
.masthead .left, .masthead .right { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 13px; }
.masthead .right { justify-content: flex-end; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; background: none; cursor: pointer; color: var(--ink); padding: 0; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-gold { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 13px 22px; border: 1px solid var(--gold); color: var(--gold-d); background: transparent; cursor: pointer; transition: .25s; }
.btn-gold:hover { background: var(--gold); color: #fff; }
.btn-gold.solid { background: var(--gold); color: #fff; }
.btn-gold.solid:hover { background: var(--gold-d); border-color: var(--gold-d); }

/* Suche */
.search-panel { border-top: 1px solid var(--rule); padding: 22px 0; background: var(--paper); }
.search-form { display: flex; max-width: 640px; margin: 0 auto; }
.search-field { flex: 1; min-width: 0; border: 1px solid var(--rule); border-right: 0; padding: 14px 18px; font: 15px var(--sans); background: var(--ivory); outline: none; border-radius: 0; }
.search-field:focus { border-color: var(--gold); }

/* ---------- Rubriken-Leiste ---------- */
.nav { background: var(--paper); position: sticky; top: 0; z-index: 20; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.admin-bar .nav { top: 32px; }
.admin-bar .drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav, .admin-bar .drawer { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
.nav::before { content: ""; display: block; height: 3px; border-bottom: 1px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 52px; }
.nav .mini { width: 0; overflow: hidden; opacity: 0; transition: .3s; flex: none; }
.nav .mini svg { width: 120px; height: auto; display: block; }
.nav.stuck .mini { width: 120px; opacity: 1; }
.nav .menu { margin: 0 auto; display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.nav .menu::-webkit-scrollbar { display: none; }
.nav .menu a { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 16px 0; display: block; position: relative; white-space: nowrap; }
.nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.nav .menu a:hover::after, .nav .current-menu-item > a::after, .nav .current-cat > a::after, .nav .current-post-ancestor > a::after { transform: scaleX(1); }
.nav .current-menu-item > a, .nav .current-cat > a, .nav .current-post-ancestor > a { color: var(--gold-d); }

/* Rubriken-Menü (Schublade) */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(17, 17, 17, .45); }
.drawer-inner { position: absolute; left: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--ink); color: #f2eee7; padding: 70px 36px 36px; overflow-y: auto; }
.drawer-close { position: absolute; top: 18px; right: 18px; color: #fff; border-color: #333; }
.drawer-logo svg { width: 170px; height: auto; color: #fff; display: block; margin-bottom: 26px; }
.drawer .menu li a { display: block; padding: 11px 0; border-bottom: 1px solid #2a2a2a; font-family: var(--display); font-size: 24px; font-weight: 600; }
.drawer .menu li a:hover { color: var(--gold-l); }
.drawer-search { margin-top: 28px; }
.drawer-search .search-form { flex-direction: column; gap: 8px; }
.drawer-search .search-field { border-right: 1px solid #333; background: #1c1c1c; border-color: #333; color: #fff; }
.drawer-sky { width: 100%; color: var(--gold); opacity: .5; margin-top: 40px; }
body.drawer-open { overflow: hidden; }

/* ---------- Laufband ---------- */
.ticker { background: var(--ivory); border-bottom: 1px solid var(--rule); }
.ticker .wrap { display: flex; align-items: center; height: 46px; gap: 18px; overflow: hidden; }
.ticker .label { flex: none; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 18px; color: var(--gold-d); }
.ticker .label::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-left: 14px; }
.ticker .viewport { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker .track { display: flex; gap: 48px; white-space: nowrap; animation: lm-scroll 70s linear infinite; font-size: 14px; width: max-content; }
.ticker .track a:hover { color: var(--gold-d); }
.ticker .track b { color: var(--gold-d); font-weight: 600; margin-right: 8px; font-size: 12px; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes lm-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ---------- Gemeinsame Bausteine ---------- */
.kicker { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); }
.meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.h-serif { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 8px 0 10px; }
.card { display: block; }
.card .img { overflow: hidden; aspect-ratio: 3 / 2; background: #e9e3d8; }
.card .img img, .feature > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .img img { transform: scale(1.04); }
.card:hover .h-serif { color: var(--gold-d); }
.card .body { padding-top: 16px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.noimg { display: grid; place-items: end center; width: 100%; height: 100%; background: var(--ink); padding: 0 12% 6%; }
.noimg svg { width: 100%; color: var(--gold); opacity: .8; }
.section { padding: 64px 0 8px; }
.sec-title { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.sec-title h2 { font-family: var(--display); font-weight: 600; font-size: 34px; margin: 0; letter-spacing: .01em; line-height: 1.1; }
.sec-title .line { flex: 1; min-width: 0; height: 1px; background: var(--rule); position: relative; }
.sec-title .line::before { content: ""; position: absolute; left: 0; top: -1px; width: 60px; max-width: 100%; height: 3px; background: var(--gold); }
.sec-title a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sec-title a:hover { color: var(--gold-d); }
.more { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

/* ---------- Top-Story ---------- */
.lead { padding-top: 44px; }
.lead-story { display: grid; grid-template-columns: 1.6fr 1fr; gap: 52px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid var(--rule); }
.lead-story .img { aspect-ratio: 16 / 10; }
.lead-story .h-serif { font-size: 48px; line-height: 1.1; margin: 16px 0 18px; font-weight: 700; }
.lead-story p { font-size: 18px; color: var(--ink-2); margin: 0 0 16px; font-family: var(--serif); font-weight: 500; line-height: 1.6; }
.lead-story .more { margin-top: 26px; }

/* ---------- Raster ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.grid4 .h-serif { font-size: 19px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px; }
.grid3 .h-serif { font-size: 23px; }

/* ---------- Schwarzer Bereich ---------- */
.band { background: var(--ink); color: #f2eee7; margin-top: 72px; padding: 70px 0 76px; position: relative; overflow: hidden; }
.band .sec-title h2 { color: #fff; }
.band .sec-title .line { background: #333; }
.band .sec-title a { color: #a39d92; }
.band .kicker { color: var(--gold-l); }
.band .meta { color: #9c968b; }
.band-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; position: relative; }
.feature { position: relative; min-height: 520px; overflow: hidden; display: block; background: #222; }
.feature > img, .feature > .noimg { position: absolute; inset: 0; }
.feature:hover > img { transform: scale(1.03); }
.feature .over { position: absolute; inset: auto 0 0 0; padding: 120px 36px 34px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.feature .h-serif { font-size: 36px; color: #fff; max-width: 560px; }
.band-list .card { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #2c2c2c; }
.band-list .card:last-child { border: 0; margin-bottom: 0; }
.band-list .card .img { aspect-ratio: 1; }
.band-list .h-serif { font-size: 20px; color: #fff; }
.band-list .card:hover .h-serif { color: var(--gold-l); }
.band .ornament { position: absolute; right: -40px; bottom: -6px; width: 640px; color: var(--gold); opacity: .08; pointer-events: none; }
.section-3 { padding-top: 72px; }

/* ---------- Zitat ---------- */
.editorial { margin-top: 72px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 56px 0; text-align: center; }
.editorial blockquote { font-family: var(--display); font-style: italic; font-size: 38px; line-height: 1.3; max-width: 860px; margin: 0 auto 18px; font-weight: 500; }
.editorial blockquote::before { content: "\201C"; display: block; font-size: 90px; line-height: .6; color: var(--gold); font-style: normal; margin-bottom: 18px; }

/* ---------- Rubrik- und Suchseiten ---------- */
.archive-head { text-align: center; padding: 56px 0 44px; border-bottom: 1px solid var(--ink); margin-bottom: 48px; position: relative; }
.archive-head::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 60px; height: 3px; background: var(--gold); transform: translateX(-50%); }
.archive-head h1 { font-family: var(--display); font-weight: 600; font-size: 60px; line-height: 1.05; margin: 10px 0 12px; }
.archive-head .meta { justify-content: center; }
.archive-desc { max-width: 640px; margin: 0 auto; color: var(--muted); }
.archive-search { margin-top: 24px; }
.empty { text-align: center; padding: 20px 0 40px; color: var(--muted); }
.pagination { margin: 64px 0 0; display: flex; justify-content: center; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--rule); background: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.pagination a:hover { border-color: var(--gold); color: var(--gold-d); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* ---------- Artikel ---------- */
.article-wrap { max-width: 1180px; margin: 0 auto; padding: 56px 28px 0; }
.article-head { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.article-head .h-serif { font-size: 50px; line-height: 1.12; font-weight: 700; margin: 16px 0 18px; }
.article-head .standfirst { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; }
.article-head .meta { justify-content: center; }
.article-image { margin: 0 0 48px; }
.article-image img { width: 100%; display: block; }
.article-image figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.article-body > p:first-of-type::first-letter { font-family: var(--display); float: left; font-size: 78px; line-height: .8; padding: 8px 10px 0 0; color: var(--gold-d); font-weight: 600; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 2em 0 .6em; }
.article-body h2 { font-size: 30px; }
.article-body h3 { font-size: 24px; }
.article-body a { color: var(--gold-d); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 3px solid var(--gold); font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1.4; color: var(--ink); }
.article-body img, .article-body figure { max-width: 100%; height: auto; }
.article-body figure { margin: 2em 0; }
.article-body figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); padding-top: 8px; }
.article-body iframe, .article-body video { max-width: 100%; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.page-links { margin-top: 2em; font-weight: 600; }
.article-foot { max-width: 720px; margin: 40px auto 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--rule); padding: 7px 12px; background: var(--paper); }
.tags a:hover { border-color: var(--gold); color: var(--gold-d); }
.end-ornament { margin: 48px auto 0; width: 220px; color: var(--gold); opacity: .6; }
.related { padding-top: 80px; }

/* Kommentare */
.comments { max-width: 720px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--rule); }
.comments-title, .comment-reply-title { font-family: var(--display); font-size: 30px; font-weight: 600; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--rule); background: var(--paper); padding: 12px 14px; font: 15px var(--sans); }

/* 404 */
.notfound { text-align: center; padding: 80px 28px 20px; }
.notfound-sky { width: 360px; max-width: 80%; color: var(--gold); display: block; margin: 0 auto 30px; }
.notfound h1 { font-family: var(--display); font-size: 52px; margin: 10px 0; }
.notfound p { color: var(--muted); }
.notfound .search-form { margin: 28px auto; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--ink); color: #bdb6aa; margin-top: 90px; font-size: 14px; }
.site-footer .sky { display: block; width: 100%; max-width: 860px; margin: 0 auto; padding: 56px 28px 0; color: var(--gold); }
.foot { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 48px; padding: 52px 0 44px; border-bottom: 1px solid #2a2a2a; }
.foot .logo { display: block; width: 250px; color: #f4efe6; }
.foot .logo svg { width: 100%; height: auto; display: block; }
.foot .kicker { margin-top: 14px; color: var(--gold-l); }
.foot p { max-width: 320px; margin: 18px 0 0; line-height: 1.7; }
.foot h4 { font-family: var(--display); color: #fff; font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.foot .menu { display: grid; gap: 9px; }
.foot .menu.cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.foot a:hover { color: var(--gold-l); }
.copy { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0 30px; font-size: 12.5px; letter-spacing: .04em; }
.copy .cities { font-family: var(--display); letter-spacing: .3em; color: var(--gold); }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.lead-story, .band-grid { grid-template-columns: 1fr; gap: 28px; }
	.grid4 { grid-template-columns: repeat(2, 1fr); }
	.grid3 { grid-template-columns: 1fr 1fr; }
	.foot { grid-template-columns: 1fr 1fr; }
	.nav .menu { margin: 0; }
	.topbar .links { display: none; }
	.alignwide { margin-left: 0; margin-right: 0; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
	.wrap { padding: 0 18px; }
	.topbar .today { display: none; }
	.topbar .wrap { justify-content: center; }
	.topbar .cities { font-size: 12px; letter-spacing: .22em; }
	.masthead > .wrap { grid-template-columns: auto 1fr auto; gap: 10px; }
	.site-logo a { width: 100%; max-width: 230px; margin: 0 auto; }
	.masthead .left span, .masthead .right span { display: none; }
	.sec-title { justify-content: space-between; }
	.sec-title h2 { font-size: 30px; }
	.sec-title .line { display: none; }
	.lead-story .h-serif { font-size: 30px; }
	.lead-story p { font-size: 16px; }
	.grid4, .grid3 { grid-template-columns: 1fr; }
	.feature { min-height: 400px; }
	.feature .h-serif { font-size: 26px; }
	.band-list .card { grid-template-columns: 110px 1fr; }
	.editorial blockquote { font-size: 27px; }
	.archive-head h1 { font-size: 40px; }
	.article-wrap { padding: 32px 18px 0; }
	.article-head .h-serif { font-size: 32px; }
	.article-head .standfirst { font-size: 18px; }
	.article-image { margin-left: -18px; margin-right: -18px; }
	.article-image figcaption { padding-left: 18px; padding-right: 18px; }
	.article-body { font-size: 17px; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.foot { grid-template-columns: 1fr; }
	.copy { flex-direction: column; }
	.gallery { grid-template-columns: 1fr 1fr; }
}
