/*
 * Seiten des Moduls Events: Konto, Gastgeber-Bereich, Gäste-Upload.
 */

.ev-narrow { max-width: 36rem; padding-block: 2.5rem 4rem; }
.ev-page { padding-block: 2rem 4rem; }
.ev-lead { font-size: 1.12rem; color: var(--t-muted); }
.ev-muted { color: var(--t-muted); font-size: .95rem; }
.ev-kicker { display: inline-block; font: 600 .85rem/1.4 var(--t-font); color: var(--t-signal-strong); background: var(--t-blush); padding: .35rem .9rem; border-radius: 999px; margin: 0 0 1rem; }
.ev-back { margin: 0 0 .5rem; font-size: .95rem; }
.ev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

.ev-alert { padding: .9rem 1.1rem; border-radius: var(--t-radius); background: #e9f3ea; border: 1px solid #bcd9bf; color: #24502b; }
.ev-alert--error { background: #fbe9e5; border-color: #efc1b6; color: #8a2d1b; }
.ev-alert--warn { background: #fdf3e1; border-color: #efd7a7; color: #6e4b0e; }
.ev-alert p { margin: 0 0 .75rem; }

.ev-form { display: grid; gap: 1.1rem; margin: 1.5rem 0; }
.ev-form--inline { grid-template-columns: 2fr 1fr auto; align-items: end; }
@media (max-width: 720px) { .ev-form--inline { grid-template-columns: 1fr; } }
.ev-field { display: grid; gap: .35rem; font-weight: 600; }
.ev-field small { font-weight: 400; color: var(--t-muted); }
.ev-field input { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--t-border-strong); border-radius: 10px; background: var(--t-bg-raised); color: var(--t-text); width: 100%; }
.ev-field input:focus-visible { outline: 2px solid var(--t-signal); outline-offset: 1px; }
.ev-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .95rem; }
.ev-check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--t-signal); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.ev-cards { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.ev-card { display: grid; gap: .2rem; padding: 1rem 1.25rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.ev-card__title { font: 600 1.2rem/1.3 var(--t-display); text-decoration: none; color: var(--t-heading); }
.ev-card__title:hover { color: var(--t-signal); }
.ev-panel { margin-top: 2rem; padding: 1.5rem; background: var(--t-surface); border-radius: var(--t-radius); }
.ev-panel h2 { margin-top: 0; }

.ev-share { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 2rem; align-items: start; margin: 2rem 0 3rem; padding: 1.5rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
@media (max-width: 640px) { .ev-share { grid-template-columns: 1fr; } .ev-share__qr { max-width: 14rem; } }
.ev-share__qr svg { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; }
.ev-share__text h2 { margin-top: 0; }
.ev-link { overflow-wrap: anywhere; font-weight: 600; }
.ev-status { font-weight: 600; color: #2f6b3a; }
.ev-status--off { color: #8a2d1b; }

.ev-group { margin: 2rem 0; scroll-margin-top: 5rem; }
.ev-group h3 { font: 600 1.15rem/1.3 var(--t-display); }
.ev-grid { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.ev-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--t-surface-2); }
.ev-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-tile__placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 600; color: var(--t-muted); text-decoration: none; }
.ev-tile__bar { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: .3rem; background: linear-gradient(transparent, rgb(42 27 40 / 55%)); }
.ev-tile__bar a, .ev-tile__bar button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 90%); color: var(--t-heading); font: 600 1rem/1 var(--t-font); text-decoration: none; cursor: pointer; }
.ev-tile__bar form { margin: 0; }

.ev-upload { margin: 1.5rem 0 2.5rem; }
.ev-upload__pick { display: grid; justify-items: center; gap: .75rem; padding: 2rem 1rem; border: 2px dashed var(--t-border-strong); border-radius: var(--t-radius); background: var(--t-bg-raised); text-align: center; cursor: pointer; }
.ev-upload__pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ev-upload__pick:focus-within { outline: 2px solid var(--t-signal); outline-offset: 2px; }
.ev-upload__pick small { color: var(--t-muted); }
.ev-progress { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.ev-progress li { display: grid; gap: .25rem; font-size: .9rem; overflow-wrap: anywhere; }
.ev-progress progress { width: 100%; accent-color: var(--t-signal); }
.ev-progress .is-error { color: #8a2d1b; }

/* Videos: Standbild mit Abspiel-Zeichen */
.ev-tile__video { display: block; width: 100%; height: 100%; position: relative; }
.ev-tile__video::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 2.6rem; height: 2.6rem; translate: -50% -50%; border-radius: 50%; background: rgb(255 255 255 / 88%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%232a1b28'/%3E%3C/svg%3E") center / 1.4rem no-repeat; box-shadow: 0 2px 10px rgb(42 27 40 / 25%); pointer-events: none; }
.ev-tile__placeholder { text-align: center; padding: .5rem; font-size: .9rem; }

/* Album-Auswahl */
.ev-prefixed { display: flex; align-items: stretch; border: 1px solid var(--t-border-strong); border-radius: 10px; background: var(--t-bg-raised); overflow: hidden; font-weight: 400; }
.ev-prefixed > span { flex: none; display: flex; align-items: center; padding: 0 0 0 .9rem; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.ev-prefixed input { flex: 1; }
.ev-prefixed input { border: 0 !important; border-radius: 0 !important; padding-left: .2rem !important; min-width: 0; }
@media (max-width: 520px) { .ev-prefixed { flex-direction: column; } .ev-prefixed > span { max-width: none; padding: .55rem .9rem 0; font-size: .85rem; } .ev-prefixed input { padding-left: .9rem !important; padding-top: .3rem !important; } }
.ev-field textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--t-border-strong); border-radius: 10px; background: var(--t-bg-raised); color: var(--t-text); width: 100%; resize: vertical; }
.ev-curate__bar { position: sticky; top: 4.5rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; margin: 1rem 0; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.ev-curate__bar:last-child { position: static; justify-content: flex-end; }
.ev-curate__count { font-weight: 600; }
.ev-tile--pick label { display: block; width: 100%; height: 100%; cursor: pointer; }
.ev-tile--pick input { position: absolute; top: .45rem; left: .45rem; z-index: 2; width: 1.35rem; height: 1.35rem; accent-color: var(--t-signal); }
.ev-tile--pick span { display: block; width: 100%; height: 100%; transition: opacity .15s; opacity: .55; }
.ev-tile--pick input:checked + span { opacity: 1; }
.ev-tile--pick:has(input:checked) { outline: 3px solid var(--t-signal); outline-offset: -3px; }
.ev-tile--pick:has(input:focus-visible) { outline: 3px solid var(--t-heading); }
.ev-chip { font: 600 .8rem/1 var(--t-font); padding: .35rem .7rem; margin-left: .25rem; border: 1px solid var(--t-border-strong); border-radius: 999px; background: var(--t-bg-raised); color: var(--t-text); cursor: pointer; vertical-align: middle; }
.ev-chip:hover { border-color: var(--t-signal); }
.ev-albums { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.ev-albums li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .9rem 1.1rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.ev-danger { margin-top: 3rem; background: #fbefec; }
.ev-badge { display: inline-block; font: 600 .78rem/1 var(--t-font); padding: .3rem .6rem; border-radius: 999px; background: #e9f3ea; color: #24502b; }
.ev-badge--off { background: var(--t-surface-2); color: var(--t-muted); }
.ev-section { margin: 0 0 3rem; }
.ev-form--two { grid-template-columns: 1fr auto; }
@media (max-width: 720px) { .ev-form--two { grid-template-columns: 1fr; } }

/* Pakete kaufen */
.ev-field select { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1px solid var(--t-border-strong); border-radius: 10px; background: var(--t-bg-raised); color: var(--t-text); width: 100%; }
.ev-field select:focus-visible { outline: 2px solid var(--t-signal); outline-offset: 1px; }
.ev-form--create { grid-template-columns: 2fr 1fr 1.3fr auto; }
@media (max-width: 900px) { .ev-form--create { grid-template-columns: 1fr 1fr; } .ev-form--create .ev-field:first-of-type { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ev-form--create { grid-template-columns: 1fr; } }
.ev-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ev-summary { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.ev-summary p { margin: .35rem 0; }
.ev-summary__name { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1.2rem; }
.ev-choice { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ev-choice legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.ev-option { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--t-border-strong); border-radius: 10px; background: var(--t-bg-raised); cursor: pointer; }
.ev-option:has(input:checked) { border-color: var(--t-signal); box-shadow: 0 0 0 1px var(--t-signal); }
.ev-option input[type="radio"] { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--t-signal); }
.ev-option span { display: grid; gap: .2rem; }
.ev-option small { color: var(--t-muted); }
.ev-total { font-size: 1.1rem; margin: 0; }
.ev-total small { color: var(--t-muted); }
.ev-offers { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; }
.ev-offer { display: grid; gap: .5rem; align-content: space-between; padding: 1rem 1.25rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.ev-offer__name { font-weight: 700; }
.ev-offer .btn { justify-self: start; }
.ev-invoices { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.ev-invoices li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }

/* Rechnung */
.ev-invoice { max-width: 46rem; padding: 2rem; background: #fff; color: #1d1a17; border: 1px solid var(--t-border); border-radius: var(--t-radius); }
.ev-invoice h1 { font-size: 1.6rem; margin: 2rem 0 .25rem; }
.ev-invoice__head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: .95rem; line-height: 1.5; }
.ev-invoice__head > div:last-child { text-align: right; }
@media (max-width: 560px) { .ev-invoice { padding: 1.25rem; } .ev-invoice__head { grid-template-columns: 1fr; } .ev-invoice__head > div:last-child { text-align: left; } }
.ev-invoice__lines { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.ev-invoice__lines th, .ev-invoice__lines td { padding: .6rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid #ddd5cc; }
.ev-invoice__lines th:last-child, .ev-invoice__lines td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.ev-invoice__lines small { color: #6b625a; }
.ev-invoice__lines tfoot td { border-bottom: 0; padding: .3rem 0; }
.ev-invoice__total td { font-weight: 700; border-top: 2px solid #1d1a17 !important; padding-top: .6rem !important; }
.ev-invoice .ev-muted { color: #6b625a; }
@media print {
    body > header, body > footer, .site-header, .site-footer, .ev-noprint, .skip-link { display: none !important; }
    .ev-page { padding: 0; }
    .ev-invoice { border: 0; padding: 0; max-width: none; }
}

/* Kündigung */
.ev-option input[type="date"] { font: inherit; padding: .4rem .6rem; border: 1px solid var(--t-border-strong); border-radius: 8px; background: var(--t-bg-raised); color: var(--t-text); margin-top: .35rem; max-width: 12rem; }
.ev-receipt { white-space: pre-wrap; font: .95rem/1.6 var(--t-mono, monospace); padding: 1.25rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); }

/* Name und Datum der Feier ändern (aufklappbar) */
.ev-edit { margin: .25rem 0 1rem; }
.ev-edit summary { cursor: pointer; color: var(--t-signal-strong); font-weight: 600; font-size: .95rem; width: fit-content; }
.ev-edit .ev-form { margin: 1rem 0 0; }
.ev-tile__bar--end { justify-content: flex-end; }

/* Locations: Formulare, Branding auf Gästeseiten, Auswahl beim festen QR-Code */
.ev-form--venue { max-width: 40rem; }
.ev-form--venue-event { grid-template-columns: repeat(3, 1fr); }
.ev-form--venue-event .ev-field--wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .ev-form--venue-event { grid-template-columns: 1fr; } }
.ev-field--color input[type="color"] { width: 4.5rem; height: 2.8rem; padding: .25rem; cursor: pointer; }
.ev-venue-logo { display: inline-block; padding: 1rem 1.25rem; background: var(--t-bg-raised); border: 1px solid var(--t-border); border-radius: var(--t-radius); border-bottom: 4px solid var(--venue-color); }
.ev-venue-logo img { display: block; max-width: 16rem; max-height: 6rem; }
.ev-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin: 0 0 1.25rem; }
.ev-brand img { display: block; max-width: 12rem; max-height: 4.5rem; }
.ev-brand strong { font: 600 1.2rem/1.2 var(--t-display); color: var(--t-heading); }
.ev-brand span { font-size: .85rem; color: var(--t-muted); }
.al-head .ev-brand { align-items: center; }
.ev-which { display: grid; gap: .75rem; margin: 1.5rem 0; }
.ev-which__option { display: grid; gap: .2rem; padding: 1rem 1.25rem; border: 1px solid var(--t-border-strong); border-radius: var(--t-radius); background: var(--t-bg-raised); color: var(--t-heading); text-decoration: none; }
.ev-which__option strong { font: 600 1.15rem/1.3 var(--t-display); }
.ev-which__option--main { border: 2px solid var(--t-signal); }
.ev-which__option:hover { border-color: var(--t-signal); }
.ev-card > .ev-badge { justify-self: start; }
.ev-when { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .45rem; }
.ev-when legend { padding: 0; margin-bottom: .35rem; font-weight: 600; }
.ev-clock { display: flex; align-items: center; gap: .35rem; font-weight: 400; }
.ev-clock select { width: auto; padding: .6rem .7rem; font-variant-numeric: tabular-nums; }
