.edit-card{max-width:1120px;margin:25px auto;background:white;border:1px solid #d9e2d9;border-radius:24px;overflow:hidden;box-shadow:0 8px 30px #173b2619}.edit-head{background:var(--accent);padding:16px 24px;color:white;font-size:24px;font-weight:bold;display:flex;justify-content:space-between;align-items:center;gap:12px}.colors{display:flex;gap:6px}.swatch{width:25px;height:25px;border:2px solid #fff;border-radius:50%;cursor:pointer}.edit-grid{display:grid;grid-template-columns:53% 47%;gap:0}.photo-side{padding:16px;background:#f4f7f4}.large-photo{height:270px;background:#e6eee7;border-radius:14px;display:flex;justify-content:center;align-items:center;overflow:hidden}.large-photo img{height:100%;width:100%;object-fit:contain}.photo-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:9px}.photo-strip button{padding:0;border:2px solid transparent;background:white;border-radius:7px;cursor:pointer}.photo-strip button.active{border-color:var(--accent)}.photo-strip img{width:100%;height:62px;object-fit:cover;border-radius:5px;display:block}.fields-side{padding:16px 22px;overflow-wrap:anywhere}.fields-side input,.fields-side textarea{margin-bottom:7px}.fields-side label{margin:7px 0 3px;font-size:13px}.upload-label{display:block;margin-top:13px}.hint{color:#667b70;font-size:13px}.editor-actions{max-width:1120px;margin:15px auto;text-align:center}.editor-actions .submit{margin:8px}.consent{display:block;text-align:left}.consent input{display:inline;width:auto}.preview-only{display:none}.preview .editing-only{display:none!important}.preview .preview-only{display:inline-block}.preview #showDescription,.preview #showPrice,.preview #showEvent,.preview #showLocation,.preview #showContact{display:block;white-space:pre-wrap}.preview .fields-side{padding-top:30px}.preview #showTitle{font-size:24px;color:var(--accent)}.preview .edit-grid{min-height:350px}@media(max-width:720px){.edit-grid{grid-template-columns:1fr}.large-photo{height:220px}.edit-head{font-size:18px}.photo-strip img{height:48px}}
/* V31: großes Foto als Vollbild ansehen */
.large-photo img:not([hidden]){cursor:zoom-in}
.photo-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.91);display:flex;align-items:center;justify-content:center;padding:55px 18px 22px;box-sizing:border-box}
.photo-lightbox[hidden]{display:none}
.photo-lightbox img{max-width:96vw;max-height:calc(100vh - 80px);width:auto;height:auto;object-fit:contain}
.photo-lightbox .close-lightbox{position:absolute;top:12px;right:18px;border:0;background:#fff;color:#111;border-radius:50%;width:43px;height:43px;font-size:29px;cursor:pointer}

/* V32: optionale öffentliche Kontaktdaten */
.email-privacy{display:flex!important;align-items:center;gap:9px;font-weight:500;cursor:pointer;margin:3px 0 12px!important}
.email-privacy input{width:18px!important;height:18px;margin:0!important;flex:0 0 auto}
.preview #showPhone,.preview #showWebsite,.preview #showEmail{display:block;white-space:pre-wrap;margin:12px 0}
.preview #showPhone[hidden],.preview #showWebsite[hidden],.preview #showEmail[hidden]{display:none}
.preview #showWebsite a{overflow-wrap:anywhere}

/* V33: Lange Beschreibung bleibt in einer ruhigen, scrollbaren Fläche.
   Kontaktdaten stehen unabhängig darunter und bleiben erreichbar. */
.edit-card.preview .fields-side{display:flex;flex-direction:column;min-width:0;min-height:0;padding:20px 24px;}
.edit-card.preview #showTitle{display:block;margin:0 0 10px;line-height:1.25;}
.edit-card.preview #showDescription{display:block;white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;overscroll-behavior:contain;min-height:80px;height:168px;max-height:168px;padding:12px 14px;margin:0 0 12px;border:1px solid #dfe7df;border-radius:10px;background:#f8faf8;line-height:1.5;scrollbar-width:thin;}
.edit-card.preview #showDescription:empty{display:none;}
.edit-card.preview #showLocation,.edit-card.preview #showContact,.edit-card.preview #showPhone,.edit-card.preview #showWebsite,.edit-card.preview #showEmail{margin:5px 0;line-height:1.45;}
.edit-card.preview #showContact{font-weight:600;}
.edit-card.preview .edit-grid{align-items:stretch;}
@media(max-width:720px){.edit-card.preview .fields-side{padding:18px}.edit-card.preview #showDescription{height:155px;max-height:155px}}

/* V35: acht einzelne Bildplätze, ohne Änderung der Vollbildansicht */
.photo-slot{position:relative;min-width:0;aspect-ratio:1.9;background:#e3eae4;border-radius:7px;overflow:hidden;border:2px solid transparent}
.photo-slot.active{border-color:var(--accent)}
.photo-strip .photo-choose{display:block;width:100%;height:100%;border:0;border-radius:0}
.photo-strip .photo-choose img{height:100%;width:100%;object-fit:cover;border-radius:0}
.photo-strip .photo-delete,.photo-strip .photo-replace{position:absolute;z-index:2;width:25px;height:25px;border:0;border-radius:50%;background:#fff;color:#222;font-size:21px;line-height:1;box-shadow:0 1px 5px #0005;padding:0}
.photo-strip .photo-delete{right:3px;top:3px;background:#b43737;color:white}
.photo-strip .photo-replace{right:3px;bottom:3px;font-size:18px}
.photo-strip .photo-add{width:100%;height:100%;border:1px dashed #a8b9ab;background:#e8efe9;font-size:26px;color:#286344}
.edit-card.preview .photo-slot:not(:has(img)){display:none}
.edit-card.preview .photo-strip .photo-delete,.edit-card.preview .photo-strip .photo-replace{display:none!important}
