/* =========================================================
   Beitragsdetail
   Schriften: fonts.css muss vor dieser Datei geladen werden.
   ========================================================= */

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

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

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: #000;
    color: #f2f2f2;
}

/* Kein erzwungenes Font-Smoothing.
   Gerade unter Windows kann antialiased/grayscale Text dünner wirken lassen. */

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

a:visited {
    color: #000;
}

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;
}

pre {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    white-space: break-spaces;
    line-height: 1.45;
}


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

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

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


/* =========================================================
   Header / Logo / Navigation
   ========================================================= */

#header {
    position: fixed;
    width: 100%;
    height: 60px;
    z-index: 2200;
    background-color: #000;
    border-bottom: 1px solid #5e5e5e;
}

#logo {
    position: fixed;
    width: 100%;
    background-color: #fff;
    height: 40px;
    padding-top: 3px;
    box-shadow: 0px 1px 1px #e9e9e9;
}

#logo img {
    margin: auto;
    display: block;
    height: 35px;
}

#hauptnav {
    position: fixed;
    display: flex;
    align-items: center;

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

    background-color: #000;
    height: 60px;
    width: 100%;
    z-index: 2200;
}

#hauptnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #2d2d2d;
    border-radius: 50%;
    background-color: #050505;
    color: #fff;
}

#hauptnav a:hover {
    background-color: #161616;
}

#hauptnav a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.public-back-button__icon {
    display: block;
    width: 18px;
    height: 18px;
}

.public-back-button__icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


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

main {
    grid-area: main;
    margin-top: 60px;

    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    grid-template-areas:
        "infos infos infos"
        "betreff betreff betreff"
        "body body body"
        "images images images"
        "pdf pdf pdf"
        "user_portrait user_portrait user_portrait";
}

#infos {
    grid-area: infos;
    margin-top: 20px;
    padding: 0 20px 0 20px;
}

.logo_portrait_small {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-areas:
        "logo_user user_when"
        ". user_when";
}

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

#user_when {
    grid-area: user_when;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "user_name user_name"
        "when when";
}

.user_name {
    grid-area: user_name;
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    color: #f2f2f2;
}

#when {
    grid-area: when;
    margin-top: 5px;

    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-areas:
        "date time";
    color: #bbb;
}

.date {
    grid-area: date;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.time {
    grid-area: time;
    font-size: 14px;
    font-weight: 400;
}


/* =========================================================
   Überschrift / Betreff / Beitragstext
   ========================================================= */

main h1 {
    margin-top: 10px;

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

#betreff {
    grid-area: betreff;
    margin: 20px 0px 0px 0px;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;

    color: #fff;
    padding: 40px 20px 10px 20px;
}

#body_text {
    grid-area: body;

    padding: 20px;
    padding-bottom: 50px;

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

    color: #f2f2f2;
    border-bottom: 1px solid #d7d7d7;
}

#body_text pre {
    max-width: 50ch;

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

    color: #f2f2f2;
}


/* =========================================================
   Bilder
   ========================================================= */

.picture_link {
    height: 100%;
}

.pictures {
    grid-area: images;
    margin-top: 20px;
}

.pictures img {
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 200ms ease-out;

    /* Damit img beim Hovern nicht über der Navbar liegt */
    z-index: -1;
    position: relative;

    border: 1px solid #eee;
}

.pictures img:hover {
    opacity: 0.9;
    transition: opacity 200ms ease-out;
}


/* =========================================================
   PDFs
   ========================================================= */

.pdfs {
    grid-area: pdf;
    margin-top: 20px;
    padding-bottom: 20px;
}

.pdfs img {
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 200ms ease-out;
    border: 1px solid #7d7d7d;
}

.pdfs img:hover {
    opacity: 0.9;
    transition: opacity 200ms ease-out;
}


/* =========================================================
   User Portrait / Profilbereich
   ========================================================= */

.user_portrait {
    grid-area: user_portrait;
    margin: 60px 20px 0 20px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "logo_portrait logo_portrait"
        "absender_portrait absender_portrait"
        "absatz absatz"
        "address address"
        "oeffnungszeiten oeffnungszeiten"
        "eigenbeschreibung eigenbeschreibung";

    border-top: 1px solid #5e5e5e;
    padding-top: 50px;
}

.user_portrait h2 {
    grid-area: absender_portrait;

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

    margin: 30px 0 30px 0;
    padding: 10px;
    text-align: center;
    color: #fff;
}

.logo_portrait {
    grid-area: logo_portrait;
}

.logo_user_portrait {
    height: 250px;
    width: 250px;

    margin-left: 0px;
    display: block;
    margin: auto;

    border-radius: 50%;
    object-fit: cover;
}

.absatz {
    grid-area: absatz;

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

    color: #f2f2f2;
    margin-top: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #5e5e5e;
}

.oeffnungszeiten {
    grid-area: oeffnungszeiten;
    width: 100%;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: #fff;
    margin-top: 20px;
    padding: 0 10px 20px 10px;
}

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

    color: #bdbdbd;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}

.eigenbeschreibung {
    grid-area: eigenbeschreibung;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: #fff;
    margin-top: 20px;
    padding: 20px 0 20px 0;
    border-top: 1px solid #5e5e5e;
}

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

    color: #bdbdbd;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}


/* =========================================================
   Adresse
   ========================================================= */

address {
    grid-area: address;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;

    color: #fff;
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #5e5e5e;
}

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

    color: #bdbdbd;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}

address a {
    display: block;

    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 500;

    padding-top: 20px;
    text-decoration: underline;
    border-radius: 50px;

    margin-bottom: 10px;
    padding: 6px;
    text-align: center;

    color: #fff;
    background-color: #484848;
}

address a:visited {
    color: #fff;
}

address a:hover {
    background-color: #5e5e5e;
}

.phone {
    margin-top: 20px;
}


/* =========================================================
   Media Query ab 500px
   ========================================================= */

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

    main {
        grid-area: main;
        margin-top: 60px;

        display: grid;
        grid-template-columns: 1fr 470px 1fr;
        grid-template-areas:
            ". infos ."
            ". betreff ."
            ". body ."
            ". images ."
            ". pdf ."
            ". user_portrait .";
    }

    .pdfs {
        padding-left: 0px;
    }

    .pdfs img {
        width: 100%;
        height: auto;
        border-radius: 0px;
        object-fit: cover;
    }

    .pdfs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 5px;
    }

    .pdfs a:nth-of-type(1) {
        grid-column: 1 / 3;
    }

    .pdfs a:nth-of-type(4) {
        grid-column: 1 / 3;
    }
}