/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

:root {
    --weiss: #fff;
    --gelb: #c69f3c;
    --hellgruen: #03ff95;
    --gruen: #327d47;
    --hintergrund: #222;
    --border: #444;
    --text-gedaempft: #ccc;
    --fliesstext: #eee;
    font-size: 16px;
}

html, body {
    padding: 0;
    margin: 0;
    border: none;
}

body {
    /* 4. Increase line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;

    background: var(--hintergrund);
    color: var(--weiss);
    font-family: sans-serif;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    text-wrap: pretty;
}

p:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    font-family: "Gabriela", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--hellgruen);
    margin: 0.5rem 0;
}

h1 {
    font-size: 1.4rem;
    line-height: 1.8rem;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

h3 {
    font-size: 1rem;
    line-height: 1.4rem;
}

h4, h5, h6 {
    font-size: 0.9rem;
    line-height: 1.2rem;
}

header {
    background: var(--hintergrund);
    padding: 3rem 0;
    top: 0;
    position: sticky;
}

header .header-content {
    background: var(--gruen);
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

header .header-content .wappen-container {
    position: absolute;
    left: 1rem;
}

header .header-content .wappen {
    width: 20vw;
    min-width: 80px;
    max-width: 150px;
}

header .header-content .titel {
    padding-left: 25vw;
    font-size: 3.7vw;
    color: var(--weiss);
}

footer {
    background: var(--hintergrund);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: 0 0 2px 3px var(--gruen);
}

.footer-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: var(--weiss);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.footer-links-container {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--hintergrund);
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    border-top: 3px solid var(--gruen);
}

.footer-links-container.open {
    display: flex;
    flex-direction: column-reverse;
}

footer a, footer a:link, footer a:visited, footer a:active {
    text-decoration: none;
    font-size: 0.9rem;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--weiss);
    font-size: 1rem;
}

.content {
    padding: 0 1.25rem 5rem 1.25rem;
    display: flex;
    justify-content: center;
}

.content article {
    max-width: 800px;
}

article p {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.5rem;
    color: var(--fliesstext);
}

article figure {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

article figcaption {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-gedaempft);
    line-height: 1.2;
    padding: 0.5rem 0;
}

.article-headline {
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-gedaempft);
    font-size: 0.8rem;
}

a, a:link, a:visited, a:active {
    color: var(--weiss);
    text-decoration-style: dotted;
    text-decoration-skip-ink: auto;
}

a:hover, .link-button:hover {
    color: var(--hellgruen);
    text-decoration: underline;
}

.responsive-img {
    width: 100%;
    height: auto;
}

.social-media-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.social-media-link {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;
    gap: 0.3rem;
}

.social-media-link-text {
    font-size: 0.9rem;
}

a.social-media-link, a.social-media-link:link, a.social-media-link:visited, a.social-media-link:active {
    color: var(--text-gedaempft);
}

a.social-media-link:hover {
    color: var(--hellgruen);
}

.social-media-link img {
    max-width: 24px;
}

.legal-links {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.footer-nav-header {
    margin: 0.5rem 0;
}

@media (width > 600px) {
    header {
        padding-top: 4rem;
        transition: top 250ms ease-in, padding-top 250ms ease-in;
    }

    header .header-content {
        display: flex;
        justify-content: center;
    }

    header .header-content .titel {
        flex-grow: 1;
    }

    .social-media-link-text {
        display: initial;
    }

    .footer-toggle {
        display: none;
    }

    .footer-links-container {
        border: none;
        display: flex;
        position: static;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0;
        box-shadow: none;
        background: none;
        gap: 0;
    }

    .social-media-links, .legal-links {
        flex-direction: row;
    }

    .social-media-links {
        gap: 1.5rem;
    }

    .hidden-lg {
        display: none;
    }

    .footer-links-container.open {
        display: flex;
        flex-direction: row;
    }
}

@media (width > 1000px) {
    header .header-content .titel {
        font-size: 2rem;
        transition: font-size 250ms ease-in;
        text-align: center;
        padding-left: 0;
    }
}