@charset "UTF-8";

/* ==========================================================================
   Österreich-Fonds – onscreensite
   Barrierefreiheit (Earlybird-Prüfbericht 17.12.2025):
   - Schriftgrößen in rem, Zeilenabstände ohne Einheit (1.4.4 / 1.4.12)
   - Header als Grid statt absoluter Positionierung (1.4.10, 400 % Zoom)
   - Silbentrennung/Umbruch langer Wörter, kein Abschneiden (1.4.10)
   - Sichtbarer Fokus, sichtbarer Skiplink (2.4.7)
   ========================================================================== */

/* =========================
   Base
========================= */

body {
    margin: 0;
    padding: 0;
    color: #121212;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

nav {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

a {
    color: #121212;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p a,
li a {
    text-decoration: underline;
}

p a.button,
a.button:hover,
header nav a,
footer nav a {
    text-decoration: none;
}

header nav a:hover,
footer nav a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    hyphens: auto;
}

table {
    width: 100%;
}

td,
th {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

th {
    padding-top: 11px;
    padding-bottom: 11px;
    background-color: #be1522;
    color: #fff;
}

/* Sichtbarer Tastaturfokus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Programmatischer Fokus nach Skiplink: kein Rahmen um den ganzen Inhalt */
main:focus {
    outline: none;
}

/* =========================
   Utilities
========================= */

.hide {
    display: none;
}

.nofloat {
    float: none;
    clear: both;
}

.screen {
    display: block;
}

.mobile {
    display: none;
}

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skiplink wird bei Fokus sichtbar (vorher durch !important verhindert) */
.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: absolute !important;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100000;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.75rem 1.25rem !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    background: #fff;
    color: #121212;
    font-weight: 700;
    text-decoration: underline;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Externe Links / Downloads (Hinweise ergänzt main.js) */
.link-icon-external::after {
    content: "\2197";
    display: inline-block;
    margin-left: 0.2em;
    font-size: 0.85em;
    text-decoration: none;
}

.link-meta {
    overflow-wrap: break-word;
}

/* =========================
   Layout
========================= */

section.content {
    position: relative;
    width: 1280px;
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
}

section.left {
    float: left;
    width: 595px;
    margin-right: 20px;
    padding-left: 35px;
}

section.right {
    float: left;
    width: 595px;
}

section.left p,
section.right p {
    padding-right: 35px;
    line-height: 1.6;
}

article,
footer {
    overflow-wrap: break-word;
}

article p,
article li {
    hyphens: auto;
}

/* =========================
   Buttons
========================= */

a.button {
    display: inline-block;
    margin: 20px 0;
    padding: 0.6em 1.75em 0.6em 4em;
    background:
            #be1522
            url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAhCAYAAABN2CLhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDIvMTgvMTaB7mNiAAACQ0lEQVRYhc3YT6hUZRjH8c/klBh1S0zBqGWKiaQLkXLvokUgEgltIlxlUCDEdSVC0i0CtX8EgYKEmzRRiAKDVhJKuGgbJVirG4kEivcP/ly8MzTd63X+3HNm5gsvcwae93d+PHPmeZ73NJKogdewC4dxvWrxh6oWbLEZb+IC9lYtXpfpO63PF/BVaz1dlXhdpjt5DPvwA/ZUITgM02224BQ+x/rlCA3TNDyKt/AdXhlUZNim22zD1/gMT/W7uS7Tcz3EPI79uKjPrNdlelsfsVtxGsewupcNjSQrsAp3+/f2P4I1eBUfYOUAGldwSKk0S9JIMqk0gJkBbtLJPDbpMVsP4F+cULrpzfsFNHFDaQLjwgTexXPKL3ZpUUSSh5OcyXjyd5IDSZ5Mor3aFzuS3Bqdt66cT7I9C0xLcjDJ3REa68Z0kneSTDTy32j6In5UutY4821nnZ5VKsC4s7PT9AZlIhtnfsLLzdaXJ/C20c0i3biNo/gE023Tr+OlkVl6MJfwvs4umWRL6585bswkmUqyLh01Ookm3sDa0SRxSX7GEWXuXkRTSftsay2HeTyvHGo34pEBNGaVae9T/LVk1MLUV7CeTfLrAI/D5SS7e7lHHdXiT3zfR/wcPlZG2nO9bGh2DxmIf3qM+wVTONuPeF2mu+nO4Qscx7WqxevgKj7EN8ppp2+GaXpeeU32Hn5fjtCwTP+Bj3DS8ktrbabbVSlKRZjEb1WJ12U6mFa62pcqyG4nnYeAKtmBZ5RnuJcXN31xDyJRqwJ1fkvKAAAAAElFTkSuQmCC")
            1em center no-repeat;
    color: #fff;
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    text-transform: uppercase;
}

a.button:hover {
    background-color: #a3111c;
}

/* =========================
   Header / Navigation
   Reihenfolge im Code: Servicenavigation – Logo – Menü-Button – Hauptnavigation
========================= */

header.top {
    position: relative;
    background: #fff;
    border-bottom: 10px solid #be1522;
}

header.top .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "meta"
        "logo"
        "nav";
    column-gap: 2rem;
    min-height: 195px;
    box-sizing: border-box;
    padding: 0 20px 22px 35px;
}

header.top a.logo {
    grid-area: logo;
    justify-self: start;
    align-self: start;
    margin-top: 12px;
    max-width: 100%;
}

header.top a.logo img {
    display: block;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li {
    position: relative;
    margin: 0;
    padding-left: 50px;
    font-size: 1.3rem;
    line-height: 1.4;
}

header nav.metanav {
    grid-area: meta;
    justify-self: end;
    padding-top: 12px;
}

header nav.metanav li {
    padding-left: 45px;
    font-size: 1.1rem;
}

header nav.mainnav {
    grid-area: nav;
    justify-self: end;
    align-self: end;
    text-transform: uppercase;
}

header nav li.active {
    background:
            transparent
            url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAANCAMAAAAKaBeeAAAAA3NCSVQICAjb4U/gAAAAhFBMVEXDHCf34+TxycvKOEHRUlv++/vVX2fgiY7MPUbGJzH12dv////89fbQTFXYanL67e7ORU7z0tXIMDr34eLXZm3acXjSVl7HLDbyzdDLOkT77/D9+fnXaXHQTlbSU1zOR1D129z11dfYbHPhi5HJMjz78fH/+/3RTFb129354+XPRk734+Mjx4isAAAALHRSTlP//////////////wD//////////////////////////////////////////x7jlwkAAAAJcEhZcwAACxIAAAsSAdLdfvwAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAAFnRFWHRDcmVhdGlvbiBUaW1lADAyLzE4LzE2ge5jYgAAAGdJREFUKJGV0DcSgDAQQ1GRwSaYHIYlUzDc/34YLsD6N2peJUhWe/cNeNpXt4FOQRdfbwBZWnuc5AggKSVScqf/Cq1BAi341WiOnlH04nnFmQ3/xdWLF4NPlDD4OxT8v30nl3wd2N88RqIdwDzsipEAAAAASUVORK5CYII=)
            0 0.3em no-repeat;
}

header nav li.active > a {
    color: #be1522;
}

/* Menü-Button (nur ≤ 1024 px sichtbar) */
.menu-toggle {
    display: none;
    grid-area: nav;
    justify-self: end;
    align-self: center;
    margin: 0;
    padding: 0.4rem;
    border: 1px solid #333;
    background: #fff;
    color: #121212;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.menu-toggle .typcn::before {
    font-size: 3.5rem;
    line-height: 1;
}

/* =========================
   Stream / Claim (Startseite)
========================= */

section.stream {
    position: relative;
    font-weight: 700;
    height: 100%;
    background-image: url(../Images/header-bg.png);
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
}

section.stream .claim {
    color: #be1522;
    font-family: "Titillium Web", sans-serif;
    font-weight: 200;
    font-size: 1.3rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Claim-Überschrift (h2 in der Redaktion; strong/b bleibt als Fallback) */
section.stream .claim h2,
section.stream .claim p strong,
section.stream .claim p b {
    display: block;
    margin: 0 0 0.3em -35px;
    color: #be1522;
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 2.3rem;
    line-height: 1.2;
    text-transform: uppercase;
}

section.stream .claim p {
    margin: 0;
}

section.stream .claim ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: square;
}

section.stream .claim li {
    margin-bottom: 0.2em;
}

/* =========================
   Article Header
========================= */

article header {
    min-height: 260px;
    background: transparent;
}

article header.pure,
article header.subheader,
article header.subh {
    min-height: 180px;
    margin-bottom: 0;
    background: transparent;
    clear: both;
    float: none;
}

article header h1 {
    margin: 0;
    padding-top: 47px;
    color: #be1522;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 2.3rem;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

article header.subheader h1 {
    padding-top: 70px;
}

article header hr {
    width: 205px;
    height: 2px;
    border: 0;
    background-color: #be1522;
    color: #be1522;
}

article header.subh h2 {
    margin: 0;
    padding-top: 47px;
    color: #be1522;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

article header:not(.subh) h2 {
    max-width: 700px;
    margin: 31px auto 47px;
    padding: 0;
    text-align: center;
}

article h2 {
    margin-top: 0;
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.4;
}

/* h2 im Fließtext (vorher h3 "DIE VERGABE" usw.) */
article section.left h2,
article section.right h2,
article h3 {
    margin-top: 0;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.4;
    text-transform: uppercase;
}

article section.left h3,
article section.right h3,
article h4 {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    text-transform: none;
}

article p {
    margin-top: 0;
}

p.subheader {
    max-width: 700px;
    margin: 31px auto 47px;
    padding: 0;
    text-align: center;
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.5;
}

/* =========================
   Boxes / Content
========================= */

article .dark {
    background: #3d3d3d;
}

article .light {
    background: #a7a7a7;
}

article .box.light {
    color: #000;
}

article section .box {
    min-height: 230px;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding: 60px 45px 30px;
    color: #fff;
    font-family: "Titillium Web", sans-serif;
    font-weight: 200;
    font-size: 2.3rem;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: break-word;
    hyphens: auto;
}

section .box p,
article section .box p,
article section .box h2,
article section .box h3 {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    line-height: 1.2;
    text-transform: inherit;
}

/* =========================
   Antrag
========================= */

section.antrag {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding-top: 50px;
    background: #3d3d3d;
    color: #fff;
    text-align: center;
}

section.antrag b {
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    text-transform: uppercase;
}

section.antrag hr {
    width: 205px;
    height: 0;
    border-bottom: 2px solid #fff;
}

section.antrag p {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 17px;
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-size: 1.3rem;
}

section.antrag img {
    position: absolute;
    top: 25px;
    right: 120px;
}

/* =========================
   Footer
========================= */

footer {
    padding: 25px 0;
    background: #f5f5f5;
    border-top: 50px solid #3d3d3d;
}

footer .footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 0;
}

footer .footer-col {
    flex: 1 1 33%;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 10px;
}

footer ul {
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

footer li {
    line-height: 1.75;
}

footer h2 {
    margin: 0 0 23px;
    padding: 0;
    color: #585858;
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    text-transform: uppercase;
}

footer h2 + ul {
    margin-top: 0;
}

footer b,
footer strong {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
}

footer img {
    padding-right: 20px;
}

/* =========================
   Lists (Inhalt) – native Aufzählungszeichen, keine CSS-Zeichen
========================= */

.left ul,
.right ul {
    margin: 10px;
    padding: 10px 10px 10px 30px;
    list-style-type: square;
}

.left li,
.right li {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* =========================
   Sujet
========================= */

article section .box.sujet {
    background-position: 90% 95%;
    background-repeat: no-repeat;
}

/* =========================
   Responsive
========================= */

@media only screen and (max-width: 1300px) {
    article section .box {
        font-size: 1.5rem;
    }

    header nav li {
        padding-left: 35px;
    }

    header nav li.active {
        background-position: -15px 0.3em;
    }

    section.antrag img {
        right: 50px;
    }

    article header h2 {
        max-width: 450px;
    }
}

@media only screen and (min-width: 615px) {
    .screen {
        display: block !important;
    }
}

/* Mobile Navigation: nur über den Menü-Button, ab 1025 px Desktop */
@media only screen and (max-width: 1024px) {
    section.stream .claim {
        margin-left: 70px;
        padding: 30px 20px 30px 0;
    }

    section.stream {
        background: none;
    }

    section.pagetop,
    section.content,
    article {
        width: 748px;
        max-width: 100%;
        margin: 0 auto;
    }

    header.top .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "meta meta"
            "logo nav";
        min-height: 146px;
        padding: 0 10px 15px;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    /* Hauptnavigation als Panel unter dem Header – nur sichtbar, wenn geöffnet */
    /* grid-area: auto → Panel über die volle Header-Breite (nicht nur die Grid-Zelle) */
    header nav.mainnav {
        grid-area: auto;
        justify-self: stretch;
        align-self: auto;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10000;
        padding: 0.5rem 0;
        border-top: 1px solid #d9d9d9;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    header nav.mainnav.nav-opened {
        display: block;
    }

    header nav.mainnav ul {
        display: block;
    }

    header nav.mainnav li,
    header nav.mainnav li.active {
        padding: 0;
        background: none;
    }

    header nav.mainnav a {
        display: block;
        padding: 0.9rem 1rem;
        background: #fff;
        line-height: 1.4;
    }

    header nav.mainnav a:hover,
    header nav.mainnav a:focus-visible {
        background: #f2f6ff;
        outline: 3px solid #005fcc;
        outline-offset: -3px;
        text-decoration: underline;
    }

    header nav.mainnav li.active > a {
        border-left: 5px solid #be1522;
    }

    section.left,
    section.right {
        width: 354px;
        padding-left: 10px;
    }

    article section .box {
        min-height: 125px;
        padding: 15px 25px 25px;
        font-size: 1.3rem;
    }

    section.antrag img {
        display: none;
    }

    section.stream .claim h2,
    section.stream .claim p strong,
    section.stream .claim p b {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 819px) {
    .screen {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }

    section.content,
    article,
    section.pagetop {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    header nav.metanav {
        justify-self: stretch;
    }

    header nav.metanav ul {
        justify-content: flex-start;
        gap: 0.25rem 1.5rem;
    }

    header nav.metanav li {
        padding-left: 0;
        font-size: 1rem;
    }

    section.left,
    section.right {
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    section.left > *,
    section.right > * {
        padding: 0 10px;
    }

    article header {
        min-height: 0;
        margin-bottom: 30px;
    }

    article header.pure,
    article header.subheader,
    article header.subh {
        min-height: 0;
    }

    article header h1,
    article header.subh h2 {
        padding: 30px 10px 0;
        font-size: 1.8rem;
    }

    article header h2 {
        width: auto;
        text-align: center;
    }

    p.subheader {
        margin: 20px 10px 30px;
        font-size: 1.1rem;
    }

    article section .box {
        min-height: 160px;
        padding: 30px 25px;
        font-size: 1.5rem;
    }

    section.left .box,
    section.right .box {
        margin: 0 0 20px;
    }

    section.antrag {
        height: auto;
        margin-top: 50px;
        padding-bottom: 25px;
    }

    section.antrag p {
        width: 100%;
    }

    footer .footer-col {
        flex-basis: 100%;
        padding: 0 10px;
        text-align: center;
    }

    section.stream .claim {
        margin-left: 10px;
        padding-right: 10px;
    }

    section.stream .claim h2,
    section.stream .claim p strong,
    section.stream .claim p b {
        margin-left: 0;
        font-size: 1.6rem;
    }

    article section .box.sujet {
        background-position: 90% 90%;
        background-size: 20%;
    }

    a.button {
        margin: 20px auto;
    }
}

@media only screen and (min-width: 1025px) {
    .menu-toggle,
    .mobile {
        display: none !important;
    }

    /* Claim im Fluss statt absolut → wächst bei Textvergrößerung mit */
    section.stream .claim {
        max-width: 50%;
        padding: 127px 0 40px 65px;
    }

    section.stream {
        box-sizing: border-box;
        min-height: 450px;
    }
}

@media only screen and (max-width: 500px) {
    article section .box {
        min-height: 0;
        padding: 25px 20px;
        font-size: 1.3rem;
    }

    header.top a.logo img {
        width: 100%;
        max-width: 260px;
    }

    a.button {
        padding-left: 3.5em;
        padding-right: 1em;
        font-size: 1.1rem;
    }
}
