/* ==========================================================================
   thinnes.eu – Gestaltung
   Dunkel und warm, abgestimmt auf das Kopfbild: tiefe Brauntöne,
   Gold als einziger Akzent, viel Ruhe um den Text.
   ========================================================================== */

:root {
    --bg:            #12100e;
    --bg-deep:       #0c0a09;
    --surface:       #1c1916;
    --surface-soft:  #242019;
    --gold:          #c8a45c;
    --gold-bright:   #e4c37e;
    --text:          #ede6d8;
    --text-muted:    #a79e8e;
    --line:          rgba(200, 164, 92, 0.22);
    --line-soft:     rgba(237, 230, 216, 0.10);
    --shadow:        0 18px 48px rgba(0, 0, 0, 0.45);

    --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --wrap:  1120px;
    --prose: 68ch;
    --radius: 4px;
}

/* --- Grundlagen ---------------------------------------------------------- */

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--gold);
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--gold-bright); text-decoration-color: currentColor; }

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

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: 0.01em;
    margin: 0 0 0.6em;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    background: var(--gold);
    color: var(--bg-deep);
    padding: 0.6rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: var(--bg-deep); }

/* --- Kopfbild ------------------------------------------------------------ */

.site-header {
    background: var(--bg-deep);
    display: flex;
    justify-content: center;
}

.site-header__link {
    display: block;
    line-height: 0;
    width: 100%;
    max-width: 1600px;
}

/*
 * Das Kopfbild wird immer vollstaendig gezeigt - nichts wird beschnitten.
 * Deshalb kein object-fit, sondern das natuerliche Seitenverhaeltnis.
 * max-width haelt es bei seiner echten Breite von 1600 px, damit es auf
 * sehr breiten Bildschirmen nicht hochgerechnet und dadurch unscharf wird.
 */
.site-header__image {
    width: 100%;
    max-width: 1600px;
    height: auto;
    margin: 0 auto;
}

/* --- Navigation ---------------------------------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18, 16, 14, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-soft);
}

.site-nav__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.5rem;
}

.site-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    margin: 0;
    padding: 0;
    flex: 1;
}

.site-nav__link {
    display: inline-block;
    padding: 1rem 0;
    color: var(--text);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0.65rem;
    height: 1px;
    background: var(--gold);
    transition: right 0.28s ease;
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { right: 0; }

.site-nav__link.is-current { color: var(--gold); }
.site-nav__link.is-current::after { right: 0; }

.site-nav__lang {
    flex-shrink: 0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.4rem 0;
}
.site-nav__lang-current { color: var(--gold); }
.site-nav__lang-sep { margin: 0 0.35rem; opacity: 0.45; }
.site-nav__lang:hover .site-nav__lang-other { color: var(--gold-bright); }

.site-nav__toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 0;
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 0;
    cursor: pointer;
}

.site-nav__burger,
.site-nav__burger::before,
.site-nav__burger::after {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-nav__burger { position: relative; }
.site-nav__burger::before,
.site-nav__burger::after {
    content: "";
    position: absolute;
    left: 0;
}
.site-nav__burger::before { top: -6px; }
.site-nav__burger::after  { top: 6px; }

.ext {
    font-size: 0.75em;
    margin-left: 0.3em;
    opacity: 0.7;
    vertical-align: 0.15em;
}

/* --- Grundraster des Inhalts --------------------------------------------- */

.main {
    flex: 1;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.content__head { margin-bottom: clamp(2rem, 5vw, 3rem); }

.content__title {
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
    margin-bottom: 0.35em;
}
.content__title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 1px;
    margin-top: 0.6em;
    background: var(--gold);
}

.content__intro {
    max-width: var(--prose);
    color: var(--text-muted);
    font-size: 1.1rem;
}
.content__intro--lead {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
    line-height: 1.5;
    color: var(--text);
    max-width: 30ch;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.content__intro--lead p { margin: 0 0 0.5em; }

/* --- Fließtext ----------------------------------------------------------- */

.prose { max-width: var(--prose); }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child  { margin-bottom: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: #fff; font-weight: 600; }
.prose code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--surface-soft);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}
.prose blockquote {
    margin: 1.5em 0;
    padding: 0.2em 0 0.2em 1.3em;
    border-left: 2px solid var(--gold);
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 1.1em;
    font-style: italic;
}
.prose hr {
    border: 0;
    border-top: 1px solid var(--line-soft);
    margin: 2.5em 0;
}
.prose--small { font-size: 0.95rem; color: var(--text-muted); }

/* --- Abschnitte ---------------------------------------------------------- */

.section {
    margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
.section:last-child { margin-bottom: 0; }

.section__heading {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}

.section__media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section__figure { margin: 0 0 1.5em; }
.section__figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.section__figure figcaption {
    margin-top: 0.6em;
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (min-width: 800px) {
    .section--image-right,
    .section--image-left {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
        gap: clamp(2rem, 4vw, 3.5rem);
        align-items: center;
    }
    .section--image-right .section__media { order: 2; }
    .section--image-left  .section__media { order: 0; }
    .section--image-right .section__body,
    .section--image-left  .section__body { order: 1; }
}

@media (max-width: 799px) {
    .section__media { margin-bottom: 1.5rem; }
}

.section__buttons {
    margin: 1.75em 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Schaltflächen ------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.15em;
    padding: 0.8em 1.7em;
    background: var(--gold);
    color: var(--bg-deep);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.button:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--bg-deep);
    transform: translateY(-1px);
}

.button--ghost {
    background: transparent;
    color: var(--gold);
}
.button--ghost:hover {
    background: var(--gold);
    color: var(--bg-deep);
}

.button--large {
    padding: 1em 2.2em;
    font-size: 0.95rem;
}

/* --- Kacheln ------------------------------------------------------------- */

.tiles {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1.25rem;
}

.tile__link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.tile__link:hover {
    border-color: var(--line);
    background: var(--surface-soft);
    transform: translateY(-3px);
    color: var(--text);
}

.tile__icon {
    display: block;
    color: var(--gold);
    margin-bottom: 0.15rem;
}
.tile__icon .icon { width: 40px; height: 40px; }

/* Beim Überfahren der Kachel zeichnet sich das Symbol etwas kräftiger */
.tile__link:hover .tile__icon { color: var(--gold-bright); }

.tile__title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--gold);
}

.tile__teaser {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Hervorgehobener Verweis (Imkern, Bootfahren) ------------------------ */

.callout {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.callout__icon { color: var(--gold); flex-shrink: 0; }
.callout__icon .icon {
    width: clamp(48px, 9vw, 68px);
    height: clamp(48px, 9vw, 68px);
    stroke-width: 1.1;
}
.callout__body { flex: 1; }

.callout__text {
    margin: 0 0 1.1rem;
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    line-height: 1.45;
}

.callout__hint {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* --- Lebenslauf ---------------------------------------------------------- */

.cv__head {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 720px) {
    .cv__head { grid-template-columns: 260px 1fr; align-items: start; }
}

.cv__photo img {
    width: 100%;
    max-width: 260px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    filter: saturate(0.92);
}

.cv__name {
    font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
    margin-bottom: 0.15em;
}

.cv__tagline {
    margin: 0 0 1.25em;
    color: var(--gold);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv__intro { margin-bottom: 1.5rem; }

.cv__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem 1.75rem;
    margin: 0;
}
.cv__fact dt {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cv__fact dd { margin: 0.15rem 0 0; }

.cv__group { margin-bottom: clamp(2.5rem, 6vw, 3.75rem); }

.cv__groupTitle {
    font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--line-soft);
}

.cv__timeline {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
}

.cv__entry {
    display: grid;
    gap: 0.35rem 2rem;
    padding: 0 0 1.75rem 1.5rem;
    border-left: 1px solid var(--line-soft);
    position: relative;
}
.cv__entry:last-child { padding-bottom: 0; }

.cv__entry::before {
    content: "";
    position: absolute;
    left: -4px; top: 0.6em;
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
}

@media (min-width: 720px) {
    .cv__entry { grid-template-columns: 11rem 1fr; }
    .cv__period { grid-row: span 2; }
}

.cv__period {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 0.35em;
}

.cv__entryTitle { font-size: 1.2rem; margin-bottom: 0.15em; }

.cv__place {
    margin: 0 0 0.6em;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cv__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 0;
    padding: 0;
}
.cv__tag {
    padding: 0.4em 1em;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 100px;
    font-size: 0.875rem;
}

/* --- Fußzeile ------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--line-soft);
    background: var(--bg-deep);
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer span[aria-hidden] { opacity: 0.4; margin: 0 0.45em; }
.site-footer__counter strong { color: var(--text); font-weight: 600; }

/* --- Mobil --------------------------------------------------------------- */

@media (max-width: 720px) {
    .site-nav__toggle { display: inline-flex; }

    .site-nav__inner { justify-content: space-between; }

    .site-nav__list {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: rgba(12, 10, 9, 0.985);
        border-bottom: 1px solid var(--line);
    }
    .site-nav__list.is-open { display: flex; }

    .site-nav__link { padding: 0.85rem 0; display: block; }
    .site-nav__link::after { display: none; }
    .site-nav__item + .site-nav__item { border-top: 1px solid var(--line-soft); }

    .site-nav__toggle[aria-expanded="true"] .site-nav__burger { background: transparent; }
    .site-nav__toggle[aria-expanded="true"] .site-nav__burger::before { transform: translateY(6px) rotate(45deg); }
    .site-nav__toggle[aria-expanded="true"] .site-nav__burger::after  { transform: translateY(-6px) rotate(-45deg); }

    .callout { flex-direction: column; text-align: center; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Druck --------------------------------------------------------------- */

@media print {
    :root { --bg: #fff; --text: #000; --text-muted: #444; }
    body { background: #fff; color: #000; }
    .site-nav, .site-footer, .skip-link, .callout__hint { display: none; }
    .site-header__image { height: auto; }
    a { color: #000; }
    .cv__period, .cv__tagline, .tile__title { color: #7a5f1f; }
}

/* --- Kontaktformular ----------------------------------------------------- */

.contactform {
    max-width: 44rem;
    margin-top: 2rem;
}

/* Die Falle für Spam-Programme: für Menschen unsichtbar, aber vorhanden */
.contactform__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contactform__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 620px) {
    .contactform__row { grid-template-columns: 1fr; }
}

.formfield { margin-bottom: 1.35rem; }

.formfield label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.formfield__req {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85em;
    opacity: 0.65;
    margin-left: 0.4em;
}

.formfield input,
.formfield textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.formfield textarea { resize: vertical; line-height: 1.65; }

.formfield input:hover,
.formfield textarea:hover { border-color: rgba(237, 230, 216, 0.2); }

.formfield input:focus,
.formfield textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface-soft);
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.14);
}

.formfield.has-error input,
.formfield.has-error textarea { border-color: #d98b7a; }

.formfield__error {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: #e0a294;
}

.contactform__hint {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contactform__direct {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.notice {
    max-width: var(--prose);
    margin: 2rem 0;
    padding: 1.1rem 1.4rem;
    border-left: 2px solid var(--gold);
    background: var(--surface);
    border-radius: var(--radius);
}
.notice p { margin: 0; }
.notice--ok { border-left-color: #7fb083; }
.notice--error { border-left-color: #d98b7a; }

.notice__dev {
    margin-top: 0.9rem !important;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.notice__dev code {
    background: var(--surface-soft);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

/* --- Impressionen -------------------------------------------------------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: zoom-in;
    line-height: 0;
}

.gallery__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }

.gallery__item:hover { border-color: var(--line); }

/* Die Bildunterschrift liegt über dem Foto und erscheint beim Überfahren */
.gallery__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.6rem 0.8rem 0.6rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(to top, rgba(8, 7, 6, 0.88), transparent);
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption { opacity: 1; transform: none; }

@media (hover: none) {
    /* Auf Touchgeräten gibt es kein Überfahren - dort immer zeigen */
    .gallery__caption { opacity: 1; transform: none; }
}

.gallery__empty {
    margin-top: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Das große Bild ------------------------------------------------------ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2.5rem);
    background: rgba(8, 7, 6, 0.95);
}
.lightbox.is-open { display: flex; }

.lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.lightbox__image {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
    color: var(--text);
    font-size: 0.95rem;
    text-align: center;
    max-width: 46rem;
}
.lightbox__counter {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lightbox__button {
    position: absolute;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(237, 230, 216, 0.18);
    border-radius: 50%;
    background: rgba(28, 25, 22, 0.75);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox__button:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep);
}
.lightbox__close { top: clamp(0.75rem, 3vw, 2rem); right: clamp(0.75rem, 3vw, 2rem); }
.lightbox__prev  { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__next  { right: clamp(0.5rem, 2vw, 2rem); }

@media (max-width: 560px) {
    .lightbox__prev { left: 0.5rem; }
    .lightbox__next { right: 0.5rem; }
    .lightbox__image { max-height: 70vh; }
}

/* --- Social Media -------------------------------------------------------- */

.socials {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.social__link {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    height: 100%;
    padding: 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.social__link:hover {
    color: var(--text);
    background: var(--surface-soft);
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    transform: translateY(-2px);
}

.social__icon {
    flex-shrink: 0;
    color: var(--gold);
    transition: color 0.25s ease;
}
.social__icon .icon { width: 32px; height: 32px; }
.social__link:hover .social__icon { color: var(--brand); }

.social__body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }

.social__name {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--gold);
}
.social__handle {
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Zurück nach oben ---------------------------------------------------- */

.to-top {
    position: fixed;
    right: clamp(0.75rem, 2.5vw, 2rem);
    bottom: clamp(0.75rem, 2.5vw, 2rem);
    z-index: 40;                       /* unter der Großansicht (100) */
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--bg-deep);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s,
                background 0.15s ease;
}
.to-top:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .to-top { transition: none; }
}
