/* Wartungsseite */
.wartung { background: var(--bordeaux); }
.w { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
.w__story { background: var(--bordeaux); color: #fff; position: relative; overflow: hidden; display: flex; }
.w__story::before { content: ""; position: absolute; width: 620px; height: 620px; right: -260px; bottom: -260px; border: 1px solid rgba(176,138,72,0.3); border-radius: 50%; animation: drift 20s ease-in-out infinite alternate; }
.w__story::after { content: ""; position: absolute; width: 380px; height: 380px; left: -160px; top: -140px; border: 1px solid rgba(176,138,72,0.18); border-radius: 50%; animation: drift 26s ease-in-out infinite alternate-reverse; }
.w__form { background: var(--cream); display: flex; }
.w__inner { position: relative; z-index: 1; width: 100%; max-width: 620px; margin: auto; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); display: flex; flex-direction: column; gap: 24px; }
.w__inner--form { gap: 24px; }
.w__logo { height: 104px; width: auto; align-self: flex-start; filter: brightness(1.25); margin-bottom: 12px; }
.w__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; }
.w__text { font-size: 17px; color: rgba(255,255,255,0.86); max-width: 52ch; }

/* Status mit Weinglas-Animation */
.w__status { display: flex; align-items: center; gap: 18px; }
.glass { width: 44px; height: 66px; flex: none; overflow: visible; }
.glass__outline { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glass__wine { animation: pour 4.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.glass__wine path { fill: #8E2B3E; animation: wave 1.6s linear infinite; }
.w__status-text { display: flex; flex-direction: column; gap: 10px; }
.w__status-label { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cream); }
.w__progress { position: relative; width: 140px; height: 1px; background: rgba(255,255,255,0.18); overflow: hidden; }
.w__progress span { position: absolute; inset: 0; width: 40%; background: var(--gold); animation: progress 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes pour { 0% { transform: translateY(26px); } 45%, 60% { transform: translateY(0); } 100% { transform: translateY(26px); } }
@keyframes wave { to { transform: translateX(-40px); } }
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Kontaktdaten */
.w__contact { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.14); }
.w__contact li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.14); font-size: 15px; }
.w__contact svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.w__contact a { color: #fff; text-decoration: none; transition: color 300ms; }
.w__contact a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.w__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; }
.w__legal a { color: rgba(255,255,255,0.75); text-decoration: none; padding: 6px 0; }
.w__legal a:hover { color: #fff; }
.w__form .h3 { color: var(--ink); }
.w__form .field input[type="text"], .w__form .field input[type="email"], .w__form .field input[type="tel"], .w__form .field textarea { background: var(--paper); }

/* Einblenden nach dem Laden */
.w__inner > * { opacity: 0; transform: translateY(24px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.is-ready .w__inner > * { opacity: 1; transform: none; }
.is-ready .w__inner > *:nth-child(2) { transition-delay: 120ms; }
.is-ready .w__inner > *:nth-child(3) { transition-delay: 240ms; }
.is-ready .w__inner > *:nth-child(4) { transition-delay: 360ms; }
.is-ready .w__inner > *:nth-child(5) { transition-delay: 480ms; }
.is-ready .w__inner > *:nth-child(6) { transition-delay: 600ms; }
.is-ready .w__inner > *:nth-child(n+7) { transition-delay: 720ms; }
.is-ready .w__inner--form > * { transition-delay: 500ms; }

/* Lade-Animation beim Öffnen */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--bordeaux); display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity 800ms var(--ease), visibility 800ms; }
.intro img { width: 168px; height: auto; filter: brightness(1.25); animation: introLogo 1200ms var(--ease) both; }
.intro__line { width: 160px; height: 1px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.intro__line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: introLine 1300ms var(--ease) 150ms forwards; }
.intro.is-done { opacity: 0; visibility: hidden; }
.intro[hidden] { display: none; }
@keyframes introLogo { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .w { grid-template-columns: 1fr; }
  .w__logo { height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .w__inner > * { opacity: 1; transform: none; }
  .glass__wine { transform: translateY(8px); }
  .w__progress span { width: 100%; transform: none; }
}

/* Versteckter Vorschau-Zugang */
.w__hidden { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; }
.w__hidden:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.login { border: 0; padding: 0; width: min(440px, calc(100% - 32px)); background: var(--cream-soft); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.login::backdrop { background: rgba(62,21,32,0.72); }
.login__form { padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.login__text { margin: 0; font-size: 15px; color: var(--ink-soft); }
.login .field input { background: var(--paper); }
.login__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.login__cancel { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bordeaux); background: none; border: 0; padding: 12px 0; cursor: pointer; min-height: 44px; }
.login .field input[type="password"] { font: 400 16px/1.5 var(--sans); color: var(--ink); border: 1px solid rgba(84,29,43,0.22); border-radius: 0; padding: 13px 14px; min-height: 50px; width: 100%; }
.login .field input[type="password"]:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(84,29,43,0.12); }