/* Editor der Online-Einladung (Paar). Mobil: Tabs Bearbeiten/Vorschau. Desktop: Formular + Handy-Vorschau. */
.ied { --ink: #141414; --text: #2b2c2e; --muted: #6e6f72; --line: #e3e1dc; --bg: #f2f0eb; --surface: #fff; --accent: #9c8a6e; --ok: #3f7a52;
	margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.ied *, .ied *::before, .ied *::after { box-sizing: border-box; }
.ied :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ied-loading { padding: 80px 24px; text-align: center; color: var(--muted); }

.ied-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(250, 249, 246, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.ied-top__title { min-width: 0; }
.ied-top__title small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ied-top__title b { display: block; overflow: hidden; font: 500 1.3rem/1.2 "Cormorant Garamond", Georgia, serif; white-space: nowrap; text-overflow: ellipsis; }
.ied-top__end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ied-pub { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 .78rem/1 inherit; font-family: inherit; color: var(--text); cursor: pointer; }
.ied-pub.is-live { border-color: var(--ok); color: var(--ok); }
.ied-pill { padding: 6px 12px; border-radius: 999px; background: var(--line); font-size: .76rem; font-weight: 600; }

.ied-switch { position: relative; flex-shrink: 0; width: 34px; height: 20px; border-radius: 999px; background: #cfccc5; transition: background .2s; }
.ied-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.ied-switch.is-on { background: var(--ok); }
.ied-switch.is-on::after { transform: translateX(14px); }

.ied-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 600 .82rem/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.ied-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.ied-btn--sm { min-height: 34px; padding: 0 12px; font-size: .74rem; }
.ied-btn[disabled] { opacity: .5; }
.ied-x { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ied-x:hover { color: #a03a3a; border-color: #a03a3a; }

.ied-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 16px 0; padding: 4px; border-radius: 999px; background: #e7e4dd; }
.ied-tabs button { min-height: 38px; border: 0; border-radius: 999px; background: none; font: 600 .82rem/1 inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.ied-tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.ied-grid { padding: 12px 16px 110px; }
.ied-prev { display: none; }
.ied-app.is-prev .ied-form { display: none; }
.ied-app.is-prev .ied-prev { display: block; }
.ied-phone { overflow: hidden; height: calc(100vh - 210px); min-height: 480px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.ied-phone iframe { display: block; width: 100%; height: 100%; border: 0; }

.ied-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fbf6ea; border: 1px solid #eadfc4; font-size: .86rem; }
.ied-sec { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ied-sec summary { display: flex; flex-direction: column; gap: 2px; padding: 16px 48px 16px 18px; list-style: none; cursor: pointer; position: relative; }
.ied-sec summary::-webkit-details-marker { display: none; }
.ied-sec summary::after { content: ""; position: absolute; right: 20px; top: 24px; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.ied-sec[open] summary::after { transform: rotate(-135deg); top: 28px; }
.ied-sec summary b { font-size: 1rem; }
.ied-sec summary small { color: var(--muted); font-size: .8rem; }
.ied-sec__body { padding: 2px 18px 18px; }

.ied-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ied-field { display: block; margin-bottom: 12px; min-width: 0; }
.ied-field > span, .ied-label { display: block; margin: 0 0 6px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.ied-label small { font-weight: 400; }
.ied-field small, .ied-hint { display: block; margin-top: 6px; font-size: .76rem; color: var(--muted); }
.ied-hint { margin: 12px 0 0; }
.ied input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .ied select, .ied textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa; color: var(--ink); font: 400 16px/1.4 inherit; font-family: inherit; }
.ied textarea { resize: vertical; }
.ied input:focus, .ied select:focus, .ied textarea:focus { outline: none; border-color: var(--accent); background: #fff; }

.ied-tpls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.ied-tpl { position: relative; display: block; padding: 10px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.ied-tpl input { position: absolute; opacity: 0; }
.ied-tpl:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ied-tpl__sw { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; height: 54px; margin-bottom: 8px; padding: 8px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .06); }
.ied-tpl__sw i { width: 14px; height: 14px; border-radius: 50%; }
.ied-tpl b { display: block; font-size: .88rem; }
.ied-tpl small { display: block; font-size: .72rem; line-height: 1.35; color: var(--muted); }

.ied-prow { display: grid; grid-template-columns: 92px 1fr 34px; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ied-prow [name="p_place"], .ied-prow [name="p_address"] { grid-column: 1 / 3; }
.ied-prow .ied-x { grid-column: 3; grid-row: 1; }

.ied-media { margin-bottom: 14px; }
.ied-media--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ied-thumb { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bg); }
.ied-thumb.is-big { width: 160px; aspect-ratio: 4 / 5; }
.ied-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ied-thumb .ied-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; }
.ied-up { display: flex; align-items: center; justify-content: center; min-height: 80px; padding: 10px; border: 1.5px dashed #cfccc5; border-radius: 12px; color: var(--muted); font-size: .82rem; font-weight: 600; text-align: center; cursor: pointer; }
.ied-media--grid .ied-up { aspect-ratio: 1; min-height: 0; }
.ied-up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ied-up:hover { border-color: var(--accent); color: var(--ink); }
.ied-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; }
.ied-file span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.ied-check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; cursor: pointer; }
.ied-check input { position: absolute; opacity: 0; }
.ied-check input:focus-visible + .ied-switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.ied-linkbox { margin-bottom: 14px; padding: 12px; border-radius: 14px; background: var(--bg); }
.ied-linkbox > span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.ied-linkbox code { display: block; margin: 4px 0 8px; font-size: .78rem; word-break: break-all; }
.ied-linkbox div { display: flex; gap: 6px; }
.ied-guest { display: grid; grid-template-columns: 1fr 64px 34px; gap: 6px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.ied-guest { grid-template-columns: 1fr 64px 34px; }
.ied-guest .ied-x { grid-column: 3; grid-row: 1; }
.ied-guest .ied-seen, .ied-guest .ied-btn { grid-row: 2; }
.ied-guest > :nth-child(3) { grid-column: 1 / 4; justify-self: start; }
.ied-guest .ied-acts { grid-column: 1 / 4; display: flex; flex-wrap: wrap; gap: 6px; }

.ied-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.ied-kpis div { padding: 10px; border-radius: 12px; background: var(--bg); font-size: .74rem; color: var(--muted); text-align: center; }
.ied-kpis b { display: block; font: 500 1.6rem/1.1 "Cormorant Garamond", Georgia, serif; color: var(--ink); }
.ied-ans { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ied-ans b { font-size: .92rem; }
.ied-ans small { display: block; font-size: .76rem; color: var(--ok); }
.ied-ans.is-no small { color: var(--muted); }
.ied-ans p { margin: 4px 0 0; font-size: .84rem; }
.ied-ans + .ied-btn { margin-top: 12px; }

.ied-help { margin: 18px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.ied-help a { color: var(--ink); }

.ied-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.ied-bar span { font-size: .8rem; color: var(--muted); }
.ied-bar.is-dirty span { color: #a5701d; font-weight: 600; }
.ied-bar .ied-btn { min-width: 140px; }
.ied-toast { position: fixed; left: 50%; bottom: 84px; z-index: 20; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .84rem; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.ied-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ied-toast.is-bad { background: #a03a3a; }

@media (min-width: 980px) {
	.ied-tabs { display: none; }
	.ied-grid { display: grid; grid-template-columns: minmax(0, 560px) 400px; justify-content: center; gap: 40px; padding: 24px 24px 110px; }
	.ied-app.is-prev .ied-form, .ied-prev { display: block; }
	.ied-prev { position: sticky; top: 86px; align-self: start; }
	.ied-phone { height: min(800px, calc(100vh - 200px)); border: 10px solid #1c1d1f; border-radius: 44px; box-shadow: 0 30px 60px rgba(0, 0, 0, .15); }
	.ied-tpls { grid-template-columns: repeat(3, 1fr); }
	.ied-bar { justify-content: center; gap: 24px; }
}
.ied-note--trial, .ied-note--locked, .ied-note--full { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ied-note--locked { background: #fbeeee; border-color: #ecc9c9; }
.ied-note--full { background: #eef6f0; border-color: #cfe3d5; }
.ied-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ied-color { position: relative; }
.ied .ied-color input[type="color"] { width: 46px; min-height: 46px; height: 46px; padding: 3px; border-radius: 50%; cursor: pointer; }
.ied-color .ied-x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; font-size: .8rem; }
.ied-looks { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; }
.ied-look { position: relative; display: grid; gap: 6px; font-size: .74rem; text-align: center; cursor: pointer; }
.ied-look input { position: absolute; opacity: 0; }
.ied-look__img { display: block; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 12px; background: var(--bg) center / cover no-repeat; }
.ied-look input:checked + .ied-look__img { outline: 2px solid var(--ink); outline-offset: 2px; }
.ied-look input:focus-visible + .ied-look__img { outline: 2px solid var(--accent); outline-offset: 2px; }
.ied-qr { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ied-qr__img { flex: none; width: 108px; height: 108px; }
.ied-qr__img svg { display: block; width: 100%; height: 100%; }
.ied-seen { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 6px; border-radius: 99px; background: var(--bg); font-size: .74rem; color: var(--muted); white-space: nowrap; }
.ied-seen.is-yes { background: #e6f2ea; color: var(--ok); font-weight: 600; }
.ied-seen.is-no { background: #fbeeee; color: #8a2b2b; }
.ied-seen.is-seen { background: #fff6e0; color: #8a6a1f; }
.ied-kpis.is-5 { grid-template-columns: repeat(5, 1fr); }
.ied-kpis.is-5 b { font-size: 1.35rem; }
.ied-meter { height: 8px; border-radius: 9px; background: var(--bg); overflow: hidden; }
.ied-meter i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .6s; }
.ied-remind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: .82rem; }
.ied-remind b { width: 100%; }
.ied-live { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); animation: ied-pulse 2s infinite; }
@keyframes ied-pulse { 50% { opacity: .3; } }
@media (max-width: 420px) { .ied-kpis.is-5 { grid-template-columns: repeat(3, 1fr); } }

/* Wiederholbare Zeilen (Fragen, Unterkünfte, FAQ) */
.ied-list { margin-bottom: 14px; }
.ied-lrow { position: relative; display: grid; gap: 6px; margin-bottom: 10px; padding: 0 40px 10px 0; border-bottom: 1px dashed var(--line); }
.ied-lrow .ied-x { position: absolute; top: 0; right: 0; }
.ied-lrow textarea { resize: vertical; }
@media (min-width: 560px) {
	.ied-lrow:has([name="l_type"]) { grid-template-columns: 1fr 130px; }
}

/* Sitzplan */
.ied-seatbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ied-room { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 14px; background: #fdfcfa repeating-linear-gradient(0deg, transparent 0 23px, rgba(0, 0, 0, .04) 23px 24px), #fdfcfa; overflow: hidden; touch-action: none; user-select: none; }
.ied-room__empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: var(--muted, #777); font-size: .85rem; }
.ied-si { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 6px 8px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; font-size: .68rem; line-height: 1.2; text-align: center; cursor: grab; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.ied-si b { font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ied-si small { color: var(--muted, #777); }
.ied-si:active { cursor: grabbing; }
.ied-si.is-sel, .ied-si:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ied-si--round { width: 64px; height: 64px; border-radius: 50%; }
.ied-si--rect { min-width: 96px; }
.ied-si--head { min-width: 110px; background: #f3eee6; }
.ied-si--door, .ied-si--dj, .ied-si--bar { background: var(--ink); color: #fff; border-color: var(--ink); }
.ied-si--door small, .ied-si--dj small, .ied-si--bar small { color: #fff; }
.ied-si--dance { min-width: 100px; min-height: 64px; border-style: dashed; background: rgba(255, 255, 255, .6); }
.ied-seatpanel { margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ied-seatg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ied-chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: .8rem; cursor: pointer; }
.ied-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ied-chip.is-else { opacity: .55; }

/* Gedruckte Karten */
.ied-print { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ied-print b { display: block; }
.ied-print p { margin: 4px 0 6px; font-size: .85rem; color: var(--muted, #777); }
.ied-print a { font-size: .85rem; color: var(--accent); }
.ied-print__btns { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 560px) { .ied-print { grid-template-columns: 1fr auto; align-items: center; } .ied-print__btns { flex-direction: column; } }

.ied-plans { display: flex; flex-wrap: wrap; gap: 6px; }
.ied-print select { display: block; margin: 0 0 6px; min-height: 40px; font-size: .85rem; }

/* Ausprobieren ohne Anmeldung */
.is-sandbox [data-sec="guests"], .is-sandbox [data-sec="answers"], .is-sandbox [data-sec="print"], .is-sandbox [data-sec="privacy"], .is-sandbox [data-sec="seating"], .is-sandbox [data-sec="musik"] .ied-linkbox, .is-sandbox .ied-tabs ~ .ied-grid .ied-note--trial { display: none; }
.ied-note--try { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff); }
.ied-bar.is-try { justify-content: space-between; }
.ied-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 0; background: rgba(20, 18, 16, .45); animation: ied-fade .25s ease; }
.ied-modal__card { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -20px 50px rgba(0, 0, 0, .2); animation: ied-up .35s cubic-bezier(.2, .8, .2, 1); }
.ied-modal__card h2 { margin: 0 0 6px; font: 400 1.7rem/1.2 var(--head, Georgia, serif); }
.ied-modal__x { position: absolute; top: 14px; right: 14px; }
.ied-consent { display: flex; gap: 10px; margin: 6px 0 14px; font-size: .82rem; line-height: 1.45; }
.ied-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.ied-hp { position: absolute; left: -9999px; }
.ied-err { margin: 0 0 10px; color: #b3261e; font-size: .85rem; }
.ied-btn--block { width: 100%; }
@keyframes ied-fade { from { opacity: 0; } }
@keyframes ied-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .ied-modal { place-items: center; padding: 16px; } .ied-modal__card { border-radius: 22px; padding: 30px 28px; } }
@media (prefers-reduced-motion: reduce) { .ied-modal, .ied-modal__card { animation: none; } }
.ied-note--try { margin: 14px max(16px, calc((100% - 1040px) / 2)); }
.ied-modal__card .ied-hint { margin: 0 0 16px; }
.ied-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Auswahl: hell & premium statt Schwarz (immer lesbar) */
.ied-chip.is-on { background: #fff; color: #141414; -webkit-text-fill-color: #141414; border-color: #9c8a6e; box-shadow: inset 0 0 0 1px #9c8a6e, 0 8px 18px -12px rgba(20, 20, 20, .45); font-weight: 600; }

/* Einfacher: optionale Felder eingeklappt, Extras auf Wunsch */
.ied-more { margin: 4px 0 8px; }
.ied-more > summary { cursor: pointer; list-style: none; padding: 10px 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.ied-more > summary::-webkit-details-marker { display: none; }
.ied-extras { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin: 6px 0 12px; padding: 14px 16px; border: 1px dashed var(--line, #ddd); border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.ied-extras span { flex: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ied-maplink { align-self: center; font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Handy: stabiles Formular, nichts ragt über den Rand, Vorschau immer erreichbar, Leiste weicht der Tastatur */
.ied-app { overflow-x: clip; }
.ied-prow .ied-maplink { grid-column: 1 / 3; justify-self: start; white-space: normal; margin-top: -2px; }
.ied select, .ied-print select { font-size: 16px; }
@media (max-width: 979px) {
	.ied-top { position: relative; flex-wrap: wrap; }
	.ied-top__title b { white-space: normal; }
	.ied-tabs { position: sticky; top: 8px; z-index: 9; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }
	.ied-tabs button[data-tab="prev"]::before { content: "●"; margin-right: 6px; color: #3c8a5a; font-size: .6rem; vertical-align: 2px; }
	.ied-bar { transition: transform .25s ease; }
	.ied-app.is-typing .ied-bar, .ied-app.is-typing .ied-toast { transform: translateY(110%); }
	.ied-app.is-prev .ied-bar { transform: none; }
}
