/* Auto1: Schriftdateien nach public/fonts/ legen (Dateinamen unten anpassen, falls sie abweichen). */
@font-face {
    font-family: 'Auto1';
    src: url('../fonts/Auto1-Regular.woff2') format('woff2'), url('../fonts/Auto1-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Auto1';
    src: url('../fonts/Auto1-Bold.woff2') format('woff2'), url('../fonts/Auto1-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --green: #abc22d;
    /* Textspalte: vom linken Rand des Logos bis zum rechten Rand des //s-Zeichens (sits_logo.svg: 598,4 von 600 px). */
    --column: 598px;
    --text: #cfd2d6;
    --muted: #bec1c5;
    /* Titan: kühles Metallgrau mit hellem Schein oben in der Mitte, nach außen fast schwarz. */
    --bg: radial-gradient(ellipse at 50% 0%, #5c6065 0%, #35383c 42%, #1b1d1f 100%);
    --font: 'Auto1', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 1rem/1.6 var(--font);
}

a { color: var(--green); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* Der ganze Inhalt ist eine Spalte in Logo-Breite und steht mittig im Fenster (Seitenrand mindestens 1,25 rem). */
.page { width: min(600px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.5rem 0 2rem; }

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

.main-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2.25rem 0 3rem; font-size: 1rem; }
.main-nav a.active { color: var(--text); }

/* Blog: Die Tag-Wolke hängt rechts neben der zentrierten Spalte, sobald im Fenster Platz dafür ist; sonst steht sie darunter. */
.layout { position: relative; }
.layout .tags { margin-top: 2rem; }
@media (min-width: 70rem) { .layout .tags { position: absolute; top: 0; left: calc(100% + 4rem); width: 12rem; margin-top: 0; } }

h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--green); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.entry h2 a { color: var(--green); }

.entry { margin-bottom: 3rem; }
.meta { margin: 0 0 1rem; font-size: 0.85rem; color: var(--muted); }
.note { font-size: 0.85rem; font-style: italic; }
.prose p { margin: 0 0 1rem; }
.prose img { max-width: 100%; height: auto; }
.prose img.align-left { float: left; margin: 0.25rem 1.25rem 0.5rem 0; }
.prose img.align-right { float: right; margin: 0.25rem 0 0.5rem 1.25rem; }
.entry::after, article.entries::after { content: ''; display: block; clear: both; }
.prose pre { overflow-x: auto; padding: 1rem; background: rgba(0, 0, 0, 0.28); }
.prose code { font-size: 0.9em; }
.list-title { margin-bottom: 2rem; }

.tags h2 { font-size: 1rem; color: var(--muted); margin-bottom: 0.5rem; }
.tags ul { list-style: none; margin: 0; padding: 0; line-height: 1.2; }
.tags li { display: inline; margin-right: 0.4rem; }
.tags .size-1 { font-size: 0.85rem; }
.tags .size-2 { font-size: 1.1rem; }
.tags .size-3 { font-size: 1.4rem; }
.tags .size-4 { font-size: 1.65rem; }
.tags .size-5 { font-size: 1.9rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.9rem; }
.pagination [aria-current] { color: var(--text); }

/* Startseite */
.hero { max-width: var(--column); margin-bottom: 3rem; }
.hero h1 { font-size: 2rem; }
.lead { font-size: 1.25rem; margin: 0; }

.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; max-width: var(--column); margin-bottom: 3rem; }
@media (max-width: 36rem) { .packages { grid-template-columns: minmax(0, 1fr); } }
.package { border-top: 2px solid var(--green); padding-top: 1rem; }
.package p { margin: 0; }

.prose { max-width: var(--column); }
.cta { display: inline-block; margin-top: 0.5rem; padding: 0.65rem 1.4rem; border: 2px solid var(--green); border-radius: 10px; color: var(--green); font-weight: 700; transition: background-color 0.15s, color 0.15s; }
.cta:hover, .cta:focus-visible { background: var(--green); color: #111; text-decoration: none; }

.site-footer { display: flex; max-width: var(--column); justify-content: space-between; gap: 1rem; margin-top: 5rem; font-size: 0.8rem; color: var(--muted); }
.footer-info { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-info a.active { color: var(--text); }
.lang { display: flex; gap: 0.75rem; }
.lang [aria-current] { color: var(--text); font-weight: 700; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
