/*
Theme Name: Luc Sohrmann
Theme URI: https://lucsohrmann.dev
Author: Luc Sohrmann
Description: Individuelles Portfolio-Theme fuer Luc Sohrmann. Weisser Hintergrund, schwarze Schrift, Geomini. Startseite als Bilder-Collage, Projekte mit horizontaler Bilderleiste.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lucsohrmann
*/

/* ---------- Geomini (lokal gehostet) ---------- */
@font-face {
    font-family: 'Geomini';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/geomini-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geomini';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/geomini-latinext-400.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geomini';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/geomini-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geomini';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/geomini-latinext-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset / Basis ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: #ffffff;
    color: #000000;
    font-family: 'Geomini', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    opacity: 0.6;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1.2em;
}

/* ---------- Layout ---------- */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

.site-main {
    flex: 1 0 auto;
    padding: clamp(40px, 8vh, 120px) 0;
}

/* ---------- Header ---------- */
.site-header {
    padding: clamp(24px, 5vh, 56px) 0 clamp(16px, 3vh, 32px);
}

.site-header .container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-branding a {
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 30px);
    letter-spacing: 0.01em;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(18px, 2.5vw, 40px);
    align-items: baseline;
    flex-wrap: wrap;
}

.main-navigation a {
    font-size: clamp(15px, 1.4vw, 18px);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Startseite: Collage (wie Galerie-Block, 4 Bilder pro Zeile) ---------- */
.collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 32px);
}

.collage__item {
    position: relative;
    display: block;
    width: 100%;
}

.collage__item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.collage__caption {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #000000;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.collage__item:hover .collage__caption,
.collage__item:focus .collage__caption {
    opacity: 1;
}

.collage__item:hover,
.collage__item:focus {
    opacity: 1;
}

/* Touch-Geraete ohne Hover: Titel dauerhaft einblenden. */
@media (hover: none) {
    .collage__caption {
        opacity: 1;
    }
}

.collage__empty {
    text-align: center;
    opacity: 0.5;
}

/* ---------- Einzelprojekt ---------- */
.project__header {
    margin-bottom: clamp(14px, 2.5vh, 24px);
}

.project__title {
    font-size: clamp(28px, 4vw, 52px);
    margin: 0;
}

/* Beschreibungstext direkt unter der Ueberschrift, ueber den Bildern */
.project__text {
    max-width: 720px;
    margin: 0 0 clamp(32px, 6vh, 64px);
}

.project__text h2,
.project__text h3 {
    margin-top: 1.6em;
}

/* Galerie in nativer WordPress-Darstellung (wie im Block-Editor) */
.project__gallery {
    margin: 0 0 clamp(24px, 4vh, 48px);
}

.project__gallery .wp-block-gallery {
    margin: 0;
}

.project-back {
    display: inline-block;
    margin-top: clamp(32px, 6vh, 64px);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Statische Seiten ---------- */
.page-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-content .entry-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 0.8em;
}

/* ---------- Kontaktformular ---------- */
.contact-form {
    margin-top: clamp(24px, 4vh, 40px);
}

.contact-form__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 clamp(16px, 3vh, 24px);
}

.contact-form label {
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    font-family: inherit;
    font-size: 16px;
    color: #000000;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    padding: 12px 14px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form__submit {
    margin: 0;
}

.contact-form button {
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    color: #ffffff;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    padding: 12px 32px;
    transition: opacity 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus {
    opacity: 0.7;
}

/* Honeypot fuer Menschen ausblenden */
.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-message {
    margin: clamp(16px, 3vh, 24px) 0;
    padding: 14px 16px;
    border: 1px solid #000000;
    font-size: 15px;
}

.form-message p {
    margin: 0 0 6px;
}

.form-message p:last-child {
    margin-bottom: 0;
}

.form-message--error {
    border-color: #b00020;
    color: #b00020;
}

/* ---------- Bio-Timeline ---------- */
.bio-timeline {
    margin: clamp(24px, 5vh, 48px) 0 0;
}

.bio-timeline__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: clamp(16px, 4vw, 48px);
    padding: clamp(16px, 3vh, 28px) 0;
    border-top: 1px solid #ededed;
}

.bio-timeline__row:last-child {
    border-bottom: 1px solid #ededed;
}

.bio-timeline__year {
    font-weight: 700;
    font-size: clamp(18px, 2vw, 22px);
}

.bio-timeline__text {
    margin: 0;
    align-self: center;
}

@media (max-width: 560px) {
    .bio-timeline__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0;
    padding: clamp(32px, 6vh, 64px) 0;
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .collage {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {
    .collage {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 44px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    /* Groesserer Abstand zwischen den Eintraegen, Titel dicht am eigenen Bild -> klare Zuordnung. */
    .collage {
        grid-template-columns: 1fr;
        row-gap: 64px;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .collage__caption {
        opacity: 1;
        margin-top: 14px;
        font-size: 16px;
    }
}
