/* QRLuma 4.6.1 – Dynamisches Spruchbild */
@font-face { font-family: "QR Playfair"; src: url("/font.php?f=playfair&v=1") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "QR Montserrat"; src: url("/font.php?f=montserrat&v=1") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "QR Caveat"; src: url("/font.php?f=caveat&v=1") format("woff2"); font-weight: 700; font-display: swap; }
.quote-card { --q-bg1:#1d2b2a; --q-bg2:#0d3b38; --q-text:#fff; --q-accent:#f5c76b; --q-font: "QR Playfair", Georgia, serif; --q-weight:600; --q-scale:1; --q-align:center;
  position: relative; display: grid; place-items: center; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 24px;
  background: linear-gradient(135deg, var(--q-bg1), var(--q-bg2)); color: var(--q-text); container-type: inline-size; box-shadow: 0 24px 60px rgba(13,59,56,.18); isolation: isolate; }
.quote-card .quote-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-card .quote-shade { position: absolute; inset: 0; z-index: -1; background: transparent; }
.quote-card .quote-body { margin: 0; padding: 0 10cqw; width: 100%; text-align: var(--q-align); font-family: var(--q-font); font-weight: var(--q-weight); }
.quote-card.has-image:not(.tpl-card) .quote-body { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.quote-card .quote-text { margin: 0; line-height: 1.28; overflow-wrap: anywhere; }
.quote-card .quote-author { margin-top: 1.1em; font-size: .5em; font-weight: 700; color: var(--q-accent); font-style: normal; font-family: inherit; }
.quote-card.font-caveat .quote-author { font-size: .62em; }
.quote-card.quote-size-l .quote-body { font-size: calc(7.6cqw * var(--q-scale)); } .quote-card.quote-size-m .quote-body { font-size: calc(5.9cqw * var(--q-scale)); }
.quote-card.quote-size-s .quote-body { font-size: calc(4.7cqw * var(--q-scale)); } .quote-card.quote-size-xs .quote-body { font-size: calc(3.9cqw * var(--q-scale)); }
.quote-card.font-playfair { --q-font: "QR Playfair", Georgia, "Times New Roman", serif; --q-weight: 600; --q-scale: 1; }
.quote-card.font-montserrat { --q-font: "QR Montserrat", "Helvetica Neue", Arial, sans-serif; --q-weight: 800; --q-scale: .92; }
.quote-card.font-caveat { --q-font: "QR Caveat", "Segoe Script", cursive; --q-weight: 700; --q-scale: 1.28; }
.quote-card.pos-top .quote-body { align-self: start; margin-top: 12cqw; } .quote-card.pos-bottom .quote-body { align-self: end; margin-bottom: 12cqw; }
.quote-card.tpl-card .quote-body { width: calc(100% - 13cqw); padding: 9cqw 7cqw; border-radius: 3.4cqw; background: rgba(255,255,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.quote-card.tpl-card.has-image .quote-body { background: var(--q-card); -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15); border: 1px solid rgba(255,255,255,.35); }
.quote-card.tpl-glass.has-image .quote-body { background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.quote-card.tpl-glass.no-image .quote-body { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.quote-card.color-light { --q-text: #ffffff; } .quote-card.color-dark { --q-text: #141414; --q-accent: #5b3b17; }
.quote-card.has-image.shade-0 .quote-shade { background: rgba(0,0,0,0.00); }
.quote-card.has-image.shade-10 .quote-shade { background: rgba(0,0,0,0.10); }
.quote-card.has-image.shade-20 .quote-shade { background: rgba(0,0,0,0.20); }
.quote-card.has-image.shade-30 .quote-shade { background: rgba(0,0,0,0.30); }
.quote-card.has-image.shade-40 .quote-shade { background: rgba(0,0,0,0.40); }
.quote-card.has-image.shade-50 .quote-shade { background: rgba(0,0,0,0.50); }
.quote-card.has-image.shade-60 .quote-shade { background: rgba(0,0,0,0.60); }
.quote-card.has-image.shade-70 .quote-shade { background: rgba(0,0,0,0.70); }
.quote-card.has-image.shade-80 .quote-shade { background: rgba(0,0,0,0.80); }
.quote-card.tpl-classic { --q-bg1:#1d2b2a; --q-bg2:#0d3b38; --q-text:#ffffff; --q-accent:#f5c76b; --q-align:center; --q-card:rgba(29,43,42,0.72); }
.quote-card.tpl-light { --q-bg1:#fbf7ef; --q-bg2:#efe6d4; --q-text:#2b2117; --q-accent:#b0793b; --q-align:center; --q-card:rgba(251,247,239,0.72); }
.quote-card.tpl-sunset { --q-bg1:#ff9a5a; --q-bg2:#d6457a; --q-text:#ffffff; --q-accent:#fff2c4; --q-align:center; --q-card:rgba(255,154,90,0.72); }
.quote-card.tpl-night { --q-bg1:#141e46; --q-bg2:#3b2a6d; --q-text:#f3f1ff; --q-accent:#b9a8ff; --q-align:center; --q-card:rgba(20,30,70,0.72); }
.quote-card.tpl-nature { --q-bg1:#2f6b4f; --q-bg2:#9cc79a; --q-text:#ffffff; --q-accent:#e6f5c8; --q-align:left; --q-card:rgba(47,107,79,0.72); }
.quote-card.tpl-hand { --q-bg1:#fff4e2; --q-bg2:#ffd9c2; --q-text:#4a2a1a; --q-accent:#c2562d; --q-align:center; --q-card:rgba(255,244,226,0.72); }
.quote-card.tpl-glass { --q-bg1:#3a6186; --q-bg2:#89253e; --q-text:#ffffff; --q-accent:#ffe08a; --q-align:center; --q-card:rgba(58,97,134,0.72); }
.quote-card.tpl-minimal { --q-bg1:#ffffff; --q-bg2:#f1f3f2; --q-text:#111111; --q-accent:#0d3b38; --q-align:left; --q-card:rgba(255,255,255,0.72); }
.quote-card.tpl-bold { --q-bg1:#ffd43b; --q-bg2:#ffb703; --q-text:#111111; --q-accent:#111111; --q-align:center; --q-card:rgba(255,212,59,0.72); }

/* public view */
.quote-view-body { min-height: 100vh; background: radial-gradient(circle at 20% 0%, #fff6e3 0, transparent 45%), radial-gradient(circle at 90% 100%, #e3f5ee 0, transparent 50%), #f6f3ec; }
.quote-view-body.has-backdrop { background: #10201e; }
.quote-view-backdrop { position: fixed; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(38px) saturate(1.2) brightness(.62); transform: scale(1.05); z-index: -1; pointer-events: none; }
.quote-view { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 16px 34px; }
.quote-view .quote-card { box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quote-action { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(13,59,56,.18); background: #fff; color: var(--green); font: inherit; font-size: 1rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.quote-action.primary { background: var(--green); border-color: var(--green); color: #fff; }
.quote-action.whatsapp { background: #25d366; border-color: #25d366; color: #0b2e17; }
.quote-action:disabled { opacity: .6; cursor: progress; }
.quote-view-cta { display: flex; align-items: center; gap: 14px; width: min(520px, 100%); padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.94); color: var(--ink); text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.quote-view-cta span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.quote-view-cta strong { font-size: .98rem; } .quote-view-cta small { color: var(--muted); font-size: .84rem; }
.quote-view-cta > span:last-child { font-size: 1.3rem; color: var(--green); }
.quote-view-cta-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 3px; padding: 7px; border-radius: 10px; background: var(--green); }
.quote-view-cta-mark i { width: 9px; height: 9px; border-radius: 2px; background: #d8f2e7; }
.quote-view-foot { margin: 0; font-size: .86rem; color: var(--muted); }
.has-backdrop .quote-view-foot, .has-backdrop .quote-view-foot a { color: rgba(255,255,255,.78); }
.quote-view-foot a { color: inherit; }

/* promo + editor */
.quote-promo { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff7e6, #eafaf4); border: 1px solid #f0dfb8; color: var(--ink); text-decoration: none; font-weight: 700; }
.quote-promo b { padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: .72rem; letter-spacing: .04em; }
.quote-promo span { margin-left: auto; color: var(--green); }
.quotes-page .shell { max-width: 1180px; }
.quotes-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin: 18px 0 20px; }
.quotes-head h1 { margin: 4px 0 6px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.quotes-head p { margin: 0; color: var(--muted); max-width: 640px; }
.quotes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 30px; }
.quotes-list-item { display: grid; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.quotes-list-item .quote-card { max-width: none; border-radius: 14px; box-shadow: none; }
.quotes-list-item > div > h2 { margin: 0; font-size: 1rem; }
.quotes-list-item > div > p { margin: 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.quotes-list-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.quotes-list-actions .top-action { min-height: 34px; padding: 6px 11px; }
.quote-editor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 22px; align-items: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 30px; }
.quote-editor h2 { margin: 0 0 4px; }
.quote-editor fieldset { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.quote-editor legend { padding: 0 6px; font-weight: 800; }
.quote-editor label { display: grid; gap: 6px; margin-top: 12px; font-weight: 700; font-size: .9rem; }
.quote-editor input[type="text"], .quote-editor input[type="date"], .quote-editor textarea, .quote-editor select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.quote-editor textarea { resize: vertical; min-height: 110px; }
.quote-counter { justify-self: end; font-size: .75rem; color: var(--muted); font-weight: 600; }
.quote-preview-col { position: sticky; top: 16px; display: grid; gap: 12px; }
.quote-preview-col .quote-card { max-width: none; }
.quote-preview-note { margin: 0; font-size: .8rem; color: var(--muted); }
.quote-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.quote-template-option { position: relative; display: grid; place-items: center; min-height: 64px; padding: 8px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; font-size: .78rem; font-weight: 800; text-align: center; }
.quote-template-option input { position: absolute; opacity: 0; pointer-events: none; }
.quote-template-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.quote-template-option:has(input:focus-visible) { outline: 3px solid var(--green-2); outline-offset: 2px; }
.quote-template-option.opt-classic { background: linear-gradient(135deg, #1d2b2a, #0d3b38); color: #ffffff; }
.quote-template-option.opt-light { background: linear-gradient(135deg, #fbf7ef, #efe6d4); color: #2b2117; }
.quote-template-option.opt-sunset { background: linear-gradient(135deg, #ff9a5a, #d6457a); color: #ffffff; }
.quote-template-option.opt-night { background: linear-gradient(135deg, #141e46, #3b2a6d); color: #f3f1ff; }
.quote-template-option.opt-nature { background: linear-gradient(135deg, #2f6b4f, #9cc79a); color: #ffffff; }
.quote-template-option.opt-hand { background: linear-gradient(135deg, #fff4e2, #ffd9c2); color: #4a2a1a; }
.quote-template-option.opt-glass { background: linear-gradient(135deg, #3a6186, #89253e); color: #ffffff; }
.quote-template-option.opt-minimal { background: linear-gradient(135deg, #ffffff, #f1f3f2); color: #111111; }
.quote-template-option.opt-bold { background: linear-gradient(135deg, #ffd43b, #ffb703); color: #111111; }
.quote-template-option.opt-hand { font-family: "QR Caveat", cursive; font-size: 1.05rem; } .quote-template-option.opt-classic, .quote-template-option.opt-light, .quote-template-option.opt-night { font-family: "QR Playfair", Georgia, serif; }
.quote-image-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quote-image-tabs button { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--green); font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.quote-image-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.quote-image-panel { margin-top: 12px; }
.quote-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.quote-library-item { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #eef3f1; cursor: pointer; }
.quote-library-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-library-item[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.quote-library-item .quote-badge { position: absolute; left: 4px; top: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .62rem; font-weight: 800; }
.quote-library-none { display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--muted); }
.quote-library-delete { margin-top: 8px; }
.quote-drop { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2px dashed #b9d2cc; border-radius: 16px; text-align: center; color: var(--muted); }
.quote-drop.dragging { background: var(--mint-soft); border-color: var(--green); }
.quote-drop input[type="file"] { max-width: 100%; }
.quote-status { min-height: 1.2em; margin: 8px 0 0; font-size: .85rem; font-weight: 650; color: var(--green); }
.quote-status.error { color: var(--danger); }
.quote-samples { display: grid; gap: 8px; margin-top: 8px; }
.quote-samples select { margin-top: 0; }
.quote-sample-list { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.quote-sample-list button { text-align: left; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: #fbfdfc; color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.quote-sample-list button:hover { border-color: var(--green); }
.quote-schedule-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px 10px; padding: 12px; margin-top: 10px; border-radius: 14px; background: #f7faf9; border: 1px solid var(--line); }
.quote-schedule-row label { margin-top: 0; }
.quote-schedule-row .wide { grid-column: 1 / -1; }
.quote-schedule-row .row-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.quote-schedule-row.is-today { border-color: var(--green); background: var(--mint-soft); }
.quote-schedule-row.is-past { opacity: .7; }
.quote-history { display: grid; gap: 8px; margin-top: 10px; }
.quote-history-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.quote-history-item p { margin: 0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quote-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.quote-editor-actions .primary { background: var(--green); color: #fff; border-color: var(--green); }
.quote-link-box { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--mint-soft); border: 1px solid var(--line); font-size: .85rem; }
.quote-link-box a { overflow-wrap: anywhere; color: var(--green); font-weight: 700; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--green); font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; text-decoration: underline; }
.text-button.danger { color: var(--danger); }
@media (max-width: 860px) {
  .quote-editor { grid-template-columns: 1fr; padding: 16px; }
  .quote-preview-col { position: static; order: -1; }
  .quote-schedule-row { grid-template-columns: 1fr; }
}

.quote-style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.quote-segment { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.quote-segment > span { width: 100%; font-weight: 700; font-size: .9rem; }
.quote-segment label { margin: 0; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 750; cursor: pointer; }
.quote-segment input { position: absolute; opacity: 0; pointer-events: none; }
.quote-segment label:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.quote-segment label:has(input:focus-visible) { outline: 3px solid var(--green-2); outline-offset: 2px; }
.quote-shade-row { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px; margin-top: 4px; }
.quote-range { display: grid; gap: 6px; }
.quote-range input { width: 100%; accent-color: var(--green); }
.quote-range output { font-weight: 800; color: var(--green); }
.quote-library-item .quote-date { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: .62rem; font-weight: 700; text-align: right; }
@media (max-width: 560px) { .quote-style-grid, .quote-shade-row { grid-template-columns: 1fr; } }

.quote-editor label.check-row { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.quote-shade-row { align-items: center; }
