/* ==========================================================
   berndkreis.de – site.css
   Alles Visuelle liegt hier. Inhalte nur in index.html.
   ========================================================== */
/* ---------- Fonts (lokal, kein CDN) -----------------------
   Dateien in assets/fonts/ ablegen. Quellen:
   https://gwfh.mape.eu/fonts/cormorant-garamond
   https://gwfh.mape.eu/fonts/inter
   https://gwfh.mape.eu/fonts/inter-tight
   Dateinamen ggf. an den Download anpassen. */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/inter-tight-latin-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------------------------------------- */
:root {
    --ink: #0B0B0B;

    /* Seite */
    --ink-2: #131210;

    /* leicht abgesetzte Fläche */
    --gold: #B8976A;

    /* Akzent */
    --bronze: #8C7355;

    /* Linien, Labels */
    --parchment: #EDE7DB;

    /* Text */
    --smoke: #8E8A82;

    /* Nebentext – heller als zuvor, für Lesbarkeit */
    --line: rgba(237, 231, 220, .12);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-label: "Inter Tight", "Inter", Arial, sans-serif;
    --maxw: 1180px;
    --pad: clamp(24px, 5vw, 72px);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 30px;
    background: var(--ink);
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

p {
    margin: 0 0 1em;
}

::selection {
    background: var(--gold);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--gold);
    color: var(--ink);
    padding: 8px 14px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    left: 8px;
}

/* Kleine Überschrift mit Strich – als echte Überschrift eingesetzt */
.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--bronze);
}

.label::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--bronze);
}

.display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.08;
    margin: 0;
}

.display em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

/* ---------- Navigation ------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px var(--pad);
    background: rgba(11, 11, 11, .92);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 21px;
    text-decoration: none;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.site-nav a {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 500;
    color: var(--smoke);
    text-decoration: none;
    transition: color .25s;
}

.site-nav a:hover {
    color: var(--parchment);
}

/* ---------- Hero ------------------------------------------ */
.hero {
    position: relative;
    min-height: 90vh;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) var(--pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-arc {
    position: absolute;
    top: -8%;
    right: 50%;
    width: 640px;
    max-width: 80vw;
    height: auto;
    transform: translateX(46%);
    opacity: .7;
    pointer-events: none;
}

.hero-arc path {
    fill: none;
    stroke: var(--bronze);
    stroke-width: 1;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) .3s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 1.05;
    margin-top: 26px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: rise .9s var(--ease) forwards;
}

.hero-line:nth-child(1) {
    animation-delay: .15s;
}

.hero-line:nth-child(2) {
    animation-delay: .32s;
}

.hero-line:nth-child(3) {
    animation-delay: .49s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero-role {
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    min-height: 1.6em;
}

.hero-role span {
    display: none;
}

.hero-role span.active {
    display: inline;
}

.hero-sub {
    max-width: 42ch;
    margin: 0;
    color: var(--smoke);
    font-size: 15px;
}

/* ---------- Welten: drei Karten --------------------------- */
.welten {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(60px, 9vw, 120px) var(--pad);
    border-top: 1px solid var(--line);
}

.welten-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.wcard {
    display: flex;
    flex-direction: column;
}

.wcard-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink-2);
}

.wcard-media img {
    width: 100%;
    height: auto;

    /* 4:3 kommt aus width/height im HTML */
    filter: grayscale(.3) contrast(1.05) brightness(.85);
    transition: transform .7s var(--ease), filter .5s;
}

.wcard:hover .wcard-media img {
    transform: scale(1.035);
    filter: grayscale(.1) contrast(1.05) brightness(.9);
}

/* Startnummer als Prägung über dem Foto */
.wcard-num {
    position: absolute;
    top: -.1em;
    left: 10px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 7.5rem;
    line-height: 1;
    color: var(--gold);
    opacity: .18;
    mix-blend-mode: soft-light;
    pointer-events: none;
    user-select: none;
}

.wcard-body {
    padding-top: 22px;
}

.wcard-tag {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-label);
    font-size: 12px;
    color: var(--bronze);
}

.wcard h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    margin-bottom: 12px;
}

.wcard p {
    max-width: 34ch;
    margin-bottom: 18px;
    color: var(--smoke);
    font-size: 14.5px;
}

.wtags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.wtags li {
    font-family: var(--font-label);
    font-size: 11.5px;
    color: var(--parchment);
    opacity: .6;
}

/* ---------- Projekte: Liste ------------------------------- */
.projekte {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(60px, 9vw, 120px) var(--pad);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: .85fr 1.4fr;
    gap: 60px;
}

.projekte-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    max-width: 9ch;
    margin: 18px 0 14px;
}

.projekte-intro p {
    max-width: 32ch;
    color: var(--smoke);
    font-size: 14.5px;
}

.plist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pitem {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    transition: padding-left .3s var(--ease);
}

.plist .pitem:last-child {
    border-bottom: 1px solid var(--line);
}

.pitem:hover {
    padding-left: 10px;
}

.pitem-kind {
    margin: 0;
    padding-top: 6px;
    font-family: var(--font-label);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--bronze);
}

.pitem h3 {
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.pitem p {
    max-width: 52ch;
    margin: 0;
    color: var(--smoke);
    font-size: 14.5px;
}

.pitem-link {
    align-self: center;
    font-family: var(--font-label);
    font-size: 13px;
    color: var(--parchment);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: color .25s, border-color .25s;
}

.pitem-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ---------- Über mich ------------------------------------- */
.ueber {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(60px, 9vw, 120px) var(--pad);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: .9fr 1.3fr;
    gap: 64px;
    align-items: start;
}

.portrait {
    margin: 18px 0 0;
    border: 1px solid var(--line);
}

.portrait img {
    width: 100%;
}

.ueber-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 18px 0 22px;
}

.ueber-text p {
    max-width: 56ch;
    margin-bottom: 18px;
    color: var(--smoke);
    font-size: 15px;
}

.ueber-text strong {
    font-weight: 500;
    color: var(--parchment);
}

/* ---------- Footer ---------------------------------------- */
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 30px var(--pad) 50px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: var(--font-label);
    font-size: 13px;
    color: var(--smoke);
}

.site-footer p {
    margin: 0;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.site-footer a {
    color: var(--smoke);
    text-decoration: none;
    transition: color .2s;
}

.site-footer a:hover {
    color: var(--parchment);
}

/* ---------- Responsive ------------------------------------ */
@media (max-width: 860px) {
    .welten-grid,
    .projekte,
    .ueber {
        grid-template-columns: 1fr;
    }

    .projekte,
    .ueber {
        gap: 36px;
    }

    .pitem {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pitem-link {
        align-self: start;
    }

    .portrait {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero {
        min-height: 78vh;
    }

    .wcard-num {
        font-size: 6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-line,
    .hero-arc path {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }

    .wcard-media img,
    .pitem,
    .pitem-link,
    .site-nav a,
    .site-footer a {
        transition: none;
    }
}
