@charset "UTF-8";

@font-face {
    font-family: "Gentium";
    src: url("/fonts/Gentium-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gentium";
    src: url("/fonts/Gentium-Italic.woff2") format("woff2");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Gentium";
    src: url("/fonts/Gentium-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gentium";
    src: url("/fonts/Gentium-BoldItalic.woff2") format("woff2");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "UnifrakturMaguntia";
    src: url("/fonts/unifrakturmaguntia.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --rot: #e00;
    --rot-text: #fff;
    --orange: #e80;
    --orange-text: #000;
    --gelb: #dc0;
    --gelb-text: #000;
    --gruen: #0a0;
    --gruen-text: #000;
    --cyan: #09c;
    --cyan-text: #fff;
    --blau: #22e;
    --blau-text: #fff;
    --indigo: #60c;
    --indigo-text: #fff;
    --violett: #90e;
    --violett-text: #fff;
    --pink: #e08;
    --pink-text: #fff;
}

html {
    font-size: 15px;
}

body {
    width: 87.5%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12.5%;
    font-family: Gentium, Palatino, "Palatino Linotype", Georgia, serif;
    background-color: #fff;
    color: #000;
    max-width: 1400px;
    position: relative;
}

/* Navigation */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 12.5%;
    max-width: 175px;
    padding: 2rem 1.5rem;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    z-index: 10;
}

header nav details {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

header nav details summary {
    list-style: none;
    cursor: pointer;
    margin-bottom: 1.5rem;
    user-select: none;
}

header nav details summary::-webkit-details-marker {
    display: none;
}

header nav details summary::marker {
    content: "";
}

.site-title {
    font-size: 1.4rem;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    margin: 0;
    padding: 0;
    display: inline;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

header nav li {
    margin-bottom: 0.5rem;
}

header nav a {
    color: #000;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 0.05em;
}

/* Headings */

h1 {
    font-weight: 400;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
    line-height: 1;
}

h2 {
    font-style: italic;
    font-weight: 400;
    margin-top: 2.1rem;
    margin-bottom: 1.4rem;
    font-size: 2.2rem;
    line-height: 1;
}

h3 {
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 2rem;
    margin-bottom: 1.4rem;
    line-height: 1;
}

/* Body text */

p, dl, ol, ul {
    font-size: 1.4rem;
    line-height: 2rem;
}

p {
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    padding-right: 0;
    vertical-align: baseline;
}

article {
    padding: 3rem 0;
}

article > p,
article > footer,
article > ul,
article > ol,
article > dl,
article > blockquote,
article > h2,
article > h3,
article > hr {
    width: 55%;
}

article > header {
    width: 55%;
    margin-bottom: 2rem;
}

/* Links */

a:link, a:visited {
    color: inherit;
    text-underline-offset: 0.1em;
    text-decoration-thickness: 0.05em;
}

/* Horizontal rule */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #000;
    margin: 1em 0;
    padding: 0;
}

/* Code */

code, pre > code {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 1.0rem;
    line-height: 1.42;
}

pre > code {
    font-size: 0.9rem;
    width: 52.5%;
    margin-left: 2.5%;
    overflow-x: auto;
    display: block;
}

/* Blockquote */

blockquote {
    font-size: 1.4rem;
    font-style: italic;
}

blockquote p {
    width: 55%;
}

/* Intro section */

.intro {
    padding: 3rem 0 1rem;
}

.intro h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.4rem;
    line-height: 2rem;
    width: 55%;
}

/* Article metadata */

.datum {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1rem;
    font-style: normal;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.summary {
    font-size: 1.1rem;
    font-style: italic;
}

/* Article lists */

.artikel-liste {
    padding: 1rem 0 3rem;
}

.artikel-liste h2 {
    width: 55%;
}

.artikel-liste ul,
ul.artikel-liste {
    list-style: none;
    padding: 0;
    width: 55%;
    margin: 0;
}

.card, .item {
    padding: 1rem 0;
    border-bottom: 1px solid #000;
}

.card:first-child, .item:first-child {
    border-top: 1px solid #000;
}

.card a, .item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card .titel, .item .titel {
    font-size: 1.4rem;
    display: block;
}

.card .datum, .item .datum {
    margin-bottom: 0.25rem;
}

.card .summary {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    font-style: italic;
}

/* Startseite: alle Artikel */

ul.alle-artikel {
    list-style: none;
    padding: 0;
    width: 100%;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

ul.alle-artikel .card {
    border: 1px solid #000;
    padding: 1rem;
}

ul.alle-artikel .card.gesellschaftskunde { border-color: var(--rot); }
ul.alle-artikel .card.musikkunde { border-color: var(--violett); }
ul.alle-artikel .card.technikkunde { border-color: var(--gelb); }
ul.alle-artikel .card.sprachkunde { border-color: var(--gruen); }

/* Article footer */

.artikel-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #000;
    width: 55%;
}

.artikel-footer p {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1rem;
}

/* Footer */

body > footer {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Helvetica Neue", Helvetica, sans-serif;
    padding: 2rem 0;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

body > footer a {
    color: #000;
}

/* Kontaktformular */

.form-meldung {
    display: none;
    font-style: italic;
}

.form-meldung:target {
    display: block;
}

#kontakt-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
}

#kontakt-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1.2rem;
    padding: 0.8rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    resize: vertical;
    grid-row: 1;
    grid-column: 1;
    box-sizing: border-box;
}

#kontakt-form button {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem;
    border: 1px solid #000;
    border-left: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#kontakt-form button:hover {
    background: #fff;
    color: #000;
}

#kontakt-form .cf-turnstile {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.form-status {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Helvetica Neue", Helvetica, sans-serif;
    grid-column: 1 / -1;
}

/* Responsive */

@media (max-width: 760px) {
    body {
        width: 84%;
        padding-left: 8%;
        padding-right: 8%;
    }

    header {
        position: sticky;
        top: 0;
        width: 100%;
        max-width: none;
        height: auto;
        padding: 1rem 0;
        border-bottom: none;
        margin-bottom: 1rem;
    }

    header nav details summary {
        margin-bottom: 0;
        text-align: center;
    }

    header nav details[open] summary {
        margin-bottom: 1rem;
    }

    header nav ul {
        display: flex;
        justify-content: space-between;
    }

    header nav li {
        margin-bottom: 0;
    }

    header nav li a {
        display: block;
        padding: 0.4rem 0.8rem;
        border-radius: 0.3rem;
        font-weight: bold;
        text-decoration: none;
    }

    header nav li a:hover {
        text-decoration: none;
    }

    header nav li.alles a { background: #000; }
    header nav li.alles a:hover { background: #000; }

    header nav li:nth-child(2) a { background: var(--rot); color: var(--rot-text); }
    header nav li:nth-child(3) a { background: var(--violett); color: var(--violett-text); }
    header nav li:nth-child(4) a { background: var(--gelb); color: var(--gelb-text); }
    header nav li:nth-child(5) a { background: var(--gruen); color: var(--gruen-text); }
    header nav li:nth-child(6) a { background: #fff; color: #000; }

    header nav li:nth-child(2) a:hover,
    header nav li.aktiv:nth-child(2) a { background: var(--rot-text); color: var(--rot); }
    header nav li:nth-child(3) a:hover,
    header nav li.aktiv:nth-child(3) a { background: var(--violett-text); color: var(--violett); }
    header nav li:nth-child(4) a:hover,
    header nav li.aktiv:nth-child(4) a { background: var(--gelb-text); color: var(--gelb); }
    header nav li:nth-child(5) a:hover,
    header nav li.aktiv:nth-child(5) a { background: var(--gruen-text); color: var(--gruen); }
    header nav li:nth-child(6) a:hover,
    header nav li.aktiv:nth-child(6) a { background: #000; color: #fff; }

    header nav li.alles.aktiv a { background: #fff; }
    header nav li.alles.aktiv buchstabe { color: #000 !important; }

    .site-title {
        font-family: "UnifrakturMaguntia", serif;
        font-size: 7.2rem;
    }

    buchstabe:nth-child(9n+1) { color: var(--rot); }
    buchstabe:nth-child(9n+2) { color: var(--orange); }
    buchstabe:nth-child(9n+3) { color: var(--gelb); }
    buchstabe:nth-child(9n+4) { color: var(--gruen); }
    buchstabe:nth-child(9n+5) { color: var(--cyan); }
    buchstabe:nth-child(9n+6) { color: var(--blau); }
    buchstabe:nth-child(9n+7) { color: var(--indigo); }
    buchstabe:nth-child(9n+8) { color: var(--violett); }
    buchstabe:nth-child(9n)   { color: var(--pink); }

    header nav ul {
        padding-left: 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .intro h1 {
        font-size: 2.2rem;
    }

    article > p,
    article > footer,
    article > ul,
    article > ol,
    article > dl,
    article > blockquote,
    article > h2,
    article > h3,
    article > hr,
    article > header,
    .intro p,
    .artikel-liste h2,
    .artikel-liste ul,
    ul.artikel-liste,
    .artikel-footer,
    blockquote p,
    pre > code {
        width: 100%;
    }
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
        color: #fff;
    }

    header {
        background: #000;
    }

    .site-title,
    header nav a,
    body > footer a {
        color: #fff;
    }

    hr,
    .card, .item,
    .card:first-child, .item:first-child,
    .artikel-footer {
        border-color: #fff;
    }
}

@media (prefers-color-scheme: dark) and (max-width: 760px) {
    header {
        border-bottom-color: #fff;
    }

    header nav li.alles a { background: #fff; }
    header nav li.alles a:hover { background: #fff; }

    header nav li:nth-child(6) a { background: #000; color: #fff; }
    header nav li:nth-child(6) a:hover,
    header nav li.aktiv:nth-child(6) a { background: #fff; color: #000; }

    header nav li.alles.aktiv a { background: #000; }
    header nav li.alles.aktiv buchstabe { color: #fff !important; }
}
