html {
    line-height: 1.5;
    font-family: Georgia, serif;
    font-size: 20px;
    color: #1a1a1a;
    background-color: #fdfdfd;
}

.mbody {
    margin: 0 auto;
    width: 50%;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 50px;
    padding-bottom: 50px;
    hyphens: auto;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

@media (max-width: 600px) {
    body {
        font-size: 0.9em;
        padding: 1em;
    }

    h1 {
        font-size: 1.8em;
    }

    .mbody {
        width: 100%;
        padding: 0;
    }
}

@media print {
    body {
        background-color: transparent;
        color: black;
        font-size: 12pt;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3,
    h4 {
        page-break-after: avoid;
    }
}

p {
    margin: 1em 0;
}

a {
    color: #1a1a1a;
}

a:visited {
    color: #1a1a1a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 1.4em;
    margin-bottom: .4em;
}

h5,
h6 {
    font-size: 1em;
    font-style: italic;
}

h6 {
    font-weight: normal;
}

ol,
ul {
    padding-left: 1.7em;
    margin-top: 1em;
}

li>ol,
li>ul {
    margin-top: 0;
}

blockquote {
    margin: 1em 0 1em 1.7em;
    padding-left: 1em;
    border-left: 2px solid #e6e6e6;
    color: #606060;
}

code {
    font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
    font-size: 85%;
    margin: 0;
}

pre {
    margin: 1em 0;
    overflow: auto;
}

pre code {
    padding: 0;
    overflow: visible;
    overflow-wrap: normal;
}

.sourceCode {
    background-color: transparent;
    overflow: visible;
}

hr {
    background-color: #1a1a1a;
    border: none;
    height: 1px;
    margin: 0;
}



span.smallcaps {
    font-variant: small-caps;
}

span.underline {
    text-decoration: underline;
}

div.column {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

div.hanging-indent {
    margin-left: 1.5em;
    text-indent: -1.5em;
}

ul.task-list {
    list-style: none;
}

.display.math {
    display: block;
    text-align: center;
    margin: 0.5rem auto;
}

.media-row {
    display: flex;
    align-items: flex-start;
    /* top-aligned */
    gap: 1rem;
    /* Abstand zwischen Bild und Text */
    margin: 1rem 0;
}

.media-image {
    /* feste Bildbreite */
    max-width: 80%;
    /* oder prozentual für Responsive */
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    /* verhindert, dass das Bild schrumpft */
}

.media-text {
    flex: 1;
    /* nimmt verbleibenden Platz ein */
    min-width: 0;
    /* wichtig für Overflow in flexbox */
}

.media-text p {
    margin: 0 0 0.75rem 0;
    line-height: 1.45;
}



/* Grid: 2 Spalten, 3 Reihen */
.grid-container {
    width: 100%;
    margin-top: 5%;
}

.grid-item {
    display: flex;
}

.item-text-r {
    max-width: 70%;
    flex: 0 0 70%;

}

.item-text-l {
    max-width: 30%;
    flex: 0 0 30%;

}


.titel {
    font-size: 1.25rem;
    margin-bottom: 50px;
    /* etwas größer */
}

.absolute {
    width: 15%;
    position: sticky;
    top: 5%;
    left: 5%;
}

/* Mobile: Bild über Text */
@media (max-width: 640px) {
    .media-row {
        flex-direction: column;
    }

    .media-image {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobil: 1 Spalte */
@media (max-width: 700px) {
    .grid-item {
        width: 100%;
        flex-direction: column;
    }
}

/* Mobil: 1 Spalte */
@media (max-width: 989px) {
    .absolute {
        width: 15%;
        position: absolute;
        top: 0%;
        left: 0%;
    }
}

a {
    color: inherit;
    /* use surrounding text color */
    text-decoration: none;
    /* remove underline */
    background: none;
    border: none;
    cursor: pointer;
}

a:hover,
a:active {
    text-decoration: none;
    /* ensure no underline on hover/active */
}

/* keep keyboard focus visible (recommended for accessibility) */
a:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
}