/* ==========================================================================
   vignette.css – Seite „Vignette“: Hero mit digitalem Pass, Höhenstufen-Tarife,
   Bestellformular mit Zusammenfassung, 18-Tage-Aufstieg, Digital, Streckenmaut
   ========================================================================== */

/* ---------- Hero ---------- */
.v-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--snow) 0%, var(--glacier-50) 55%, var(--glacier-100) 100%);
}
.v-hero__topo { -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 88%); mask-image: linear-gradient(180deg, #000 35%, transparent 88%); }
.v-hero__inner {
  position: relative; z-index: 2; display: grid; gap: 44px; align-items: center;
  padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(150px, 18vw, 250px);
}
@media (min-width: 1000px) { .v-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: 60px; } }
.v-hero__copy .lead { color: var(--granite-700); margin-bottom: 28px; }
.v-hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.v-hero__chips li {
  padding: 8px 14px; border-radius: 999px; background: rgba(251, 250, 247, .8); border: 1px solid var(--line);
  font-size: .88rem; color: var(--granite-700);
}
.v-hero__chips b { color: var(--pine-700); margin-right: 4px; }
.v-hero .ridges { height: clamp(150px, 20vw, 290px); z-index: 1; }

/* Digitaler Pass – eigene Gestaltung (bewusst keine Anlehnung an die amtliche Vignette) */
.pass {
  --accent: #f2d39b;
  position: relative; margin: 0; justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 1.586;
  border-radius: 24px; overflow: hidden; color: var(--snow);
  background:
    radial-gradient(120% 90% at 90% 10%, rgba(159, 203, 216, .22), transparent 55%),
    linear-gradient(140deg, var(--pine-700), var(--pine-900) 55%, var(--pine-950));
  box-shadow: 0 30px 70px -30px rgba(15, 31, 23, .75), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  padding: clamp(16px, 4vw, 24px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  transform: perspective(1200px) rotateY(-9deg) rotateX(5deg) rotateZ(1deg);
  transition: transform .8s var(--ease);
  animation: pass-in 1.1s var(--ease) both .2s;
}
.pass:hover { transform: perspective(1200px) rotateY(0) rotateX(0) rotateZ(0); }
@keyframes pass-in { from { opacity: 0; transform: perspective(1200px) rotateY(-24deg) rotateX(12deg) translateY(30px); } }
.pass[data-duration="1t"] { --accent: var(--glacier-300); }
.pass[data-duration="10t"] { --accent: var(--pine-300); }
.pass[data-duration="2m"] { --accent: var(--alpenglow); }
.pass::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); transition: background .4s; }
.pass__topo { position: absolute; inset: 0; color: var(--glacier-300); opacity: .5; pointer-events: none; }
.pass__topo svg { width: 100%; height: 100%; }
.pass > *:not(.pass__topo) { position: relative; }
.pass__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pass__brand { font-family: var(--font-display); font-size: 1.2rem; }
.pass__brand span { font-style: italic; color: var(--glacier-300); }
.pass__kind { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pass__plate {
  display: flex; align-items: stretch; align-self: flex-start; max-width: 100%;
  background: #fbfaf7; color: var(--granite-950); border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--granite-950) inset, 0 6px 18px -8px rgba(0, 0, 0, .6);
}
.pass__country { display: grid; place-items: center; min-width: 34px; padding: 0 6px; background: var(--glacier-700); color: #fff; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; }
.pass__plate-text { padding: 6px 14px 6px 10px; font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.15rem, 3.4vw, 1.55rem); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0; }
.pass__grid dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--glacier-300); opacity: .85; }
.pass__grid dd { margin: 0; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass__foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 242, 236, .55); }
@media (max-width: 400px) { .pass__grid dd { font-size: .82rem; } .pass__brand { font-size: 1.05rem; } }

/* ---------- Höhenstufen (Tarife) ---------- */
.arten { padding-top: clamp(40px, 6vw, 80px); }
.tiers { list-style: none; display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 640px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier {
  position: relative; display: flex; flex-direction: column; padding: 0 22px 22px; border-radius: var(--radius-lg);
  background: rgba(244, 242, 236, .04); border: 1px solid rgba(244, 242, 236, .12);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.tier:hover { border-color: rgba(159, 203, 216, .45); background: rgba(244, 242, 236, .07); transform: translateY(-4px); }
.tier--top { border-color: rgba(226, 154, 107, .45); }
.tier__peak { position: relative; height: 130px; margin: 0 -22px 16px; border-bottom: 1px solid rgba(244, 242, 236, .15); overflow: hidden; }
.tier__peak::before { /* Höhenlinien hinter dem Gipfel */
  content: ''; position: absolute; inset: 0; opacity: .35;
  background: repeating-linear-gradient(180deg, transparent 0 15px, rgba(159, 203, 216, .25) 15px 16px);
}
.tier__peak span {
  position: absolute; left: 14%; right: 14%; bottom: 0; height: var(--h);
  clip-path: polygon(50% 0, 62% 18%, 70% 14%, 100% 100%, 0 100%, 34% 22%, 42% 26%);
  background: linear-gradient(180deg, #f4f2ec 0 16%, #9fcbd8 16.5%, #4f94ab 55%, #24473a 100%);
  transform-origin: 50% 100%;
  transition: transform 1.2s var(--ease) calc(var(--d, 0s) + .15s);
}
.js .tier.reveal:not(.is-in) .tier__peak span { transform: scaleY(0); }
.tier--top .tier__peak span { background: linear-gradient(180deg, #fff 0 20%, #f2d39b 20.5%, #e29a6b 45%, #4f94ab 75%, #24473a 100%); }
.tier__alt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--alpenglow); margin-bottom: 6px; }
.tier h3 { color: var(--snow); margin-bottom: .4em; }
.tier__desc { font-size: .95rem; color: rgba(244, 242, 236, .72); flex: 1; }
.tier__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; padding-top: 14px; border-top: 1px dashed rgba(244, 242, 236, .2); }
.tier__prices dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--glacier-300); }
.tier__prices dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 380; letter-spacing: -0.02em; color: var(--snow); white-space: nowrap; }
.tier__prices div + div dd { font-size: 1.25rem; color: rgba(244, 242, 236, .78); padding-top: .25rem; }
.tier__flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.on-dark .tag { background: rgba(159, 203, 216, .14); color: var(--glacier-200); }
.on-dark .tag--pine { background: rgba(141, 179, 160, .18); color: #cfe3d8; }
.on-dark .tag--warn { background: rgba(226, 154, 107, .18); color: #f3c4a5; }

.price-note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; padding: 18px 20px; border-radius: 16px;
  background: rgba(226, 154, 107, .1); border: 1px solid rgba(226, 154, 107, .35); color: rgba(244, 242, 236, .88);
}
.price-note svg { width: 24px; height: 24px; flex: none; color: var(--alpenglow); margin-top: 2px; }
.price-note p { margin: 0; }
.price-note strong { color: var(--snow); }
.price-details { margin-top: 18px; border-radius: 16px; border: 1px solid rgba(244, 242, 236, .14); }
.price-details summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.price-details summary::-webkit-details-marker { display: none; }
.price-details summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--glacier-300); transition: transform .3s var(--ease); }
.price-details[open] summary::after { transform: rotate(45deg); }
.table-wrap { padding: 0 20px 18px; overflow-x: auto; }
.price-table--dark th, .price-table--dark td { border-color: rgba(244, 242, 236, .12); }
.price-table--dark thead th { color: var(--granite-300); }
.price-table--dark tbody th small { color: rgba(244, 242, 236, .6); }
.price-table--dark caption { color: var(--alpenglow); }
.price-table--dark td.num { font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Bestellung ---------- */
.order__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .order__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }
.order__form { display: grid; gap: 18px; }
.o-step {
  background: var(--white); border: 1px solid var(--line) !important; border-radius: var(--radius-lg);
  padding: 22px clamp(18px, 2.4vw, 28px) 24px !important; box-shadow: var(--shadow-1);
}
.o-step legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; text-transform: none; color: var(--ink); font-weight: 450;
}
.o-step legend + * { clear: both; }
.o-step__no {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--font-mono); font-size: .82rem; background: var(--pine-800); color: var(--glacier-300);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; padding-top: 10px; width: 36px; height: 32px;
}
.o-choices { display: grid; gap: 12px; }
.o-choices--2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.o-choices--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .o-choices--4 { grid-template-columns: repeat(4, 1fr); } }
.choice__icon { width: 48px; height: 24px; color: var(--pine-700); margin-bottom: 6px; }
.o-hint { margin: 14px 0 0; }
.o-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .o-row { grid-template-columns: .9fr 1.1fr; } }
.input--plate { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; }
.input--plate::placeholder { text-transform: none; letter-spacing: .02em; }

.summary { position: relative; }
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary__card {
  position: relative; border-radius: var(--radius-lg); padding: 26px 24px 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--granite-900), var(--granite-950)); color: var(--snow); box-shadow: var(--shadow-2);
}
.summary__card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 120px; opacity: .5; pointer-events: none;
  background: repeating-radial-gradient(circle at 85% -20%, transparent 0 14px, rgba(159, 203, 216, .18) 14px 15px);
}
.summary__card > * { position: relative; }
.summary__eyebrow { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--alpenglow); margin-bottom: 6px; }
.summary__title { font-size: 1.7rem; margin-bottom: 2px; }
.summary__veh { color: rgba(244, 242, 236, .7); margin-bottom: 16px; }
.summary__lines { display: grid; gap: 0; margin: 0 0 4px; }
.summary__lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(244, 242, 236, .16); font-size: .95rem; }
.summary__lines dt { color: rgba(244, 242, 236, .68); }
.summary__lines dd { margin: 0; text-align: right; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 10px; }
.summary__total span { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glacier-300); }
.summary__total output { font-family: var(--font-display); font-size: clamp(2.3rem, 3vw + 1rem, 2.9rem); font-weight: 360; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.summary__tip { font-size: .86rem; color: #f3c4a5; background: rgba(226, 154, 107, .12); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.summary__pay { width: 100%; --bg: var(--glacier-300); --fg: var(--pine-950); --bd: var(--glacier-300); }
.summary__pay.is-done { --bg: var(--alpenglow); --bd: var(--alpenglow); }
.pay-notice {
  display: flex; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 12px; font-size: .92rem; line-height: 1.5;
  background: rgba(159, 203, 216, .12); border: 1px solid rgba(159, 203, 216, .4); color: var(--snow);
}
.pay-notice svg { width: 22px; height: 22px; flex: none; color: var(--glacier-300); }
.pay-notice.is-pulse { animation: notice-in .6s var(--ease); }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.summary__trust { list-style: none; display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(244, 242, 236, .12); font-size: .86rem; color: rgba(244, 242, 236, .7); }
.summary__trust li::before { content: '▲'; font-size: .6rem; color: var(--pine-300); margin-right: 8px; position: relative; top: -2px; }

/* ---------- 18-Tage-Aufstieg ---------- */
.ascent { margin: 10px 0 44px; padding: 34px clamp(16px, 3vw, 34px) 46px; border-radius: var(--radius-lg); background: rgba(251, 250, 247, .75); border: 1px solid rgba(59, 125, 149, .2); }
.ascent__track { position: relative; height: 10px; border-radius: 999px; background: rgba(59, 125, 149, .14); }
.ascent__fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--alpenglow), var(--glacier-500) 60%, var(--pine-500)); transform-origin: 0 50%; transition: transform 2.6s cubic-bezier(.45, .05, .25, 1) .3s; }
.js .ascent.reveal:not(.is-in) .ascent__fill { transform: scaleX(0); }
.ascent__days { list-style: none; position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.ascent__days li { position: relative; width: 4px; height: 4px; border-radius: 50%; background: var(--white); }
.ascent__days li span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--granite-600); }
.ascent__days li.is-start span { left: 0; transform: none; }
.ascent__days li.is-end span { left: auto; right: 0; transform: none; color: var(--pine-700); font-weight: 500; }
.ascent__days li.is-start, .ascent__days li.is-end, .ascent__days li.is-mid { width: 18px; height: 18px; background: var(--white); border: 3px solid var(--glacier-600); }
.ascent__days li.is-end { border-color: var(--pine-500); }
.ascent__days li.is-end::before { content: ''; position: absolute; left: 4px; bottom: 16px; width: 14px; height: 22px; border-left: 2px solid var(--pine-700); background: linear-gradient(var(--alpenglow), var(--alpenglow)) 2px 0 / 12px 9px no-repeat; }
.rule18__cards .card { background: rgba(251, 250, 247, .85); }
.rule18__cards p:last-child { margin: 0; color: var(--granite-700); }

/* ---------- Digital ---------- */
.digital__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .digital__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.digital__grid > div p:not(.lead):not(.eyebrow) { color: var(--granite-700); }
.digital__list { list-style: none; display: grid; gap: 0; counter-reset: d; }
.digital__list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.digital__list li:last-child { border-bottom: 1px solid var(--line); }
.digital__no { font-size: .8rem; color: var(--contour-text); padding-top: 6px; }
.digital__list h3 { font-size: 1.25rem; margin-bottom: .3em; }
.digital__list p { margin: 0; color: var(--granite-700); }

/* ---------- Streckenmaut ---------- */
.maut-list { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.maut-list li {
  position: relative; padding: 52px 20px 20px; border-radius: 18px; background: rgba(244, 242, 236, .04);
  border: 1px solid rgba(244, 242, 236, .12); overflow: hidden;
}
.maut-list li::before { /* Tunnelportal */
  content: ''; position: absolute; right: -20px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  border: 1px dashed rgba(226, 154, 107, .45); box-shadow: 0 0 0 14px rgba(226, 154, 107, .04), 0 0 0 28px rgba(226, 154, 107, .03);
}
.maut-list__road { position: absolute; top: 18px; left: 20px; font-family: var(--font-mono); font-weight: 500; font-size: .85rem; padding: 3px 9px; border-radius: 6px; background: var(--alpenglow); color: var(--granite-950); }
.maut-list h3 { color: var(--snow); font-size: 1.25rem; }
.maut-list p { margin: 0; color: rgba(244, 242, 236, .7); font-size: .95rem; }
.maut__cta { margin: 34px 0 0; }
.maut__cta .btn { white-space: normal; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .pass { animation: none; transform: none; }
  .js .tier.reveal .tier__peak span, .js .ascent.reveal .ascent__fill { transform: none !important; }
}

/* schmale Bildschirme: Pass in natürlicher Höhe statt Kartenformat */
@media (max-width: 520px) {
  .pass { aspect-ratio: auto; gap: 16px; transform: perspective(1200px) rotateY(-4deg) rotateX(3deg); }
}
