/* ==================================================================
   Eigene Ergaenzungen zu Grav Coder
   Stand: 7. Oktober 2026

   Masse in px und em, nicht in rem: Das Theme setzt die Wurzelschrift
   auf 10 px, womit rem-Werte um den Faktor 1,6 kleiner ausfallen als
   erwartet.
   ================================================================== */

/* ---- Bilder ------------------------------------------------------ */

.content img,
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px auto;
}

/* Schematische Darstellungen (Klasse .schema) sind aufklappbar.
   Fotos und Renderings bleiben unberuehrt. */

img.schema {
    cursor: zoom-in;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 3px;
    background: #fff;
}

img.schema:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

img.schema + em,
figure.schema figcaption {
    display: block;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: -12px;
}

/* ---- Overlay fuer die Schemagrafiken ----------------------------- */

#schema-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(0, 0, 0, 0.92);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#schema-overlay.open {
    display: block;
}

#schema-overlay img {
    display: block;
    margin: 0 auto;
    max-width: none;
    cursor: zoom-out;
}

@media (max-width: 900px) {
    #schema-overlay img {
        max-width: 100%;
        cursor: zoom-in;
    }
    #schema-overlay img.zoomed {
        max-width: none;
        cursor: zoom-out;
    }
}

#schema-overlay .schema-close {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1;
    border: 0;
    border-radius: 3px;
    padding: 6px 13px;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

#schema-overlay .schema-close:hover,
#schema-overlay .schema-close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

/* ---- Startseite -------------------------------------------------- */

.about {
    margin-bottom: 32px;
}

.about h1 {
    font-size: 1.75em;
    line-height: 1.35;
    font-weight: 600;
    margin: 0;
}

/* ---- Abstaende zwischen Themenbloecken --------------------------- */

.page-content h2 {
    margin-top: 56px;
}

.page-content > h2:first-child,
.page-content > *:first-child {
    margin-top: 0;
}

.page-content h3 {
    margin-top: 32px;
}

/* Einleitungstext ueber der Projektuebersicht */
.page-intro {
    margin-bottom: 40px;
}

/* ---- Lebenslauf: zweispaltige Listen ----------------------------- */

dl.cv {
    display: grid;
    /* Feste Spaltenbreite statt max-content: nur so beginnen die
       Beschreibungen in allen Bloecken an derselben Position. */
    grid-template-columns: 200px 1fr;
    column-gap: 20px;
    row-gap: 16px;
    margin: 24px 0 0;
    font-size: 0.95em;
}

/* Auf breiten Fenstern etwas ueber die Textspalte hinaus, damit die
   laengeren Eintraege ohne Umbruch in eine Zeile passen. */
@media (min-width: 1200px) {
    dl.cv {
        width: calc(100% + 120px);
    }
}

dl.cv dt {
    font-weight: 700;
    /* Kein white-space: nowrap. Ist die Spur einmal zu schmal, soll der
       Begriff umbrechen statt in die Beschreibung hineinzulaufen. */
}

dl.cv dd {
    margin: 0;
}

/* Nachgeordnete Angabe: Kenntnisstand, geplanter Abschluss */
.cv-note {
    display: block;
    margin-top: 2px;
    font-style: italic;
    font-size: 0.92em;
    opacity: 0.7;
}

/* Auf schmalen Geraeten untereinander statt nebeneinander */
@media (max-width: 760px) {
    dl.cv {
        grid-template-columns: 1fr;
        row-gap: 0;
        width: 100%;
    }
    dl.cv dt {
        margin-top: 20px;
    }
    dl.cv dt:first-child {
        margin-top: 0;
    }
}

/* ---- Projektuebersicht: Eintraege -------------------------------- */

.list-item {
    margin-bottom: 44px;
}

.list-item:last-child {
    margin-bottom: 0;
}

.page-content article.list-item h2.list-title {
    margin: 0 0 10px;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
}

.list-title a {
    text-decoration: none;
}

.list-title a:hover,
.list-title a:focus-visible {
    text-decoration: underline;
}

.list-summary p {
    margin-bottom: 0;
}

/* ---- Tabellen lesbar machen (Bootstrap 3 stylt nur .table) -------- */

.content table,
article table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.content table th,
.content table td,
article table th,
article table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    text-align: left;
}

/* ---- Eigene Inline-SVG-Icons (Ersatz fuer Font Awesome) ---------- */

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.color-scheme-trigger .icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
}

/* ---- Rechtliche Hinweise im Fuss --------------------------------- */

.legal {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.9em;
    opacity: 0.75;
}

.legal a {
    text-decoration: none;
}

.legal a:hover,
.legal a:focus-visible {
    text-decoration: underline;
}

.legal .separator {
    margin: 0 6px;
    opacity: 0.6;
}

/* ---- Sicherheitsnetz --------------------------------------------- */

/* Falls ".centered" doch einmal mehrere Bloecke umschliesst, sollen
   sie untereinander stehen statt nebeneinander. */
.content .centered {
    flex-direction: column;
}
