/* gv.ettingen.ch, Gemeinde Ettingen. Mobile first, Breakpoints 400px (25rem), 640px (40rem), 1120px (70rem). */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../schriften/roboto-latin-400-normal.woff2) format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../schriften/roboto-latin-700-normal.woff2) format("woff2");
}

:root {
    color-scheme: only light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #005aa4;
    color: #000000;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    font-weight: 700;
    text-wrap: balance;
    overflow-wrap: break-word;
}

a {
    color: #005aa4;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

:focus-visible {
    outline: 3px solid #005aa4;
    outline-offset: 3px;
}

/* Nur optisch ausgeblendet, für Screenreader vorhanden. */
.unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Sprunglink */

.sprunglink {
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #005aa4;
    font-weight: 700;
    transform: translateY(-200%);
}

.sprunglink:focus {
    transform: none;
}

.sprunglink:focus-visible {
    outline-color: #ffffff;
}

/* Kopf */

.kopf {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 4.5rem;
    padding-left: 1.5rem;
    background: #005aa4;
    box-shadow: 0 6px 15px rgba(63, 63, 63, 0.3);
}

.kopf__link {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    text-decoration: none;
}

.kopf__link:focus-visible {
    outline-color: #ffffff;
}

.kopf__wortmarke {
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.kopf__wappen {
    display: block;
    width: auto;
    height: 3.5rem;
}

/* Inhalt */

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.abschnitt {
    padding: 2.5rem 0;
}

.abschnitt--weiss {
    background: #ffffff;
}

.abschnitt--grau {
    background: #fafafa;
}

.abschnitt--meldung {
    min-height: 50vh;
}

h1 {
    font-size: 1.5rem;
    line-height: 2rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 2.125rem;
}

.lead,
.text {
    max-width: 56.25rem;
    font-size: 1.125rem;
    line-height: 1.8125rem;
}

.lead {
    margin-top: 1.5rem;
}

.text {
    margin-top: 1.5rem;
}

/* Zeit und Ort */

.eckdaten {
    max-width: 56.25rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 0.75rem;
    background: #fafafa;
}

.eckdaten__liste {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.8125rem;
}

.eckdaten__paar dt {
    font-weight: 700;
}

/* Unterlagen */

.unterlagen__titel {
    margin-bottom: 1.5rem;
}

.hinweis {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #005aa4;
    border-radius: 0 0.75rem 0.75rem 0;
    background: #ffffff;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.dokumente {
    display: grid;
    gap: 1.5rem;
}

.dokument {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(63, 63, 63, 0.3);
}

.dokument__symbol {
    display: block;
    width: 2rem;
    height: 2rem;
}

.dokument__text {
    min-width: 0;
}

.dokument__titel {
    font-size: 1.25rem;
    line-height: 1.875rem;
}

.dokument__angaben {
    color: #595959;
    font-size: 1rem;
    line-height: 1.5rem;
}

.dokument__knoepfe {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Knöpfe */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin: 0;
    padding: 0.5625rem 1.3125rem;
    border: 3px solid #005aa4;
    border-radius: 0.75rem;
    box-shadow: 0 6px 15px rgba(63, 63, 63, 0.3);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.knopf--voll {
    background: #005aa4;
    color: #ffffff;
}

.knopf--voll:hover,
.knopf--voll:focus-visible {
    border-color: #004a87;
    background: #004a87;
}

.knopf--rahmen {
    background: #ffffff;
    color: #005aa4;
}

.knopf--rahmen:hover,
.knopf--rahmen:focus-visible {
    background: #005aa4;
    color: #ffffff;
}

.knopf:disabled,
.knopf:disabled:hover {
    border-color: #e8e8e8;
    background: #e8e8e8;
    box-shadow: none;
    color: #595959;
    cursor: not-allowed;
}

/* Fuss */

.fuss {
    padding: 3rem 0 2rem;
    background: #005aa4;
    color: #ffffff;
}

.fuss a {
    color: #ffffff;
}

.fuss :focus-visible {
    outline-color: #ffffff;
}

.fuss__spalten {
    display: grid;
    gap: 2rem 1.5rem;
}

.fuss__titel {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.875rem;
}

.fuss__adresse {
    font-style: normal;
}

.zeiten {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 0.75rem;
}

.zeit {
    white-space: nowrap;
}

.fuss__klein {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    line-height: 1.375rem;
}

.fuss__klein p + p {
    margin-top: 0.5rem;
}

/* ab 400px */

@media (min-width: 25rem) {
    h1 {
        font-size: 1.75rem;
        line-height: 2.5rem;
    }

    .dokument {
        grid-template-columns: 2rem minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 0;
    }

    .dokument__knoepfe {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

/* ab 640px */

@media (min-width: 40rem) {
    .abschnitt {
        padding: 3rem 0;
    }

    .lead,
    .text,
    .eckdaten__liste {
        font-size: 1.25rem;
        line-height: 2.0625rem;
    }

    .eckdaten__paar {
        display: grid;
        grid-template-columns: 11.25rem minmax(0, 1fr);
    }

    .dokument__knoepfe {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .fuss__spalten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ab 1120px */

@media (min-width: 70rem) {
    .kopf {
        align-items: flex-start;
        height: 7.375rem;
        border-bottom: 5px solid #ffffff;
        background: linear-gradient(to right, rgba(0, 90, 164, 0) 1700px, #005aa4 1900px) left top no-repeat, url(../bilder/kopf.webp) left top no-repeat, #005aa4;
    }

    .kopf__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
        margin-top: 0.5rem;
    }

    .kopf__wortmarke {
        font-size: 1.25rem;
        line-height: 1.5625rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .kopf__wappen {
        height: 3.6875rem;
    }

    .abschnitt {
        padding: 3.5rem 0;
    }

    h1 {
        font-size: 2rem;
        line-height: 3rem;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 2.5rem;
    }

    .dokument {
        grid-template-columns: 2rem minmax(0, 1fr) auto;
    }

    .dokument__knoepfe {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        flex-wrap: nowrap;
        margin: 0 0 0 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knopf {
        transition: none;
    }
}

@media print {
    body,
    .kopf,
    .abschnitt,
    .hinweis,
    .eckdaten,
    .fuss {
        background: #ffffff;
        color: #000000;
        box-shadow: none;
    }

    .kopf {
        height: auto;
        padding: 1rem 0 0 1.5rem;
        border: 0;
    }

    .kopf__wortmarke {
        color: #000000;
        text-shadow: none;
    }

    .fuss a,
    .fuss__klein {
        color: #000000;
        border-color: #dadada;
    }

    .dokument {
        border-color: #dadada;
        box-shadow: none;
    }

    .dokument__angaben,
    main a {
        color: #000000;
    }

    .dokument__knoepfe,
    .sprunglink {
        display: none;
    }
}
