/* ══════════════════════════════════════
   Wedding Pro — Frontend CSS
   ══════════════════════════════════════ */

:root {
    --wpro: #C8A97A;
    --wpro2: #E8D5B0;
    --wpro-pale: #F5EFE5;
    --wpro-ink: #2C2C2C;
    --wpro-muted: #666;
    --wpro-line: rgba(0,0,0,0.08);
}

/* ── BASICS ──────────────────────────── */
.wpro-alert { background:#fff3cd; border:1px solid #ffe082; border-radius:10px; padding:16px 20px; font-size:15px; color:#856404; text-align:center; }
.wpro-empty { text-align:center; padding:32px; color:#aaa; font-size:15px; }
.wpro-link  { color:var(--wpro); text-decoration:none; border-bottom:1px solid rgba(200,169,122,.35); padding-bottom:2px; }

/* ── COUNTDOWN ───────────────────────── */
.wpro-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 16px;
}
.wpro-cd-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wpro-cd-box {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wpro2);
    color: #fff;
    font-weight: 700;
    font-size: clamp(14px, 3.5vw, 32px);
    transition: transform .3s;
}
.wpro-countdown--circle .wpro-cd-box  { border-radius: 50%; }
.wpro-countdown--square .wpro-cd-box  { border-radius: 0; }
.wpro-countdown--rounded .wpro-cd-box { border-radius: 12px; }
.wpro-countdown--none .wpro-cd-box { background: transparent; color: var(--wpro2); font-size: clamp(24px, 5vw, 48px); font-weight: 800; aspect-ratio: auto; }
.wpro-cd-num { font-variant-numeric: tabular-nums; line-height: 1; }
.wpro-cd-lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wpro-muted); }
.wpro-cd-box.wpro-pulse { animation: wpro-pulse .2s ease; }
@keyframes wpro-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ── RSVP TOGGLE ─── */
.wpro-rsvp-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
.wpro-rsvp-btn {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ccc;
    border-radius: 100px;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}
.wpro-rsvp-btn:hover { border-color: var(--wpro-ink); color: var(--wpro-ink); }
.wpro-rsvp-btn--on { border-color: var(--wpro-ink) !important; background: var(--wpro-ink) !important; color: #fff !important; }

/* ── TAGESABLAUF ─────────────────────── */
.wpro-timeline {
    position: relative;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.wpro-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--wpro-line) 10%, var(--wpro-line) 90%, transparent);
    transform: translateX(-50%);
}

.wpro-tl-item {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}

.wpro-tl-item.wpro-tl-left {
    flex-direction: row;
    padding-right: calc(50% + 40px);
}

.wpro-tl-item.wpro-tl-right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.wpro-tl-card {
    background: #fff;
    border: 1px solid var(--wpro-line);
    border-radius: 14px;
    padding: 24px 28px;
    width: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
}
.wpro-tl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.wpro-tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--wpro2);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--wpro2);
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

/* Herz-Stil */
.wpro-tl-dot--heart {
    background: var(--wpro2);
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
}

/* Custom Icon */
.wpro-tl-dot--custom {
    background: var(--wpro2);
    border-radius: 50%;
    font-size: 11px;
}

/* Timeline Bild */
.wpro-tl-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 3px solid var(--wpro2);
    flex-shrink: 0;
}
.wpro-tl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Karte mit Bild zentriert */
.wpro-tl-card:has(.wpro-tl-img-wrap) {
    text-align: center;
}

.wpro-tl-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--wpro-pale);
    margin: 0 auto 10px;
}

.wpro-tl-time {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--wpro);
    margin-bottom: 6px;
}

.wpro-tl-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpro-ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.wpro-tl-desc {
    font-size: 14px;
    color: var(--wpro-muted);
    line-height: 1.65;
}

/* ── LOCATIONS ───────────────────────── */
.wpro-locations { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }

.wpro-loc-card {
    background: #fff;
    border: 1px solid var(--wpro-line);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.wpro-loc-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.08); }

.wpro-loc-map { overflow: hidden; }
.wpro-loc-map iframe { display: block; width: 100%; height: 100%; min-height: 200px; }

.wpro-loc-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    position: relative;
}

.wpro-loc-icon {
    font-size: 32px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--wpro-pale);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.wpro-loc-info { flex: 1; }
.wpro-loc-title { font-size: 20px; font-weight: 700; color: var(--wpro-ink); margin-bottom: 6px; line-height: 1.25; }
.wpro-loc-addr  { font-size: 13px; color: var(--wpro-muted); line-height: 1.6; margin-bottom: 6px; }
.wpro-loc-desc  { font-size: 14px; color: var(--wpro-muted); line-height: 1.65; margin-bottom: 8px; }

.wpro-loc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--wpro-line);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wpro-ink);
    text-decoration: none;
    transition: border-color .2s, color .2s;
    position: absolute;
    bottom: 24px;
    right: 24px;
}
.wpro-loc-btn:hover { border-color: var(--wpro); color: var(--wpro); }

/* ── RSVP FORMULAR ───────────────────── */
.wpro-rsvp, .wpro-rsvp *, .wpro-rsvp *::before, .wpro-rsvp *::after,
.wpro-countdown, .wpro-countdown *,
.wpro-timeline, .wpro-timeline *,
.wpro-locations, .wpro-locations *,
.wpro-photos, .wpro-photos * { box-sizing: border-box !important; }

.wpro-rsvp { width: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.wpro-rsvp-deadline {
    text-align: center;
    font-size: 15px;
    color: var(--wpro-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    padding: 0 16px;
}

/* Ja / Nein */
/* Personen */
.wpro-person-row {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 12px;
    background: #fff;
}

.wpro-person-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    align-items: start;
}

.wpro-person-num {
    display: none;
}

.wpro-person-name-wrap {
    position: relative;
}

.wpro-person-num-label {
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 11px;
    color: #999;
}

.wpro-remove-person {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: -20px;
    right: 0;
    line-height: 1;
}
.wpro-remove-person:hover { color: #c00; }

.wpro-person-header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    grid-column: 1 / -1;
    align-items: start;
}

/* Menü */
.wpro-person-menu { padding-top: 4px; }
.wpro-menu-group  { margin-bottom: 14px; }
.wpro-menu-label  {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    display: block;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.wpro-menu-opts { display: flex; gap: 8px; flex-wrap: wrap; }

.wpro-menu-pill {
    padding: 6px 18px;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    color: #555;
    user-select: none;
    background: transparent;
}
.wpro-menu-pill input { display: none; }
.wpro-menu-pill.wpro-active { border-color: var(--wpro-ink); background: var(--wpro-ink); color: #fff; }
.wpro-menu-pill:hover:not(.wpro-active) { border-color: #999; color: #333; }

/* Person hinzufügen */
.wpro-add-person-btn {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    background: transparent;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all .2s;
    letter-spacing: .05em;
}
.wpro-add-person-btn:hover { border-color: var(--wpro-ink); color: var(--wpro-ink); }

/* Felder */
.wpro-field-group  { margin-bottom: 16px; }
.wpro-field-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.wpro-field-label  {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    display: block;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.wpro-input, .wpro-select, .wpro-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: var(--wpro-ink);
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
    display: block;
    box-sizing: border-box;
}
.wpro-input:focus, .wpro-select:focus, .wpro-textarea:focus { border-color: #999; }
.wpro-textarea { resize: vertical; min-height: 90px; }

/* Hotel Select */
.wpro-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }

/* Musik */
.wpro-music-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.wpro-music-pill {
    padding: 6px 16px;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    color: #555;
    user-select: none;
}
.wpro-music-pill input { display: none; }
.wpro-music-pill:has(input:checked) { border-color: var(--wpro-ink); background: #f5f5f3; color: var(--wpro-ink); font-weight: 500; }
.wpro-music-pill:hover { border-color: #999; }

/* DSGVO */
.wpro-dsgvo {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    margin-bottom: 24px;
    line-height: 1.5;
}
.wpro-dsgvo input { width: 16px; height: 16px; accent-color: var(--wpro-ink); cursor: pointer; flex-shrink: 0; margin-top: 2px; }

/* Senden Button */
.wpro-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 48px;
    background: var(--wpro-ink);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: auto;
    transition: background .2s;
}
.wpro-submit-btn:hover { background: #444; }
.wpro-submit-btn span { font-size: 16px; }

.wpro-hint { text-align: center; margin-top: 10px; font-size: 14px; color: var(--wpro-muted); }
.wpro-err  { color: #c00; }

/* Section Label */
.wpro-section-label {
    font-size: 12px;
    color: #999;
    display: block;
    margin: 20px 0 8px;
    text-transform: none;
}

/* RSVP Done */
.wpro-rsvp-done { text-align: center; padding: 56px 24px; }
.wpro-done-icon { font-size: 52px; margin-bottom: 16px; display: block; }
.wpro-rsvp-done h3 { font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.wpro-rsvp-done p  { font-size: 16px; color: var(--wpro-muted); line-height: 1.7; }
.wpro-badge { display: inline-block; margin-top: 16px; padding: 6px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; }
.wpro-badge-yes { background: #E6F4EA; color: #22863a; }
.wpro-badge-no  { background: #FDECEA; color: #c0392b; }

/* ── QR ──────────────────────────────── */
.wpro-qr-wrap { text-align: center; }
.wpro-qr-wrap #wpro-qr { display: inline-block; padding: 14px; background: #fff; border: 1px solid var(--wpro-line); border-radius: 12px; }
.wpro-qr-cap { font-size: 13px; color: var(--wpro-muted); margin: 10px 0 5px; }

/* ── FOTOS ───────────────────────────── */
.wpro-photos { max-width: 800px; margin: 0 auto; }
.wpro-upload-box { border: 2px dashed rgba(0,0,0,.15); border-radius: 14px; padding: 40px 24px; text-align: center; background: #fafaf8; margin-bottom: 28px; transition: border-color .2s, background .2s; }
.wpro-upload-box.wpro-drag { border-color: var(--wpro); background: var(--wpro-pale); }
.wpro-upload-icon  { font-size: 40px; margin-bottom: 10px; display: block; }
.wpro-upload-title { font-size: 18px; font-weight: 500; margin-bottom: 5px; }
.wpro-upload-sub   { font-size: 14px; color: var(--wpro-muted); margin-bottom: 18px; }
.wpro-upload-btn   { display: inline-block; padding: 12px 28px; background: var(--wpro-ink); color: #fff; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; }
.wpro-upload-btn:hover { background: var(--wpro); }
.wpro-progress { height: 6px; background: #eee; border-radius: 3px; margin: 14px auto 0; max-width: 300px; overflow: hidden; }
.wpro-bar      { height: 100%; background: var(--wpro); border-radius: 3px; width: 0%; transition: width .3s; }
.wpro-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.wpro-photo-item { position: relative; border-radius: 10px; overflow: hidden; background: #f0f0ee; aspect-ratio: 1; }
.wpro-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpro-photo-item span { position: absolute; bottom: 0; left: 0; right: 0; padding: 5px 8px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 768px) {
    .wpro-timeline::before { left: 24px; }
    .wpro-tl-item.wpro-tl-left, .wpro-tl-item.wpro-tl-right { flex-direction: row; padding: 0 0 0 56px; }
    .wpro-tl-dot { left: 24px; }
    .wpro-loc-card { grid-template-columns: 1fr; }
    .wpro-loc-map iframe { height: 200px; }
    .wpro-loc-btn { position: static; margin-top: 12px; }
    .wpro-loc-body { flex-direction: column; }
    .wpro-field-row { grid-template-columns: 1fr; }
    .wpro-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .wpro-countdown { gap: 10px; }
}
