/* =============================================================================
   utopie.metzwerg.eu — Zentrales Stylesheet
   Gilt für Übersichtsseite und alle Story-Seiten.
   Farben und Schrift aus CLAUDE.md (Farbpalette metzwerg).
   ============================================================================= */

@font-face {
    font-family: "OpenSauceOne";
    src: url("/fonts/OpenSauceOne-Regular.woff2") format("woff2");
}

html, body {
    margin: 0;
    background: #1d2d42;
    color: #b3fffb;
    font-family: "OpenSauceOne", sans-serif;
    line-height: 1.6;
}

body {
    max-width: 42em;
    margin: 0 auto;
    padding: 2em 1.5em;
}

nav.lang {
    text-align: center;
    margin-bottom: 2em;
}

nav.lang a {
    color: #ff6300;
    text-decoration: none;
    margin: 0 0.5em;
}

nav.lang a:hover {
    text-decoration: underline;
}

article {
    margin-bottom: 3em;
}

h1, article h1 {
    color: #ff6300;
    font-size: 1.6em;
    margin: 0 0 0.5em;
}

article p.summary {
    font-style: italic;
    color: #b3fffbaa;
    margin: 0 0 2em;
}

article p {
    margin: 1em 0;
}

footer {
    text-align: center;
    border-top: 1px solid #b3fffb33;
    padding-top: 1em;
    margin-top: 2em;
}

footer a {
    color: #ff6300;
    text-decoration: none;
}

article h2 {
    color: #ff6300;
    font-size: 1.2em;
    margin: 2em 0 0.5em;
}

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

ul.story-list li {
    margin-bottom: 2em;
}

ul.story-list a {
    color: #ff6300;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
}

ul.story-list a:hover {
    text-decoration: underline;
}

ul.story-list .summary {
    font-style: italic;
    color: #b3fffbaa;
    margin: 0.3em 0 0;
}

/* Sprachwahl-Trick: Default beide sichtbar, nach Anker-Klick nur die gewählte. */
body:has(:target) article:not(:target) {
    display: none;
}

/* Gate-Seite (Banner für menschliche Besucher) */
body.gate-page {
    box-sizing: border-box;
    max-width: 60em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gate {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 2em;
    row-gap: 2.5em;
}

.gate > .ascii {
    grid-column: 1;
    grid-row: 1;
    font-family: monospace;
    font-size: 0.95em;
    font-weight: bold;
    color: #b3fffb;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    margin: 0;
}

.gate > .gate-divider {
    grid-column: 2;
    grid-row: 1 / span 2;
    background: #b3fffb55;
}

.gate > .text {
    grid-column: 3;
    grid-row: 1;
}

.gate > .text p {
    margin: 0 0 1.2em;
}

.gate > .btn-gate {
    grid-row: 2;
    justify-self: center;
    align-self: center;
    position: relative;
    border: 2px solid #ff6300;
    padding: 0.7em 1.5em;
    color: #ff6300;
    text-decoration: none;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.gate > .btn-gate::after {
    content: attr(data-mouseover);
    position: absolute;
    bottom: calc(100% + 0.6em);
    left: 50%;
    transform: translateX(-50%);
    background: #1d2d42;
    color: #ff6300;
    border: 1px solid #ff6300;
    padding: 0.3em 0.7em;
    font-family: monospace;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.gate > .btn-gate:hover::after {
    opacity: 1;
}

.gate > .btn-gate:nth-of-type(1) {
    grid-column: 1;
}

.gate > .btn-gate:nth-of-type(2) {
    grid-column: 3;
}

.gate > .btn-gate:hover {
    background: #ff6300;
    color: #1d2d42;
}

@media (max-width: 600px) {
    .gate {
        display: block;
    }
    .gate > .gate-divider {
        width: 100%;
        height: 1px;
        margin: 1.5em 0;
    }
    .gate > .btn-gate {
        display: block;
        margin: 1em auto;
        max-width: 14em;
        text-align: center;
    }
}
