/* ---------- Kundenkonto: Registrieren, Anmelden, Bestätigen, Mein Konto, Bewertung ---------- */
.acc { padding: 48px 0 80px; background: linear-gradient(180deg, var(--paper, #f8f4ea) 0, #fff 420px); min-height: 60vh; }
.acc h1, .acc h2, .acc h3 { margin: 0 0 8px; color: var(--green); }
.acc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(227,233,231,.8); padding: 30px; margin-bottom: 20px; }
.acc-card h2 { font-size: 1.35rem; }
.acc-narrow { max-width: 480px; }
.acc-h { font-size: 2rem; }
.acc .alert { margin: 14px 0; }
.acc-top { margin-top: 0 !important; }
.center-text { text-align: center; }

/* Registrieren: Markenfläche + Formular */
.acc-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; max-width: 1040px; }
.acc-side { background: var(--green); color: #e9f2ef; border-radius: var(--radius); padding: 36px 32px; position: relative; overflow: hidden; }
.acc-side::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -150px; border-radius: 50%; background: var(--gold); opacity: .12; }
.acc-side h1 { color: #fff; font-size: 2.2rem; line-height: 1.1; }
.acc-eyebrow { color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.acc-benefits { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.acc-benefits li { padding-left: 32px; position: relative; }
.acc-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--green); font-weight: 900; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.acc-benefits b { color: #fff; }

.acc-form { margin-top: 8px; }
.acc-form.one { grid-template-columns: 1fr; }
.acc-form label.check { cursor: pointer; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .93rem; font-weight: 500; color: var(--ink); margin: 0; }
.acc-form label.check small { display: inline-block; margin-top: 4px; }
.acc-form .check input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.acc-form small { color: var(--muted); font-size: .8rem; }
.acc-form .gift { color: #8a5d00; background: var(--gold-soft); border-radius: 999px; padding: 1px 8px; font-size: .8rem; white-space: nowrap; }
.acc-submit { width: 100%; }
.acc-note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-row .check { margin: 0; }
.acc-switch { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.acc-sub { font-size: 1rem; margin: 10px 0 0; }

/* Code-Eingabe */
.acc-icon { font-size: 2.6rem; margin-bottom: 6px; }
.acc-code-form { display: grid; gap: 12px; margin: 18px auto 6px; max-width: 320px; }
.acc-code { font: 800 2rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .35em; text-align: center; padding: 14px 10px; border: 2px solid var(--line); border-radius: 14px; width: 100%; color: var(--green); }
.acc-code.small { font-size: 1.4rem; }
.acc-code:focus { outline: 0; border-color: var(--green-3); box-shadow: 0 0 0 4px rgba(15,61,51,.12); }
.acc-help { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.acc-help p { margin: 0 0 6px; }
.inline { display: inline; }
.sep { margin: 0 6px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-3); text-decoration: underline; cursor: pointer; }

/* Mein Konto */
.acc-hero { display: flex; align-items: center; gap: 20px; background: var(--green); color: #e9f2ef; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; flex-wrap: wrap; }
.acc-hero h1 { color: #fff; font-size: 1.9rem; margin: 0; }
.acc-hero p { margin: 2px 0 0; }
.acc-hero-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acc-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--green); font: 800 1.8rem/64px var(--display, inherit); text-align: center; flex: none; }
.acc-badge { display: inline-block; background: rgba(255,255,255,.14); color: var(--gold); border-radius: 999px; padding: 1px 10px; font-size: .78rem; font-weight: 700; margin-left: 6px; }
.acc-since { font-size: .85rem; opacity: .75; }
.acc-logout .btn { padding: 10px 18px; }
.acc-stats { display: grid; grid-template-columns: 1fr 1fr 2.2fr; gap: 14px; margin-bottom: 20px; }
.acc-stat { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.acc-stat b { font: 800 1.7rem/1.1 var(--display, inherit); color: var(--green); }
.acc-stat span { color: var(--muted); font-size: .85rem; }
.acc-stat .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.acc-stat .linkbtn { align-self: flex-start; margin-top: 4px; font-size: .88rem; }
.acc-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.acc-fav { list-style: none; margin: 0; padding: 0; }
.acc-fav li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-fav li:last-child { border-bottom: 0; }
.acc-fav-m { flex: 1; display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.acc-fav-m small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.acc-logo img { width: 100%; height: 100%; object-fit: cover; }
.acc-app { background: var(--gold-soft); box-shadow: none; border-color: transparent; }
.acc-danger details { margin-top: 10px; }
.acc-danger summary { cursor: pointer; color: var(--red); font-weight: 700; }
.acc-danger .check { display: flex; gap: 10px; margin: 10px 0 14px; color: var(--muted); }
.btn-danger { background: var(--red); color: #fff; }

/* Bewertung auf der Marktseite */
.rate-card { margin-bottom: 18px; scroll-margin-top: 90px; }
.rate-sum { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rate-sum b { font: 800 2rem/1 var(--display, inherit); color: var(--green); }
.rate-sum small { color: var(--muted); }
.rate-stars { --v: 0; position: relative; display: inline-block; font-size: 1.1rem; line-height: 1; letter-spacing: 2px; }
.rate-stars::before { content: "★★★★★"; color: var(--line); }
.rate-stars::after { content: "★★★★★"; color: var(--gold); position: absolute; left: 0; top: 0; overflow: hidden; width: calc(var(--v) / 5 * 100%); }
.rate-cats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.rate-cats li { display: grid; grid-template-columns: 7.5em 1fr 2.2em; gap: 10px; align-items: center; }
.rate-cats b { text-align: right; color: var(--green); }
.rate-bar { height: 7px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.rate-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.rate-form summary { cursor: pointer; font-weight: 700; color: var(--green-3); padding: 6px 0; }
.rate-row { border: 0; padding: 0; margin: 8px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rate-row legend { float: left; font-size: .9rem; font-weight: 600; padding: 0; }
.rate-input { display: inline-flex; flex-direction: row-reverse; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { font-size: 1.6rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0 2px; transition: color .1s, transform .1s; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: var(--gold); }
.rate-input label:hover { transform: scale(1.15); }
.rate-input input:focus-visible + label { outline: 2px solid var(--green-3); outline-offset: 2px; border-radius: 4px; }

[dir="rtl"] .rate-stars::after { left: auto; right: 0; }

@media (max-width: 860px) {
    .acc-grid, .acc-cols { grid-template-columns: 1fr; }
    .acc-stats { grid-template-columns: 1fr 1fr; }
    .acc-stat.wide { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .acc-hero { padding: 20px; gap: 14px; }
    .acc-hero h1 { font-size: 1.5rem; }
    .acc-avatar { width: 48px; height: 48px; line-height: 48px; font-size: 1.4rem; }
    .acc { padding-top: 24px; }
    .acc-card { padding: 22px 18px; }
    .acc-side { padding: 28px 22px; }
}

/* Registrieren v2: lebendigere Markenfläche, einzeilige Vorteile */
.acc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; max-width: 1100px; }
.acc-side { display: flex; flex-direction: column; padding: 40px 36px; border-radius: 28px; background: radial-gradient(120% 120% at 100% 0%, #1d6b58 0%, #0f3d33 50%, #0a2a23 100%); box-shadow: 0 30px 60px rgba(15,61,51,.25); }
.acc-side::before { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242,169,0,.4), transparent 62%); }
.acc-side::after { display: none; }
.acc-side > * { position: relative; z-index: 1; }
.acc-side h1 { font-family: var(--display, inherit); font-size: clamp(1.9rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.acc-side > p { color: #cfe3da; font-size: 1.05rem; }
.acc-benefits { gap: 10px; margin-top: 26px; }
.acc-benefits li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.acc-benefits li::before { display: none; }
.acc-benefits .bi { width: 34px; height: 34px; flex: none; border-radius: 11px; background: rgba(242,169,0,.16); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.acc-ticket { margin-top: auto; align-self: flex-start; display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; background: var(--gold); color: var(--green); transform: rotate(-3deg); box-shadow: 0 16px 30px rgba(0,0,0,.3); margin-bottom: 4px; }
.acc-benefits { margin-bottom: 30px; }
.acc-benefits .bt { min-width: 0; }
.acc-ticket div { padding: 12px 18px; display: grid; }
.acc-ticket small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.acc-ticket b { font-family: var(--display, inherit); font-size: 1.3rem; color: var(--green); }
.acc-ticket span { display: flex; align-items: center; padding: 0 16px; background: var(--green); color: var(--gold); font-weight: 800; border-left: 2px dashed rgba(242,169,0,.6); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.acc-card { border-radius: 28px; padding: 34px; }
@media (min-width: 1101px) { .acc-benefits li { white-space: nowrap; } }
@media (max-width: 860px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } .acc-side { padding: 28px 22px; order: 2; } .acc-ticket { display: none; } }

/* Feld-Fehler direkt am Eingabefeld */
.fld .f-err { display: block; min-height: 0; color: #b3261e; font-size: .8rem; font-weight: 600; margin-top: 5px; }
.fld .f-err:empty { display: none; }
.fld.bad input:not([type=checkbox]) { border-color: #d93025 !important; background: #fff6f5; box-shadow: 0 0 0 3px rgba(217,48,37,.12); }
.fld.bad label:not(.check) { color: #b3261e; }
.check.fld.bad input[type=checkbox] { outline: 2px solid #d93025; outline-offset: 2px; }
.acc-fine { margin: auto 0 0; padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.6); }
