.uploaded-files-list {
    margin: 10px 0;
    font-size: 0.9em;
}

.uploaded-file {
    margin: 5px 0;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 3px;
}

.file-name {
    font-weight: bold;
}

.price-value {
    font-family: 'Roesternest Bold';
    font-size: 40px;
}


.projektkaffee-info-configurato,
.coffee-configurator .product-item {
    justify-items: center;
}

.coffee-product-row img{
    max-width: 100px;
}

.field-container {
    border-radius: 3px;
    margin: 20px 0px;
}

.form-fields.premium-fields{
    display: block;
}

.configurator-notice{
    text-align: center;
    padding: 0 10%;
    font-size: 12px;
}

.variation-next-button{
    text-align: end;
    }
    .variation-next-button .button {
        min-width: 150px;
    }

#selected-product-name{
    margin-top: -25px;
}

.confiaddtocart .button.add_to_cart_button{
    background: black;
    color: #fff;
    font-family: 'Roesternest Bold';
    font-size: 16px;
    max-width: 411px;
}

.more-info-button{
    font-size: 14px!important;
    margin-top: 10px;
}

h4{
    font-family: 'Roesternest Bold' !important;
}

/* Grundlegendes Styling für das Pop-up und Grid */
        #configurator-popup {
            position: fixed;
            top: 5%;
            left: 5%;
            right: 5%;
            bottom: 5%;
            background: #fff;
            padding: 20px;
            z-index: 1000;
            max-width: 90%;
            max-height: 90%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
        }

        .configurator-heading,
        .configurator-subheading{
            text-align: center;
            margin: 20px 0;
        }
        .configurator-subheading {
            text-align: center;
            margin-bottom: 50px;
            padding: 0 10%;
        }

        
        .configurator-heading{
            font-size: 60px!important;
        }

        .coffee-configurator .product-grid {
            display: flex;
            gap: 20px;
        }

        .coffee-configurator .product-item {
            padding: 10px;
            flex: 1;
            cursor: pointer;
        }

        .coffee-configurator .coffee-selection-wrapper {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .coffee-product-row {
            display: flex;
            align-items: end;
            justify-content: space-between;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .coffee-product-row img {
            max-width: 150px;
            margin-right: 20px;
        }

        .product-info {
            flex: 1;
            margin-left: 20px;
        }

        .coffee-product-row .product-actions {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }

        .coffee-product-row .product-actions button {
            margin-top: 10px;
        }

        .coffee-selection {
            width: 100%;
            border-collapse: collapse;
        }

        .coffee-selection td {
            padding: 10px;
            border: 1px solid #ddd;
        }

        .configurator-step {
            display: none;
            flex-grow: 1; /* Allow steps to grow and take up available space */
            overflow-y: auto;
        }

        .configurator-step.active {
            display: block;
        }

        .step3-container {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }

        .step3-image {
            flex: 1;
            width: 50%;
        }

        .step3-image img {
            width: 100%;
            height: auto;
        }

        .step3-fields {
            flex: 1;
            width: 50%;
        }

        .form-fields {
            display: none; /* Initial ausblenden */
        }

        .configurator-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            padding-top: 10px;
        }

        .back-button {
            margin-right: auto;
        }

/* ... existing styles ... */

/* Packaging Layers Container */
.packaging-layers {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Quadratisches Format */
    overflow: hidden;
}

/* Grundlegende Layer-Styles */
.packaging-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none; /* Standard: ausgeblendet */
}

/* Basic Packaging zeigt Hintergrundbild und Logo */
.basic-packaging .packaging-layer.background,
.basic-packaging .logo-container {
    display: block;
}

/* Premium Packaging zeigt alle Layer */
.premium-packaging .packaging-layer {
    display: block;
}

/* Deluxe Packaging zeigt nur das Deluxe-Bild */
.deluxe-packaging .packaging-layer.background {
    display: block;
    object-fit: contain;
}

/* Z-Index Ordnung */
.packaging-layer.background { z-index: 1; }
.packaging-layer.nest { z-index: 2; }
/*.packaging-layer.pouch { z-index: 3; }*/
.packaging-layer.trommelroestung { z-index: 4; }
.packaging-layer.outline { z-index: 5; }
.logo-container { z-index: 3; } /* WAS 6 */

.packaging-layer.pouch {
    z-index: 8;
    filter: brightness(1.3);
}

/* Logo Container */
.logo-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    z-index: 3;
    display: none;
    pointer-events: auto;
    cursor: move;
}

.logo-container .packaging-layer.logo {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}



/* Resize Handles */
.resize-handle-nw,
.resize-handle-ne,
.resize-handle-sw,
.resize-handle-se {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border: 1px solid #666;
    border-radius: 50%;
}

.resize-handle-nw { top: -5px; left: -5px; cursor: nw-resize; }
.resize-handle-ne { top: -5px; right: -5px; cursor: ne-resize; }
.resize-handle-sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.resize-handle-se { bottom: -5px; right: -5px; cursor: se-resize; }

/* Drag State */
.logo-container.dragging {
    opacity: 0.8;
}

/* Controls */
.background-controls,
.logo-controls {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.coffee-configurator input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

/* Zeige die Bilder nur für Premium-Variante */
.premium-packaging .packaging-layer {
    display: block;
}

.packaging-layer.background {
    z-index: 1;
}

.packaging-layer.nest {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}


.packaging-layer.outline {
    z-index: 4;
}

/* Styling für die Formularfelder */
.coffee-configurator .form-fields input[type="color"] {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.coffee-configurator .form-fields input[type="file"] {
    margin: 10px 0;
}

.coffee-configurator .form-fields label {
    display: block;
    font-family: 'Roesternest Bold';
    text-transform: uppercase;
    font-size: 24px;
}

.coffee-configurator .form-fields .sublabel {
    display: block;
    font-family: 'Roesternest Bold';
    text-transform: uppercase;
    font-size: 16px;
    margin-top: 10px;
}

.coffee-configurator .form-fields input[type="text"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Verbesserte Darstellung der SVG-Färbung */
.packaging-layer.nest svg {
    width: 100%;
    height: 100%;
}

/* Styling für den Spectrum Colorpicker */
.sp-container {
    border: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sp-picker-container {
    border: none;
}

.sp-replacer {
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    padding: 8px;
    display: inline-block;
    border: solid 2px lightgrey;
    color: #333;
    vertical-align: middle;
}

.sp-preview {
    width: 30px;
    height: 30px;
    border: none;
    margin-right: 5px;
}

.sp-dd {
    padding: 2px 0;
    height: 16px;
    line-height: 16px;
    border-color: #ddd;
}

/* CMYK Input Styling */

.cmyk-fields {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.cmyk-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cmyk-input::-webkit-inner-spin-button,
.cmyk-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

.cmyk-fields input::before {
    content: attr(placeholder);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
}





.packaging-layer.logo {
    position: absolute;
    transform-origin: center;
    z-index: 5; /* Über allen anderen Layers */
    pointer-events: none;
}

.background-controls,
.logo-controls {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.coffee-configurator input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.packaging-layer.background {
    transform-origin: center;
}

.logo-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 30%;
    z-index: 3;
    display: none;
    pointer-events: auto; /* Erlaube Mausinteraktionen */
    cursor: move;
    border: 1px solid transparent; /* Unsichtbarer Rahmen standardmäßig */
}

.logo-container .packaging-layer.logo {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Das Logo-Bild selbst soll keine Events abfangen */
}

.resize-handle {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: white;
    border: 1px solid #666;
    border-radius: 50%;
    cursor: se-resize;
    pointer-events: auto; /* Erlaube Mausinteraktionen */
}

.logo-container.dragging {
    opacity: 0.8;
}

.logo-container.editing {
    border: 1px dashed #666; /* Sichtbarer Rahmen im Bearbeitungsmodus */
}

/* Resize Handles nur im Bearbeitungsmodus anzeigen */
.resize-handle-nw,
.resize-handle-ne,
.resize-handle-sw,
.resize-handle-se {
    display: none;
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border: 1px solid #666;
    border-radius: 50%;
}

.logo-container.editing .resize-handle-nw,
.logo-container.editing .resize-handle-ne,
.logo-container.editing .resize-handle-sw,
.logo-container.editing .resize-handle-se {
    display: block;
}

/* Titel Text Container */
.title-text-container {
    position: absolute;
    bottom: 7%; /* Ursprüngliche Position beibehalten */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: auto;
    z-index: 4;
}

.title-text-svg {
    width: 100%;
    height: auto;
}

.curved-title,
.curved-taste {
    font-family: 'Roesternest Bold', sans-serif;
    font-size: 14px;
    fill: currentColor;
    text-transform: uppercase;
}

.curved-taste {
    font-family: 'Roesternest Regular', sans-serif;
    font-size: 6px; /* Deutlich kleiner */
    fill: currentColor;
    text-transform: none;
}

.curved-description {
    font-family: 'Roesternest Regular', sans-serif;
    font-size: 4px; /* Noch kleiner als der Geschmack */
    fill: currentColor;
    text-transform: none;
}

/* Zeige den Text-Container nur wenn Premium */
.premium-packaging .title-text-container {
    display: block;
}

/* Basic und Premium Packaging zeigen Logo-Container */
.basic-packaging .logo-container,
.premium-packaging .logo-container {
    display: block;
    position: absolute;
}

/* Gemeinsame Styles für Logo-Container in beiden Modi */
.logo-container.editing {
    outline: 2px dashed #000;
}

.logo-container .resize-handle-nw,
.logo-container .resize-handle-ne,
.logo-container .resize-handle-sw,
.logo-container .resize-handle-se {
    display: none;
}

.logo-container.editing .resize-handle-nw,
.logo-container.editing .resize-handle-ne,
.logo-container.editing .resize-handle-sw,
.logo-container.editing .resize-handle-se {
    display: block;
}









.projektkaffee-info-configurator {
    margin-top: 10px;
    text-align: center;
}
.projektkaffee-info-configurator .product-text-1,
.projektkaffee-info-configurator .product-ab-stuck,
.projektkaffee-info-configurator .product-individuell {
    font-size: 14px;
}
.projektkaffee-info-configurator .product-individuell {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}
.projektkaffee-info-configurator .product-text-2 {
    margin-bottom: 5px;
    font-size: 12px;
}
.projektkaffee-info-configurator .product-ab-stuck {
    margin-top: 20px;
}
.rating-stars-configurator {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}
.rating-stars-configurator img {
    width: 13px;
    height: 13px;
    margin-right: 2px;
}




.coffee-configurator .product-short-description {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

/* Message Badge Styling */
.message-badge {
    position: absolute;
    right: 32%;
    top: 62%;
    transform: translateY(-50%) rotate(-10deg);
    width: 13%;
    height: 13%;
    background: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 6;
    align-content: center;
}

.message-badge-text {
    width: 100%;  /* von 90% auf 80% reduziert für mehr Randabstand */
    height: 100%; /* von 90% auf 80% reduziert für mehr Randabstand */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    word-wrap: break-word;
    font-weight: normal;
    color: #000;
    line-height: 1.2;
}

/* Zeige Badge nur für Basic und Premium */
.basic-packaging .message-badge,
.premium-packaging .message-badge {
    display: flex;
}

/* Aktualisiere die Premium Packaging Styles */
.premium-packaging {
    background-color: #ffffff; /* Standard-Hintergrundfarbe */
}

/* Toggle Switch Styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 10px 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #000000;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

/* Zusammenfassungs-Seite Styling */
.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.summary-section {
    margin-bottom: 25px;
}



.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    line-height: 1.4;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    color: #212529;
    text-align: right;
}

.summary-preview {
    position: relative;
}

.packaging-preview {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.packaging-preview .packaging-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.request-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    padding: 15px 30px;
    background-color: #000;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.request-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-content {
        grid-template-columns: 1fr;
    }
    
    .summary-preview {
        order: -1;
    }
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.inquiry-form textarea {
    height: 100px;
    resize: vertical;
}

.submit-inquiry {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
}

.submit-inquiry:hover {
    background-color: #333;
}

/* Thank You Page Styling */
.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}


.thank-you-container .home-button {
    display: inline-block;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.thank-you-container .home-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* Responsive Design für die Danke-Seite */
@media (max-width: 768px) {
    .thank-you-container {
        padding: 20px;
    }

    .thank-you-container .configurator-heading {
        font-size: 2em;
    }

    .thank-you-container .summary-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .thank-you-container .value {
        padding-left: 20px;
    }
}

/* Anpassung des Layouts für ColorPicker und CMYK Inputs */
.field-container {
    margin-bottom: 20px;
}

.color-picker-cmyk-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Color Picker Wrapper */
.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.color-picker-wrapper small, .cmyk-inputs small {
    color: #666;
    display: block;
    margin-bottom: 2px;
    align-content: center;
}

/* CMYK Input Styling */
.cmyk-inputs {
    flex-grow: 1;
}

.cmyk-fields {
    display: flex;
    gap: 8px;
}

.cmyk-input {
    width: 50px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Spectrum ColorPicker Anpassungen */

.field-container .sp-replacer {
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    padding: 8px;
    display: inline-block;
    border: solid 2px lightgrey;
    color: #333;
    vertical-align: middle;
    background: #fff;
    min-width: 75px;
}

.sp-preview {
    width: 30px;
    height: 30px;
    border: none;
    margin-right: 5px;
}

.variation-row {
    display: flex
;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
    border-radius: 4px;
    padding-left: 190px;
}



.variation-selection {
    display: flex;
    justify-content: space-between;
}

.variation-attribute {
    display: flex;
    gap: 10px;
}

.variation-swatch {
    padding: 5px 20px;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    background-color: #fff;
    font-family: 'Roesternest Bold';
    text-transform: uppercase;
}

.variation-swatch.selected {
    background-color: #000;
    color: #fff;
}

.price-container {
    display: flex
;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    margin-top: 20px;
    justify-content: space-between;
}

.price-info {
    display: flex;
    gap: 5px;
    white-space: nowrap;
    font-size: 1.2em;
    align-items: baseline;
}

.quantity-select {
    max-width: 60px;
}



.variation-row {
    width: 100%;
    margin-top: 10px;
    display: none; /* Initially hidden */
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.quantity-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.quantity-button:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.quantity-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 5px;
}

.quantity-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

div.quantity .minus{
    background-color: #fff;
    color: black;
    border: 2px solid lightgrey;
}
div.quantity .plus{
    background-color: #fff;
    color: black;
    border: 2px solid lightgrey;
}

.inquiry-form .name-row,
.inquiry-form .address-row {
    display: flex;
    gap: 20px;
}



.inquiry-form .half {
    width: 50%;
}

.inquiry-form .quarter {
    width: 25%;
}

.inquiry-form .three-quarter {
    width: 75%;
}

.inquiry-form .privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.inquiry-form .privacy-consent input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.inquiry-form .privacy-consent label {
    font-size: 14px;
    line-height: 1.4;
}

.inquiry-form .privacy-consent a {
    color: #000;
    text-decoration: underline;
}

.inquiry-form .privacy-consent a:hover {
    color: #666;
}

/* Responsive Design für mobile Ansicht */
@media (max-width: 768px) {
    .configurator-heading {
        font-size: 40px !important;
    }
    .configurator-subheading {
        padding: 0 5%;
        font-size: 16px;
    }
    .coffee-configurator .product-grid {
        display: blocK;
    }
    .coffee-product-row {
        display: block;
    }
    .coffee-product-row .product-actions {
        align-items: flex-start;
        margin-left: 20px;
    }
    .product-info .coffee-rating {
        justify-content: start;
        align-items: start;
        flex-direction: initial;
        gap: 20px;
    }
    .variation-row {
        padding-left: 20px;
    }
    .variation-next-button {
        text-align: start;
        margin-left: 20px;
    }
    .summary-content {
        display: flex;
        flex-direction: column; /* Spalten untereinander anordnen */
    }

    .summary-content > div {
        width: 100%; /* Jede Spalte nimmt die volle Breite ein */
    }

    .coffee-configurator .variation-row {
        flex-direction: column; /* Variationen untereinander anordnen */
        align-items: flex-start; /* Links ausrichten */
    }
    .step3-container {
        display: block;
    }

    .step3-image {
        width: 100%;
    }

    .step3-fields {
        width: 100%;
    }
    #post-126895 > div > div.wp-block-spacer{
        height: 100px!important;
    }

    /* Neue Regeln für die mobile Ansicht der Variationen */
    .variation-selection {
        display: flex;
        flex-direction: column; /* Stapeln der Auswahlmöglichkeiten */
        margin-bottom: 20px; /* Abstand zwischen den Auswahlmöglichkeiten */
    }
    .variation-attribute {
        margin-bottom: 10px; /* Abstand zwischen den Attributen */
    }
    .price-container {
        display: flex;
        flex-direction: column; /* Preisinformationen untereinander anordnen */
        align-items: flex-start; /* Links ausrichten */
    }
    .quantity-selector {
        display: flex;
        flex-direction: initial;
        align-items: flex-start;
    }

    /* Mobil Logo einw enig nach Unten schieben */
    .basic-packaging .logo-container, .premium-packaging .logo-container {
        margin-top: 20px;
    }
}


