/* ==========================================================================
   Fernweh Tech — Tech-Blog-Theme im Magazinstil
   Klare Grotesk, Monospace für Auszeichnungen, kräftige Linien als Gliederung,
   Codeblöcke immer dunkel mit Syntaxhervorhebung (Prism).
   ========================================================================== */

/* Grundwerte
   -------------------------------------------------------------------------- */
:root {
    --bg: #ffffff;
    --text: #111318;
    --muted: #5f6672;
    --line: #dde0e5;
    --soft: #f1f3f5;
    --inverse-bg: #111318;
    --inverse-text: #ffffff;
    /* Akzentfarbe aus den Ghost-Einstellungen (Design → Marke) */
    --accent: var(--ghost-accent-color, #0a7cff);

    /* Die Schriften lassen sich in Ghost unter Design → Typografie austauschen */
    --font-heading: var(--gh-font-heading, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    --font-body: var(--gh-font-body, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", "Fira Code", Consolas, Menlo, monospace;

    /* Codeblöcke bleiben in beiden Farbschemata dunkel */
    --code-bg: #0d1117;
    --code-text: #e6edf3;
    --code-line: #30363d;

    --rule: 4px solid var(--text);
    --container: 1240px;
    --gutter: 20px;
    --radius: 6px;
}

[data-theme="dark"] {
    --bg: #0f1115;
    --text: #e8eaed;
    --muted: #9aa1ac;
    --line: #2a2f37;
    --soft: #1a1e24;
    --inverse-bg: #e8eaed;
    --inverse-text: #0f1115;
    --code-bg: #161b22;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: color-mix(in srgb, var(--accent) 30%, transparent);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: 780px;
}

/* Kleine Auszeichnungen: Themenname und Datumszeile in Monospace
   -------------------------------------------------------------------------- */
.label {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.label--boxed {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
}

.label--boxed:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.meta {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border: 0;
    border-radius: var(--radius);
    background: var(--inverse-bg);
    color: var(--inverse-text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Kopfbereich
   -------------------------------------------------------------------------- */
/* Hell/Dunkel-Schalter: nur ein Symbol neben dem Seitennamen */
.theme-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    color: var(--muted);
    transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle__moon,
[data-theme="dark"] .theme-toggle__sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__moon {
    display: block;
}

.icon-link {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    transition: color 0.15s;
}

.icon-link:hover {
    color: var(--accent);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 0 20px;
    border-bottom: var(--rule);
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.site-brand {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: clamp(30px, 5.5vw, 54px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.site-brand:hover {
    text-decoration: none;
}

.site-brand__logo {
    max-height: 72px;
    width: auto;
}

/* Ein dunkles Logo bleibt im dunklen Farbschema lesbar */
[data-theme="dark"] .site-brand__logo {
    filter: invert(1) hue-rotate(180deg);
}

.site-brand__prompt {
    color: var(--accent);
}

.site-brand__cursor {
    color: var(--muted);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-brand__cursor {
        animation: none;
    }
}

.masthead__tagline {
    max-width: 440px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Seitenaufbau mit Seitenleiste
   -------------------------------------------------------------------------- */
.site-main {
    padding-top: 22px;
    padding-bottom: 60px;
}

.with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 0 20px;
}

.sidebar {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

/* Aufmacher: großer Beitrag in der Mitte, je ein schmaler links und rechts
   -------------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 22px;
    padding-bottom: 36px;
}

.hero__lead {
    grid-column: 2;
    grid-row: 1;
}

.hero__side {
    grid-row: 1;
}

.hero__side:last-child {
    grid-column: 3;
}

.hero .card__date {
    display: none;
}

.hero .card__excerpt {
    display: block;
}

.hero__lead .card__image img {
    aspect-ratio: 16 / 9;
}

.hero__lead .card__title {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.1;
}

.hero__lead .card__excerpt {
    max-width: 38em;
    margin-top: 12px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.hero__lead .card__author {
    display: block;
    margin-top: 12px;
}

.hero__side .card__image img {
    aspect-ratio: 4 / 3;
}

.hero__side .card__excerpt {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* Beitragskarte
   -------------------------------------------------------------------------- */
.card__image {
    display: block;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--soft);
}

.card__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card__image img {
    transform: scale(1.03);
}

.card__tag {
    margin-bottom: 6px;
}

.card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card__title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.card__excerpt {
    display: none;
    margin-top: 10px;
}

.card__author {
    display: none;
}

.card__date {
    display: block;
    margin-top: 10px;
}

/* Beiträge ohne Bild bekommen eine Linie, damit das Raster ruhig bleibt */
.card:not(:has(.card__image)) {
    padding-top: 12px;
    border-top: 3px solid var(--accent);
}

/* Abschnitte der Startseite und Beitragsraster
   -------------------------------------------------------------------------- */
.section {
    padding: 8px 0 44px;
    border-top: var(--rule);
}

.section--first {
    padding-top: 0;
    border-top: 0;
}

.section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section__title {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.section__title::before {
    content: "# ";
    color: var(--accent);
}

.section__more {
    font-family: var(--font-mono);
    font-size: 13px;
    white-space: nowrap;
}

.section__more:hover {
    color: var(--accent);
    text-decoration: none;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
}

.tag-section .card__tag {
    display: none;
}

/* Seitenleiste
   -------------------------------------------------------------------------- */
.widget {
    margin-bottom: 34px;
}

.widget__title {
    margin-bottom: 14px;
    padding: 4px 8px;
    border-radius: var(--radius);
    background: var(--inverse-bg);
    color: var(--inverse-text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.widget__title::before {
    content: "> ";
    color: var(--accent);
}

.widget__portrait {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 16px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}

.widget__text {
    font-size: 14px;
    line-height: 1.6;
}

.banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
}

.banner img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.banner__title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.mini-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-post {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.mini-post:first-child {
    padding-top: 0;
}

.mini-post:last-child {
    border-bottom: 0;
}

.mini-post__title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.mini-post__image {
    flex: 0 0 64px;
}

.mini-post__image img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: cover;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
}

.tag-cloud a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.tag-cloud__count {
    color: var(--muted);
}

/* Kopf der Themen- und Autorenübersicht
   -------------------------------------------------------------------------- */
.archive-header {
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 24px 0 8px;
    text-align: center;
}

.archive-header__portrait {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    object-fit: cover;
}

.archive-header__title {
    margin-top: 6px;
    font-size: clamp(32px, 5vw, 52px);
}

.archive-header__text {
    margin-top: 14px;
    color: var(--muted);
    font-size: 18px;
}

/* Seitenwechsel
   -------------------------------------------------------------------------- */
.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 14px;
}

.pagination__link:hover {
    color: var(--accent);
    text-decoration: none;
}

.pagination__link--older {
    text-align: right;
}

/* Beitrag und Seite
   -------------------------------------------------------------------------- */
.read-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    height: 3px;
    pointer-events: none;
}

.read-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

.article__header {
    padding-top: 32px;
    padding-bottom: 32px;
}

.article__title {
    margin-top: 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.article__excerpt {
    margin-top: 18px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.5;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 20px;
}

.article__meta a {
    color: inherit;
}

.article__image {
    margin: 0 auto 40px;
}

.article__image img {
    width: 100%;
    border-radius: var(--radius);
}

.article__image figcaption,
.gh-content figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
}

/* Inhalt: drei Breiten — Text, breit und volle Breite (Karten des Ghost-Editors) */
.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 200px)
        [main-start] min(740px, calc(100% - 2 * var(--gutter)))
        [main-end] minmax(0, 200px)
        [wide-end] minmax(var(--gutter), 1fr)
        [full-end];
    font-size: 18px;
    line-height: 1.75;
}

.gh-content > * {
    grid-column: main;
    min-width: 0;
    margin: 0 0 1.4em;
}

.gh-content > .kg-width-wide {
    grid-column: wide;
}

.gh-content > .kg-width-full {
    grid-column: full;
}

.gh-content > .kg-width-full img {
    width: 100%;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    scroll-margin-top: 20px;
}

.gh-content h2 {
    font-size: 28px;
}

.gh-content h3 {
    font-size: 22px;
}

.gh-content h4 {
    font-size: 18px;
}

.gh-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    text-decoration-thickness: 2px;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.3em;
}

.gh-content li + li {
    margin-top: 0.35em;
}

.gh-content li::marker {
    color: var(--accent);
}

.gh-content blockquote {
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--accent);
    color: var(--muted);
    font-size: 19px;
    font-style: italic;
}

.gh-content blockquote.kg-blockquote-alt {
    padding: 0;
    border: 0;
    color: var(--text);
    font-size: 24px;
    text-align: center;
}

.gh-content hr {
    width: 100%;
    height: 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.gh-content figure img {
    margin: 0 auto;
}

.gh-content > .kg-image-card:not(.kg-width-full) img,
.gh-content .kg-gallery-image img {
    border-radius: var(--radius);
}

/* Code im Fließtext, Tastenkürzel */
.gh-content code,
.gh-content kbd,
.gh-content samp {
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.gh-content :not(pre) > code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--soft);
    overflow-wrap: break-word;
}

.gh-content kbd {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--bg);
    line-height: 1.4;
}

/* Codeblöcke: Rahmen mit Sprache und Kopierknopf (siehe main.js) */
.code-block {
    position: relative;
}

.gh-content figure.kg-code-card .code-block,
.gh-content .code-block pre {
    margin: 0;
}

.gh-content pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    border: 1px solid var(--code-line);
    border-radius: var(--radius);
    background: var(--code-bg);
    color: var(--code-text);
    font-size: 14.5px;
    line-height: 1.6;
    tab-size: 4;
}

.code-block[data-lang] pre {
    padding-top: 36px;
}

.code-block[data-lang]::before {
    content: attr(data-lang);
    position: absolute;
    top: 9px;
    left: 20px;
    color: #8b949e;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}

.code-copy {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 3px 9px;
    border: 1px solid var(--code-line);
    border-radius: 4px;
    background: #21262d;
    color: #c9d1d9;
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.15s;
}

.code-block:hover .code-copy,
.code-copy:focus-visible,
.code-copy.is-done {
    opacity: 1;
}

.code-copy.is-done {
    border-color: #2ea043;
    color: #7ee787;
}

@media (hover: none) {
    .code-copy {
        opacity: 1;
    }
}

/* Farben der Syntaxhervorhebung (angelehnt an GitHub Dark) */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8b949e;
    font-style: italic;
}

.token.punctuation {
    color: #c9d1d9;
}

.token.keyword,
.token.operator,
.token.important,
.token.atrule,
.token.rule {
    color: #ff7b72;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.url {
    color: #a5d6ff;
}

.token.function,
.token.selector {
    color: #d2a8ff;
}

.token.number,
.token.boolean,
.token.constant,
.token.symbol,
.token.attr-name,
.token.property {
    color: #79c0ff;
}

.token.class-name,
.token.builtin,
.token.variable,
.token.namespace {
    color: #ffa657;
}

.token.tag {
    color: #7ee787;
}

.token.inserted {
    color: #aff5b4;
    background: rgba(46, 160, 67, 0.15);
}

.token.deleted {
    color: #ffdcd7;
    background: rgba(248, 81, 73, 0.15);
}

.token.bold {
    font-weight: 700;
}

.token.italic {
    font-style: italic;
}

/* Tabellen */
.gh-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
}

.gh-content th,
.gh-content td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.gh-content th {
    border-bottom: 2px solid var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
}

.gh-content iframe,
.gh-content video {
    max-width: 100%;
}

.gh-content .kg-embed-card iframe[src*="youtube"],
.gh-content .kg-embed-card iframe[src*="vimeo"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
    cursor: zoom-in;
}

.gh-content .kg-image-card a img,
.gh-content .kg-gallery-image a img {
    cursor: pointer;
}

/* Inhaltsverzeichnis (wird von main.js eingefügt) */
.gh-content .toc {
    margin-bottom: 2em;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--soft);
    font-size: 15px;
    line-height: 1.5;
}

.toc summary {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.toc ol {
    margin: 10px 0 0;
    padding-left: 1.4em;
}

.toc li + li {
    margin-top: 0.3em;
}

.toc .toc__sub {
    margin-left: 1.2em;
    list-style-type: circle;
}

.gh-content .toc a {
    color: var(--text);
    text-decoration: none;
}

.gh-content .toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.post-nav__link {
    display: block;
    padding-top: 12px;
    border-top: 2px solid var(--text);
}

.post-nav__link:hover {
    text-decoration: none;
}

.post-nav__link:hover .post-nav__title {
    color: var(--accent);
}

.post-nav__link--older {
    grid-column: 2;
    text-align: right;
}

.post-nav__title {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.related {
    margin-top: 40px;
}

.article__comments {
    margin-top: 20px;
}

/* Bildanzeige
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 10px;
    right: 16px;
    padding: 4px 10px;
    border: 0;
    background: none;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

/* Fehlerseite
   -------------------------------------------------------------------------- */
.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-page__code {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: clamp(80px, 18vw, 170px);
    font-weight: 700;
    line-height: 1;
}

.error-page__message {
    margin: 10px 0 28px;
    font-family: var(--font-mono);
    font-size: 18px;
}

/* Fußzeile
   -------------------------------------------------------------------------- */
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 30px;
    padding: 20px 0 40px;
    border-top: var(--rule);
}

.site-footer__title {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
}

.site-footer__nav {
    margin-right: auto;
}

.site-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 13px;
}

.site-footer__icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__copy {
    flex-basis: 100%;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Kleinere Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0 28px;
        margin-top: 40px;
        padding: 24px 0 0;
        border-top: var(--rule);
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero__lead {
        grid-column: 1 / -1;
    }

    .hero__side,
    .hero__side:last-child {
        grid-column: auto;
        grid-row: 2;
    }
}

@media (max-width: 640px) {
    .masthead {
        display: block;
    }

    .masthead__tagline {
        margin-top: 10px;
    }

    .site-brand__logo {
        max-height: 56px;
    }

    .post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero__lead .card__excerpt {
        font-size: 16px;
    }

    .gh-content {
        font-size: 17px;
    }

    .gh-content pre {
        font-size: 13px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav__link--older {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__side,
    .hero__side:last-child {
        grid-row: auto;
    }
}
