/* ==========================================================================
   php-net.pro — Print-Ressortseite AI: "The Model Desk" (Guardian 2018).
   Fetter zweizeiliger Serif-Masthead, Ressort-Farbcodes (News=Rot,
   Tooling=Schwarz-auf-Gelb, Lesestoff=Tuerkis, Sonstiges=Orange),
   Vierfachlinie, leichte grosse Headlines. Dark = Guardian-App-Anthrazit,
   Weiss warm gedimmt (Jack 20.07.).
   Konzept: mockups/news/mockup-sect-model-guardian.html
   ========================================================================== */

@font-face {
	font-family: 'Source Serif 4';
	src: url('/fonts/source-serif-4-var.woff2') format('woff2-variations');
	font-weight: 200 900;
	font-display: swap;
}

:root {
	color-scheme: light;
	--desk: #ececec;
	--white: #fff;
	--paper: #ffffff;
	--ink: #121212;
	--ink-2: #444;
	--ink-3: #767676;
	--g-red: #c70000;
	--g-yellow: #ffe500;
	--g-turq: #00b2a2;
	--g-orange: #e05e00;
	--rule: #dcdcdc;
	--serif: 'Source Serif 4', Georgia, serif;
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* Guardian-App-Dark: Anthrazit warm getoent, Ressortfarben eine Stufe heller,
   Weiss mittelstark warm gedimmt */
:root[data-theme="dark"] {
	color-scheme: dark;
	--desk: #0b0a09;
	--paper: #181613;
	--white: #eae3d4;
	--ink: #e2dbce;
	--ink-2: #b0a99b;
	--ink-3: #8a8477;
	--rule: #3b3833;
	--g-red: #ff5943;
	--g-turq: #3fd1c4;
	--g-orange: #ff8438;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--serif); font-size: 15.5px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.sheet { max-width: 1180px; margin: 26px auto 60px; padding: 0 0 40px; background: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, .18); }

.utility { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding: 10px 40px; border-bottom: 1px solid var(--rule); }
.utility a { margin-left: 12px; }
.utility a:first-child { margin-left: 0; }
.utility .active { color: var(--g-red); font-weight: 800; }
.mode-toggle { background: none; border: 1px solid currentColor; border-radius: 4px; color: inherit; font: inherit; cursor: pointer; margin-left: 12px; padding: 1px 7px; }

/* ---- Masthead ---- */
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 40px 18px; }
.masthead h1 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(40px, 5.8vw, 64px); line-height: .94; letter-spacing: -.02em; }
.masthead h1 span { display: block; }
.masthead h1 .accent { color: var(--g-red); }
.masthead-meta { text-align: right; font-family: var(--sans); font-size: 11px; color: var(--ink-2); line-height: 1.6; }
.masthead-meta .datebox { display: inline-block; background: var(--g-yellow); color: #121212; font-weight: 800; padding: 2px 8px; margin-bottom: 4px; }
.masthead-meta .langs a { margin-left: 6px; }
.masthead-meta .langs .active { color: var(--g-red); font-weight: 800; }

/* Signatur: Vierfachlinie */
.quadrule { border: 0; height: 13px; margin: 0 40px; background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 4px); background-size: 100% 13px; }
.quadrule.soft { background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 4px); }

/* ---- Kickers mit Farbcode ---- */
.kick { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 800; margin: 0 0 6px; }
.kick-news { color: var(--g-red); }
.kick-tool { background: var(--g-yellow); color: #121212; padding: 1px 7px; }
.kick-res { color: var(--g-turq); }
.kick-op { color: var(--g-orange); }
.kick::after { content: " /"; color: var(--ink-3); font-weight: 400; }
.kick-tool::after { content: ""; }

.hl { margin: 0 0 8px; font-weight: 300; line-height: 1.15; letter-spacing: -.01em; }
.hl-1 { font-size: clamp(30px, 4.4vw, 46px); }
.hl-2 { font-size: 24px; }
.hl-3 { font-size: 18px; }

.standfirst { font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; }
.byline { font-family: var(--sans); font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.byline i { color: var(--g-red); font-style: normal; }
.pageno { font-family: var(--sans); font-size: 11px; font-weight: 800; color: var(--g-red); }

/* ---- Panorama-Lead ---- */
.panorama { padding: 22px 40px 26px; }
.panorama .standfirst { max-width: 760px; }

/* ---- Karten-Reihen ---- */
.row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 40px 8px; }
.card { padding: 0 22px 18px; min-width: 0; }
.card + .card { border-left: 1px solid var(--rule); }
.card:first-child { padding-left: 0; }
.card:last-child { padding-right: 0; }
.card p.txt { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---- Blaettern + Leerzustand + Colophon ---- */
.pager { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 40px 0; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 12px; font-weight: 800; }
.pager a { color: var(--g-red); }
.pager .pos { color: var(--ink-3); font-weight: 600; }
.section-empty { padding: 46px 40px 36px; text-align: center; font-style: italic; color: var(--ink-2); }
.credit { margin: 18px 40px 0; text-align: center; font-family: var(--sans); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.credit a { margin: 0 6px; }

@media (max-width: 900px) {
	.sheet { margin: 0; box-shadow: none; }
	.utility, .masthead, .panorama, .row, .section-empty { padding-left: 18px; padding-right: 18px; }
	.quadrule { margin: 0 18px; }
	.pager, .credit { margin-left: 18px; margin-right: 18px; }
	.masthead { flex-direction: column; align-items: flex-start; }
	.masthead-meta { text-align: left; }
	.row { grid-template-columns: 1fr; }
	.card { padding: 0 0 16px; }
	.card + .card { border-left: 0; border-top: 1px solid var(--rule); padding-top: 14px; }
}

/* ---- Artikelseite (Guardian-Innenseite) ---- */

.masthead-small { padding: 18px 40px 12px; }
.masthead-small h1 { font-size: clamp(26px, 3.4vw, 38px); }
.art { max-width: 760px; margin: 0 auto; padding: 24px 40px 8px; }
.art-hl { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; text-wrap: balance; }
.art .art-stand { font-size: 16px; }
.art-byrow { display: flex; gap: 8px 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 10px; margin: 4px 0 16px; }
.art-byrow .byline { margin: 0; }
.art-body { font-size: 16.5px; line-height: 1.68; }
.art-body > p { margin: 0 0 1em; overflow-wrap: anywhere; }
.art-attrib { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }
.art-source { font-family: var(--sans); font-size: 13px; font-weight: 800; color: var(--g-red); }
.ai-label { margin: 18px 0 0; font-family: var(--sans); font-size: 10.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 10px; }
.art-back { margin-top: 14px; }

@media (max-width: 900px) {
	.masthead-small { padding: 14px 18px 10px; }
	.art { padding: 18px 18px 8px; }
}
