@font-face {
    font-family: "Circular";
    src: url("../fonts/CircularXXWeb-Light.woff2") format("woff2"), url("../fonts/CircularXXWeb-Light.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Circular";
    src: url("../fonts/CircularXXWeb-Bold.woff2") format("woff2"), url("../fonts/CircularXXWeb-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Circular";
    src: url("../fonts/CircularXXWeb-BoldItalic.woff2") format("woff2"), url("../fonts/CircularXXWeb-BoldItalic.woff") format("woff");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

.itok-footer-medics {
    --itok-footer-medics-background: #0057b8;
    --itok-footer-medics-color: #ffffff;
    /* The two knobs that let a host line the footer up with its own page content. The
       defaults reproduce the previous behaviour exactly - a centred box that steps up
       to 1120, 1320 and 1620 pixels - so applications whose pages sit in a Bootstrap
       .container, like e.walkin, e.kurier and e.absenzen, need to change nothing.

       An application whose pages run full width instead sets
       --itok-footer-medics-container-max-width to none and the padding to whatever its
       own container uses; e.shop does that in app_eshop.css. Without it the footer text
       started further left than the page text above it. */
    --itok-footer-medics-container-max-width: none;
    --itok-footer-medics-container-padding-inline: 0.75rem;
    --itok-footer-medics-padding-block: 3rem;
    --itok-footer-medics-column-gap: clamp(2rem, 6vw, 7rem);
    --itok-footer-medics-row-gap: 2rem;
    --itok-footer-medics-heading-font-size: 1.25rem;
    --itok-footer-medics-text-font-size: 1.1rem;
    --itok-footer-medics-line-height: 1.6;
    --itok-footer-medics-icon-size: 2.375rem;
    --itok-footer-medics-font-family: "Circular", sans-serif;

    /* Hinweis beim Ueberfahren: das Element wird durchscheinend, sonst aendert sich
       nichts. Weiss bei 50 Prozent ueber dem Footer-Blau ergibt rgb(122 168 219).

       Bewusst opacity und nicht eine feste Schriftfarbe: LinkedIn und Instagram sind
       <img>-Elemente, die kein color erreicht. Nur die Deckkraft erfasst Text und Icon
       gleichermassen und trifft damit beide mit demselben Wert.

       0.48 und nicht 0.5: aus den Vorlagebildern zurueckgerechnet. Deren matte Farbe ist
       durchgehend rgb(122 168 219), und das ergibt ueber rgb(0 87 184) genau diesen Wert.
       Mit 0.5 kaeme rgb(128 171 219) heraus - der Unterschied ist von blossem Auge nicht
       zu sehen, aber es kostet nichts, die Vorlage exakt zu treffen. */
    --itok-footer-medics-hover-opacity: 0.48;

    width: 100%;
    color: var(--itok-footer-medics-color);
    background: var(--itok-footer-medics-background);
    font-family: var(--itok-footer-medics-font-family, inherit);
    font-size: var(--itok-footer-medics-text-font-size);
    line-height: var(--itok-footer-medics-line-height);
    z-index: 20;
}

.itok-footer-medics,
.itok-footer-medics *,
.itok-footer-medics *::before,
.itok-footer-medics *::after {
    box-sizing: border-box;
}

.itok-footer-medics__container {
    width: 100%;
    max-width: var(--itok-footer-medics-container-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--itok-footer-medics-container-padding-inline);
    padding-left: var(--itok-footer-medics-container-padding-inline);
}

.itok-footer-medics__layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--itok-footer-medics-column-gap);
    row-gap: var(--itok-footer-medics-row-gap);
    padding-block: var(--itok-footer-medics-padding-block);
}

.itok-footer-medics__company,
.itok-footer-medics__contact,
.itok-footer-medics__navigation {
    min-width: 0;
}

.itok-footer-medics__heading {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: var(--itok-footer-medics-heading-font-size);
    font-weight: 700;
    line-height: 1.4;
}

.itok-footer-medics__address {
    margin: 0 0 1rem;
    color: inherit;
    font: inherit;
    font-style: normal;
}

.itok-footer-medics__link,
.itok-footer-medics__menu-link,
.itok-footer-medics__social-link {
    color: white;
    text-decoration: none;
    text-decoration-line: none !important;
    transition: opacity 0.15s ease;
}

/* Hier standen zwei verschiedene Reaktionen auf dasselbe Ereignis: bei den Textlinks
   ein Unterstrich (text-decoration-line: underline !important), bei den Social-Icons
   weiter unten ein transform: translateY(-0.1rem), das sie beim Ueberfahren nach oben
   springen liess. Beides ist durch dieselbe Abblendung ersetzt - alle sechs Links
   verhalten sich jetzt gleich.

   opacity aendert nichts am Platzbedarf: Position, Groesse und Zeilenabstand bleiben
   exakt so, wie sie ohne Hover sind.

   Das text-decoration-line gehoert hier her und nicht nur in die Grundregel oben: die
   Wirtsanwendungen bringen in app_medics.css ein

       a:hover { text-decoration-line: underline !important; }

   mit. Stehen sich zwei !important-Regeln gegenueber, entscheidet die Spezifitaet, und
   a:hover (0,1,1) schlaegt die Klassenregel oben (0,1,0). Im Ruhezustand gewinnt das
   Paket - Klasse schlaegt Element -, beim Ueberfahren gewaenne ohne diese Zeile die
   Anwendung, und der Unterstrich waere zurueck. Mit dem :hover an der Klasse steht es
   0,2,0 gegen 0,1,1. */
    .itok-footer-medics__link:hover,
    .itok-footer-medics__menu-link:hover,
    .itok-footer-medics__social-link:hover {
        opacity: var(--itok-footer-medics-hover-opacity);
        text-decoration-line: none !important;
    }

.itok-footer-medics__link:focus-visible,
.itok-footer-medics__menu-link:focus-visible,
.itok-footer-medics__social-link:focus-visible {
    border-radius: 0.15rem;
    outline: 0.15rem solid currentColor;
    outline-offset: 0.2rem;
}

.itok-footer-medics__social-links {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    margin-top: 0;
    margin-left: -0.5rem;
}

.itok-footer-medics__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.itok-footer-medics__social-icon {
    display: block;
    width: var(--itok-footer-medics-icon-size);
    height: var(--itok-footer-medics-icon-size);
    border-radius: 50%;
    object-fit: contain;
}

.itok-footer-medics__menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    color: inherit;
    list-style: none;
}

.itok-footer-medics__menu-item {
    margin: 0;
    padding: 0;
}

.itok-footer-medics__menu-link {
    font-size: var(--itok-footer-medics-heading-font-size);
    font-weight: 700;
}

/* Imprint and privacy sit flush with the right edge of the footer content, at every
   width. Navigation is the last of the three equal columns, so the right edge of its
   track is the right edge of the container - justify-self: end therefore lines the links
   up with the padding, not somewhere inside the column. Only from the breakpoint where
   the grid actually has three columns; stacked on a phone they stay left, where the rest
   of the text is. */
@media (min-width: 768px) {
    .itok-footer-medics__navigation {
        justify-self: end;
    }

    .itok-footer-medics__menu {
        align-items: flex-end;
        text-align: right;
    }
}

@media (min-width: 992px) {
    .itok-footer-medics {
        --itok-footer-medics-container-max-width: 1120px;
    }
}

@media (min-width: 1200px) {
    .itok-footer-medics {
        --itok-footer-medics-container-max-width: 1320px;
    }
}

@media (min-width: 1400px) {
    .itok-footer-medics {
        --itok-footer-medics-container-max-width: 1620px;
    }
}

@media (max-width: 767.98px) {
    .itok-footer-medics__layout {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itok-footer-medics__link,
    .itok-footer-medics__menu-link,
    .itok-footer-medics__social-link {
        transition: none;
    }
}
