@import url('../css/theme.css');

@font-face {
    font-family: 'Univers';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/univers/UniversRegular.woff) format('woff')
}

@font-face {
    font-family: 'Univers';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/univers/UniversCnRg.woff) format('woff')
}

@font-face {
    font-family: 'Univers';
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/univers/UniversLight.woff) format('woff')
}

@font-face {
    font-family: 'Univers';
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/univers/UniversBold.woff) format('woff')
}

@font-face {
    font-family: 'Univers';
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/univers/UniversCnBold.woff) format('woff')
}

html, body {
    width: 100%;
    height: 100%;

    margin: 0;
    overflow: hidden;

    box-sizing: border-box;
}

html {
    font-size: clamp(14px, (8px + 0.5vw), 16px);
    font-family: Verdana, Geneva, Tahoma, sans-serif;

    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1);
}
body {
    display: grid;
    grid-template-rows: max-content minmax(0, 1fr) max-content;

    background: linear-gradient(
        to right,
        var(--md-ref-palette-secondary50),
        var(--md-ref-palette-primary50),
        var(--md-ref-palette-tertiary50)
    );
    
    background: linear-gradient(
        to right,
        #2922A5,
        #892C96,
        #CB0B7A
    );

    --font: var(--md-sys-color-on-primary-light);
    --background: #ffffff;
    --accent: var(--md-sys-color-tertiary-light);;
    --on-accent: #ffffff;
    /* Font Bayrische Regierung: Univers */
}

header {
    z-index: 27101997;
    display: grid;
    align-items: center;
    grid-template-columns: auto max-content max-content;
    position:sticky;
    top:0;
    backdrop-filter: blur(5rem);
}

header .shard {
    height: clamp(1.8rem, 1.1rem + 2vw, 2.5rem);
    width: clamp(1.8rem, 1.1rem + 2vw, 2.5rem);
    background-color: white;
    scale: 20;
    rotate: 55deg;
    translate: 430px 0px;
}
header .logo-container {
    text-decoration: none;
    display:flex;
    align-items: center;
    padding: 0.5rem 1rem;
    scale: 1;
}

.logo-container svg {
    padding: 0.5rem;
    height: 3rem;
}

.logo-container .text {
    color: var(--md-sys-color-tertiary-light);
    font-size: 1.4rem;
    user-select: none;
    font-family: 'Univers';
    display: none;
}

@media only screen and (min-width: 1300px) {
    .logo-container .text {
        display: block;
    }
}

header nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
}

header .menu {
    padding:0 1rem 0 1rem;
}

header .main-link {
    display: flex;
    align-items: center;

    padding: 1rem clamp(0.5rem, 0.5rem + 3vw, 10rem);
    border-bottom: 0.125rem solid;
    border-color: var(--accent);
    height: 2.5rem;

    cursor: pointer;
    color: var(--font);
}

header .main-link:hover, header .main-link:active {
    color: var(--accent);
    border-bottom: none;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(1rem);
}

header .main-link {
    font-size: 1.2rem;
    transition: all 150ms;
}


header .main-link:hover .submenu{
    opacity: 1;
    display: block;
}

.main-link .submenu {
    display: none;
    position: absolute;
    top: 4.48rem;
    left: 0;
    width: 100%;


    background: linear-gradient(
        to top left,
        #2922A5,
        #892C96,
        #CB0B7A
    );

    opacity: 0;
    transition: opacity 500ms;
}

.sublink {
    border-bottom: 0.125rem solid;
    border-color: var(--accent);
    color: var(--font);
    display: flex;
    text-decoration: none;

    padding: 1rem 1rem;
    border-bottom: 0.125rem solid;
    border-color: #fff;

    hyphens: auto;
    overflow-wrap: break-word;
    transition: all 150ms;
}

.sublink:hover, .sublink:active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.8);
}

main {
    display:grid;
    padding: 1rem 0;
    width: calc(100% - (4rem))
}

@media only screen and (min-width: 1300px) {
    main {
        width: calc(100% - (10rem + 8vw))
    }
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-top: solid 0.2rem white;
    color: var(--font)
}

footer a {
    color: var(--font)
}

::-webkit-scrollbar{
    width: 0.5em;
}
::-webkit-scrollbar-track{
    background: rgba(0,0,0,0.1);
    border-radius: 100vw;
    margin-block: .5em;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.5);
    border: .25em solid rgba(0,0,0,0.1);
    border-radius: 100vw;
}

