/* Alpine passes hub (/alpenpaesse): tokens, the shared section rhythm and the hero with the map.
   docs/seo/alpine-passes/HUB-DESIGN.md. Phone first on the 600 / 900 / 1200 ladder (base.css).
   Prefix ap- (classes) / --ap-* (tokens). */

:root {
    --ap-ink: #111214;
    --ap-text: rgba(17, 18, 20, .62);
    --ap-muted: rgba(17, 18, 20, .5);
    --ap-line: #e2ddd4;
    --ap-line2: #cfc7b8;
    --ap-or: #FF6A00;
    --ap-or-hover: #e55e00;
    --ap-or-text: #B84A00;
    --ap-paper: #FAF7F2;
    --ap-open: #1f5d3a;
    --ap-weather: #d9c9a8;
    --ap-closed: #e9e4dc;
    --ap-sea: #dde4e6;
    --ap-land: #f1ece3;
    --ap-border: #c9bfae;
}

.ap-page { color: var(--ap-ink); }
.ap-page a { color: inherit; text-decoration: none; }
.ap-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--oc-gutter, 20px); }
.ap-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Bands: one ground per band, a hairline only between two bands of the same ground. */
.ap-sec { padding: 48px 0; background: #fff; }
.ap-sec--milk { background: #F5EDDE url('/images/backgrounds/6a0acbec-9e6a-463e-a7e9-0ae96154faa9.webp') center / cover no-repeat; }
.ap-sec + .ap-sec { border-top: 1px solid var(--ap-line); }
/* An anchor (#katalog, #offen, #karte) lands with its heading below the fixed header, not under it. */
.ap-sec[id] { scroll-margin-top: 72px; }
.ap-sec--milk + .ap-sec, .ap-sec + .ap-sec--milk { border-top-color: transparent; }

.ap-head { margin: 0 0 24px; }
.ap-eyebrow {
    display: block; margin: 0 0 14px;
    font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ap-or-text);
}
.ap-h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
    color: var(--ap-ink);
}
.ap-lede { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.7; color: var(--ap-text); }
.ap-prose { margin: 0 0 16px; max-width: 62ch; font-size: 16px; line-height: 1.75; color: rgba(17, 18, 20, .72); }

.ap-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 22px;
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ap-ink); background: #fff;
    border: 1px solid var(--ap-line2); border-radius: 4px;
    transition: background .18s, color .18s, border-color .18s;
}
.ap-page .ap-btn:hover { background: var(--ap-ink); border-color: var(--ap-ink); color: #fff; }
.ap-page .ap-btn--primary { background: var(--ap-or); border-color: var(--ap-or); color: #fff; }
.ap-page .ap-btn--primary:hover { background: var(--ap-or-hover); border-color: var(--ap-or-hover); }
.ap-btn:focus-visible, .ap-page a:focus-visible, .ap-page button:focus-visible, .ap-page summary:focus-visible {
    outline: 2px solid var(--ap-or); outline-offset: 3px;
}

.ap-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

/* No holes beside a longer column: the short side is a flex column whose photo grows to the
   height the grid row gives it (the row is as tall as the longer side). On phones the photo
   keeps a ratio, there is nothing beside it to match. */
.ap-fill { display: flex; flex-direction: column; min-width: 0; }
.ap-fill > .ap-head { margin-bottom: 0; }
.ap-fill__photo {
    position: relative; display: block; margin: 24px 0 0; overflow: hidden;
    aspect-ratio: 16 / 10; border-radius: 6px; background: var(--ap-closed);
}
.ap-fill__photo picture { position: absolute; inset: 0; display: block; }
.ap-fill__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Photo hero: the LCP is the <picture>, text in milk over a scrim ── */
.ap-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 620px; padding: 104px 0 52px;
    background: #2a2b2e;
}
.ap-hero--plain { background: #F5EDDE url('/images/backgrounds/6a0acbec-9e6a-463e-a7e9-0ae96154faa9.webp') center / cover no-repeat; }
.ap-hero picture { position: absolute; inset: 0; z-index: -2; display: block; }
.ap-hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.ap-hero__scrim {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(17, 18, 20, .88) 0%, rgba(17, 18, 20, .55) 45%, rgba(17, 18, 20, .25) 75%, rgba(17, 18, 20, .45) 100%);
}
.ap-hero__inner { width: 100%; }
.ap-hero__text { max-width: 640px; }

.ap-crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 22px; padding: 0; font-size: 13px; color: rgba(237, 227, 213, .72); }
.ap-crumbs li + li::before { content: "/"; color: rgba(237, 227, 213, .45); margin: 0 8px; }
.ap-page .ap-crumbs a:hover { color: #EDE3D5; }
.ap-crumbs [aria-current] { color: #EDE3D5; font-weight: 500; }
.ap-preview {
    margin: 0 0 18px; padding: 10px 14px; font-size: 13px; color: var(--ap-ink);
    background: #fff; border: 1px dashed var(--ap-or); border-radius: 4px; max-width: 640px;
}

.ap-hero__eyebrow { color: #FF8A3D; }
.ap-hero__h1 {
    margin: 6px 0 18px;
    font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em;
    text-transform: uppercase; color: #EDE3D5; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.ap-hero__h1 small {
    display: block; margin-top: 8px;
    font-size: .42em; font-weight: 700; letter-spacing: .02em; text-transform: none; color: rgba(237, 227, 213, .85);
}
.ap-hero__answer { margin: 0 0 24px; max-width: 56ch; font-size: 17px; line-height: 1.7; color: rgba(237, 227, 213, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }

.ap-stats {
    display: flex; flex-wrap: wrap; gap: 14px 22px;
    margin: 0; padding: 20px 0 0; list-style: none;
    border-top: 1px solid rgba(237, 227, 213, .25);
}
.ap-stats b { display: block; font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #EDE3D5; }
.ap-stats span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(237, 227, 213, .68); }

.ap-hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.ap-page .ap-btn--onphoto { background: transparent; color: #EDE3D5; border-color: rgba(237, 227, 213, .55); }
.ap-page .ap-btn--onphoto:hover { background: #EDE3D5; border-color: #EDE3D5; color: var(--ap-ink); }

.ap-hero__credit {
    position: absolute; right: 12px; bottom: 8px; margin: 0; max-width: 70%;
    font-size: 11px; line-height: 1.4; text-align: right; color: rgba(237, 227, 213, .6);
}
.ap-page .ap-hero__credit a:hover { color: #EDE3D5; text-decoration: underline; }

/* The lead magnet card between "season" and "practical", and under the hub's month table. */
.pp-lm { max-width: 760px; margin: 0 0 36px; }
.ap-sec .pp-lm { margin-top: 28px; }
@media (min-width: 900px) {
    .pp-lm { margin-bottom: 48px; }
}

/* ── The ladder ───────────────────────────────────────────────────── */
@media (min-width: 600px) {
    .ap-hero__cta { flex-direction: row; flex-wrap: wrap; }
    .ap-stats { gap: 30px; }
    .ap-stats b { font-size: 26px; }
}

@media (min-width: 900px) {
    .ap-sec { padding: 76px 0; }
    .ap-sec[id] { scroll-margin-top: 88px; }
    .ap-hero { min-height: 680px; padding: 140px 0 72px; }
    .ap-two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: stretch; }
    .ap-fill__photo { flex: 1 1 auto; aspect-ratio: auto; min-height: 220px; }
}

@media (min-width: 1200px) {
    .ap-hero { min-height: 720px; }
}
