/* Startbild „Nach Maß": drei Beispielseiten erfundener Betriebe im Browser und am Handy.
   Alles hier ist unter .nm-buehne gekapselt. Maße in cqw beziehen sich auf den jeweiligen Bildschirm (Browser oder Handy). */
@font-face { font-family: "Baskervville"; src: url(/assets/fonts/baskervville.woff2) format("woff2"); font-weight: 400 700; font-display: swap }
@font-face { font-family: "Baskervville"; src: url(/assets/fonts/baskervville-italic.woff2) format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap }
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap }
/* Schriften der verdeckten Beispielseiten (Bäckerei, Alpinschule) lädt nach-mass.js erst nach dem Seitenaufbau: nach-mass-schriften.css */

.nm-buehne { --wipe: cubic-bezier(.77,0,.18,1); position: relative; margin: 0 }
.nm-geraete { position: relative; padding: 0 6% 7% 0 }
.nm-buehne img { display: block; max-width: none }

/* Browser */
.nm-browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 50px 90px -50px #1b221e99, 0 18px 40px -24px #1b221e59, 0 0 0 1px #0000001a }
.nm-chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #ebeae5; border-bottom: 1px solid #dcdad3 }
.nm-chrome > i { width: 10px; height: 10px; border-radius: 50%; background: #d0cec6 }
.nm-url { margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 44%; max-width: 70%; height: 24px; padding: 0 14px; border-radius: 7px; background: #fff; font-size: 12.5px; color: #4a504c; letter-spacing: .01em; white-space: nowrap; overflow: hidden }
.nm-url svg { flex: none; width: 10px; height: 10px; opacity: .55 }
.nm-url-text { overflow: hidden; text-overflow: ellipsis; transition: opacity .3s }
/* isolation: Die Seiten tragen z-index 1/2; ohne eigene Ebene malte die Browserseite beim Wechsel über den Handyrahmen. */
.nm-buehne .screens { position: relative; aspect-ratio: 16/10; container-type: inline-size; overflow: hidden; background: #111; isolation: isolate }

/* Seiten und Vorhang */
.nm-buehne .s { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 100%) }
.nm-buehne .s.was { clip-path: inset(0); z-index: 1 }
.nm-buehne .s.on { clip-path: inset(0); z-index: 2; transition: clip-path 1.15s var(--wipe) }
.nm-buehne .foto,.nm-buehne .foto img { position: absolute; inset: 0; width: 100%; height: 100% }
.nm-buehne .foto img { object-fit: cover }
.nm-buehne .foto { transform: scale(1.08); transition: transform 6s cubic-bezier(.16,1,.3,1) }
.nm-buehne .s.on .foto,.nm-buehne .s.was .foto { transform: scale(1) }
.nm-buehne .auf { opacity: 0; transform: translateY(1.4cqw); transition: opacity .7s, transform 1s cubic-bezier(.16,1,.3,1) }
.nm-buehne .s.on .auf { opacity: 1; transform: none; transition-delay: calc(.45s + var(--d, 0s)) }
.nm-buehne h2 { margin: 0; text-wrap: balance }

/* Bearbeiten: Mauszeiger, Tippmarke, „Gespeichert" */
.nm-zeiger { position: absolute; z-index: 6; left: 0; top: 0; width: 2.4cqw; min-width: 14px; opacity: 0; pointer-events: none; transform: translate(var(--x, 80cqw), var(--y, 52cqw)); transition: transform .75s cubic-bezier(.45,0,.2,1), opacity .3s; filter: drop-shadow(0 .3cqw .5cqw #0006) }
.nm-zeiger.an { opacity: 1 }
.nm-edit { outline: .18cqw dashed currentColor; outline-offset: 1cqw; border-radius: .4cqw }
.nm-edit[data-z="1"] .z1:after,.nm-edit[data-z="2"] .z2:after { content: ""; display: inline-block; width: .07em; height: .82em; margin-left: .04em; vertical-align: -.06em; background: currentColor; animation: nm-blink .9s steps(1) infinite }
@keyframes nm-blink { 50% { opacity: 0 } }
/* „Gespeichert" erscheint in der Adresszeile der Browserattrappe, nicht auf der Beispielseite: dort deckte es den Gästehausnamen (Codex, 21.11.2026) */
.nm-url { position: relative }
.nm-gespeichert { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: inherit; background: #fff; color: #1f3d27; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(60%); transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .3s }
.nm-gespeichert:before { content: ""; flex: none; width: .8em; height: .42em; border-left: 2px solid #2f8a45; border-bottom: 2px solid #2f8a45; transform: translateY(-.14em) rotate(-45deg) }
.nm-gespeichert.an { opacity: 1; transform: none }

/* Handy */
.nm-phone { position: absolute; right: 1.5%; bottom: 1%; width: 20.5%; aspect-ratio: 9/19.3; container-type: inline-size }
.nm-phone .rahmen { position: absolute; inset: 0; border-radius: 17cqw; padding: 2.6cqw;
  background: linear-gradient(150deg, #5b5f5d 0%, #2a2d2c 18%, #161817 50%, #2a2d2c 82%, #4c504e 100%);
  box-shadow: 0 0 0 .5cqw #0c0d0d inset, 0 0 0 .9cqw #ffffff14 inset, 0 60px 80px -40px #1b221ebf, 0 24px 36px -22px #1b221e80 }
.nm-phone .rahmen:before,.nm-phone .rahmen:after { content: ""; position: absolute; border-radius: 2px; background: #2a2d2c }
.nm-phone .rahmen:before { left: -1.2cqw; top: 20%; width: 1.4cqw; height: 6%; box-shadow: 0 17cqw 0 #2a2d2c }
.nm-phone .rahmen:after { right: -1.2cqw; top: 28%; width: 1.4cqw; height: 14% }
/* clip-path statt nur overflow + border-radius: Chrome ließ die eckigen Seiten (eigene clip-path-Ebenen) sonst über den runden Rand stehen. */
.nm-phone .screens { aspect-ratio: auto; height: 100%; border-radius: 14.6cqw; clip-path: inset(0 round 14.6cqw); background: #000 }
.nm-phone .insel { position: absolute; z-index: 6; top: 5.2cqw; left: 50%; width: 27cqw; height: 7.6cqw; border-radius: 99px; background: #050505; transform: translateX(-50%) }
.nm-phone .status { position: absolute; z-index: 6; top: 6cqw; left: 11cqw; right: 10cqw; display: flex; justify-content: space-between; align-items: center; font: 600 4.6cqw/1 "Space Grotesk", Arial, sans-serif; color: #fff; transition: color .6s }
.nm-phone .status svg { height: 3.8cqw; width: auto; margin-left: 1.4cqw }
.nm-phone .home { position: absolute; z-index: 6; left: 50%; bottom: 4.6cqw; width: 34cqw; height: 1.4cqw; border-radius: 99px; background: #fff; opacity: .85; transform: translateX(-50%); transition: background-color .6s }
.nm-phone[data-s="1"] .status { color: #3d1f10 }
.nm-phone[data-s="1"] .home { background: #3d1f10; opacity: .6 }

/* 1 · Gästehaus: Baskervville, ruhig, großes Foto mit Buchungsleiste */
.nm-buehne .haus { font-family: "DM Sans", "Space Grotesk", sans-serif; color: #fff }
.nm-buehne .haus:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #1b261f8c 0%, #1b261f00 30%, #1b261f00 48%, #141c17b3 100%) }
.nm-buehne .haus .nav-s { position: absolute; z-index: 2; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 3cqw 4cqw; font-size: 1.5cqw; letter-spacing: .06em; text-transform: uppercase }
.nm-buehne .haus .nav-s .l { display: flex; gap: 2.8cqw }
.nm-buehne .haus .logo { font-family: "Baskervville", serif; font-style: italic; font-size: 2.9cqw; text-transform: none; letter-spacing: 0; white-space: nowrap }
.nm-buehne .haus .nav-s .r { justify-self: end; border: 1px solid #ffffffb3; padding: .9cqw 1.8cqw }
.nm-buehne .haus .mitte { position: absolute; z-index: 2; left: 4cqw; right: 4cqw; top: 27%; text-align: center }
.nm-buehne .haus .ober { font-size: 1.45cqw; letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 1px 12px #000a }
.nm-buehne .haus h2 { margin-top: 1.6cqw; font-family: "Baskervville", serif; font-weight: 400; font-size: 8.4cqw; line-height: .95; letter-spacing: -.01em; color: #fff }
.nm-buehne .haus h2 i { font-style: italic }
.nm-buehne .haus .buchen { position: absolute; z-index: 2; left: 50%; bottom: 5.5cqw; translate: -50% 0; display: grid; grid-template-columns: repeat(3, auto) auto; background: #f7f3ea; color: #1f2a22; box-shadow: 0 2cqw 4cqw -2cqw #0008 }
.nm-buehne .haus .buchen div { padding: 1.6cqw 2.6cqw; border-right: 1px solid #ddd6c6; font-size: 1.25cqw; letter-spacing: .08em; text-transform: uppercase; color: #6b6a5f }
.nm-buehne .haus .buchen b { display: block; margin-top: .5cqw; font-family: "Baskervville", serif; font-size: 2.3cqw; font-weight: 400; letter-spacing: 0; text-transform: none; color: #1f2a22; white-space: nowrap }
.nm-buehne .haus .buchen span { display: flex; align-items: center; padding: 0 3cqw; background: #2d4a37; color: #f7f3ea; font-size: 1.5cqw; font-weight: 600; letter-spacing: .04em }

/* 2 · Bäckerei: Fraunces, warm, geteilt */
.nm-buehne .back { background: #efe3cf; color: #3d1f10; font-family: "DM Sans", "Space Grotesk", sans-serif; display: grid; grid-template-columns: 47% 53% }
.nm-buehne .back .links { position: relative; z-index: 2; padding: 3.2cqw 4cqw; display: flex; flex-direction: column }
.nm-buehne .back .kopf { display: flex; align-items: center; gap: 1.6cqw; font-size: 1.45cqw }
.nm-buehne .back .stempel { width: 7cqw; height: 7cqw; flex: none }
.nm-buehne .back .kopf nav { display: flex; gap: 2.2cqw; margin-left: auto; font-weight: 500 }
.nm-buehne .back .offen { margin-top: auto; align-self: flex-start; display: flex; align-items: center; gap: .9cqw; padding: .8cqw 1.6cqw; border-radius: 99px; background: #fff8ec; font-size: 1.35cqw; font-weight: 600; color: #3d6b2f; white-space: nowrap }
.nm-buehne .back .offen:before { content: ""; flex: none; width: 1cqw; height: 1cqw; border-radius: 50%; background: #4f9a3a; box-shadow: 0 0 0 .5cqw #4f9a3a33 }
.nm-buehne .back .offen.zu { color: #8a4a1c }
.nm-buehne .back .offen.zu:before { background: #d08a3a; box-shadow: 0 0 0 .5cqw #d08a3a33 }
.nm-buehne .back h2 { margin-top: 2cqw; font-family: "Fraunces", serif; font-weight: 600; font-size: 7.6cqw; line-height: .92; letter-spacing: -.035em }
.nm-buehne .back h2 i { font-weight: 400; color: #a4451a }
.nm-buehne .back p { margin: 2cqw 0 0; font-size: 1.7cqw; line-height: 1.5; color: #6d4a35; max-width: 32ch }
.nm-buehne .back .knopf { margin-top: 2.6cqw; align-self: flex-start; padding: 1.4cqw 2.4cqw; background: #3d1f10; color: #fbeedb; font-size: 1.5cqw; font-weight: 600; border-radius: 99px }
.nm-buehne .back .brote { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d9c6a6; padding-top: 1.6cqw; font-size: 1.3cqw; color: #7a5640 }
.nm-buehne .back .brote b { display: block; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.9cqw; color: #3d1f10 }
.nm-buehne .back .rechts { position: relative; overflow: hidden }
.nm-buehne .back .etikett { position: absolute; z-index: 3; left: 40.5%; top: 9cqw; width: 13cqw; height: 13cqw; border-radius: 50%; background: #a4451a; color: #fff3e2; display: grid; place-content: center; text-align: center; font-family: "Fraunces", serif; font-style: italic; font-size: 1.7cqw; line-height: 1.15 }
.nm-buehne .back.on .etikett { transform: rotate(-8deg) }
.nm-buehne .back .etikett b { display: block; font-style: normal; font-weight: 600; font-size: 3.6cqw }

/* 3 · Bergverein: Big Shoulders, dunkel, sportlich */
.nm-buehne .verein { background: #0e1317; color: #fff; font-family: "Space Grotesk", sans-serif }
.nm-buehne .verein .foto img { filter: saturate(.9) contrast(1.05) }
.nm-buehne .verein:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b1014f2 0%, #0b1014b3 38%, #0b101400 70%), linear-gradient(0deg, #0b1014cc, #0b101400 40%) }
.nm-buehne .verein .kopf { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; gap: 2.6cqw; padding: 3cqw 4cqw; font-size: 1.45cqw; font-weight: 500 }
.nm-buehne .verein .logo { margin-right: auto; font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: 2.6cqw; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 1cqw; white-space: nowrap }
.nm-buehne .verein .logo svg { flex: none; width: 3.2cqw; height: 3.2cqw }
.nm-buehne .verein .kopf .mit { background: #ff5b1f; color: #160a04; padding: .9cqw 1.8cqw; font-weight: 700 }
.nm-buehne .verein .text { position: absolute; z-index: 2; left: 4cqw; top: 21% }
.nm-buehne .verein .ober { font-size: 1.4cqw; letter-spacing: .24em; text-transform: uppercase; color: #ff8a5c }
.nm-buehne .verein h2 { margin-top: 1cqw; font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: 12.6cqw; line-height: .84; letter-spacing: -.005em; text-transform: uppercase; color: #fff }
.nm-buehne .verein h2 .z1,.nm-buehne .verein h2 .z2 { display: block }
.nm-buehne .verein h2 .z2 { color: transparent; -webkit-text-stroke: .18cqw #fff }
.nm-buehne .verein h2 .z2:after { background: #fff }
.nm-buehne .verein .zahlen { display: flex; gap: 4cqw; margin-top: 2.4cqw; font-size: 1.3cqw; color: #c9d0d4 }
.nm-buehne .verein .zahlen b { display: block; font-family: "Big Shoulders", sans-serif; font-size: 4cqw; color: #fff; line-height: 1 }
.nm-buehne .verein .tour { position: absolute; z-index: 2; right: 4cqw; top: 12.5cqw; display: grid; grid-template-columns: auto 1fr; background: #0e1317e6; border: 1px solid #ffffff26; width: 34cqw }
.nm-buehne .verein .datum { display: grid; place-content: center; text-align: center; padding: 1.6cqw 2.2cqw; background: #ff5b1f; color: #160a04; font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: 1.6cqw; line-height: 1 }
.nm-buehne .verein .datum b { font-size: 4.6cqw }
.nm-buehne .verein .tour > div:last-child { padding: 1.6cqw 2cqw; font-size: 1.3cqw; color: #c9d0d4; line-height: 1.45 }
.nm-buehne .verein .tour strong { display: block; margin: .3cqw 0; font-size: 1.9cqw; color: #fff }
.nm-buehne .verein .tour small { font-size: 1.15cqw; letter-spacing: .2em; text-transform: uppercase; color: #ff8a5c }

/* Handy-Fassungen (cqw = Handybreite) */
.nm-buehne .p.haus .bar { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 16cqw 7cqw 0 }
.nm-buehne .p.haus .bar .logo { font-size: 8cqw; overflow: hidden; text-overflow: ellipsis; max-width: 75% }
.nm-buehne .p.haus .bar i { width: 7cqw; height: 4cqw; border-block: 1.5px solid #fff }
.nm-buehne .p.haus .mitte { left: 6cqw; right: 6cqw; top: 34% }
.nm-buehne .p.haus .ober { font-size: 3.6cqw; letter-spacing: .24em }
.nm-buehne .p.haus h2 { font-size: 14.5cqw; margin-top: 3cqw }
.nm-buehne .p.haus .cta { position: absolute; z-index: 2; left: 7cqw; right: 7cqw; bottom: 9cqw; padding: 5cqw; background: #f7f3ea; color: #1f2a22; text-align: center; font-weight: 600; font-size: 4.4cqw }
.nm-buehne .p.back { display: block }
.nm-buehne .p.back .foto { inset: auto 0 0; height: 46% }
.nm-buehne .p.back .links { padding: 16cqw 7cqw 0 }
.nm-buehne .p.back .stempel { width: 17cqw; height: 17cqw }
.nm-buehne .p.back .offen { margin-top: 7cqw; font-size: 3.5cqw; padding: 2cqw 4cqw; gap: 2cqw }
.nm-buehne .p.back .offen:before { width: 2.4cqw; height: 2.4cqw }
.nm-buehne .p.back h2 { font-size: 15cqw; margin-top: 5cqw }
.nm-buehne .p.back .knopf { margin-top: 6cqw; font-size: 3.8cqw; padding: 3.4cqw 6cqw }
.nm-buehne .p.verein .kopf { padding: 16cqw 7cqw 0; font-size: 3.4cqw }
.nm-buehne .p.verein .logo { font-size: 6cqw; overflow: hidden; max-width: 100% }
.nm-buehne .p.verein .logo svg { width: 7cqw; height: 7cqw }
.nm-buehne .p.verein .text { left: 7cqw; right: 7cqw; top: 30% }
.nm-buehne .p.verein .ober { font-size: 3.3cqw }
.nm-buehne .p.verein h2 { font-size: 21cqw; margin-top: 2cqw }
.nm-buehne .p.verein h2 .z2 { -webkit-text-stroke-width: .5cqw }
.nm-buehne .p.verein .tour { left: 7cqw; right: 7cqw; top: auto; bottom: 9cqw; width: auto }
.nm-buehne .p.verein .datum { font-size: 3.6cqw; padding: 3cqw 4cqw }
.nm-buehne .p.verein .datum b { font-size: 9cqw }
.nm-buehne .p.verein .tour > div:last-child { font-size: 3.2cqw; padding: 3cqw 4cqw }
.nm-buehne .p.verein .tour strong { font-size: 4.6cqw }
.nm-buehne .p.verein .tour small { font-size: 2.8cqw }
.nm-buehne .p.verein:after { background: linear-gradient(0deg, #0b1014f2 0%, #0b101499 45%, #0b101466 100%) }

/* Unter der Vorführung: eigener Name und Fortschritt */
.nm-leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding-right: 22% }
.nm-probier { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted) }
.nm-probier { min-width: 0; flex: 1 1 auto }
.nm-probier label { font-weight: 500; white-space: nowrap }
.nm-probier input { flex: 1 1 8em; min-width: 0; width: auto; max-width: 15em; min-height: 40px; padding: 6px 2px; border: 0; border-bottom: 1.5px solid #9aa09a; border-radius: 0; background: transparent; font: 600 15px "Space Grotesk", Arial, sans-serif; color: var(--ink) }
.nm-probier input::placeholder { color: #8a908b; font-weight: 400 }
.nm-probier input:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1.5px 0 var(--gold) }
.nm-probier { flex-wrap: nowrap; position: relative }
.nm-zurueck { position: relative; flex: none; width: 32px; height: 32px; margin-left: -40px; border: 0; border-radius: 50%; background: #e4e3dc; cursor: pointer }
.nm-zurueck:hover { background: #d6d5cc }
.nm-zurueck:before,.nm-zurueck:after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%,-50%) rotate(45deg) }
.nm-zurueck:after { transform: translate(-50%,-50%) rotate(-45deg) }
.nm-probier input { padding-right: 40px }
.nm-punkte { display: flex; gap: 6px; flex: none }
.nm-punkte i { width: 22px; height: 3px; background: #cfd0c8; position: relative; overflow: hidden }
.nm-punkte i.on:after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: nm-lauf var(--dauer, 6.5s) linear forwards }
.nm-punkte i.fest { background: var(--ink) }
@keyframes nm-lauf { from { transform: scaleX(0) } to { transform: scaleX(1) } }

@media (max-width: 900px) {
  .nm-geraete { padding: 0 9% 12% 0 }
  .nm-phone { width: 31% }
  .nm-chrome { height: 28px; padding: 0 10px; gap: 5px }
  .nm-chrome > i { width: 7px; height: 7px }
  .nm-url { font-size: 10.5px; height: 19px; padding: 0 10px }
  .nm-browser { border-radius: 9px }
  .nm-leiste { padding-right: 0; margin-top: 10px }
}
@media (max-width: 690px) {
  .nm-punkte { display: none }
  .nm-probier { flex-wrap: wrap; font-size: 13.5px }
  .nm-probier label { flex-basis: 100% }
  .nm-probier input { flex: 1 1 auto; max-width: none }
}
@media (prefers-reduced-motion: reduce) {
  .nm-buehne *,.nm-buehne *:before,.nm-buehne *:after { transition: none !important; animation: none !important }
}
