* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #f5f6f7;
    color: #494949;
    font-family: 'Roboto Slab', serif;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 65px;
    padding: 0 50px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#logo {
    margin-right: auto;
}

#logo a {
    display: flex;
    align-items: center;
}

#logo img {
    display: block;
    width: 46px;
    height: auto;
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-nav a {
    color: #494949;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 200ms ease;
}

#main-nav a:hover {
    color: #111111;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #494949;
    cursor: pointer;
    font-size: 28px;
}

.menu-toggle::before {
    content: '\f0c9';
    font-family: FontAwesome;
}

.menu-toggle.active::before {
    content: '\f00d';
}

/* Hauptbereich */

main {
    min-height: calc(100vh - 70px);
}

.documents-section {
    min-height: calc(100vh - 70px);
    padding: 145px 24px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-heading {
    width: 100%;
    max-width: 850px;
    margin-bottom: 45px;
    text-align: center;
}

.section-heading h1 {
    margin: 0 0 12px;
    color: #494949;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading hr {
    width: 42px;
    height: 4px;
    margin: 0 auto 20px;
    border: 0;
    border-radius: 10px;
    background: #494949;
}

.section-heading p {
    margin: 0;
    color: #686868;
    font-size: 16px;
    line-height: 1.7;
}

/* PDF Karten */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 960px;
}

.pdf-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 155px;
    padding: 26px 28px;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.pdf-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: #c64040;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.pdf-card:hover,
.pdf-card:focus-visible {
    transform: translateY(-5px);
    border-color: #dedede;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13);
}

.pdf-card:hover::after,
.pdf-card:focus-visible::after {
    transform: scaleX(1);
}

.pdf-card:focus-visible {
    outline: 3px solid rgba(73, 73, 73, 0.25);
    outline-offset: 4px;
}

.pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 18px;
    background: #f7eaea;
    color: #b93434;
    font-size: 42px;
    transition:
        transform 220ms ease,
        background 220ms ease;
}

.pdf-card:hover .pdf-icon {
    transform: scale(1.05);
    background: #f3dddd;
}

.pdf-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pdf-title {
    color: #3f3f3f;
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.pdf-description {
    color: #777777;
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
}

.pdf-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #494949;
    transition:
        transform 220ms ease,
        background 220ms ease;
}

.pdf-card:hover .pdf-arrow {
    transform: translateX(4px);
    background: #e8e8e8;
}

/* Footer */

.site-footer {
    width: 100%;
    padding: 26px 20px;
    background: #3f3f3f;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #f0f0f0;
    font-size: 12px;
    line-height: 1.8;
}

.site-footer a {
    color: #add8e6;
}

/* Navigation mobil */

@media (max-width: 1200px) {
    .site-header {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        width: 100%;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        display: block;
        width: 100%;
        padding: 8px 0 14px;
    }

    #main-nav li {
        border-top: 1px solid #eeeeee;
    }

    #main-nav a {
        display: block;
        padding: 13px 5px;
        text-align: center;
    }
}

/* Tablet */

@media (max-width: 820px) {
    .documents-section {
        padding-top: 120px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Smartphone */

@media (max-width: 520px) {
    .site-header {
        min-height: 60px;
        padding: 0 14px;
    }

    #logo img {
        width: 42px;
    }

    .documents-section {
        padding: 105px 15px 60px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h1 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .pdf-card {
        grid-template-columns: 68px 1fr;
        gap: 16px;
        min-height: 125px;
        padding: 20px;
        border-radius: 14px;
    }

    .pdf-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
        font-size: 34px;
    }

    .pdf-title {
        font-size: 18px;
    }

    .pdf-description {
        font-size: 13px;
    }

    .pdf-arrow {
        display: none;
    }
}
