/* =========================================================
   Layout & Komponenten (Hauptseite)
   Schriften: fonts.css muss vor dieser Datei geladen werden.
   ========================================================= */

/* =========================================================
   Reset / Basis
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --body-background: #000;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html:not(.header-menu-open) {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    min-height: 100vh;
    background-color: var(--body-background);
    color: #f2f2f2;
}

/* Kein erzwungenes -webkit-font-smoothing.
   Gerade unter Windows/Chrome kann das Text dÃ¼nner und unschÃ¤rfer wirken lassen. */

a {
    text-decoration: none;
    color: #000;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

/* Korrigiert:
   Vorher stand hier h1 h2 h3.
   Das war ein falscher Selektor.
*/

h1,
h2,
h3 {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    text-rendering: optimizeLegibility;
}

.lazy-img {
    filter: blur(20px);
    z-index: -1;
}


/* =========================================================
   Container
   ========================================================= */

#container {
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    grid-template-areas:
        "main main main"
        "footer footer footer";
}


/* =========================================================
   Header / Banner
   ========================================================= */

header {
    position: fixed;
    width: 100%;
    z-index: 2200;
    background-color: var(--body-background);
    border-bottom: 1px solid #5e5e5e;
}

#banner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 auto;
    padding: 0 12px;
    color: #fff;
    position: relative;
    background-color: var(--body-background);
    z-index: 1400;
}

#echoseite {
    flex: 1 1 0;
    display: block;
    position: static;
    min-width: 0;
    padding-right: 0;
}

#echoseite h1 {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#logo {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    border-radius: 50px;
    background-color: #fff;
    z-index: 1200;
}

#logo img {
    display: block;
    height: 44px;
    width: 44px;
    max-width: none;
    border-radius: 50px;
    margin: 0;
}


/* =========================================================
   Header-Menü
   ========================================================= */

#header-menu-area {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    z-index: 2300;
}

.header-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #050505;
    border: 1px solid #2d2d2d;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
}

.header-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.header-menu-toggle:hover,
.header-menu-toggle[aria-expanded="true"] {
    background-color: #161616;
}

.header-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.header-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-menu[hidden] {
    display: none;
}

.header-menu {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2100;
    width: 100%;
    max-height: none;
    padding: 22px 16px 42px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #111;
}

.header-menu-section-title {
    width: min(680px, 100%);
    margin: 18px auto 5px;
    padding: 0 10px;
    color: #666;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.header-menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    width: min(680px, 100%);
    min-height: 42px;
    margin: 0 auto;
    padding: 8px 10px;
    background-color: #fff;
    border-bottom: 1px solid #ececec;
    color: #111;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
}

.header-menu-item:last-child {
    border-bottom: none;
}

.header-menu-item:visited {
    color: #111;
}

.header-menu-item:hover {
    background-color: #f4f4f4;
}

.header-menu-login {
    margin-top: 0;
    border-top: 0;
}

.header-menu-arrow {
    color: #777;
    font-size: 18px;
    line-height: 1;
}

body.header-menu-open {
    overflow: hidden;
}

body.header-menu-open #container {
    overflow: hidden;
}

html.header-menu-open,
html.header-menu-open body,
body.header-menu-open {
    overflow: hidden !important;
}

html.header-menu-open header {
    left: 0;
    right: var(--scrollbar-width, 0px);
    width: auto;
}

.header-menu {
    width: auto;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 768px) {
    .header-menu {
        padding-top: 36px;
    }

    .header-menu-section-title,
    .header-menu-item {
        width: min(760px, 100%);
    }

    .header-menu-item {
        min-height: 44px;
        font-size: 14px;
    }
}


/* =========================================================
   Hauptnavigation
   ========================================================= */

#hauptnav {
    position: fixed;
    top: 60px;
    padding: 10px 10px 12px 10px;
    height: 100px;
    width: 100%;
    background-color: var(--body-background);
    transition: transform 0.3s ease;
}

/* lÃ¤sst die Navbar verschwinden */
.hidden {
    transform: translateY(-100%);
}

#nav_list {
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

#hauptnav ul li {
    text-align: center;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 500;
}

#ul_top {
    display: grid;
    grid-template-columns: 3fr 5fr;
    gap: 6px;
}

#li_1 {
    margin-left: 0;
    color: #fff;
}

#li_2 {
    margin-right: 0;
}

#ul_bottom {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 6px;
    margin-top: 6px;
}

#li_3 {
    margin-left: 0;
}

#li_4 {
    margin-right: 0;
}

#hauptnav ul a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0 8px;
    border-radius: 50px;
    background-color: #2d2d2d;
    border: none;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(9.5px, 3vw, 11px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;

    color: #fff;
}

#hauptnav ul a:hover {
    background-color: #3a3a3a;
}

.selected {
    background-color: #227fff !important;
    color: #fff !important;
}

.selected > a:visited {
    color: #fff;
}

#hauptnav ul li div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding-top: 0;
    white-space: inherit;
}


/* =========================================================
   Main
   ========================================================= */

main {
    grid-area: main;
    margin-top: 170px;
    padding-bottom: 100px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* =========================================================
   Beitragsliste
   ========================================================= */

main ul li {
    padding-top: 20px;
    border-bottom: 1px solid #5e5e5e;
    border-radius: 0px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 10px;
    padding-bottom: 10px;
}

main ul li a {
    display: grid;
    grid-template-columns: 65px 1fr 60%;
    grid-template-areas:
        "logo_user sender sender"
        "logo_user when when"
        "betreff betreff betreff"
        "vbs vbs vbs"
        "pdfvbs pdfvbs pdfvbs";
}

.logo_user {
    grid-area: logo_user;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
}

main ul li a h3 {
    grid-area: sender;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;

    margin-top: 5px;
    margin-bottom: 0px;
    max-width: 20ch;
    color: #fff;
}


/* =========================================================
   Bilder / PDFs in BeitrÃ¤gen
   ========================================================= */

.pictures {
    grid-area: vbs;
    margin-top: 5px;
    margin-right: 10px;
    padding-top: 5px;
    margin-left: 65px;
}

.pictures img {
    height: auto;
    width: 100%;
    margin-top: 5px;

    object-fit: cover;
    position: relative;
    z-index: -1;

    border: 1px solid rgb(70, 70, 70);
    border-radius: 10px;
}

.pdf_vbs {
    grid-area: pdfvbs;
    margin-top: 5px;
    margin-right: 10px;
    margin-left: 65px;
    padding-top: 5px;
}

.pdf_vbs img {
    height: auto;
    width: 100%;
    margin-top: 5px;
    border-radius: 0px;
    object-fit: cover;

    position: relative;
    z-index: -1;
}


/* =========================================================
   Datum / Zeit / Betreff
   ========================================================= */

.when {
    grid-area: when;
    display: grid;
    grid-template-columns: 70px 5px 1fr;
    grid-template-areas: "date . time";
    margin-top: 10px;
}

.date {
    grid-area: date;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.1px;

    color: #bbb;
}

.time {
    grid-area: time;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.1px;

    color: #bbb;
}

.betreff {
    grid-area: betreff;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.1px;

    color: #f2f2f2;
    padding-right: 5px;
    margin: 10px 10px 0 50px;
    padding: 5px 5px 5px 15px;
}

#ad {
    display: none;
}


/* =========================================================
   Videoprofil
   ========================================================= */

.videoprofil {
    display: grid;
    margin: 20px 10px 0 10px;

    grid-template-columns: 65px 1fr 60%;
    grid-template-areas:
        "logo_usr usr usr"
        "logo_usr usr usr";

    height: 60px;
}

.usr {
    grid-area: usr;
    display: grid;
    place-items: center;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;

    margin-bottom: 0px;
    color: #fff;
    background-color: #484848;
    border-radius: 50px;

    margin-top: 0px;
    height: 50px;
    margin-left: 10px;
    padding: 10px;
}

.logo_usr {
    grid-area: logo_usr;
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

video {
    width: 100%;
    height: auto;
    padding: 0 10px 10px 10px;
    margin-top: 15px;
}


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

footer {
    grid-area: footer;
    margin-top: 50px;
    padding-bottom: 50px;
    background-color: #e4e4e4;
    padding-top: 20px;
}

footer h2 {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

footer a {
    display: block;
    padding: 20px;
    margin: 0 20px;
    font-size: 11px;

    border-bottom: 1px solid #c9c9c9;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 500;
}

footer p {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin: 10px;
}

#credits {
    margin: 15px 0px 0 30px;
    height: 100px;
    width: 165px;
    display: flex;
    justify-content: space-between;
}

#credits a {
    display: inline;
    margin: 0;
    padding: 0px;
    border-bottom: 0px;
    font-size: 15px;
    text-decoration: underline;
}

#credits p {
    font-size: 15px;
    margin: 0px;
}


/* =========================================================
   Media Query ab 375px
   ========================================================= */

@media screen and (min-width: 375px) {

    #echoseite h1 {
        font-size: 17px;
    }

    #logo img {
        max-width: 130px;
    }

    #hauptnav ul a {
        font-size: 12px;
    }

    main ul li a h3 {
        grid-area: sender;

        font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.25;

        margin-right: 20px;
        margin-bottom: 0px;
        max-width: 30ch;
        padding-top: 0px;
        color: #fff;
    }

    .pdf_vbs img {
        height: auto;
        width: 100%;
        margin-top: 5px;
        border-radius: 0px;
        object-fit: cover;
    }
}


/* =========================================================
   Media Query ab 467px
   ========================================================= */

@media screen and (min-width: 467px) {

    .pictures img {
        height: auto;
        width: 100%;
        margin-top: 5px;
        border-radius: 0px;
        object-fit: cover;
    }

    .pdf_vbs img {
        height: auto;
        width: 100%;
        margin-top: 5px;
        border-radius: 0px;
        object-fit: cover;
    }
}


/* =========================================================
   Media Query ab 510px
   ========================================================= */

@media screen and (min-width: 510px) {

    #container {
        width: 100%;
        min-height: 100vh;

        display: grid;
        grid-template-columns: 1fr 500px 1fr;
        grid-template-areas:
            ". main ."
            "footer footer footer";
    }

    main {
        margin-top: 170px;
    }
}


/* =========================================================
   Media Query ab 630px
   ========================================================= */

@media screen and (min-width: 630px) {

    #banner {
        width: 500px;
    }

    #echoseite h1 {
        font-size: 17px;
        margin: 0;
    }

    #hauptnav ul a {
        font-size: 14px;
        letter-spacing: 0.2px;
    }

    #nav_list {
        width: 100%;
        max-width: 500px;
    }

    .pictures img {
        width: 100%;
        margin-top: 5px;
        border-radius: 0px;
        object-fit: cover;
    }

    .pdf_vbs img {
        margin-top: 5px;
        border-radius: 0px;
        object-fit: cover;
    }
}


/* =========================================================
   Media Query ab 1024px
   ========================================================= */

@media screen and (min-width: 1024px) {

    #container {
        width: 100%;
        min-height: 100vh;

        display: grid;
        grid-template-columns: 1fr 600px 1fr;
        grid-template-areas:
            ". main .";
    }

    main {
        max-width: 500px;
        margin-left: 50px;
    }

    .pictures {
        grid-area: vbs;
        margin-top: 5px;
        padding-top: 5px;
    }

    .pictures img {
        height: auto;
        width: 100%;
        margin-top: 5px;
        object-fit: cover;
    }

    .pdf_vbs {
        grid-area: pdfvbs;
        margin-top: 5px;
        margin-right: 0px;
        padding-top: 5px;
    }

    .pdf_vbs img {
        border-radius: 0px;
        object-fit: cover;
    }

    footer {
        position: fixed;
        bottom: 0;
        height: 120px;
        display: inline-block;
        width: 20%;
        background-color: var(--body-background);
        padding-bottom: 40px;
        border-top: none;
        color: #aaaaaa;
        margin-bottom: 30px;
        margin-left: 20px;
    }

    footer a {
        display: inline-block;
        padding: 0;
        margin: 0;
        border: none;
        margin-left: 5px;
        padding-top: 5px;
        color: #777;
    }

    footer a h2 {
        font-size: 15px;
        letter-spacing: 0;
        font-weight: 400;
        color: #777;
    }

    footer a:hover {
        text-decoration: underline;
    }

    footer a p {
        display: none;
    }

    #credits {
        margin: 15px 0px 50px 0px;
    }
}