
:root { color-scheme: light; --vvp-radius: 18px; --vvp-shadow: 0 12px 36px rgba(40,32,24,.08); }
[data-theme="pure-elegance"] {
  --vvp-bg: #F8F5EF; --vvp-surface: #FFFEFC; --vvp-surface-alt: #F0EAE0;
  --vvp-text: #302B27; --vvp-muted: #81766B; --vvp-primary: #A88450;
  --vvp-primary-strong: #806238; --vvp-accent: #D9C6A3; --vvp-border: #E6DED1;
  --vvp-font-display: Georgia, 'Times New Roman', serif; --vvp-font-body: Arial, sans-serif;
}
[data-theme="botanical"] {
  --vvp-bg: #F4F5EF; --vvp-surface: #FEFFF9; --vvp-surface-alt: #E8EDE2;
  --vvp-text: #30382F; --vvp-muted: #758071; --vvp-primary: #788B70;
  --vvp-primary-strong: #53684D; --vvp-accent: #B8C6A8; --vvp-border: #DCE3D5;
  --vvp-font-display: Georgia, serif; --vvp-font-body: Arial, sans-serif;
}
[data-theme="romance"] {
  --vvp-bg: #FBF3F3; --vvp-surface: #FFFCFC; --vvp-surface-alt: #F5E5E7;
  --vvp-text: #49363B; --vvp-muted: #92777F; --vvp-primary: #C58F9D;
  --vvp-primary-strong: #985F70; --vvp-accent: #E8C6CE; --vvp-border: #EEDDE1;
  --vvp-font-display: 'Palatino Linotype', Palatino, Georgia, serif; --vvp-font-body: Arial, sans-serif;
}
[data-theme="modern-love"] {
  --vvp-bg: #F3F2EF; --vvp-surface: #FFFFFF; --vvp-surface-alt: #E9E7E2;
  --vvp-text: #202020; --vvp-muted: #77736D; --vvp-primary: #383632;
  --vvp-primary-strong: #171717; --vvp-accent: #B8B1A5; --vvp-border: #DCD9D2;
  --vvp-font-display: Arial, Helvetica, sans-serif; --vvp-font-body: Arial, Helvetica, sans-serif;
}
[data-theme="mediterranean"] {
  --vvp-bg: #F8F1E8; --vvp-surface: #FFFCF7; --vvp-surface-alt: #EFE2D2;
  --vvp-text: #49382F; --vvp-muted: #88766A; --vvp-primary: #B96F51;
  --vvp-primary-strong: #8F4D36; --vvp-accent: #6E9BA2; --vvp-border: #E9D8C6;
  --vvp-font-display: Georgia, serif; --vvp-font-body: Arial, sans-serif;
}
[data-theme="timeless"] {
  --vvp-bg: #F5F1EA; --vvp-surface: #FFFDF9; --vvp-surface-alt: #EDE6DC;
  --vvp-text: #39332D; --vvp-muted: #81776C; --vvp-primary: #95816D;
  --vvp-primary-strong: #6F5D4C; --vvp-accent: #C8B9A6; --vvp-border: #E4DACE;
  --vvp-font-display: 'Palatino Linotype', Palatino, Georgia, serif; --vvp-font-body: Arial, sans-serif;
}
* { box-sizing: border-box; }

.vvp-shell { width:min(1120px, calc(100% - 32px)); margin:auto; }
.vvp-section { padding: clamp(42px,7vw,88px) 0; }
.vvp-eyebrow { color:var(--vvp-primary-strong); text-transform:uppercase; letter-spacing:.16em; font-size:.72rem; font-weight:700; }
.vvp-heading { font: clamp(2rem,5vw,3.8rem)/1.08 var(--vvp-font-display); margin:.35em 0; }
.vvp-card { background:var(--vvp-surface); border:1px solid var(--vvp-border); border-radius:var(--vvp-radius); padding:24px; box-shadow:var(--vvp-shadow); }
.vvp-button { display:inline-flex; align-items:center; justify-content:center; padding:12px 20px; border-radius:999px; background:var(--vvp-primary); color:white; text-decoration:none; border:0; font-weight:700; }
.vvp-button:hover { background:var(--vvp-primary-strong); }
.vvp-grid { display:grid; grid-template-columns:repeat( auto-fit, minmax(min(100%,240px),1fr)); gap:18px; }
.vvp-muted { color:var(--vvp-muted); }
.vvp-icon { width:28px; height:28px; color:var(--vvp-primary-strong); flex:none; }
.vvp-icon svg { width:100%; height:100%; display:block; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.vvp-timeline { display:grid; gap:22px; position:relative; }
.vvp-timeline-item { display:grid; grid-template-columns:90px 28px 1fr; gap:16px; align-items:start; position:relative; }
.vvp-time { font-weight:700; color:var(--vvp-primary-strong); font-variant-numeric:tabular-nums; padding-top:18px; }
.vvp-node { width:14px; height:14px; margin:23px auto 0; border-radius:50%; background:var(--vvp-primary); outline:5px solid var(--vvp-bg); z-index:1; }
.vvp-timeline.vertical-elegant:before,.vvp-timeline.botanical:before { content:""; position:absolute; left:119px; top:8px; bottom:8px; width:1px; background:var(--vvp-accent); }
.vvp-timeline.botanical .vvp-node { border-radius:3px 12px 3px 12px; transform:rotate(45deg); }
.vvp-timeline.editorial .vvp-timeline-item { grid-template-columns:120px 1fr; border-top:1px solid var(--vvp-border); padding-top:18px; }
.vvp-timeline.editorial .vvp-node { display:none; }
.vvp-timeline.editorial .vvp-time { font:2rem var(--vvp-font-display); padding:0; }
.vvp-timeline.cards { grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
.vvp-timeline.cards .vvp-timeline-item { display:block; background:var(--vvp-surface); border:1px solid var(--vvp-border); border-radius:var(--vvp-radius); padding:22px; }
.vvp-timeline.cards .vvp-time { padding:0 0 10px; }
.vvp-timeline.cards .vvp-node { display:none; }
.vvp-timeline.illustrated .vvp-timeline-item { grid-template-columns:56px 1fr; }
.vvp-timeline.illustrated .vvp-time { grid-column:2; grid-row:1; padding:0; }
.vvp-timeline.illustrated .vvp-node { grid-column:1; grid-row:1 / span 2; width:48px; height:48px; margin:0; border-radius:16px; outline:0; }
.vvp-timeline.horizontal-modern { display:flex; overflow-x:auto; gap:0; padding:18px 0 26px; }
.vvp-timeline.horizontal-modern .vvp-timeline-item { display:block; min-width:210px; flex:1; border-top:2px solid var(--vvp-accent); padding:0 16px; }
.vvp-timeline.horizontal-modern .vvp-node { margin:-8px 0 18px; }
.vvp-timeline.horizontal-modern .vvp-time { padding:0 0 8px; }
.vvp-module-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.vvp-module { background:var(--vvp-surface); border:1px solid var(--vvp-border); border-radius:16px; padding:20px; }
.vvp-module h3 { font:1.25rem var(--vvp-font-display); margin:.3em 0; }
@media (max-width:640px) {
 .vvp-timeline.vertical-elegant:before,.vvp-timeline.botanical:before { left:12px; }
 .vvp-timeline-item { grid-template-columns:1fr; gap:6px; padding-left:34px; }
 .vvp-time { padding:0; }
 .vvp-node { position:absolute; left:5px; top:4px; margin:0; }
 .vvp-timeline.editorial .vvp-timeline-item { grid-template-columns:1fr; }
 .vvp-timeline.horizontal-modern { display:grid; overflow:visible; gap:18px; }
 .vvp-timeline.horizontal-modern .vvp-timeline-item { min-width:0; border-top:0; border-left:2px solid var(--vvp-accent); padding:0 0 0 18px; }
 .vvp-timeline.horizontal-modern .vvp-node { margin:0 0 10px -25px; }
}

/* Universelle Modul-Layouts: per data-layout am Modul-Container auswählbar */
[data-layout="centered"] { text-align:center; margin-inline:auto; max-width:760px; }
[data-layout="split"] { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:clamp(20px,4vw,48px); align-items:center; }
[data-layout="cards"] { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:18px; }
[data-layout="editorial"] { border-top:1px solid var(--vvp-border); border-bottom:1px solid var(--vvp-border); padding-block:28px; }
[data-layout="full-width"] { width:100%; border-radius:0; }
[data-layout="compact"] { padding:16px; border-radius:12px; }
[data-layout="image-led"] { overflow:hidden; background:var(--vvp-surface); border-radius:var(--vvp-radius); }
[data-layout="image-led"] img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
[data-layout="accordion"] details { border-bottom:1px solid var(--vvp-border); padding:16px 0; }
[data-layout="timeline"] { display:grid; gap:18px; }
[data-layout="masonry"] { columns:3 220px; column-gap:16px; }
[data-layout="masonry"] > * { break-inside:avoid; margin:0 0 16px; }
[data-layout="form"] { display:grid; gap:14px; max-width:680px; }
@media (max-width:680px) { [data-layout="split"] { grid-template-columns:1fr; } [data-layout="masonry"] { columns:2 140px; } }

/* Integration in die bestehende Plattform: Styles bleiben auf den Baukasten begrenzt. */
.vvp-preview { background:var(--vvp-bg); color:var(--vvp-text); font-family:var(--vvp-font-body); padding:28px; border-radius:18px; }
.vvp-preview h2,.vvp-preview h3,.vvp-preview h4 { font-family:var(--vvp-font-display); color:var(--vvp-text); }
.vvp-preview .vvp-section { padding:26px 0; }
.vvp-preview .vvp-card { color:var(--vvp-text); text-align:left; }
.vvp-preview .vvp-icon { width:26px; height:26px; }
.vvp-preview .vvp-timeline-item .vvp-node { display:flex; align-items:center; justify-content:center; width:38px; height:38px; margin:10px auto 0; background:var(--vvp-surface); border:1px solid var(--vvp-accent); outline:4px solid var(--vvp-bg); }
.vvp-preview .vvp-timeline-item .vvp-node .vvp-icon { width:22px; height:22px; }
.module-picker { margin:22px 0; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.module-picker h3 { margin:0 0 5px; }
.module-picker-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,190px); gap:12px; align-items:center; padding:9px 0; border-top:1px solid #eee; }
.module-picker-row .checkline { margin:0; }
.module-layout-label { font-size:12px; color:#777; }
.module-layout-label select { width:100%; padding:7px; }
@media(max-width:600px) { .module-picker-row { grid-template-columns:1fr; gap:4px; } .vvp-preview { padding:16px; } }

/* Design Engine v3 – hochwertige Editor-Auswahl und persönliche Stilregler */
:root{--vvp-editor-ink:#342d28;--vvp-editor-muted:#81766e;--vvp-editor-line:#e8dfd6;--vvp-editor-paper:#fbf8f4}
.editor-layout{max-width:1540px;grid-template-columns:minmax(360px,560px) minmax(420px,1fr);gap:clamp(22px,3vw,48px);align-items:start}
.editor-panel>form{border-radius:20px;box-shadow:0 18px 55px rgba(49,37,28,.06);gap:20px}
.vvp-editor-section{padding:10px 0 18px;border-bottom:1px solid var(--vvp-editor-line)}
.vvp-editor-section h2{font:30px/1.15 Georgia,serif;font-weight:400;margin:7px 0}
.vvp-editor-section p,.vvp-customizer small{color:var(--vvp-editor-muted);font-size:13px}
.vvp-section-kicker{display:block;color:#9b7866;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:700}
.vvp-native-label{margin-top:16px}
.vvp-native-select,.vvp-customizer select{max-width:100%}
.vvp-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.vvp-choice,.vvp-layout-choice{position:relative;display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:left;padding:9px;border:1px solid #e8dfd6;border-radius:13px;background:#fff;color:#403832;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.vvp-choice:hover,.vvp-layout-choice:hover{border-color:#b89a7e;transform:translateY(-1px)}
.vvp-choice.is-active,.vvp-layout-choice.is-active{border-color:#9c785e;box-shadow:0 0 0 2px rgba(156,120,94,.14);background:#fffdfa}
.vvp-choice-name{font-size:12px;font-weight:600;padding:0 3px 3px}
.vvp-choice-check{position:absolute;right:10px;bottom:10px;width:19px;height:19px;border-radius:50%;background:#80664f;color:white;display:none;text-align:center;line-height:19px;font-size:12px}
.vvp-choice.is-active .vvp-choice-check{display:block}
.mini-art{height:82px;display:block;position:relative;overflow:hidden;border-radius:8px;background:#f3eee7;border:1px solid rgba(80,60,45,.08)}
.mini-art i,.mini-art b,.mini-art em,.mini-art small{position:absolute;display:block;font-style:normal}
.mini-art i{left:16%;right:16%;top:18%;height:2px;background:#b9a58f}
.mini-art b{left:25%;right:25%;top:37%;height:13px;background:#d9c8b7;border-radius:2px}
.mini-art em{left:32%;right:32%;top:62%;height:3px;background:#a98c70}
.mini-art small{left:42%;right:42%;top:76%;height:2px;background:#d2c3b4}
.design-botanical .mini-art,.design-botanical{background:#edf1e9}.design-botanical i,.design-botanical em{background:#71836b}.design-romance .mini-art,.design-romance{background:#f8ecee}.design-romance b{background:#e5c4cc}.design-modern-love .mini-art,.design-modern-love{background:#ececea}.design-modern-love i,.design-modern-love em{background:#343434}.design-mediterranean .mini-art,.design-mediterranean{background:#f5e8d9}.design-mediterranean b{background:#d6a17f}.design-timeless .mini-art,.design-timeless{background:#eee9df}.design-pure-elegance .mini-art{background:#f4eee4}
.timeline-vertical-elegant .mini-art:after,.timeline-botanical .mini-art:after{content:"";position:absolute;left:28px;top:15px;bottom:12px;width:1px;background:#b9a58f}.timeline-horizontal-modern .mini-art:after{content:"";position:absolute;left:10px;right:10px;top:39px;height:1px;background:#a98c70}.timeline-cards .mini-art{background:#f8f6f1}.timeline-editorial .mini-art i{top:18px;left:12%;right:55%;height:20px}.timeline-illustrated .mini-art b{border-radius:50%;left:18%;right:auto;width:22px;height:22px;top:30px}
.vvp-native-select{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.vvp-layout-toggle{border:1px solid #e3d8ce;background:#faf7f3;color:#705b4a;border-radius:8px;padding:7px 10px;font-size:11px;cursor:pointer;margin:4px 0 10px}
.vvp-layout-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 12px}
.vvp-layout-choice{padding:6px;gap:5px;border-radius:9px}.vvp-layout-choice .mini-art{height:42px}.vvp-layout-choice span:last-child{font-size:10px;line-height:1.2}
.vvp-customizer{border:1px solid var(--vvp-editor-line);border-radius:14px;padding:14px;background:#fdfbf8}
.vvp-customizer summary{cursor:pointer;list-style:none;display:grid;gap:5px}.vvp-customizer summary::-webkit-details-marker{display:none}.vvp-customizer summary:after{content:"＋";float:right;position:absolute;right:28px;color:#987b63}.vvp-customizer[open] summary:after{content:"−"}
.vvp-customizer summary strong{font:21px Georgia,serif;font-weight:400}.vvp-custom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.vvp-custom-grid label{display:grid;gap:6px;font-size:12px}.vvp-custom-grid input[type=color]{height:42px;padding:4px;border-radius:8px;cursor:pointer}.vvp-custom-grid select{font-size:12px;padding:9px}
.module-picker{border-radius:14px}.module-picker-row{padding:12px 0}
.preview-panel{border-radius:20px;padding:18px;background:#eee7df;box-shadow:0 16px 48px rgba(50,38,28,.08)}
.preview-site{border-radius:var(--vvp-custom-radius,18px);background:var(--vvp-custom-bg,var(--vvp-bg));color:var(--vvp-text);position:relative;overflow:hidden;min-height:450px;box-shadow:inset 0 0 0 1px rgba(100,75,55,.08)}
.preview-site:before{content:"";position:absolute;inset:14px;border:1px solid color-mix(in srgb,var(--vvp-custom-accent,#a88450) 34%,transparent);pointer-events:none;border-radius:calc(var(--vvp-custom-radius,18px) * .7)}
.preview-site h2,.preview-site h3{font-family:var(--vvp-custom-font,var(--vvp-font-display))}.preview-site .preview-top,.preview-site .preview-date{color:var(--vvp-custom-accent,#a88450)}
.preview-fullpage{background:var(--vvp-custom-bg,var(--vvp-bg));border-radius:var(--vvp-custom-radius,18px);padding:22px;color:var(--vvp-text);font-family:var(--vvp-custom-font,var(--vvp-font-body));border:1px solid rgba(90,70,50,.08)}
.preview-fullpage section{border-color:color-mix(in srgb,var(--vvp-custom-accent,#a88450) 22%,transparent)}
.preview-fullpage h3{font-family:var(--vvp-custom-font,var(--vvp-font-display));font-size:25px;font-weight:400}
.vvp-module-preview{padding:24px 12px!important}.vvp-module-preview[data-layout="cards"]{background:rgba(255,255,255,.55);border:1px solid rgba(100,80,60,.12);border-radius:var(--vvp-custom-radius,18px);margin:14px 0;padding:20px!important}.vvp-module-preview[data-layout="centered"]{text-align:center}.vvp-module-preview[data-layout="split"]{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:center}.vvp-module-preview[data-layout="editorial"]{border-top:1px solid var(--vvp-custom-accent,#a88450);border-bottom:1px solid var(--vvp-custom-accent,#a88450)}
.vvp-preview-button{display:inline-block;background:var(--vvp-custom-accent,#a88450);color:white;padding:9px 18px;border-radius:999px;font-size:12px}
.vvp-countdown-sample{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.vvp-countdown-sample b{font:26px Georgia,serif;background:rgba(255,255,255,.6);padding:9px;border-radius:8px}.vvp-countdown-sample span{font-size:9px;align-self:center;letter-spacing:.08em}
.vvp-gallery-sample{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.vvp-gallery-sample i{display:block;aspect-ratio:4/5;background:linear-gradient(145deg,#d9c9b9,#f2e9df);border-radius:8px}.vvp-gallery-sample i:nth-child(2){background:linear-gradient(145deg,#c7cdbb,#e9e9dc)}.vvp-gallery-sample i:nth-child(3){background:linear-gradient(145deg,#e7cbd0,#f6e8e7)}
.vvp-map-placeholder{padding:16px;background:rgba(255,255,255,.55);border-radius:10px;color:var(--vvp-muted);font-size:12px}
.vvp-empty-preview{padding:35px 10px;text-align:center;color:var(--vvp-muted);font-size:13px}
/* Published pages receive the same custom design tokens saved by the editor. */
.wedding.vvp-customized{--rose:var(--vvp-custom-accent,#a88450);--rose-dark:var(--vvp-custom-accent,#806238);background:var(--vvp-custom-bg,#fffdf9);border-radius:var(--vvp-custom-radius,18px);font-family:var(--vvp-custom-font,Georgia,serif)}
.wedding.vvp-customized h1,.wedding.vvp-customized h2{font-family:var(--vvp-custom-font,Georgia,serif)}
@media(max-width:850px){.editor-layout{grid-template-columns:1fr}.preview-panel{position:static;grid-row:1}.editor-panel{grid-row:2}}
@media(max-width:520px){.vvp-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vvp-custom-grid{grid-template-columns:1fr 1fr}.vvp-layout-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-site{min-height:360px;padding:55px 18px}.vvp-module-preview[data-layout="split"]{grid-template-columns:1fr}}

.vvp-module-preview[data-layout="cards"]{display:block}
.vvp-preview[data-ornament="botanical"]:after,.wedding.ornament-botanical:after{content:"❧";display:block;text-align:center;color:var(--vvp-custom-accent,var(--rose,#9b8067));font-size:30px;opacity:.72;padding:8px}
.vvp-preview[data-ornament="classic"]:after,.wedding.ornament-classic:after{content:"✧  ·  ✧";display:block;text-align:center;color:var(--vvp-custom-accent,var(--rose,#9b8067));letter-spacing:.5em;padding:8px}
.vvp-preview[data-ornament="none"]:after,.wedding.ornament-none:after{content:none}
.wedding.ornament-delicate:after{content:"✧";display:block;text-align:center;color:var(--vvp-custom-accent,var(--rose,#9b8067));opacity:.6;padding:8px}
