.tpg-site-surface{
    background:var(--tpg-page-bg,#0b0c0e);
    color:var(--tpg-text,#f2f2f2);
    font-family:var(--tpg-body-font,inherit);
    font-size:var(--tpg-body-size,16px);
    min-height:60vh;
    width:100%;
    padding:0;
}
.tpg-shell{width:100%;max-width:none;margin:0;padding:0;background:var(--tpg-page-bg,#0b0c0e)}
/* v0.5.18: kein Kachel-Look mehr. Der Galerie-Inhaltsbereich läuft über die volle Breite. */
.tpg-card{
    width:100%;
    box-sizing:border-box;
    background:var(--tpg-card-bg,#14161a);
    border:0;
    border-radius:0;
    box-shadow:none;
    padding:clamp(28px,5vw,64px) clamp(18px,5vw,64px);
    color:var(--tpg-text,#f2f2f2);
}
.tpg-content{width:min(var(--tpg-content-width,760px),100%);margin:0 auto;box-sizing:border-box}
.tpg-card h1{
    font-family:var(--tpg-heading-font,inherit);
    font-size:var(--tpg-heading-size,44px)!important;
    font-weight:var(--tpg-heading-weight,700);
    line-height:1.08;
    margin:14px 0 8px;
    color:var(--tpg-heading-color,var(--tpg-text,#f2f2f2));
}
.tpg-code{color:var(--tpg-muted,#a8adb4);margin-top:0}
.tpg-code strong{color:var(--tpg-text,#f2f2f2);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.05em}
.tpg-wait{margin:28px 0;padding:20px;border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114);border:1px solid var(--tpg-border,#2a2d32);display:grid;gap:8px}
.tpg-wait strong{font-size:1.12em;color:var(--tpg-text,#f2f2f2)}
.tpg-wait span,.tpg-muted{color:var(--tpg-muted,#a8adb4);line-height:1.55}
.tpg-register{display:grid;gap:16px;margin-top:22px}
.tpg-register label{display:grid;gap:8px;font-weight:600;color:var(--tpg-text,#f2f2f2)}
.tpg-register input[type=email]{width:100%;box-sizing:border-box;background:var(--tpg-input-bg,var(--tpg-page-bg,#0b0c0e));color:var(--tpg-input-text,var(--tpg-text,#fff))!important;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-field-radius,12px);padding:14px 15px;font-family:var(--tpg-input-font,var(--tpg-body-font,inherit))!important;font-size:var(--tpg-input-text-size,16px)!important}
.tpg-consent{grid-template-columns:auto 1fr!important;align-items:start;font-weight:400!important;font-size:.86em;color:var(--tpg-muted,#a8adb4);line-height:1.45}
.tpg-consent input{margin-top:3px;accent-color:var(--tpg-accent,#fff)}
.tpg-consent a{color:var(--tpg-accent,#fff)}
.tpg-group-consent{border:1px solid var(--tpg-border,#30363d);border-radius:var(--tpg-panel-radius,14px);padding:16px;margin:18px 0}
.tpg-group-consent legend{font-weight:700;padding:0 8px}
.tpg-group-consent p{margin:0 0 12px;color:var(--tpg-muted,#a7adb4);font-size:.93em}
.tpg-group-consent label{display:flex;gap:10px;align-items:flex-start;margin:10px 0;font-weight:500}
.tpg-group-consent input{margin-top:4px;flex:0 0 auto;accent-color:var(--tpg-accent,#fff)}
.tpg-login-form{display:grid;gap:16px;margin-top:24px}
.tpg-login-form label{display:grid;gap:8px;font-weight:600;color:var(--tpg-text,#f2f2f2)}
.tpg-login-form input[type=text]{width:100%;box-sizing:border-box;background:var(--tpg-input-bg,var(--tpg-page-bg,#0b0c0e));color:var(--tpg-input-text,var(--tpg-text,#fff))!important;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-field-radius,12px);padding:15px;font-family:var(--tpg-input-font,var(--tpg-body-font,inherit))!important;font-size:var(--tpg-input-text-size,16px)!important;font-weight:700;line-height:1.2;letter-spacing:.08em;text-transform:uppercase}
/* Alle öffentlichen Galerie-Buttons: eigene Hintergrund-, Schriftfarbe und Schriftgröße; !important schützt vor Divi-Buttonregeln. */
.tpg-card button,
.tpg-card input[type=submit],
.tpg-register button,
.tpg-login-form button,
.tpg-login-link{
    -webkit-appearance:none!important;
    appearance:none!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    border:0!important;
    border-radius:var(--tpg-button-radius,14px)!important;
    background:var(--tpg-button-bg,#fff)!important;
    background-color:var(--tpg-button-bg,#fff)!important;
    color:var(--tpg-button-text,#0b0c0e)!important;
    padding:14px 18px!important;
    font-family:var(--tpg-body-font,inherit)!important;
    font-size:var(--tpg-button-text-size,15px)!important;
    font-weight:700!important;
    line-height:1.2!important;
    letter-spacing:normal!important;
    text-transform:none!important;
    text-decoration:none!important;
    text-shadow:none!important;
    box-shadow:none!important;
    opacity:1!important;
    cursor:pointer;
}
.tpg-card button:hover,.tpg-card button:focus,.tpg-card input[type=submit]:hover,.tpg-card input[type=submit]:focus,.tpg-login-link:hover,.tpg-login-link:focus{filter:brightness(.94);color:var(--tpg-button-text,#0b0c0e)!important}
.tpg-success,.tpg-error{padding:13px 15px;border-radius:12px;margin:18px 0}
.tpg-success{background:var(--tpg-success-bg,#133321);color:var(--tpg-success-text,#bff2cf)}
.tpg-error{background:var(--tpg-error-bg,#3a1518);color:var(--tpg-error-text,#ffc5c9)}
.tpg-login-help{margin:16px 0 0;color:var(--tpg-muted,#a8adb4);font-size:.9em}
/* getrennte Schriftgrößen je Textbereich */
.tpg-code,.tpg-muted,.tpg-wait span,.tpg-group-consent p,.tpg-login-help{font-size:var(--tpg-muted-size,15px)}
.tpg-consent a,.tpg-card a:not(.tpg-login-link){font-size:var(--tpg-accent-size,14px)}
.tpg-success{font-size:var(--tpg-success-text-size,16px)}
.tpg-error{font-size:var(--tpg-error-text-size,16px)}
.tpg-card input[type=email]::placeholder,.tpg-card input[type=text]::placeholder,.tpg-card textarea::placeholder{color:var(--tpg-input-placeholder,var(--tpg-muted,#a8adb4))!important;opacity:1!important}
.tpg-card textarea,.tpg-card select{font-family:var(--tpg-input-font,var(--tpg-body-font,inherit))!important;color:var(--tpg-input-text,var(--tpg-text,#fff))!important;font-size:var(--tpg-input-text-size,16px)!important}
@media(max-width:600px){
    .tpg-card{padding:30px 20px}
    .tpg-content{width:100%}
}


/* v0.6.0: isolierter Kundendemo-Modus */
.tpg-demo-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 28px;padding:10px 12px;border:1px dashed var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114)}
.tpg-demo-toolbar a{color:var(--tpg-muted,#a8adb4)!important;text-decoration:none!important;font-size:13px!important;padding:6px 8px;border-radius:999px}
.tpg-demo-toolbar a.is-active{background:var(--tpg-button-bg,#fff);color:var(--tpg-button-text,#0b0c0e)!important}
.tpg-demo-flag{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;background:#b42318;color:#fff;font:700 11px/1 system-ui,sans-serif;letter-spacing:.08em}
.tpg-demo-note,.tpg-demo-test-banner{display:grid;gap:4px;margin:0 0 20px;padding:12px 14px;border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114);border:1px solid var(--tpg-border,#2a2d32);color:var(--tpg-text,#f2f2f2)}
.tpg-demo-note code{font-size:.95em}
.tpg-demo-fineprint{margin-top:16px;color:var(--tpg-muted,#a8adb4);font-size:var(--tpg-muted-size,15px);line-height:1.5}
.tpg-demo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.tpg-demo-thumb{display:grid;gap:7px;color:var(--tpg-muted,#a8adb4)!important;text-decoration:none!important;font-size:var(--tpg-muted-size,15px)!important}
.tpg-demo-photo-frame{position:relative;overflow:hidden;margin:0;aspect-ratio:4/3;border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114);border:1px solid var(--tpg-border,#2a2d32)}
.tpg-demo-photo-frame>img{display:block;width:100%;height:100%;object-fit:cover}
.tpg-demo-photo-frame.is-single{aspect-ratio:auto;min-height:320px}
.tpg-demo-photo-frame.is-single>img{height:auto;max-height:72vh;object-fit:contain;background:var(--tpg-panel-bg,#0f1114)}
.tpg-demo-single-photo{margin:22px 0}
.tpg-demo-single-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.tpg-demo-single-nav a{color:var(--tpg-accent,#fff)!important;font-size:var(--tpg-accent-size,14px)!important}
.tpg-demo-bottom-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.tpg-demo-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.tpg-demo-product{display:grid;gap:10px;padding:18px;border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114);border:1px solid var(--tpg-border,#2a2d32)}
.tpg-demo-product strong{font-size:1.08em;color:var(--tpg-text,#f2f2f2)}
.tpg-demo-product span{color:var(--tpg-muted,#a8adb4)}
.tpg-demo-product b{font-size:1.35em;color:var(--tpg-text,#f2f2f2)}
.tpg-demo-checkout-summary{display:grid;grid-template-columns:1fr auto;gap:10px 18px;align-items:center;margin:22px 0;padding:18px;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114)}
.tpg-demo-checkout-summary span{color:var(--tpg-muted,#a8adb4)}
.tpg-demo-test-banner{border-style:dashed}
.tpg-demo-test-banner strong{color:#d92d20;letter-spacing:.08em}
@media(max-width:760px){.tpg-demo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.tpg-demo-shop-grid{grid-template-columns:1fr}.tpg-demo-toolbar{gap:5px}.tpg-demo-toolbar a{padding:5px 6px}.tpg-demo-checkout-summary{grid-template-columns:1fr}}
@media(max-width:420px){.tpg-demo-gallery{grid-template-columns:1fr 1fr;gap:9px}.tpg-demo-thumb span{font-size:12px}.tpg-demo-toolbar{margin-bottom:20px}}

/* v0.7.0 Demo-Warenkorb und Rechnungsdaten */
.tpg-demo-cart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.tpg-demo-cart-card{display:grid;gap:14px;padding:20px;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114)}
.tpg-demo-cart-card.is-selected{outline:2px solid color-mix(in srgb,var(--tpg-accent,#fff) 65%,transparent);outline-offset:2px}
.tpg-demo-cart-card>div:first-child{display:grid;gap:6px}
.tpg-demo-cart-card strong{font-size:1.08em;color:var(--tpg-text,#f2f2f2)}
.tpg-demo-cart-card p{margin:0;color:var(--tpg-muted,#a8adb4);line-height:1.5}
.tpg-demo-cart-card>b{font-size:1.45em;color:var(--tpg-text,#f2f2f2)}
.tpg-demo-cart-kicker{font-size:.78em;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--tpg-muted,#a8adb4)}
.tpg-demo-cart-package{position:relative}
.tpg-demo-saving{display:grid;gap:2px;padding:10px 12px;border-radius:var(--tpg-field-radius,12px);background:var(--tpg-success-bg,#133321);color:var(--tpg-success-text,#bff2cf)}
.tpg-demo-saving span{font-size:.9em}
.tpg-demo-compare{margin:18px 0;padding:18px;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:color-mix(in srgb,var(--tpg-panel-bg,#0f1114) 84%,transparent)}
.tpg-demo-compare ul{margin:10px 0 0 20px;color:var(--tpg-muted,#a8adb4)}
.tpg-demo-billing h2{margin:12px 0 0;color:var(--tpg-heading-color,var(--tpg-text,#f2f2f2));font-family:var(--tpg-heading-font,inherit)}
.tpg-demo-billing input[type=text],.tpg-demo-billing input[type=email]{width:100%;box-sizing:border-box;background:var(--tpg-input-bg,var(--tpg-page-bg,#0b0c0e));color:var(--tpg-input-text,var(--tpg-text,#fff));border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-field-radius,12px);padding:14px 15px;font-family:var(--tpg-input-font,var(--tpg-body-font,inherit));font-size:var(--tpg-input-text-size,16px)}
.tpg-demo-billing-row{display:grid;grid-template-columns:140px 1fr;gap:14px}
@media(max-width:760px){.tpg-demo-cart-grid{grid-template-columns:1fr}.tpg-demo-billing-row{grid-template-columns:1fr}}

/* Checkout fields use the same full-width treatment as the gallery forms. */
.tpg-site-surface .tpg-checkout-form{width:100%;min-width:0;gap:18px}
.tpg-site-surface .tpg-checkout-form .tpg-demo-billing-row{grid-template-columns:minmax(0,1fr);gap:18px}
.tpg-site-surface .tpg-checkout-form label{min-width:0;font-size:clamp(16px,3.8vw,20px);line-height:1.35}
.tpg-site-surface .tpg-checkout-form input[type=text],
.tpg-site-surface .tpg-checkout-form input[type=email]{display:block;width:100%!important;max-width:none!important;min-width:0;min-height:50px;box-sizing:border-box!important;margin:0!important;padding:13px 15px!important;border:1px solid var(--tpg-border,#2a2d32)!important;border-radius:var(--tpg-field-radius,12px)!important;background:var(--tpg-input-bg,var(--tpg-page-bg,#0b0c0e))!important;color:var(--tpg-input-text,var(--tpg-text,#fff))!important;font-family:var(--tpg-input-font,var(--tpg-body-font,inherit))!important;font-size:clamp(16px,3.8vw,19px)!important;line-height:1.35!important;box-shadow:none!important}
.tpg-site-surface .tpg-checkout-form input:focus{outline:2px solid var(--tpg-accent,#2271b1);outline-offset:2px}
.tpg-checkout-total{min-width:0;font-size:clamp(17px,4vw,22px)}
.tpg-checkout-total strong{overflow-wrap:anywhere;text-align:right}
@media(max-width:520px){.tpg-checkout-total{gap:8px;flex-wrap:wrap}.tpg-checkout-total span,.tpg-checkout-total strong{flex:1 1 100%;text-align:left}.tpg-cart-bar a{max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;font-size:clamp(14px,4vw,17px)!important}}

/* v0.8.0: sammelbarer Warenkorb für Demo und echte Galerie */
.tpg-demo-cart-link{margin-left:auto!important;background:color-mix(in srgb,var(--tpg-button-bg,#fff) 16%,transparent);border:1px solid var(--tpg-border,#2a2d32)}
.tpg-demo-thumb-card{display:grid;gap:8px;align-content:start}
.tpg-demo-cart-form,.tpg-cart-form{margin:0}
.tpg-demo-cart-form button,.tpg-cart-form button{width:100%}
.tpg-demo-in-cart,.tpg-cart-state{display:inline-flex;align-items:center;min-height:42px;padding:10px 12px;border-radius:var(--tpg-field-radius,12px);background:var(--tpg-success-bg,#133321);color:var(--tpg-success-text,#bff2cf)}
.tpg-demo-cart-list,.tpg-cart-list{display:grid;gap:10px;margin:20px 0}
.tpg-demo-cart-line,.tpg-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114)}
.tpg-demo-cart-line>div,.tpg-cart-line>div{display:grid;gap:4px}.tpg-demo-cart-line span,.tpg-cart-line span{color:var(--tpg-muted,#a8adb4)}
.tpg-demo-cart-line b,.tpg-cart-line b{white-space:nowrap}.tpg-demo-cart-remove{padding:10px 12px!important}
.tpg-demo-cart-total,.tpg-cart-total{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:16px 0;padding:16px 18px;border-top:1px solid var(--tpg-border,#2a2d32);border-bottom:1px solid var(--tpg-border,#2a2d32);font-size:1.08em}
.tpg-demo-cart-total strong,.tpg-cart-total strong{font-size:1.25em}
.tpg-cart-bar{position:sticky;top:10px;z-index:30;display:flex;justify-content:flex-end;margin:0 0 18px;pointer-events:none}
.tpg-cart-bar a{pointer-events:auto;display:inline-flex;gap:8px;align-items:center;padding:10px 14px;border-radius:999px;background:var(--tpg-button-bg,#fff);color:var(--tpg-button-text,#0b0c0e)!important;text-decoration:none!important;box-shadow:0 8px 28px rgba(0,0,0,.16);font-size:var(--tpg-button-text-size,15px)!important}
.tpg-live-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.tpg-live-photo{display:grid;gap:9px;align-content:start}.tpg-live-photo>a{display:block;overflow:hidden;border-radius:var(--tpg-panel-radius,18px);border:1px solid var(--tpg-border,#2a2d32);background:var(--tpg-panel-bg,#0f1114)}
.tpg-live-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.tpg-live-photo-meta{display:grid;gap:7px}.tpg-live-photo-meta>span,.tpg-live-photo-meta>small{color:var(--tpg-muted,#a8adb4)}
.tpg-live-single{margin:20px 0}.tpg-live-single img{display:block;width:100%;max-height:75vh;object-fit:contain;border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114);border:1px solid var(--tpg-border,#2a2d32)}
.tpg-live-single-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}.tpg-live-single-nav a{color:var(--tpg-accent,#fff)!important}
.tpg-cart-line img{width:76px;height:58px;object-fit:cover;border-radius:8px;grid-row:1;grid-column:1}.tpg-cart-line img+div{grid-column:2}.tpg-cart-line:has(img){grid-template-columns:76px minmax(0,1fr) auto auto}
.tpg-cart-upsell{display:grid;gap:10px;margin-top:26px;padding:20px;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114)}
.tpg-cart-upsell p{margin:0;color:var(--tpg-muted,#a8adb4)}.tpg-cart-saving{color:var(--tpg-success-text,#bff2cf)!important}.tpg-cart-upsell .tpg-cart-form{max-width:420px}
.tpg-purchases{display:grid;gap:14px}.tpg-purchases>p{margin:0}.tpg-purchase{padding:18px;border:1px solid var(--tpg-border,#2a2d32);border-radius:var(--tpg-panel-radius,18px);background:var(--tpg-panel-bg,#0f1114)}.tpg-purchase h3{margin:0 0 8px}.tpg-purchase p{margin:8px 0}.tpg-purchase-link{display:inline-block;margin:4px 12px 4px 0;padding:10px 14px;border-radius:10px;background:var(--tpg-button-bg,#fff);color:var(--tpg-button-text,#0b0c0e)!important;text-decoration:none!important}
@media(max-width:760px){.tpg-live-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.tpg-demo-cart-line,.tpg-cart-line,.tpg-cart-line:has(img){grid-template-columns:1fr;align-items:stretch}.tpg-cart-line img,.tpg-cart-line img+div{grid-column:auto;grid-row:auto}.tpg-cart-line img{width:100%;height:auto;aspect-ratio:4/3}.tpg-demo-cart-link{margin-left:0!important}.tpg-cart-bar{top:6px}}
@media(max-width:440px){.tpg-live-gallery{grid-template-columns:1fr 1fr;gap:10px}}


/* v0.8.1 – stabile geschützte Galerievorschauen */
.tpg-protected-image{transition:opacity .18s ease}
.tpg-protected-image.is-loading{opacity:.35}
.tpg-image-error{position:relative;min-height:150px;background:var(--tpg-panel-bg,#0f1114)}
.tpg-image-error:after{content:attr(data-image-error);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;box-sizing:border-box;color:var(--tpg-muted,#a8adb4);font-size:14px;line-height:1.4;pointer-events:none}
.tpg-protected-image.is-error{visibility:hidden}
