/* Globale Basisstile, Farbvariablen und Layoutregeln fuer das gesamte Projekt. */
/* Diese Datei definiert das gemeinsame Retro-Terminal-Grundgeruest aller Seiten. */
/* Reset und globale Theme-Variablen. */
* {
    box-sizing: border-box;
}

:root {
    --bg: #050807;
    --bg-accent: #0d1512;
    --panel: rgba(10, 18, 15, 0.92);
    --panel-strong: rgba(5, 10, 8, 0.98);
    --line: #3d735e;
    --line-strong: #8fffd0;
    --text: #d7f5e6;
    --text-soft: #8fb6a4;
    --heading: #f5ff87;
    --link: #7df7be;
    --link-hover: #fff8a3;
    --button-bg: #163328;
    --button-bg-hover: #214638;
    --button-text: #efffc3;
    --success: #86f7b8;
    --error: #ff9e8e;
    --shadow: 0 0 0 1px rgba(143, 255, 208, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Grundtypografie und mehrlagiger Seitenhintergrund. */
html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Lucida Console", "Courier New", monospace;
    line-height: 1.65;
    background:
        radial-gradient(circle at top, rgba(143, 255, 208, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(143, 255, 208, 0.05), transparent 180px),
        repeating-linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        var(--bg);
}

/* Feste Overlay-Schicht fuer die leichte CRT-/Scanline-Anmutung. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(143, 255, 208, 0.035), transparent 18%, transparent 82%, rgba(245, 255, 135, 0.03)),
        radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.26) 100%);
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Elementare Defaults fuer Medien, Links und Formularelemente. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--link-hover);
}

button,
/* Gemeinsame Eingabe- und Buttonoptik im Projekt-Theme. */
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(2, 8, 6, 0.92);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(143, 255, 208, 0.08);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow:
        inset 0 0 0 1px rgba(143, 255, 208, 0.14),
        0 0 0 3px rgba(143, 255, 208, 0.14);
}

button {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 1px rgba(245, 255, 135, 0.08),
        0 0 18px rgba(143, 255, 208, 0.08);
}

button:hover {
    background: var(--button-bg-hover);
}

/* Layoutcontainer fuer Kopf, Navigation, Inhalt und Footer. */
header,
nav,
main,
footer {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

/* Seitenkopf mit Wortmarke und optionalem Logo. */
header {
    margin-top: 18px;
    padding: 22px 18px 16px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

header h1 {
    margin-bottom: 0;
    color: var(--heading);
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(245, 255, 135, 0.22);
}

/* Gemeinsame Hilfsklassen fuer den markierten Initialbuchstaben im Branding. */
.site-header {
    min-height: 132px;
}

.site-header-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
}

.site-header-logo {
    width: 182px;
    flex: 0 0 auto;
    max-height: 139px;
    margin-right: -4px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 0 12px rgba(143, 255, 208, 0.18));
}

.site-header-with-logo h1 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.site-title-mark {
    display: inline-block;
    font-size: 1.34em;
    color: #f7ffb8;
    font-family: "Lucida Console", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow:
        1px 0 0 rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 0 4px rgba(245, 255, 135, 0.1);
    transform: translateY(0.02em);
}

.site-title-mark-secondary {
    font-size: 1.18em;
}

.site-heading-secondary {
    letter-spacing: 0.12em;
    text-shadow: 0 0 10px rgba(245, 255, 135, 0.12);
}

/* Hauptinhalts- und Footer-Abstaende. */
main {
    padding: 24px 0 42px;
}

footer {
    padding: 18px 16px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--text-soft);
    box-shadow: var(--shadow);
}

footer a {
    margin-right: 1rem;
}

/* Typografische Grundregeln fuer Ueberschriften, Abschnitte und Inline-Code. */
h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.2;
}

h2,
h3,
h4 {
    color: var(--heading);
}

p:last-child,
ul:last-child {
    margin-bottom: 0;
}

code {
    padding: 0.1rem 0.35rem;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(143, 255, 208, 0.18);
    color: var(--heading);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1rem 0;
}

/* Mobile Vereinfachung des Header-Layouts bei kleiner Breite. */
@media (max-width: 640px) {
    .site-header-with-logo {
        display: block;
    }

    .site-header-logo {
        margin-top: 1rem;
        margin-left: auto;
        margin-right: -3px;
        width: 131px;
        max-height: 101px;
    }

    .site-header-with-logo h1 {
        white-space: normal;
    }
}
