/*
    PIPAC
    Platform Independent PDF Accessibility Validator

    style.css
    Teil 1: Grundlagen, Layout und Typografie
*/


/* ==========================================================
   1. Farbvariablen und globale Einstellungen
   ========================================================== */

:root {

    --color-primary: #12355b;
    --color-primary-light: #1d70b8;
    --color-primary-dark: #0b2239;

    --color-background: #f6f8fa;
    --color-surface: #ffffff;

    --color-text: #333333;
    --color-text-light: #5b6770;

    --color-border: #d8dde3;

    --color-success: #197a45;
    --color-warning: #fcd150;

    --shadow-small:
        0 2px 8px rgba(0, 0, 0, 0.06);

    --shadow-medium:
        0 8px 24px rgba(0, 0, 0, 0.08);

    --radius-small: 4px;
    --radius-medium: 10px;

    --content-width: 1100px;

    --font-main:
        "Inter",
        "Noto Sans",
        "Segoe UI",
        Arial,
        sans-serif;

}


/* ==========================================================
   2. CSS Reset
   ========================================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

    font-size: 100%;

}


body {

    margin: 0;

    background: var(--color-background);

    color: var(--color-text);

    font-family: var(--font-main);

    line-height: 1.7;

}


/* ==========================================================
   3. Grundelemente
   ========================================================== */


img {

    max-width: 100%;

    height: auto;

}


a {

    color: var(--color-primary-light);

    text-decoration-thickness: 2px;

    text-underline-offset: 3px;

}


/* a:hover,
a:focus {

    color: var(--color-primary-dark);

} */


a:focus-visible {

    outline:

        3px solid var(--color-primary-light);

    outline-offset: 3px;

}


strong {

    font-weight: 700;

}


/* ==========================================================
   4. Container und Seitenstruktur
   ========================================================== */


.container {

    width: min(
        var(--content-width),
        calc(100% - 3rem)
    );

    margin-inline: auto;

}


/* ==========================================================
   5. Skip-Link für Tastaturbedienung
   ========================================================== */


.skip-link {

    position: absolute;

    left: 1rem;

    top: -100px;

    background: var(--color-primary-dark);

    color: white;

    padding: 0.75rem 1rem;

    border-radius: var(--radius-small);

    z-index: 1000;

}


.skip-link:focus {

    top: 1rem;

}


/* ==========================================================
   6. Header
   ========================================================== */


header {

    background: var(--color-primary-dark);

        /* linear-gradient(
            135deg,
            var(--color-primary-dark),
            var(--color-primary)
        ); */

    color: white;

    padding-block: 2rem 4.5rem;

}


.header-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 2rem;

}

.header-top-right{
    display: flex;
    flex-direction: column;
}


/* ==========================================================
   7. Logo / Projektname
   ========================================================== */


.logo {

    display: flex;

    flex-direction: column;

}


.logo-title {

    font-size: 2rem;

    font-weight: 800;

    letter-spacing: 0.08em;

}


.logo-subtitle {

    font-size: 0.85rem;

    opacity: 0.85;

    max-width: 280px;

}


/* ==========================================================
   8. Navigation
   ========================================================== */


nav ul {

    list-style: none;

    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 1.25rem;

    padding: 0;

    margin: 0;

}


nav a {

    color: white;

    text-decoration: none;

    font-size: 0.95rem;

}


nav a:hover,
nav a:focus-visible {

    color: #ffffff;

    text-decoration: underline;

}

.language-toggle {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  gap: 6px;
  font-family: sans-serif;
  margin-bottom: 1rem;
}

.language-toggle a {
  color: #eee;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}

.language-toggle a:hover {
  color: #666;
  background: #eee;
}

.language-toggle .active {
  color: #666;
  background: #eee;
}


/* ==========================================================
   9. Hero-Bereich
   ========================================================== */


.hero {

    display: grid;

    grid-template-columns:

        minmax(0, 2fr)
        minmax(280px, 1fr);

    gap: 3rem;

    margin-top: 4rem;

}


.hero h1 {

    margin: 0 0 1.5rem;

    font-size: clamp(
        2.2rem,
        5vw,
        3.5rem
    );

    line-height: 1.15;

    letter-spacing: -0.02em;

}


.hero p {

    max-width: 760px;

}


.hero .lead {

    font-size: 1.35rem;

    font-weight: 500;

    line-height: 1.5;

    margin-bottom: 1.5rem;

}

/* ==========================================================
   10. Projektstatus
   ========================================================== */


.project-status {

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: var(--radius-medium);

    padding: 1.75rem;

    align-self: start;

}


.project-status h2 {

    margin-top: 0;

    margin-bottom: 1.25rem;

    font-size: 1.25rem;

    color: white;

}


.project-status ul {

    list-style: none;

    padding: 0;

    margin: 0;

}


.project-status li {

    margin-bottom: 0.75rem;

    line-height: 1.5;

}


.project-status .done {

    color: #d8ffe5;

}


.project-status .progress {

    color: #ffe8a3;

}


/* ==========================================================
   11. Inhaltsbereiche
   ========================================================== */


main {

    background: var(--color-background);

    padding-block: 4rem;

}


main section {

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-medium);

    padding: clamp(
        1.5rem,
        3vw,
        2.5rem
    );
    margin-bottom: 2rem;

    box-shadow: var(--shadow-small);

}

main section > *{
    max-width: 42rem;

    margin-left: auto;
    margin-right: auto;
}

/* section
{
    text-align: justify;
    hyphens: auto;
} */


section:last-child {

    margin-bottom: 0;

}


main section h1, h2 {

    color: var(--color-primary);

    font-size: clamp(
        1.6rem,
        3vw,
        2rem
    );

    line-height: 1.3;

    margin-top: 0;

    margin-bottom: 1.5rem;

}


section h3 {

    color: var(--color-primary-dark);

    font-size: 1.15rem;

    margin-top: 0;

}


section p {

    margin-top: 0;

    margin-bottom: 1.25rem;

}


section p:last-child {

    margin-bottom: 0;

}


.intro {

    font-size: 1.15rem;

    color: var(--color-text-light);

}


/* ==========================================================
   12. Roadmap
   ========================================================== */


.roadmap {

    position: relative;

    margin-top: 2rem;

    max-width: 75ch;

}


.roadmap::before {

    content: "";

    position: absolute;

    left: 1rem;

    top: 1rem;

    bottom: 1rem;

    width: 2px;

    background: var(--color-border);

}


.roadmap-item {

    position: relative;

    display: grid;

    grid-template-columns: 2rem 1fr;

    gap: 1.25rem;

    margin-bottom: 2rem;

}


.roadmap-item:last-child {

    margin-bottom: 0;

}


.roadmap-marker {

    position: relative;

    z-index: 1;

    width: 2rem;

    height: 2rem;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--color-background);

    border: 2px solid var(--color-border);

    font-weight: 700;

}


.roadmap-item.done .roadmap-marker {

    background: var(--color-success);

    border-color: var(--color-success);

    color: white;

}


.roadmap-item.progress .roadmap-marker {

    background: var(--color-warning);

    border-color: var(--color-warning);

    color: white;

}


.roadmap-item p {

    margin-bottom: 0;

}


/* ==========================================================
   13. Listen
   ========================================================== */


section ul {

    padding-left: 1.5rem;

}


section li {

    margin-bottom: 0.5rem;

}


/* ==========================================================
   14. Kontaktbereich
   ========================================================== */


address {

    font-style: normal;

    background: var(--color-background);

    border-left:

        4px solid var(--color-primary-light);

    padding: 1.25rem;

    margin-top: 2rem;

    max-width: 500px;

}


address a {

    font-weight: 600;

}


/* ==========================================================
   15. Kleine Hervorhebungen
   ========================================================== */


/* .references {

    background:

        linear-gradient(
            to bottom right,
            #ffffff,
            #f8fafc
        );

} */

/* ==========================================================
   16. Footer
   ========================================================== */


footer {

    background: var(--color-primary-dark);

    color: white;

    padding-block: 2rem;

}


.footer-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 2rem;

}


footer strong {

    letter-spacing: 0.05em;

}


/* ==========================================================
   17. Responsive Design
   ========================================================== */


@media (max-width: 900px) {


    .header-top {

        flex-direction: column;

    }


    nav ul {

        justify-content: flex-start;

    }


    .hero {

        grid-template-columns: 1fr;

        gap: 2rem;

    }


    .project-status {

        max-width: 500px;

    }

}


@media (max-width: 650px) {


    .container {

        width:

            min(
                100% - 2rem,
                var(--content-width)
            );

    }


    header {

        padding-block:

            1.5rem 3rem;

    }


    .logo-title {

        font-size: 1.75rem;

    }


    nav ul {

        flex-direction: column;

        gap: 0.5rem;

    }


    .hero {

        margin-top: 2.5rem;

    }


    .hero h1 {

        font-size: 2rem;

    }


    .hero .lead {

        font-size: 1.15rem;

    }


    section {

        padding: 1.25rem;

        border-radius:

            var(--radius-small);

    }


    .roadmap-item {

        grid-template-columns:

            1.75rem 1fr;

        gap: 1rem;

    }


    .roadmap-marker {

        width: 1.75rem;

        height: 1.75rem;

    }


    .footer-content {

        flex-direction: column;

        align-items: flex-start;

    }

}


/* ==========================================================
   18. Reduzierte Bewegung
   ========================================================== */


@media (prefers-reduced-motion: reduce) {


    html {

        scroll-behavior: auto;

    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}


/* ==========================================================
   19. Druckansicht
   ========================================================== */


@media print {


    body {

        background: white;

        color: black;

        font-size: 12pt;

    }


    header {

        background: white;

        color: black;

        padding: 0;

    }


    nav,
    .skip-link {

        display: none;

    }


    .hero {

        display: block;

        margin-top: 2rem;

    }


    .project-status {

        border:

            1px solid #999;

        background: white;

        color: black;

        margin-top: 2rem;

    }


    main {

        padding: 0;

    }


    section {

        box-shadow: none;

        border:

            1px solid #ccc;

        break-inside: avoid;

    }


    a {

        color: black;

        text-decoration: underline;

    }


    footer {

        background: white;

        color: black;

        border-top:

            1px solid #ccc;

        margin-top: 2rem;

    }

}


/* ==========================================================
   20. Ende
   ========================================================== */