/* Erlangen wählt – Aktionsseite (baut auf neu.css auf) */
.ew-hero { position: relative; padding: clamp(28px, 6vw, 64px) 0 10px; }
.ew-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(231,138,83,.4); background: rgba(231,138,83,.1); color: var(--orange2); font: 600 13px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.ew-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(231,138,83,.6); animation: ewPing 1.8s ease-out infinite; }
@keyframes ewPing { to { box-shadow: 0 0 0 10px rgba(231,138,83,0); } }
.ew-hero h1 { font-size: clamp(40px, 8.5vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 18px 0 14px; font-weight: 700; text-wrap: balance; }
.ew-hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: -.01em; }
.ew-lead { max-width: 640px; color: var(--soft); font-size: clamp(17px, 2.2vw, 20px); margin: 0 0 24px; }
.ew-lead strong { color: var(--fg); }
.ew-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ew-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); color: var(--fg); font: 600 16px/1 var(--f); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.ew-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.3); }
.ew-btn.main { background: var(--orange); border-color: var(--orange); color: #1a0f08; }
.ew-btn.main:hover { background: var(--orange2); }
.ew-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ew-btn svg { width: 18px; height: 18px; }

.ew-prize { margin: 34px 0 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.ew-prize-main { padding: clamp(22px, 4vw, 34px); border-radius: 24px; border: 1px solid rgba(231,138,83,.35); background: radial-gradient(90% 90% at 100% 0%, rgba(231,138,83,.22), transparent 60%), var(--bg2); }
.ew-prize-main small { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange2); }
.ew-prize-main p.big { font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.1; margin: 10px 0 10px; letter-spacing: -.02em; }
.ew-prize-main ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--soft); font-size: 15.5px; }
.ew-prize-main li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
.ew-timeline { padding: clamp(22px, 4vw, 30px); border-radius: 24px; border: 1px solid var(--line); background: var(--bg2); display: grid; gap: 14px; align-content: start; }
.ew-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; opacity: .55; }
.ew-step.on { opacity: 1; }
.ew-step.done { opacity: .75; }
.ew-step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); font: 600 14px/1 var(--f-mono); }
.ew-step.on .n { background: var(--orange); border-color: var(--orange); color: #1a0f08; }
.ew-step.done .n { background: rgba(139,196,154,.15); border-color: rgba(139,196,154,.5); color: var(--green); }
.ew-step b { display: block; font-size: 15.5px; }
.ew-step span { color: var(--dim); font-size: 14px; }

.ew-count { display: flex; gap: 10px; margin: 26px 0 0; flex-wrap: wrap; align-items: center; }
.ew-count .lbl { color: var(--dim); font-size: 14px; width: 100%; }
.ew-count .box { min-width: 70px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.ew-count .box b { display: block; font: 600 26px/1 var(--f-mono); }
.ew-count .box span { font-size: 12px; color: var(--dim); }

.ew-section { margin: clamp(56px, 9vw, 96px) 0 0; scroll-margin-top: 90px; }
.ew-section > h2 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; }
.ew-section > h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--orange); }
.ew-section > p.sub { color: var(--soft); margin: 0 0 22px; max-width: 640px; }

/* Rangliste */
.ew-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.ew-tools input { flex: 1 1 220px; min-height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); color: var(--fg); font: 16px var(--f); }
.ew-chip { min-height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--soft); font: 500 15px var(--f); cursor: pointer; }
.ew-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ew-list { display: grid; gap: 10px; }
.ew-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.ew-item.hl { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(231,138,83,.18); }
.ew-item .bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(231,138,83,.13), rgba(231,138,83,.03)); pointer-events: none; transition: width .6s ease; }
.ew-item > * { position: relative; }
.ew-rank { font: 700 20px/1 var(--f-mono); color: var(--dim); text-align: center; }
.ew-item:nth-child(1) .ew-rank { color: #f3c969; }
.ew-item:nth-child(2) .ew-rank { color: #d8d8d8; }
.ew-item:nth-child(3) .ew-rank { color: #d39a6a; }
.ew-info b { display: block; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.ew-info span { color: var(--dim); font-size: 14px; }
.ew-info a { color: var(--soft); font-size: 14px; }
.ew-side { display: flex; align-items: center; gap: 8px; }
.ew-votes { text-align: right; min-width: 56px; }
.ew-votes b { display: block; font: 700 20px/1 var(--f-mono); }
.ew-votes span { font-size: 12px; color: var(--dim); }
.ew-vote { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--orange); background: var(--orange); color: #1a0f08; font: 700 15px var(--f); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ew-vote.done { background: transparent; color: var(--green); border-color: rgba(139,196,154,.5); cursor: default; }
.ew-vote:disabled:not(.done) { opacity: .5; cursor: not-allowed; }
.ew-share { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--soft); display: grid; place-items: center; cursor: pointer; }
.ew-share svg { width: 18px; height: 18px; }
.ew-empty { padding: 30px; border-radius: 18px; border: 1px dashed var(--line2); text-align: center; color: var(--soft); }
.ew-more { margin: 14px auto 0; display: flex; }
.ew-winner { padding: clamp(24px, 5vw, 40px); border-radius: 26px; border: 1px solid rgba(243,201,105,.5); background: radial-gradient(80% 90% at 50% 0%, rgba(243,201,105,.2), transparent 70%), var(--bg2); text-align: center; margin: 0 0 18px; }
.ew-winner small { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #f3c969; }
.ew-winner p { font-size: clamp(28px, 5vw, 44px); font-weight: 700; margin: 10px 0 4px; letter-spacing: -.02em; }

/* Formular */
.ew-form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 34px); border-radius: 24px; border: 1px solid var(--line2); background: var(--bg2); max-width: 760px; }
.ew-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ew-form label { display: grid; gap: 6px; font-size: 14.5px; color: var(--soft); }
.ew-form label > span b { color: var(--orange); }
.ew-form input, .ew-form select, .ew-form textarea { width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--fg); font: 16px/1.4 var(--f); }
.ew-form textarea { min-height: 96px; resize: vertical; }
.ew-form input:focus, .ew-form select:focus, .ew-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.ew-form fieldset { border: 0; padding: 0; margin: 0; }
.ew-form legend { font-size: 14.5px; color: var(--soft); margin-bottom: 6px; }
.ew-orte { display: flex; gap: 8px; flex-wrap: wrap; }
.ew-orte label { display: block; }
.ew-orte input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.ew-orte span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line2); color: var(--fg); cursor: pointer; }
.ew-orte input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ew-orte input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.ew-check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; }
.ew-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--orange); }
.ew-check a { color: var(--orange2); }
.ew-hp { position: absolute !important; left: -9999px !important; }
.ew-msg { padding: 14px 16px; border-radius: 14px; font-size: 15.5px; }
.ew-msg.ok { background: rgba(139,196,154,.12); border: 1px solid rgba(139,196,154,.4); color: #cfe8d6; }
.ew-msg.err { background: rgba(230,100,100,.1); border: 1px solid rgba(230,100,100,.4); color: #f2c4c4; }
.ew-note { font-size: 13.5px; color: var(--dim); margin: 0; }
.ew-closed { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); color: var(--soft); max-width: 760px; }

/* So funktioniert's */
.ew-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ew-how article { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); }
.ew-how b { font: 600 13px/1 var(--f-mono); color: var(--orange); }
.ew-how h3 { margin: 10px 0 6px; font-size: 19px; }
.ew-how p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* Toast */
.ew-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 15px; z-index: 200; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.ew-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .ew-prize, .ew-how, .ew-row { grid-template-columns: 1fr; }
  .ew-item { grid-template-columns: 30px 1fr; gap: 10px; padding: 14px; }
  .ew-side { grid-column: 1 / -1; justify-content: flex-end; }
  .ew-votes { margin-right: auto; text-align: left; display: flex; align-items: baseline; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ew-badge .dot { animation: none; } .ew-item .bar { transition: none; } }
.service-list { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--soft); }
.service-list strong { color: var(--fg); }
.service-section a { color: var(--orange2); }
.sub-body a.ew-btn, .sub-body a.ew-btn:hover { color: var(--fg); text-decoration: none; }
.sub-body a.ew-btn.main, .sub-body a.ew-btn.main:hover { color: #1a0f08; }
.sub-body .ew-prize-main p.big { color: var(--fg); }
.sub-body .ew-step b { color: var(--fg); }
