/* Comator Guide – Gestaltung angelehnt an die Projektseite update.comator.org */

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/open-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url(/fonts/open-sans-latin-700-italic.woff2) format('woff2'); }

:root {
	--dark: #222933;
	--blue: #0099cc;
	--blue-dark: #007aa3;
	--marker: #e8590c;
	--text: #222933;
	--muted: #5b6370;
	--line: #d9dce1;
	--soft: #f2f3f5;
	--note: #e6f5fa;
	--warn: #fff4e5;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body { font-family: 'Open Sans', Arial, sans-serif; font-size: 17px; line-height: 1.65; color: var(--text); background: #fff; }

a { color: var(--blue-dark); }
a:hover { color: var(--dark); }

.wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* Kopfleiste */

header { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px; background: var(--dark); color: #fff; }
header .logo img { display: block; }
header .logo-sub { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #9fd8ec; }
header .header-link { margin-left: auto; font-size: 14px; color: #fff; text-decoration: none; opacity: .85; }
header .header-link:hover { opacity: 1; text-decoration: underline; color: #fff; }

/* Teaser (nur Übersicht) */

.teaser { display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 40px 20px; background: var(--blue) url(/images/slide_background.jpg) center / cover; color: #fff; text-align: center; }
.teaser .title { display: block; font-size: 56px; line-height: 1.2; }
.teaser .title_sub { display: block; font-size: 26px; line-height: 1.4; margin-top: 6px; }

/* Aufbau */

.layout { flex: 1; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; width: 100%; max-width: 1240px; margin: 40px auto 60px; padding: 0 20px; }

.toc { font-size: 15px; line-height: 1.4; }
.toc details { position: sticky; top: 20px; }
.toc summary { display: none; }
.toc ul { list-style: none; margin: 0 0 18px; padding: 0; }
.toc li a { display: block; padding: 7px 12px; border-left: 3px solid transparent; color: var(--text); text-decoration: none; }
.toc li a:hover { background: var(--soft); }
.toc li.current a { border-left-color: var(--blue); background: var(--soft); font-weight: 700; }
.toc-section { margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Inhalt */

.content { min-width: 0; max-width: 860px; }
.content h1 { margin: 0 0 16px; font-size: 36px; line-height: 1.25; font-weight: 400; }
.content h2 { margin: 44px 0 10px; font-size: 26px; line-height: 1.3; font-weight: 400; padding-top: 20px; border-top: 1px solid var(--line); }
.content h3 { margin: 28px 0 6px; font-size: 19px; line-height: 1.4; }
.content p, .content ul, .content ol, .content table { margin: 0 0 14px; }
.content ul, .content ol { padding-left: 24px; }
.content li { margin-bottom: 4px; }
.content .lead { font-size: 19px; color: var(--muted); }
.content .crumb { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.content kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--soft); font: 14px/1.4 'Open Sans', Arial, sans-serif; }
.content code { padding: 1px 5px; border-radius: 3px; background: var(--soft); font-size: 15px; }
.content .ui { font-weight: 700; }

.content figure { margin: 18px 0 26px; }
.content figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.content figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); }

.content .note, .content .warn { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--note); }
.content .warn { border-left-color: var(--marker); background: var(--warn); }
.content .note > :last-child, .content .warn > :last-child { margin-bottom: 0; }

.content ol.legend { list-style: none; padding: 0; counter-reset: legend; }
.content ol.legend li { position: relative; padding-left: 40px; margin-bottom: 10px; counter-increment: legend; }
.content ol.legend li::before { content: counter(legend); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--marker); color: #fff; font-size: 14px; font-weight: 700; line-height: 26px; text-align: center; }

.content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.content th, .content td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--soft); }

.content .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.content .cards li { margin: 0; }
.content .cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; }
.content .cards a:hover { border-color: var(--blue); }
.content .cards strong { display: block; margin-bottom: 4px; color: var(--blue-dark); }

.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.pager .next { margin-left: auto; text-align: right; }

.print-intro button { padding: 8px 18px; border: 0; background: var(--dark); color: #fff; font: inherit; cursor: pointer; }
.print-chapter + .print-chapter { margin-top: 60px; }
.mode-print .layout { grid-template-columns: minmax(0, 1fr); }

/* Fußzeile */

footer { border-top: 1px solid #ccc; padding: 20px; text-align: center; font-size: 14px; font-weight: 700; color: #666; }
footer a { color: #666; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Schmale Bildschirme */

@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
	.toc details { position: static; border: 1px solid var(--line); border-radius: 4px; padding: 0 0 4px; }
	.toc summary { display: block; padding: 10px 12px; font-weight: 700; cursor: pointer; }
	.teaser { min-height: 180px; }
	.teaser .title { font-size: 40px; }
	.teaser .title_sub { font-size: 20px; }
	.content h1 { font-size: 28px; }
	.content h2 { font-size: 22px; }
}

@media (max-width: 480px) {
	body { font-size: 16px; }
	header .header-link { display: none; }
}
