/* DL Kartengenerator */
.dlkg {
	--k-brass: #c9a66b;
	--k-on-brass: #17140f;
	--k-text: #ede8e0;
	--k-text-2: #c9c2b6;
	--k-muted: #a8a196;
	--k-surface: #1a1917;
	--k-line: rgba(237, 232, 224, .18);
	margin: 8px 0 28px;
	color: var(--k-text);
	font-size: 16px;
	line-height: 1.5;
}
.dlkg *, .dlkg *::before, .dlkg *::after { box-sizing: border-box; }

/* Vorschau */
.dlkg-stage { background: #151413; border: 1px solid rgba(237,232,224,.08); border-radius: 18px; padding: 18px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; }
.dlkg-preview { display: flex; justify-content: center; min-height: 300px; }
.dlkg-views { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #0f0e0d; border: 1px solid rgba(237,232,224,.12); }
.dlkg-view { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--k-text); font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.dlkg-view.is-on { background: var(--k-brass); color: var(--k-on-brass); }
.dlkg-view[hidden] { display: none; }
.dlkg-small { margin: 0; font-size: 13px; color: var(--k-muted); text-align: center; }

/* Schritte */
.dlkg-step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.dlkg-step legend { padding: 0; margin-bottom: 14px; font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--k-text); }
.dlkg-step legend span { color: var(--k-brass); }
.dlkg-step .dlkg-small { text-align: left; margin-bottom: 12px; }

.dlkg-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dlkg-pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(237,232,224,.25); background: transparent; color: var(--k-text); font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.dlkg-pill:hover { border-color: var(--k-brass); }
.dlkg-pill.is-on { background: var(--k-brass); border-color: var(--k-brass); color: var(--k-on-brass); }

.dlkg-drop { border: 1px dashed rgba(237,232,224,.32); border-radius: 14px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dlkg-drop.is-over { border-color: var(--k-brass); background: rgba(201,166,107,.06); }
.dlkg-drop p { margin: 0; color: var(--k-text-2); }
.dlkg-btn-ghost { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(237,232,224,.35); background: transparent; color: var(--k-text); font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.dlkg-btn-ghost:hover { border-color: var(--k-brass); color: var(--k-brass); }
.dlkg-link { border: 0; background: none; padding: 6px 0; color: var(--k-muted); text-decoration: underline; cursor: pointer; font-size: 14px; justify-self: start; }

.dlkg-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 16px; }
.dlkg-sliders[hidden], .dlkg [hidden] { display: none !important; }
.dlkg label { display: flex; flex-direction: column; gap: 6px; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9b2a6; }
.dlkg input[type=range] { accent-color: var(--k-brass); width: 100%; min-height: 28px; }

.dlkg-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin-top: 14px; font-family: inherit !important; font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--k-text-2) !important; line-height: 1.45; cursor: pointer; }
.dlkg-check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--k-brass); }
.dlkg-check em { font-style: normal; color: var(--k-muted); }

.dlkg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dlkg-full { grid-column: 1 / -1; }
.dlkg input[type=text], .dlkg textarea {
	width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--k-line);
	background: var(--k-surface); color: var(--k-text); font-family: 'Manrope', system-ui, sans-serif; font-size: 16px;
	letter-spacing: 0; text-transform: none;
}
.dlkg textarea { padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.5; }
.dlkg input:focus, .dlkg textarea:focus, .dlkg button:focus-visible { outline: 2px solid var(--k-brass); outline-offset: 2px; }
.dlkg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.dlkg-stat { display: flex; gap: 8px; min-width: 0; }
.dlkg-stat input:first-child { flex: 0 0 64px; width: 64px; padding: 0 6px; text-align: center; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; }
.dlkg-stat input:last-child { flex: 1 1 auto; min-width: 0; }
.dlkg-count { text-align: right !important; margin-top: 4px !important; }
.dlkg-error { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: rgba(224,122,95,.12); border: 1px solid rgba(224,122,95,.5); color: #f3c1b3; font-size: 15px; }
.dlkg-note { color: var(--k-muted); }

@media (max-width: 480px) {
	.dlkg-grid, .dlkg-stats, .dlkg-sliders { grid-template-columns: 1fr; }
}

/* ---------- Karte (Vorschau) ---------- */
.dlg-card {
	width: 300px; height: 478px; flex: 0 0 auto; position: relative; overflow: hidden; border-radius: 16px;
	background: linear-gradient(150deg, #1e1e20 0%, #121213 55%, #0b0b0c 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 44px rgba(0,0,0,.55);
	font-family: 'Oswald', 'Arial Narrow', sans-serif; color: #d8d6d1; zoom: 1.05;
}
.dlg-card::before, .dlg-card::after { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.dlg-card::before { inset: 9px; border: 1.5px solid #cfcdc8; border-radius: 10px; }
.dlg-card::after { inset: 14px; border: .75px solid rgba(207,205,200,.55); border-radius: 7px; }
.dlg-in { position: absolute; top: 24px; left: 24px; right: 24px; bottom: 20px; display: flex; flex-direction: column; }
.dlg-top { display: flex; gap: 10px; height: 222px; }
.dlg-side { flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; }
.dlg-rating { font-size: 46px; font-weight: 600; line-height: .95; }
.dlg-pos { font-size: 15px; font-weight: 500; letter-spacing: .12em; line-height: 1; }
.dlg-rule { width: 26px; height: 1px; background: #cfcdc8; margin: 6px 0 4px; }
.dlg-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.dlg-ylabel { margin-top: auto; font-size: 9px; letter-spacing: .22em; line-height: 1; }
.dlg-year { font-size: 18px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.dlg-photo { position: relative; flex: 1 1 auto; min-width: 0; border: 1.5px solid #cfcdc8; border-radius: 90px 90px 6px 6px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: rgba(255,255,255,.025); }
.dlg-photo.has-img { cursor: grab; touch-action: none; }
.dlg-img { position: absolute; inset: 0; background-repeat: no-repeat; }
.dlg-sil { width: 78%; opacity: .55; }
.dlg-title { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.dlg-title i { flex: 1 1 10px; height: 1px; background: #cfcdc8; }
.dlg-title span { font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: .12em; white-space: nowrap; line-height: 1.2; }
.dlg-name { text-align: center; font-weight: 600; letter-spacing: .06em; line-height: 1.15; margin-top: 6px; white-space: nowrap; overflow: hidden; }
.dlg-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 4px; margin-top: 8px; padding: 0 4px; }
.dlg-stats div { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.dlg-stats b { flex: 0 0 30px; text-align: right; font-size: 17px; font-weight: 600; }
.dlg-stats span { font-size: 12px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; }
.dlg-foot { margin-top: auto; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: #bdbab3; white-space: nowrap; }

.dlg-backin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 40px 30px 30px; }
.dlg-seal { width: 144px; height: 144px; }
.dlg-div { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.dlg-div i { width: 60px; height: 1px; background: #cfcdc8; }
.dlg-div b { width: 9px; height: 9px; background: #cfcdc8; transform: rotate(45deg); }
.dlg-msg { margin-top: 26px; font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: .16em; line-height: 1.75; text-align: center; color: #d8d6d1; word-break: break-word; }
.dlg-ph { opacity: .35; }

@media (max-width: 420px) { .dlg-card { zoom: .88; } .dlkg-stage { padding: 14px 8px 12px; } }

/* ---------- Desktop: Vorschau links, fest im Blick ---------- */
.dlkg-layout { display: none; }
body.dlkg-desk .dlkg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; clear: both; margin-bottom: 48px; }
body.dlkg-desk div.product > .woocommerce-product-gallery { display: none !important; }
body.dlkg-desk .dlkg-side { position: sticky; top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); align-self: start; }
body.dlkg-desk .dlkg-layout > .summary { width: auto !important; float: none !important; margin: 0 !important; }
body.dlkg-desk .dlkg-side .dlkg-stage { margin-bottom: 0; padding: 24px 18px 18px; }
body.dlkg-desk .dlkg-side .dlg-card { zoom: 1.12; }
@media (max-height: 860px) { body.dlkg-desk .dlkg-side .dlg-card { zoom: .95; } }
@media (max-height: 740px) { body.dlkg-desk .dlkg-side .dlg-card { zoom: .8; } body.dlkg-desk .dlkg-side .dlkg-small { display: none; } }

/* ---------- Handy: kleine Vorschau unten rechts ---------- */
.dlkg-mini { position: fixed; right: 14px; bottom: 14px; z-index: 9999; display: none; flex-direction: column; align-items: center; gap: 4px; padding: 8px 8px 6px; border-radius: 14px; background: rgba(18,17,16,.94); border: 1px solid rgba(201,166,107,.45); box-shadow: 0 10px 30px rgba(0,0,0,.55); cursor: pointer; }
.dlkg-mini.is-on { display: flex; }
.dlkg-mini-card { display: block; pointer-events: none; }
.dlkg-mini .dlg-card { zoom: .3 !important; box-shadow: none; }
.dlkg-mini-lab { font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9a66b; line-height: 1; }
@media (min-width: 960px) { .dlkg-mini { display: none !important; } }

/* ---------- Produktbilder unter der Vorschau (nur Desktop, mobil zeigt WooCommerce die Galerie) ---------- */
.dlkg-thumbs { display: none; }
body.dlkg-desk .dlkg-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.dlkg-thumb { width: 56px; height: 56px; padding: 0; border: 1px solid rgba(237,232,224,.18); border-radius: 8px; overflow: hidden; background: #0e0e0f; cursor: zoom-in; transition: border-color .15s, transform .15s; }
.dlkg-thumb:hover, .dlkg-thumb:focus-visible { border-color: #c9a66b; transform: translateY(-2px); outline: none; }
.dlkg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-height: 740px) { body.dlkg-desk .dlkg-thumb { width: 44px; height: 44px; } }
.dlkg-lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(8,8,8,.94); }
.dlkg-lb.is-on { display: flex; }
.dlkg-lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dlkg-lb img { display: block; max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; border-radius: 10px; }
.dlkg-lb figcaption { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .16em; color: #a8a196; }
.dlkg-lb button { position: absolute; width: 52px; height: 52px; border: 1px solid rgba(237,232,224,.25); border-radius: 50%; background: rgba(18,17,16,.8); color: #ede8e0; font-size: 30px; line-height: 1; cursor: pointer; }
.dlkg-lb button:hover, .dlkg-lb button:focus-visible { border-color: #c9a66b; color: #c9a66b; outline: none; }
.dlkg-lb button[hidden] { display: none; }
.dlkg-lb-x { top: 20px; right: 20px; }
.dlkg-lb-p { left: 20px; top: 50%; transform: translateY(-50%); }
.dlkg-lb-n { right: 20px; top: 50%; transform: translateY(-50%); }
html.dlkg-lb-open { overflow: hidden; }

/* ---------- Symbole wählen ---------- */
.dlkg-iconpick { margin-top: 18px; }
.dlkg-sublabel { margin: 14px 0 8px; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9b2a6; }
.dlkg-iconrow { display: flex; flex-wrap: wrap; gap: 6px; }
.dlkg-iconbtn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(237,232,224,.2); border-radius: 10px; background: transparent; color: #d8d6d1; cursor: pointer; transition: border-color .15s, background .15s; }
.dlkg-iconbtn svg { width: 24px; height: 24px; }
.dlkg-iconbtn:hover { border-color: rgba(201,166,107,.7); }
.dlkg-iconbtn.is-on { border-color: #c9a66b; background: rgba(201,166,107,.16); color: #c9a66b; }
.dlkg-none { font-size: 18px; line-height: 1; color: #a8a196; }

/* Foto-Erlaubnis (1.4.1): deutlich sichtbar, Pflichtfeld */
.dlkg-consent { margin-top: 16px; padding: 12px 16px 14px; border: 1.5px solid var(--k-brass); border-radius: 12px; background: rgba(201,166,107,.10); transition: border-color .2s, background-color .2s; }
.dlkg-consent__tag { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--k-brass); }
.dlkg-consent__ok { display: none; }
.dlkg-consent .dlkg-check { margin-top: 0; font-size: 15px !important; color: var(--k-text) !important; }
.dlkg-consent .dlkg-check strong { color: var(--k-text); }
.dlkg-consent .dlkg-check input { width: 24px; height: 24px; margin-top: 0; }
.dlkg-consent.is-new { animation: dlkg-pulse 1.6s ease-out 2; }
.dlkg-consent.is-done { border-color: rgba(127,176,105,.75); background: rgba(127,176,105,.10); }
.dlkg-consent.is-done .dlkg-consent__todo { display: none; }
.dlkg-consent.is-done .dlkg-consent__ok { display: inline; color: #9ccc84; }
.dlkg-consent.is-done .dlkg-consent__ok::before { content: "✓ "; }
.dlkg-consent.is-alert { border-color: #e07a5f; background: rgba(224,122,95,.16); animation: dlkg-shake .45s ease-in-out; }
.dlkg-consent.is-alert .dlkg-consent__tag { color: #f3a48f; }
@keyframes dlkg-pulse { 0% { box-shadow: 0 0 0 0 rgba(201,166,107,.55); } 100% { box-shadow: 0 0 0 14px rgba(201,166,107,0); } }
@keyframes dlkg-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .dlkg-consent.is-new, .dlkg-consent.is-alert { animation: none; } }

/* ---------- 1.4.2: Generator sofort sichtbar, auch am Handy ---------- */
/* Die WooCommerce-Galerie entfällt. Die Produktbilder stehen als Leiste unter der Vorschau. */
body.dlkg-page div.product > .woocommerce-product-gallery { display: none !important; }
body.dlkg-page div.product > .summary { width: 100% !important; float: none !important; }
body.dlkg-page .dlkg-thumbs { display: flex; gap: 8px; margin-top: 12px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body.dlkg-page .dlkg-thumb { flex: 0 0 auto; }
body.dlkg-desk .dlkg-thumbs { flex-wrap: wrap; justify-content: center; overflow: visible; }
@media (max-width: 959px) {
	body.dlkg-page div.product .product_title { font-size: clamp(26px, 7vw, 34px); margin-bottom: 6px; }
	body.dlkg-page div.product .summary > .price { margin: 0 0 14px; }
	body.dlkg-page .dlkg { margin-top: 4px; }
	body.dlkg-page .dlkg-stage { padding-top: 14px; }
	body.dlkg-page .woocommerce-product-details__short-description { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(237,232,224,.12); }
}

/* Bearbeiten aus dem Warenkorb / geteiltes Design */
.dlkg-restore { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(201,166,107,.45); border-radius: 12px; background: rgba(201,166,107,.08); color: var(--k-text); font-size: 15px; line-height: 1.5; }
/* Design teilen */
.dlkg-share { margin: 22px 0 6px; display: grid; gap: 12px; justify-items: start; }
.dlkg-share-box { width: 100%; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--k-line); border-radius: 14px; }
.dlkg-share-box .dlkg-small { text-align: left; margin: 0; }
.dlkg-share-box .dlkg-check { margin-top: 0; }
.dlkg #dlkg-share-out { display: grid; gap: 10px; }
.dlkg #dlkg-share-url { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--k-line); background: var(--k-surface); color: var(--k-text); font-size: 14px; }
.dlkg a.dlkg-pill { display: inline-flex; align-items: center; text-decoration: none; }
.dlkg-share-wa { background: #25D366 !important; border-color: #25D366 !important; color: #08140c !important; }
