/* ─── ÜBER MICH — 2-Spalten-Layout (CV-Style) ─── */

.about {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: calc(var(--pad-y) * 0.5) var(--pad-x) var(--pad-y);
    align-items: start;
}

.about-side,
.about-main {
    max-width: none;
    padding: 0;
}

.about .portrait {
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--ink-soft);
    border: 1px solid rgba(200, 168, 75, 0.18);
    position: relative;
}
.about .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about .portrait.is-empty::before {
    content: '';
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 75, 0.25);
}
.about .portrait.is-empty::after {
    content: 'Foto folgt';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(200, 168, 75, 0.55);
}

/* Sidebar: kompakter, kleinere Headings als Labels */
.about-side h2 {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 500;
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    border-top: 1px solid rgba(200, 168, 75, 0.15);
    padding-top: 1.2rem;
}
.about-side h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.about-side p,
.about-side ul {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(245, 240, 232, 0.78);
    margin-bottom: 0.6rem;
}
.about-side ul {
    list-style: disc;
    padding-left: 1.2rem;
}
.about-side li {
    padding: 0.15rem 0;
    margin: 0;
}
.about-side li::marker {
    color: var(--gold);
}

/* Icon-Liste: Kontakt + Persönliches (HTML-direkt im Markdown) */
.about-side ul.info-list {
    list-style: none;
    padding-left: 0;
}
.about-side ul.info-list li {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.7rem;
    align-items: baseline;
    padding: 0.3rem 0;
}
.about-side ul.info-list li i {
    color: var(--gold);
    text-align: center;
    font-size: 0.95rem;
}

/* Sprachen mit SVG-Flagge als Marker (cross-platform sichtbar) */
.about-side ul.lang-list {
    list-style: none;
    padding-left: 0;
}
.about-side ul.lang-list li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.about-side ul.lang-list li .flag {
    width: 1.5em;
    height: 1.05em;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(245, 240, 232, 0.08);
    margin: 0;          /* überschreibt das margin aus .prose img */
}

/* Links in der Icon-Liste ohne Unterstreichung */
.about-side ul.info-list a {
    border-bottom: none;
}
.about-side ul.info-list a:hover {
    color: var(--gold-light);
}
.about-side a {
    color: var(--gold);
    border-bottom: 1px solid rgba(200, 168, 75, 0.3);
    text-decoration: none;
    word-break: break-word;
}

/* Main-Spalte: dichtere CV-Einträge */
.about-main h2 {
    font-size: 1.6rem;
    margin-top: 2.6rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(200, 168, 75, 0.15);
    padding-bottom: 0.6rem;
}
.about-main h2:first-of-type {
    margin-top: 0;
}
.about-main h3 {
    font-size: 1.02rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 500;
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.8rem;
    margin-bottom: 0.3rem;
}
.about-main h3 + p strong {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--cream);
}
.about-main h3 + p {
    margin-bottom: 0.6rem;
}
.about-main ul {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}

@media (max-width: 860px) {
    .about {
        grid-template-columns: 1fr;
    }
    .about .portrait {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-main h2 { margin-top: 2rem; }
}

/* ─── PROJEKTREFERENZEN — 2-Spalten mit verteilten Fotos ─── */
.refs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 1.7fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: calc(var(--pad-y) * 0.5) var(--pad-x) var(--pad-y);
    align-items: stretch;
}

.refs-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.refs-side .portrait {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ink-soft);
    border: 1px solid rgba(200, 168, 75, 0.18);
    position: relative;
    flex-shrink: 0;
}
.refs-side .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.refs-side .portrait.is-empty::before {
    content: '';
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 75, 0.25);
}
.refs-side .portrait.is-empty::after {
    content: 'Foto folgt';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(200, 168, 75, 0.55);
}

.refs-spacer {
    flex: 1 1 4rem;
    min-height: 4rem;
}

/* Fähigkeiten-Block in der Sidebar — wie about-side gestylt */
.refs-skills,
.refs-skills.prose {
    max-width: none;
    padding: 0;
}
.refs-skills h2 {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.7rem;
}
.refs-skills ul {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(245, 240, 232, 0.78);
}
.refs-skills li::marker { color: var(--gold); }

/* Hauptspalte: gleiche Typografie wie about-main */
.refs-main {
    max-width: none;
    padding: 0;
}
.refs-main h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(200, 168, 75, 0.15);
    padding-bottom: 0.6rem;
}
.refs-main h3 {
    font-size: 1.02rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 500;
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1.8rem;
    margin-bottom: 0.3rem;
}
.refs-main h3 + p strong {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--cream);
}
.refs-main h3 + p {
    margin-bottom: 0.6rem;
}
.refs-main ul {
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}

@media (max-width: 860px) {
    .refs {
        grid-template-columns: 1fr;
    }
    .refs-side {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    .refs-side .portrait {
        flex: 1 1 0;
        max-width: none;
    }
    .refs-side .refs-skills,
    .refs-spacer {
        display: none;
    }
}

