/* Die vorhandene lokale Schrift gibt den Überschriften ihren Expeditionscharakter. */
@font-face {
    font-family: "Expedition";
    src: url("../assets/osc.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ink: #122522;
    --paper: #f2eee3;
    --gold: #e7b65e;
    --muted: #b8bdb2;
    --map-x: 0px;
    --map-y: 0px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--ink); }

body {
    margin: 0;
    color: var(--paper);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}

::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

/* Vollflächige Karte mit weicher Unschärfe, dunkler Vignette und sanftem Parallax. */
.landscape {
    position: fixed;
    inset: -24px;
    z-index: -3;
    background: url("./bulgaria-faded.png") center 51% / cover no-repeat;
    filter: blur(1.2px) saturate(.62);
    transform: translate3d(var(--map-x), var(--map-y), 0);
    will-change: transform;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 29% 47%, rgb(12 29 26 / 12%), rgb(8 22 20 / 55%) 78%),
        linear-gradient(90deg, rgb(12 28 24 / 56%), rgb(10 27 25 / 72%)),
        linear-gradient(0deg, rgb(6 18 16 / 75%), transparent 24%, transparent 77%, rgb(6 18 16 / 50%));
}

.ambient-light {
    position: fixed;
    z-index: -1;
    top: 10%;
    left: -15%;
    width: 75vw;
    height: 75vw;
    max-height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(225 172 70 / 7%), transparent 62%);
    pointer-events: none;
    animation: light-drift 16s ease-in-out infinite alternate;
}

.page-shell {
    width: min(1280px, calc(100% - 112px));
    min-height: 100svh;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 0 25px;
    border-bottom: 1px solid rgb(225 203 160 / 17%);
}

.wordmark { display: inline-flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 650; letter-spacing: 2.1px; }
.compass-icon { width: 37px; height: 37px; color: var(--gold); }
.wordmark-subtitle { display: block; margin-top: 6px; font-size: 8px; letter-spacing: 2.8px; color: var(--muted); font-weight: 400; }
/* Zurückhaltende SVG-Buttons greifen Gold und Grün der Landingpage auf. */
.share-tools { position: relative; display: flex; align-items: center; gap: 8px; }
.share-label { margin-right: 8px; color: #c2c8bb; font-size: 9px; letter-spacing: 1.2px; }
.share-button { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; padding: 8px; border: 1px solid rgb(231 182 94 / 23%); border-radius: 50%; background: rgb(18 37 34 / 40%); color: #d9c9a7; cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.share-button svg { display: block; width: 20px; height: 20px; }
.share-button:hover { color: var(--gold); border-color: rgb(231 182 94 / 65%); background: rgb(18 37 34 / 80%); transform: translateY(-2px); }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.share-feedback:not(:empty) { position: absolute; z-index: 5; right: 0; top: calc(100% + 12px); width: max-content; max-width: min(320px, 85vw); padding: 10px 14px; background: #122522; border: 1px solid rgb(231 182 94 / 40%); color: var(--paper); border-radius: 3px; box-shadow: 0 8px 20px rgb(0 0 0 / 20%); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }

/* Die Instagram-Vorlage lässt sich herunterladen oder im Geräte-Menü teilen. */
.share-dialog { width: min(450px, calc(100% - 30px)); max-height: calc(100svh - 40px); padding: 29px; border: 1px solid rgb(231 182 94 / 45%); border-radius: 4px; background: #122522; color: var(--paper); box-shadow: 0 25px 90px rgb(0 0 0 / 50%); }
.share-dialog::backdrop { background: rgb(4 15 12 / 78%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close:hover { color: var(--gold); }
.dialog-close svg { width: 22px; height: 22px; }
.share-dialog .eyebrow { justify-content: flex-start; margin-top: 7px; padding-right: 14px; font-size: 8px; letter-spacing: 1.8px; }
.share-dialog h2 { margin: 0 0 13px; font-family: "Expedition", "Arial Narrow", sans-serif; font-weight: 600; font-size: 28px; }
.share-dialog > p:not(.eyebrow) { font-size: 12px; line-height: 1.7; color: #ccd2c5; }
.instagram-preview { display: block; width: min(100%, 290px); height: auto; margin: 18px auto; border: 1px solid rgb(231 182 94 / 25%); border-radius: 2px; }
.dialog-actions { display: grid; gap: 11px; }
.dialog-actions .newsletter-button { width: 100%; font-family: inherit; cursor: pointer; }
.dialog-download, .dialog-copy { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px; border: 1px solid rgb(231 182 94 / 30%); border-radius: 2px; background: transparent; color: #e8d6b5; font-family: inherit; font-size: 12px; cursor: pointer; }
.dialog-download:hover, .dialog-copy:hover { border-color: var(--gold); color: var(--gold); }
.dialog-feedback:empty { display: none; }

.expedition {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(44px, 5.5vw, 88px);
    align-items: center;
    padding: 60px 0 52px;
}

.brand-stage { text-align: center; animation: reveal 1s ease-out both; }
.edition-label { display: flex; align-items: center; justify-content: center; gap: 17px; color: #e8d6b5; text-transform: uppercase; font-size: 10px; letter-spacing: 3.7px; }
.edition-label > span { width: 34px; height: 1px; background: rgb(231 182 94 / 45%); }
.emblem-wrap { position: relative; margin: 27px auto 25px; max-width: 470px; }
.emblem-wrap::before { content: ""; position: absolute; inset: 9%; z-index: -1; border-radius: 50%; box-shadow: 0 0 100px 35px rgb(232 178 74 / 10%); }
.event-emblem { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 35%)); transition: filter .6s ease; }
.event-emblem:hover { filter: drop-shadow(0 20px 38px rgb(0 0 0 / 45%)) brightness(1.04); }
.brand-caption { margin: 0; color: #e1dccd; font-size: 12px; line-height: 1.7; letter-spacing: .8px; }
.trail-mark { width: 172px; margin: 20px auto 0; color: var(--gold); opacity: .65; }
.trail-mark svg { display: block; width: 100%; }

.story { max-width: 580px; animation: reveal 1s .15s ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--gold); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
.eyebrow-line { width: 25px; height: 1px; background: var(--gold); }
h1 { font-family: "Expedition", "Arial Narrow", sans-serif; font-size: clamp(44px, 4.6vw, 66px); line-height: 1.08; font-weight: 600; letter-spacing: -.8px; margin: 0 0 29px; }
h1 > span { color: var(--gold); }

/* Der Infokasten bleibt auch ohne unterstützte Hintergrundunschärfe gut lesbar. */
.info-card {
    position: relative;
    padding: 24px 29px 22px;
    background: rgb(15 34 30 / 85%);
    border: 1px solid rgb(228 186 110 / 30%);
    border-radius: 3px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 18%), inset 0 1px rgb(255 255 255 / 3%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.info-card::before, .info-card::after { content: ""; position: absolute; width: 15px; height: 15px; pointer-events: none; }
.info-card::before { top: -1px; left: -1px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.info-card::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid rgb(219 204 174 / 13%); margin-bottom: 22px; }
.field-note { color: #a4afa3; font-size: 8px; letter-spacing: 2.1px; }
.card-cross { color: var(--gold); font-size: 21px; line-height: 10px; font-weight: 300; }
.field-label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--gold); font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.9px; font-weight: 500; }
.field-number { font-size: 9px; letter-spacing: .5px; color: #9aa694; }
.intro-text { margin: 11px 0 23px; font-size: 14px; color: #e1e3d9; line-height: 1.85; }
.event-details { display: grid; grid-template-columns: .9fr 1.1fr; gap: 23px; margin: 0 0 24px; padding: 21px 0 0; border-top: 1px solid rgb(219 204 174 / 13%); }
.detail + .detail { border-left: 1px solid rgb(219 204 174 / 13%); padding-left: 23px; }
.detail dd { margin-left: 0; }
.detail-value { font-family: "Expedition", "Arial Narrow", sans-serif; font-size: 25px; font-weight: 500; line-height: 1.3; margin-top: 10px; margin-bottom: 6px; }
.detail-value-small { font-size: 19px; margin-top: 13px; margin-bottom: 9px; }
.detail-note { font-size: 10px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.newsletter-button { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 16px 18px; border: 1px solid #e8bc72; background: #e7b65e; color: #17271e; border-radius: 2px; font-size: 12px; font-weight: 650; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.newsletter-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.newsletter-button:hover { background: #f1c67c; box-shadow: 0 5px 22px rgb(231 182 94 / 13%); transform: translateY(-2px); }
.button-arrow { margin-left: auto; font-size: 18px; font-weight: 400; }
.newsletter-note { margin: 11px 0 0; color: #b8bdb2; text-align: center; font-size: 9px; line-height: 1.6; }
.previous-chapter { display: inline-block; margin-top: 21px; font-size: 11px; color: #c2c8bb; }
.previous-chapter > span:first-child { margin-left: 4px; color: #ead7b4; border-bottom: 1px solid rgb(231 182 94 / 45%); padding-bottom: 3px; }
.previous-chapter > span:last-child { margin-left: 7px; color: var(--gold); }
.previous-chapter:hover > span:first-child { color: var(--gold); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 0 25px; border-top: 1px solid rgb(225 203 160 / 17%); font-size: 10px; line-height: 1.8; color: #bcc3b6; }
.site-footer p { margin: 0; }
.site-footer p > span { color: #d8ddce; }
.site-footer nav { display: flex; align-items: center; gap: 17px; }
.site-footer a:hover { color: var(--gold); }
.footer-separator { color: #788978; }

@keyframes reveal { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes light-drift { from { opacity: .6; transform: translate3d(0, 0, 0); } to { opacity: 1; transform: translate3d(35px, -25px, 0); } }

@media (min-width: 1600px) {
    .emblem-wrap { max-width: 510px; }
}

@media (max-width: 1100px) {
    .page-shell { width: calc(100% - 64px); }
    .expedition { gap: 35px; }
    .info-card { padding: 22px; }
    .event-details { gap: 17px; }
    .detail + .detail { padding-left: 17px; }
    .detail-value-small { font-size: 18px; }
    .brand-caption { font-size: 11px; letter-spacing: .3px; }
}

/* Auf kleinen Displays fließen Logo und Infokasten ohne feste Höhen untereinander. */
@media (max-width: 900px) {
    .page-shell { width: min(560px, calc(100% - 40px)); }
    .site-header { padding: 22px 0; }
    .wordmark { font-size: 10px; letter-spacing: 1.6px; gap: 10px; }
    .wordmark-subtitle { font-size: 7px; letter-spacing: 2px; }
    .compass-icon { width: 31px; height: 31px; }
    .share-label { display: none; }
    .expedition { grid-template-columns: 1fr; gap: 39px; padding: 36px 0; }
    .edition-label { font-size: 9px; letter-spacing: 3px; }
    .emblem-wrap { width: min(350px, 85%); margin: 23px auto 20px; }
    .brand-caption { font-size: 10px; }
    .trail-mark { display: none; }
    .story { max-width: none; }
    .eyebrow { justify-content: center; font-size: 9px; letter-spacing: 2.5px; margin-bottom: 14px; }
    h1 { text-align: center; font-size: clamp(41px, 8.4vw, 56px); margin-bottom: 25px; }
    .info-card { padding: 22px; }
    .intro-text { font-size: 13px; }
    .previous-chapter { display: block; text-align: center; margin-top: 23px; }
    .site-footer { flex-direction: column; gap: 11px; text-align: center; padding: 21px 0 23px; }
    .landscape { background-position: 46% center; }
}

@media (max-width: 560px) {
    .site-header { flex-wrap: wrap; gap: 18px; }
    .share-tools { width: 100%; justify-content: flex-end; gap: 9px; }
    .share-label { display: block; margin-right: auto; font-size: 8px; }
    .share-button { width: 35px; height: 35px; padding: 7px; }
}

@media (min-width: 381px) and (max-width: 480px) {
    .event-details { grid-template-columns: 1fr; gap: 18px; }
    .detail + .detail { padding: 17px 0 0; border-left: 0; border-top: 1px solid rgb(219 204 174 / 13%); }
}

@media (max-width: 380px) {
    .page-shell { width: calc(100% - 30px); }
    .info-card { padding: 20px 17px; }
    .event-details { grid-template-columns: 1fr; gap: 19px; }
    .detail + .detail { padding: 17px 0 0; border-left: 0; border-top: 1px solid rgb(219 204 174 / 13%); }
    .newsletter-button { gap: 8px; padding: 14px 10px; font-size: 11px; }
}

/* Bewegungsarme Darstellung berücksichtigt die Systemeinstellung der Besucher. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .landscape { transform: none; will-change: auto; }
}
