:root {
    --brand: #c8a86b;
    --ink: #222;
    --muted: #6b7280;
    --desc: #F3F2F2;
    --bg: #f7f7f7;
    --card: #fff;
    --accent: #1f2937;
    --gold:#c9a14b;
    --text:#3b3b3b;
    --muted:#6a6a6a;
    --bg:#f8f7f6;
    --rightcard: #F9F9F9;
    --bgdesc: #F3F3F3;
    --gray-bg: #f5f4f4;
    --gray-text: #999;
    --text: #222;

    --accents: #be9b53;          /* Schienen- und Textfarbe */
    --overlay-opacity: 0.6;     /* Deckkraft des Hintergrundes */
}

/* === Vollbild Overlay === */
.pp-documents { margin-top:16px; padding:12px; border:1px solid #e5e5e5; border-radius:6px; }
.pp-documents-title { margin:0 0 8px; font-size:1rem; color:#333; }
.pp-doc-list .doc-link { display:block; margin:6px 0; color:#bd9b53; text-decoration:none; }
.pp-doc-list .doc-link:hover { text-decoration:underline; }

.plissee-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, var(--overlay-opacity));
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* === Plissee Loader === */
.plissee-stagger {
    --w: 140px;
    --h: 120px;
    --rail: var(--accents);
    --slat-a: #f2f2f2;
    --slat-b: #e0e0e0;
    --slat-gap: 2px;
    --radius: 6px;
    --speed: .9s;
    --stagger: .06s;

    position: relative;
    width: var(--w);
    height: var(--h);
    border-radius: var(--radius);
    background: #f7f7f7;
    padding: 10px 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Schienen */
.plissee-stagger::before,
.plissee-stagger::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 8px;
    background: var(--rail);
}
.plissee-stagger::before { top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.plissee-stagger::after  { bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }

/* Lamellen */
.plissee-stagger .slats {
    position: absolute;
    inset: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--slat-gap);
}
.plissee-stagger .slat {
    height: 0;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--slat-a), var(--slat-b));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.05);
    transform-origin: top center;
    animation: slatOpenClose var(--speed) ease-in-out infinite alternate;
}
.plissee-stagger .slat:nth-child(odd) { filter: brightness(.95); }
.plissee-stagger .slat:nth-child(n) { animation-delay: calc(var(--stagger) * var(--i)); }

@keyframes slatOpenClose {
    0% { height: 0; }
    50% { height: 50%; }
    100% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .plissee-stagger .slat { animation: none; height: 100%; }
}

/* === Text darunter === */
.loader-text {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    text-align: center;
    letter-spacing: 0.4px;
    user-select: none;
}


.shipping-order-time {
    background: #fff;
    text-align: center;
    border-radius: 0px;
    padding: 0.1rem;
    color:  #000 !important;
    font-size: 0.9rem;
    margin-bottom: 0px;
    font-weight: bold;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
}

.dimension-box {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.dimension-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dimension-field label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--text);
}

.dimension-field input {
    background: var(--gray-bg);
    border: none;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text);
    border-radius: 2px;
}

.dimension-field input::placeholder {
    color: var(--gray-text);
}

.dimension-multiply {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px; /* damit das x auf Höhe der Inputs sitzt */
}
.pp-h1-box {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
h1.pp-h1 {
    width: 100%;
    color: #000;
    margin: 0px 0px 12px 0;
}

.doc-box{
    display: flex
;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1px;
    padding: 18px;
    background: var(--bgdesc);
    border-radius: 4px;
    margin-top: 10px;
}

.doc-list{
    display:flex;
    flex-direction:column;
    gap:16px;
    flex:1;
}

.doc-item{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
}

.doc-icon{
    flex:0 0 auto;
    display:inline-flex;
}

.doc-text{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    line-height:1.35;
    color:var(--text);
}

.doc-link{
    color:var(--gold);
    text-decoration:underline;
    text-underline-offset:2px;
}

.doc-sep{ color:var(--text); opacity:.8; }

.doc-sub{
    color:#555;          /* grauer Zusatztext */
    font-weight:500;
}

/* Info-Button rechts */
.doc-info{
    flex:0 0 auto;
    background:#fff0;
    border:0;
    padding:2px;
    border-radius:50%;
    line-height:0;
    pointer-events: none;
}

.doc-item:hover .doc-link{ filter:brightness(0.9); }
.doc-info:hover svg circle{ stroke:#a88433; }

.is--ctl-pixelplissee .page-wrap > .container { max-width: 100% !important;}

.is--ctl-pixelplissee  .w-100 {

    width: 100%;
}

.is--ctl-pixelplissee .s-backward-button {
    display: inline-block;
    width: 162px;
    background-image: url('https://www.sonnenmax.de/themes/Frontend/Shop/frontend/_resources/img/seilspann_iconlist/ss-confiwhite-button.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 162px auto;
    border: 0px;
    background-color: transparent !important;
    height: 42px;
    line-height: 38px;
    font-size: 13px;
    padding-right: 0px !important;
    padding-left:  46px !important;
    color: #000 !important;
    text-align: center;
}

.is--ctl-pixelplissee .s-backward-button:hover {
    display: inline-block;
    width: 162px;
    background-image: url('https://www.sonnenmax.de/themes/Frontend/Shop/frontend/_resources/img/seilspann_iconlist/ss-confiwhite-button.svg') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 162px auto !important;
    border: 0px;
    background-color: transparent !important;
    height: 42px;
    line-height: 38px;
    font-size: 13px;
    padding-left:  46px !important;
    padding-right: 0px !important;
    color: #000 !important;
    text-align: center;
}

.is--ctl-pixelplissee .s-forward-button {
    display: inline-block;
    width: 162px;
    background-image: url('https://www.sonnenmax.de/themes/Frontend/Shop/frontend/_resources/img/seilspann_iconlist/ss-confi-black-button.svg');
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 162px auto !important;
    border: 0px;
    background-color: transparent !important;
    height: 42px;
    line-height: 38px;
    font-size: 13px;
    padding-left: 0px;
    padding-right: 46px !important;
    color: #FFF !important;
    text-align: center;
}

.is--ctl-pixelplissee .s-forward-button:hover {
    display: inline-block;
    width: 162px;
    background-image: url('https://www.sonnenmax.de/themes/Frontend/Shop/frontend/_resources/img/seilspann_iconlist/ss-confi-black-button.svg') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 162px auto !important;
    border: 0px;
    background-color: transparent !important;
    height: 42px;
    line-height: 38px;
    font-size: 13px;
    padding-left: 0px;
    padding-right: 46px !important;
    color: #FFF !important;
    text-align: center;
}


.is--ctl-pixelplissee .s-info-button {


    border: 0px;
    background: var(--brand);
    display: inline-block;
    text-decoration: none !important;
    color: #FFF;
    font-weight: bold;
    padding: 10px 15px;
}

.is--ctl-pixelplissee .s-info-button:hover {

    border: 0px;
    background: var(--brand);
    display: inline-block;
    text-decoration: none !important;
    color: #FFF;
    font-weight: bold;
    padding: 10px 15px;
}

.is--ctl-pixelplissee .s-info-button .cta-inner-btn {
    width: auto;
    display: block;
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 13px;
}
.is--ctl-pixelplissee .margin-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pp-configurator {

    color: var(--ink);
    padding:  0px
}


/* Stepbar */
.pp-steps {
    display: grid;
    grid-template-columns:repeat(7, 1fr);
    gap: 2px;
    background: #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0px
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .pp-steps {
        grid-template-columns: 1fr; /* statt repeat(7, 1fr) */
    }


}


.pp-steps .pp-step {
    text-transform: uppercase;
    padding: 6px 12px;
    color: #aaa;
    pointer-events: none;
}

.pp-steps .pp-step.active {
     color: #fff;
}

.pp-step {
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    background: #ddd;
    color: #555
}

.pp-step.active {
    background: var(--brand);
    color: #fff
}

.pp-step.done {
    background: #eee;
    color: #333;
    cursor: pointer
}

/* Panel */
.pp-panel {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 20px
}


/* Mobile Ansicht */
@media (max-width: 768px) {


    .pp-panel {
        grid-template-columns:1fr;
        display: block;
        gap: 20px
    ;
    }


}


.pp-colors-head {

    padding: 6px 3px;
    font-weight: bold;
}

@media (max-width: 1100px) {
    .pp-panel {
        grid-template-columns:1fr
    }
}

/* Preview */
.pp-preview {

    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px
}


/* Mobile Ansicht */
@media (max-width: 768px) {


    .pp-preview {
        border-radius: 8px;
        display: flex;
        align-items: normal;
        justify-content: normal;
        min-height: auto;
    }
}


.pp-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
}

/* Options (rechte Spalte) */
.pp-options {
    background: var(--rightcard);
    border-radius: 0px;
    padding: 18px;
    position: relative;
}

h2 {
    margin: 0 0 12px;
    font-size: 20px
}

.pp-h2 {

    font-size: 16px
}

.pp-summary-zwischensumme-title {
    text-transform: uppercase;
    font-weight: bold;
}

.pp-summary-gesamtsumme {
    text-transform: uppercase;
    font-weight: bold;
}

.pp-summary-rabattsumme-title {

    text-transform: uppercase;
    font-weight: bold;
    color: red;
}
.pp-summary-rabattprice {

    text-transform: uppercase;
    font-weight: bold;
    color: red;
}

h3 {
    margin: 14px 0 8px;
    font-size: 15px;
    color: var(--muted)
}

.pp-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.pp-item {
    display: flex;
    justify-content: space-between; /* Text links, Haken rechts */
    align-items: center;            /* vertikal zentrieren */
    font-size: 16px;
    padding: 10px 15px;
    border: none;
    width: 100%; /* passt sich an */
    cursor: pointer;
    text-align: left;
}

.pp-item .pp-title {
    flex: 1;  /* nimmt den Platz links ein */
}

.pp-item .checkmark {
    display: none;  /* Standardmäßig ausblenden */
    font-size: 20px;
    font-weight: bold;
}

.pp-item.selected .checkmark {
    display: inline;  /* Nur sichtbar wenn .selected gesetzt */
}

.pp-item {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 0px;
    background: #fff;
    cursor: pointer;
    position: relative;
    text-align: left
}

.pp-item.selected {
    background: var(--brand);
    color: #FFF;

}

.pp-desc {

    font-size: 15px;
    color: #000;
    display: inline-block;
    padding: 0px;
    width: 100%;
}

.pp-desc ul {
     list-style-position: inside;
}

/* Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.color-swatch {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.color-swatch .dot {
    width: 53px;
    height: 53px;
    border-radius: 50%
}

.color-swatch.selected {
    border: 3px solid var(--brand)
}

.color-swatch .check {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none
}

.color-swatch.selected .check {
    display: flex
}

.color-swatch .check svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35))
}

.color-labels {
    /*display: flex;*/
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-top: 4px;
    color: var(--muted)
}

/* Size */
.pp-size-grid {
    display: grid;
    grid-template-columns:1fr 10px 1fr;
    gap: 12px
}

.pp-size-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.pp-size-grid input {
    padding: 10px;
    border-radius: 0;
    border: none;
    background: #F3F2F2;
    box-shadow: none;
}

/* Footer (nur Steps 1–6) */
.pp-footer {
    margin-top: 18px;
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
    padding: 8px;
}

.pp-nav {
    display: grid
;
    gap: 6px;
    align-items: center;
    text-align: center;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.pp-nav-left .s-backward-button {

    float: left;
}

.pp-nav-right .s-forward-button {

    float: right;
}



.pp-summary-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    text-align: center;
    justify-content: center; /* Buttons horizontal zentrieren */
}

.btn {
   /* border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;*/
    cursor: pointer
}

.btn-ghost {
    background: #fff;
    border: 1px solid #ddd
}

.btn-primary {
    background: var(--accent);
    color: #fff
}

.btn-success {
    background: var(--brand);
    color: #fff
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed
}

.pp-pricebox {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    font-size: 1rem;
}
.t-right {
 text-align: right;
}

.pp-price {

    font-weight: 900
}

.pp-price-note {
    font-size: 13px;
    color: var(--muted)
}

/* SUMMARY – volle Breite */
.pp-summary-full {
    grid-column: 1/-1
}

.pp-summary-grid {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 20px
}

@media (max-width: 1100px) {
    .pp-summary-grid {
        grid-template-columns:1fr
    }
}

/* LINKS: Kartenbereich (2 Spalten) */
.pp-summary-cards {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    align-content: start;
}

@media (max-width: 800px) {
    .pp-summary-cards {
        grid-template-columns:1fr
    }
}

.pp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;   /* Bild links, Text rechts */
    align-items: stretch;  /* beide gleich hoch */
}

.pp-card-img {
    flex: 0 0 45%;  /* Bild nimmt ca. 30% der Breite */
}

.pp-card-img img {
    width: 100%;
    height: 100%;         /* passt sich dynamisch an */
    object-fit: fill;    /* Bild wird beschnitten statt verzerrt */
    background: #f3f3f3;
    display: block;
}

.pp-card-body {
    padding: 12px;
    flex: 1; /* Text nimmt restlichen Platz ein */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Text mittig vertikal */
}

.pp-card-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.pp-card-text {
    font-size: 14px;
    color: #666;
}


/* RECHTS: Textübersicht + Preis + Buttons */
.pp-summary-right {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.pp-summary-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px
}

.pp-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2
}

.pp-summary-line:last-child {
    border-bottom: none
}

.pp-summary-label {
    font-weight: 700
}

.pp-summary-pricebox {


    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    font-size: 1rem;
}

.pp-summary-price {

    font-weight: 900
}

.pp-summary-note {
    font-size: 13px;
    color: var(--muted)
}

.pp-summary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

/* Debug JSON */
.pp-json {
    background: #0b1020;
    color: #cfe1ff;
    border-radius: 8px;
    padding: 12px;
    overflow: auto;
    font-size: 12px
}

/* === Summary: volle Breite ohne linke Preview-Karten === */
.pp-summary-grid.is-full {
    grid-template-columns: 1fr; /* rechte Spalte auf 100% */
}


/* Summary auf volle Breite + Preview ausblenden */
#pp-configurator.is-summary .pp-panel {
    grid-template-columns: 1fr; /* nur noch 1 Spalte */
}

#pp-configurator.is-summary .pp-preview {
    display: none; /* Preview links weg */
}

/* Falls du die Summary-Grid-Variante nutzt */
.pp-summary-grid.is-full {
    grid-template-columns: 1fr 1fr; /* rechte Box 100% */
}

.pp-summary-grid.is-full .pp-summary-cards {
    display: none; /* linke Karten verstecken (wenn vorhanden) */
}

/* Im Summary-Step Vorschau (linke große Bildbox) ausblenden */
#pp-configurator.is-summary .pp-preview {
    display: none;
}

/* Panel auf 1 Spalte setzen, damit nur die Optionsseite übrig bleibt */
#pp-configurator.is-summary .pp-panel {
    grid-template-columns: 1fr;
}

#pp-configurator .quantity--select {
    height: 100%;
    font-size: 1rem;
}

#pp-configurator .quantity--select:after {

    color: #FFF;
    height: 100%;
    padding: 0.2rem;
    font-size: 8px;
    padding-top: 5%;
    padding-bottom: 0 !important;
}

.error-width-info,
.error-height-info {
    color: #d00;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.is--hidden {
    display: none !important;
}

.submit-plissee {

    background-image: url(https://www.sonnenmax.de/themes/Frontend/Shop/frontend/_resources/img/seilspann_iconlist/ss-confi-black-button.svg);
    background-position: right center;
    width: 212px;
    height: 42px;
    background: transparent;
    background-repeat: no-repeat;
    border: 0;
    color: #fff;
    font-weight: bold;
    padding-right: 40px;
    padding-left: 40px;
    line-height: 38px;
    display: inline-block;
    background-size: cover;
}
