/* Stratco — design "Wegweiser" (A) with Archivo display type (from C).
   One bold device: the yellow Austrian hiking signpost. Everything else stays quiet. */

@font-face { font-family: "Overpass"; font-weight: 100 900; font-display: swap; src: url("../fonts/overpass.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500 700; font-display: swap; src: url("../fonts/caveat.woff2") format("woff2"); } /* polaroid caption only */

:root {
  --nacht: #194056;   /* brand navy */
  --tief: #0f2a3b;    /* deep navy: footer, board text */
  --gelb: #f2c230;    /* signpost yellow */
  --fels: #56646e;    /* rock grey: secondary text */
  --schnee: #f6f8f9;  /* snow: alternate sections */
  --weiss: #ffffff;
  --text: #1b2b36;
  --display: "Archivo", "Overpass", system-ui, sans-serif;
  --body: "Overpass", system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--body); font-weight: 400; font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--weiss); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--nacht); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tief); text-decoration-color: var(--gelb); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--nacht); }
h1, h2 { font-family: var(--display); font-stretch: 125%; line-height: 1.02; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }
li { margin-bottom: .45em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--weiss); padding: 8px 12px; }
.lead { font-size: 1.35rem; line-height: 1.5; color: var(--nacht); }
.muted { color: var(--fels); }

/* ---------- Header ---------- */
.top { position: relative; z-index: 20; background: var(--nacht); }
.top.over { position: absolute; inset: 0 0 auto 0; background: transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--weiss); text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 1.2rem; }
.brand:hover { color: var(--weiss); }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: var(--weiss); }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; max-width: none; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 10px; color: var(--weiss); text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--weiss); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--nacht); padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(15,42,59,.35); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Signpost: the one bold device ---------- */
/* The post is a wooden pole: rounded (lit from the left), vertical grain, darker edges, weathered top cap.
   Boards and plate are mounted in front of it, with a bolt where they're screwed on. */
.post { --wood: #8a5a33; position: relative; display: grid; gap: 10px; justify-items: start; padding-left: 8px; }
.post::before {
  content: ""; position: absolute; z-index: 0; left: 0; top: -26px; bottom: -40px; width: 26px; border-radius: 5px 5px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(40,20,5,.0) 0 3px, rgba(40,20,5,.16) 3px 4px, rgba(255,230,190,.06) 4px 6px, rgba(40,20,5,.0) 6px 9px),
    linear-gradient(180deg, rgba(0,0,0,.28) 0, rgba(0,0,0,0) 14px),
    linear-gradient(90deg, #5e3a1c 0%, #a8784c 28%, #b98b5d 40%, var(--wood) 62%, #563419 100%);
  box-shadow: 2px 4px 10px rgba(0,0,0,.35), inset 0 -1px 0 rgba(255,255,255,.05);
}
.post::after { /* knot in the wood */
  content: ""; position: absolute; z-index: 0; left: 9px; top: 42%; width: 8px; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse at center, #3f2610 0 30%, #6f4524 55%, transparent 72%);
}
.post > * { position: relative; z-index: 1; }
.plate { background: var(--weiss); color: var(--nacht); padding: 8px 16px 6px 26px; font-weight: 800; line-height: 1.15; border: 3px solid var(--nacht); min-width: 260px;
  background-image: radial-gradient(circle at 12px 50%, #7c8990 0 2.5px, #3e4a52 3px, transparent 3.5px); }
.plate small { display: block; font-weight: 400; font-size: .85rem; color: var(--fels); }
.board {
  --tip: 26px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 22px;
  min-width: min(360px, 80vw); max-width: 100%; padding: 12px calc(var(--tip) + 16px) 9px 30px;
  background: radial-gradient(circle at 13px 50%, #fff3c4 0 1.5px, #8a7327 2.5px, #5c4a12 3.5px, transparent 4px), var(--gelb);
  color: var(--tief); text-decoration: none; font-weight: 800; font-size: 1.2rem; line-height: 1.15;
  clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%);
  box-shadow: inset 0 0 0 3px rgba(15,42,59,.9);
  transition: transform .2s ease;
}
.board span { font-weight: 400; font-size: 1rem; white-space: nowrap; }
.board:hover { transform: translateX(8px); color: var(--tief); }
.board:focus-visible { outline-offset: 5px; }
.post.wide .board { min-width: min(520px, 84vw); }
@media (prefers-reduced-motion: no-preference) {
  .hero .board { animation: board-in .6s cubic-bezier(.2,.8,.2,1) both; }
  .hero .board:nth-of-type(2) { animation-delay: .12s; }
  .hero .board:nth-of-type(3) { animation-delay: .24s; }
  .hero .board:nth-of-type(4) { animation-delay: .36s; }
}
@keyframes board-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(94vh, 900px); color: var(--weiss); display: flex; align-items: flex-end; overflow: hidden; padding-top: calc(var(--header-h) + 24px); background: var(--tief); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,42,59,.8) 0%, rgba(15,42,59,.4) 55%, rgba(15,42,59,.15) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px 48px; align-items: end; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { color: var(--weiss); font-size: clamp(2.4rem, 5vw, 4.6rem); max-width: 15ch; margin: 0; align-self: center; }
.hero .sub { font-size: 1.3rem; max-width: 32ch; margin: 0; align-self: start; }
.hero .post { align-self: start; }
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .polaroid { order: -1; width: 200px; justify-self: end; margin-bottom: -12px; }
}

/* Polaroid (photo of Othmar next to the headline) */
.polaroid { width: 280px; justify-self: center; background: #fdfdfb; padding: 12px 12px 52px; transform: rotate(3deg); box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25); }
.polaroid img, .polaroid .blank { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid .blank { background: linear-gradient(135deg, #e8ecef, #d7dde1); }
.polaroid { position: relative; }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; text-align: center; font-family: "Caveat", "Bradley Hand", cursive; font-weight: 600; font-size: 1.9rem; line-height: 1; color: #1f3a8a; transform: rotate(-2deg); }
.polaroid figcaption a { color: inherit; text-decoration: none; padding: 0 2px; }
@media (max-width: 900px) { .polaroid figcaption { font-size: 1.45rem; bottom: 10px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--weiss); background: var(--tief); }
.page-hero img { width: 100%; height: clamp(260px, 40vw, 500px); object-fit: cover; object-position: 50% 40%; opacity: .92; }
.page-hero .wrap { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 56px); }
.page-hero h1 { color: var(--weiss); text-shadow: 0 2px 24px rgba(15,42,59,.65); margin: 0; }
.page-hero .kicker { font-size: 1.25rem; font-weight: 700; margin: 0 0 .4em; text-shadow: 0 1px 12px rgba(15,42,59,.7); }
.page-plain { background: var(--nacht); color: var(--weiss); padding: clamp(40px, 6vw, 72px) 0; }
.page-plain h1 { color: var(--weiss); margin: 0; }

/* ---------- Sections ---------- */
.band { padding: clamp(56px, 9vw, 112px) 0; }
.band.schnee { background: var(--schnee); }
.band.tight { padding-top: clamp(32px, 5vw, 56px); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split figure { margin: 0; }
.split figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.split figure.land img { aspect-ratio: 4 / 3; }
figcaption { font-size: .9rem; color: var(--fels); margin-top: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split figure { max-width: 460px; } }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 56px; margin-top: 40px; }
.skills article { border-top: 6px solid var(--nacht); padding-top: 20px; }
.skills p, .skills ul { font-size: 1.05rem; }
.skills ul { padding-left: 1.1em; margin: 0; }
@media (max-width: 960px) { .skills { grid-template-columns: 1fr; } }

.area { padding-top: 28px; border-top: 6px solid var(--nacht); margin-top: 56px; scroll-margin-top: 24px; }
.area:first-of-type { margin-top: 0; }
.area ul { padding-left: 1.1em; }

.quote { margin: 0; }
.quote blockquote { margin: 0 0 20px; font-family: var(--display); font-stretch: 112%; font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; color: var(--nacht); max-width: 20ch; }
.quote figcaption { display: flex; align-items: center; gap: 14px; color: var(--fels); font-size: 1rem; margin: 0; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.saying { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; color: var(--nacht); max-width: 24ch; margin: 0; }

.note { display: flex; gap: 20px; align-items: center; padding: 22px 24px; background: var(--weiss); border-left: 6px solid var(--gelb); max-width: 760px; }
.note img { width: 150px; flex: none; }
.note p { margin: 0; font-size: 1.02rem; }
.band.schnee .note { background: var(--weiss); }
.band:not(.schnee) .note { background: var(--schnee); }
@media (max-width: 560px) { .note { flex-direction: column; align-items: flex-start; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { border: 2px solid var(--nacht); padding: 6px 14px 4px; font-weight: 700; color: var(--nacht); margin: 0; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .8em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 12px; background: var(--gelb); clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%); }

/* Testimonials */
.voices { display: grid; gap: 56px; }
.voice { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.voice > img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.voice blockquote { margin: 0 0 12px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.15; color: var(--nacht); }
.voice .who { font-weight: 700; margin: 0 0 12px; }
.voice .who span { display: block; font-weight: 400; color: var(--fels); }
.voice ul { padding-left: 1.1em; margin: 0; }
@media (max-width: 640px) { .voice { grid-template-columns: 1fr; } .voice > img { width: 88px; height: 88px; } }

/* Events look back */
.badge { display: inline-block; background: var(--gelb); color: var(--tief); font-weight: 800; padding: 4px 12px 2px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 24px 0; max-width: 640px; }
.facts dt { font-weight: 800; color: var(--nacht); }
.facts dd { margin: 0; }
.faq dt { font-weight: 800; color: var(--nacht); font-size: 1.15rem; margin-top: 1.2em; }
.faq dd { margin: .3em 0 0; max-width: var(--measure); }

/* Info card (Gmunden, contact) */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.info h3 { margin-bottom: .3em; }
.info p { margin: 0; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 32px; }
.qr-grid figure { margin: 0; }
.qr-grid img { width: 100%; max-width: 260px; }

/* CTA band */
.cta { background: var(--nacht); color: #d5e0e7; }
.cta h2 { color: var(--weiss); max-width: 22ch; }
.cta p { color: #d5e0e7; }
.cta .row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 28px; }
.cta a:not(.board) { color: var(--weiss); font-weight: 700; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.post-card { text-decoration: none; color: var(--text); display: block; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card h2 { font-size: 1.5rem; margin: 18px 0 8px; }
.post-card:hover h2 { text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; }
.post-card p { margin: 0 0 8px; }
.meta { color: var(--fels); font-size: .95rem; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article figure { margin: 2em 0; }
.article figure img { margin: 0 auto; }
.article blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--gelb); font-size: 1.2rem; color: var(--nacht); }
.article a { word-break: break-word; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 700; }

/* Legal */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal address { font-style: normal; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl, .facts { grid-template-columns: 1fr; } .legal dd, .facts dd { margin-bottom: 8px; } }

/* ---------- Footer ---------- */
footer { background: var(--tief); color: #b7c6cf; font-size: .95rem; padding: 48px 0 40px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer a { color: var(--weiss); }
footer h2 { font-family: var(--body); font-stretch: 100%; font-size: 1rem; letter-spacing: 0; color: var(--weiss); margin: 0 0 10px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer .members { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
footer .members img { height: 40px; width: auto; background: var(--weiss); padding: 4px; }
footer .kmu-badge { border: 0; padding: 0; background: none; cursor: pointer; line-height: 0; }
.info-dialog { border: 0; border-top: 6px solid var(--gelb); padding: 26px 28px 20px; max-width: min(440px, 92vw); background: var(--weiss); color: var(--tief); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.info-dialog::backdrop { background: rgba(10, 25, 36, .7); }
.info-dialog p { margin: 0 0 18px; font-size: 1.05rem; }
.info-dialog form { margin: 0; text-align: right; }
.info-dialog .ok { border: 0; padding: 10px 22px; background: var(--gelb); color: var(--tief); font: inherit; font-weight: 700; cursor: pointer; }
footer .legal-line { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Rotating reference quotes (home) */
.rotator { min-height: 12rem; }
.rotator figure:not([hidden]) { animation: quote-in .5s ease both; }
@keyframes quote-in { from { opacity: 0; } to { opacity: 1; } }

/* Full-bleed summit photo carrying a quote (About) */
.summit-quote { position: relative; color: var(--weiss); background: var(--tief); overflow: hidden; }
.summit-quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.summit-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,42,59,.85) 0%, rgba(15,42,59,.35) 60%, rgba(15,42,59,.15) 100%); }
.summit-quote .wrap { position: relative; z-index: 2; min-height: clamp(420px, 60vw, 640px); display: flex; align-items: flex-end; padding-bottom: clamp(40px, 7vw, 88px); }
.summit-quote blockquote { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; border-left: 10px solid var(--gelb); padding-left: clamp(16px, 3vw, 32px); }

/* 404: same photo layout as the Matterhorn quote, headline + signpost on the photo */
.summit-quote.lost .wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; padding-top: calc(var(--header-h) + 32px); }
.summit-quote.lost h1 { margin: 0; color: var(--weiss); font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 14ch; border-left: 10px solid var(--gelb); padding-left: clamp(16px, 3vw, 32px); }
@media (max-width: 760px) { .summit-quote.lost .wrap { grid-template-columns: 1fr; } }

/* Lightbox (Arkanoid comic) */
.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); background: transparent; }
.lightbox::backdrop { background: rgba(10, 25, 36, .88); }
.lightbox .lb-row { display: flex; align-items: center; gap: 10px; }
.lightbox img { flex: 1; min-width: 0; width: 100%; height: auto; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .ai-note { writing-mode: vertical-rl; flex: none; color: #d5e0e7; font-size: .9rem; letter-spacing: .06em; white-space: nowrap; }
.lightbox form { position: absolute; top: 8px; right: 38px; margin: 0; } /* stays on the image, clear of the "AI generated" note */
.lightbox .close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--gelb); color: var(--tief); font-size: 1.8rem; line-height: 1; cursor: pointer; }
