@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v8-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v8-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v8-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-v8-latin-800.woff2') format('woff2');
}

:root {
    --primary-color: #1075bb;
    --primary-glow: rgba(16, 117, 187, 0.4);
    --bg-dark: #162330;
    /* Secondary color for left panel */
    --bg-light: #f9fafb;
    --sidebar-width: 76px;
    --preview-width: 30%;
    /* Reverted to 30/70 split */
    --accent-color: #ff6e42;
    --text-main: #111827;
    --text-muted: #6b7280;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.05);
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --mobile-controlbar-height: 60px;
    --mobile-preview-height: 190px;
    --mobile-hero-overlap-adjust: -40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

body {
    font-family: 'Plus Jakarta Sans';
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow: hidden;
    /* App-like feel */
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    background: var(--bg-dark);
}

/* 1. Far Left Control Bar - Anchored Premium Sidebar */
.control-bar {
    width: 76px;
    background-color: #1e293b;
    /* Hellerer Slate-Ton für besseren Kontrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 50;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.control-item {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Interaktive Tooltips / Labels */
.control-label {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-12px);
    background: #1e293b;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
    z-index: 1000;
}

.control-item:hover .control-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.control-item:hover,
.control-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.04);
}

.feedback-icon-img {
    width: 24px;
    height: 24px;
    filter: invert(1) opacity(0.4);
    transition: all 0.3s ease;
}

.control-item:hover .feedback-icon-img,
.control-item.active .feedback-icon-img {
    filter: invert(1) opacity(1);
    transform: scale(1.1);
}

.control-item.active::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--accent-color);
}

.control-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 34px;
    margin: 10px 0 24px 0;
    opacity: 0.5;
}

.control-support {
    margin-top: auto;
}

.control-more-dropdown,
.control-more-menu {
    display: none;
}

.control-more-menu[hidden] {
    display: none !important;
}

/* 2. Left Preview Panel */
.preview-panel {
    width: var(--preview-width);
    background-color: var(--bg-dark);
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.preview-status {
    z-index: 10;
    margin-bottom: 20px;
}

.price-box {
    opacity: 0.9;
}

.price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
}

.is-calculating {
    animation: calcPulse 1.6s ease-in-out infinite;
}

.product-hero {
    position: absolute;
    top: 50%;
    left: calc(var(--preview-width) + var(--sidebar-width));
    transform: translate(-50%, -50%);
    z-index: 40;
    width: clamp(280px, 26vw, 420px);
    height: clamp(280px, 26vw, 420px);
    pointer-events: none;
    transition: var(--transition-premium);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.1));
    /* snappier transition: 0.4s instead of 0.8s */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, filter 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    /* Independent scale property to avoid transform conflicts */
    scale: var(--img-scale, 1);
}

.product-hero img.active {
    opacity: 1;
    transform: scale(1);
    animation: float 6s ease-in-out infinite;
}

.product-hero.is-empty::after {
    content: "";
    display: none;
}

.control-item.slide-hidden {
    opacity: 0.25;
    pointer-events: none;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 4. Right Config Panel */
.config-panel {
    flex: 1;
    background-color: var(--white);
    padding: 60px 80px 30px 250px;
    /* Reduced bottom padding */
    /* Large left padding to clear the product hero */
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.config-title {
    flex: 1;
    min-width: 0;
}

.config-title h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand-logo {
    display: block;
    width: min(100%, 130px);
    height: auto;
    margin-bottom: 18px;
}

.config-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 500;
}

.app-legal-footer {
    margin-top: auto;
    padding: 60px 0 40px 0;
    width: 100%;
    border-top: 1px solid #f1f5f9;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    opacity: 0.7;
    transition: var(--transition-premium);
}

.app-legal-footer:hover {
    opacity: 1;
}

.app-legal-nav {
    display: flex;
    gap: 24px;
}

.app-legal-nav a {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-premium);
    position: relative;
    padding: 4px 0;
}

.app-legal-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: var(--transition-premium);
}

.app-legal-nav a:hover {
    color: var(--primary-color);
}

.app-legal-nav a:hover::after {
    width: 100%;
}

.app-copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.lang-selector {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.lang-dropdown {
    position: relative;
}

.lang-trigger {
    min-width: 170px;
    justify-content: space-between;
}


#btn-config-restart,
#btn-homepage {
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-menu {
    position: absolute;
    top: 50%;
    left: 100%;
    margin-left: 20px;
    transform: translateY(-50%) translateX(-12px);
    min-width: 130px;
    background: #1e293b;
    color: white;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 25px; /* Increased to cover the 20px gap */
    height: 100%;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:hover .lang-menu[hidden] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
    display: flex !important;
}

.lang-dropdown:hover .lang-trigger .control-label,
#lang-current-label-sidebar {
    display: none !important;
}

.lang-menu[hidden] {
    display: none !important;
}

.lang-option {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.lang-option.is-active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.lang-option .lang-code {
    font-size: 0.65rem;
    opacity: 0.4;
    color: inherit;
    min-width: 20px;
}

.mobile-menu-option svg,
.mobile-menu-option i {
    color: inherit;
}



/* Mobile-only elements should be hidden on desktop by default */
.mobile-more-label,
.mobile-menu-option {
    display: none !important;
}

.lang-code {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #64748b;
    min-width: 22px;
}

.lang-label {
    font-size: 1rem;
}

.btn-ghost {
    background: #f3f4f6;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Plus Jakarta Sans';
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    transition: var(--transition-premium);
}

.btn-ghost:hover {
    background: #e5e7eb;
}

.btn-ghost i,
.btn-ghost svg {
    color: inherit;
}

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

.is-transparent {
    opacity: 0 !important;
}

.is-shaking {
    animation: shake 0.4s;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: 20px;
}

.feedback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 17, 29, 0.55);
    backdrop-filter: blur(2px);
}

.feedback-dialog {
    position: relative;
    width: min(100%, 460px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    padding: 24px;
    z-index: 1;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.feedback-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f4a84;
}

.modal-header-icon {
    width: 22px;
    height: 22px;
    /* Filter zur Annäherung an #0f4a84 (Deep Blue) */
    filter: invert(18%) sepia(91%) saturate(2371%) hue-rotate(193deg) brightness(92%) contrast(102%);
    opacity: 0.9;
}

.feedback-title-wrap h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.feedback-close-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-premium);
}

.feedback-close-btn:hover {
    background: #eef2ff;
}

.feedback-subtitle {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.feedback-form {
    display: grid;
    gap: 10px;
}

.feedback-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f2937;
}

.feedback-input {
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    font-size: 16px;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.feedback-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-feedback-send {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-premium);
}

.btn-feedback-send:hover {
    background: #0d64a0;
}

.btn-feedback-send.is-success {
    background: #10b981;
}

.feedback-feedback {
    font-size: 0.85rem;
    color: #0f766e;
    margin-top: 2px;
}

.feedback-feedback.is-error {
    color: #b91c1c;
}

.feedback-feedback.is-success-msg {
    color: #0f766e;
}

/* Steps (Tabs) */
.step-indicator {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78px;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 14px 2px 18px;
    margin-bottom: 50px;
    min-height: 110px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.step-indicator::-webkit-scrollbar {
    display: none;
}

.step-circle {
    width: 78px;
    height: 78px;
    min-width: 78px;
    flex: 0 0 78px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-premium);
}

.step-circle i,
.step-circle svg,
.step-circle img {
    color: #94a3b8;
    font-size: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    display: block;
    object-fit: contain;
}

.step-circle:not(.active):not(.completed) img {
    filter: invert(72%) sepia(9%) saturate(1006%) hue-rotate(178deg) brightness(86%) contrast(85%);
    opacity: 0.65;
}

.step-circle.active {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.step-circle.active i,
.step-circle.active svg,
.step-circle.active img {
    color: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
}

.step-circle.active img {
    filter: invert(38%) sepia(86%) saturate(1207%) hue-rotate(177deg) brightness(89%) contrast(88%);
}

.step-circle.completed:not(.active) {
    background-color: #ecfdf5;
    border-color: #10b981;
}

.step-circle.completed:not(.active) i,
.step-circle.completed:not(.active) svg,
.step-circle.completed:not(.active) img {
    color: #10b981 !important;
}

.step-circle.completed:not(.active) img {
    filter: invert(53%) sepia(91%) saturate(543%) hue-rotate(113deg) brightness(96%) contrast(91%);
}

.step-circle.completed::after {
    content: '';
    position: absolute;
    top: -11px;
    right: -11px;
    width: 22px;
    height: 22px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.step-circle.completed::after {
    background: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* Option Cards - Horizontal & Premium */
.options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 850px;
    padding-top: 15px;
    transition: opacity 0.2s ease;
    /* Space for the badges on the top border */
}

.options-wrapper.is-layout-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 850px;
    align-items: start;
}

.options-wrapper.is-layout-grid-2 .options-search-wrap,
.options-wrapper.is-layout-grid-2 .option-card.no-results,
.options-wrapper.is-layout-grid-2 .options-group-title,
.options-wrapper.is-layout-grid-2 .options-toggle-wrap {
    grid-column: 1 / -1;
}

.options-wrapper.is-layout-grid-2 .option-card {
    height: 100%;
}

.option-card.no-results {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    cursor: default;
    padding: 30px;
    text-align: center;
    box-shadow: none;
}

.option-card.no-results:hover {
    transform: none;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.option-card.no-results .opt-icon {
    margin: 0 auto 16px;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.option-card.no-results .opt-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.option-card.no-results .opt-desc {
    max-width: 320px;
    margin: 0 auto;
}

.options-search-wrap {
    margin-bottom: 24px;
    position: relative;
    display: block;
    width: 100%;
}

.options-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-premium);
    z-index: 2;
    padding: 0;
}

.search-clear-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.options-search-input {
    width: 100%;
    min-height: 54px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 52px 0 54px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    display: block;
    appearance: none;
    -webkit-appearance: none;
}

.options-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px var(--primary-glow);
}

.options-search-wrap:focus-within .options-search-icon {
    color: var(--primary-color);
}

.search-clear-btn:hover {
    background: #e2e8f0;
    color: var(--accent-color);
    transform: translateY(-50%) rotate(90deg);
}

.search-clear-btn i,
.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

.options-wrapper .extra-option,
.options-wrapper .hidden-option {
    display: none;
}



.lazy-load-sentinel {
    height: 20px;
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.lazy-load-sentinel::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: sentinelSpin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load-sentinel.is-loading::after {
    opacity: 0.6;
}

@keyframes sentinelSpin {
    to {
        transform: rotate(360deg);
    }
}



.options-group-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: -2px;
    padding-left: 4px;
}

.option-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: var(--transition-premium);
    overflow: visible;
}

.opt-main {
    padding: 22px 20px 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.options-wrapper.is-layout-grid-2 .opt-main {
    align-items: center;
    /* Hier ebenfalls zentrieren */
}

.options-wrapper.is-layout-grid-2 .opt-desc:empty {
    display: none;
}

.opt-media {
    width: 76px;
    min-width: 76px;
    height: 76px;
    position: relative;
    border-radius: 18px;
    overflow: visible;
    /* Wichtig für die Checkmark-Badge */
    background: linear-gradient(180deg, #f8fafc 0%, #eef4f9 100%);
    border: 1px solid #dbe5ef;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: var(--transition-premium);
}

.opt-media-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Kein Abschneiden, sondern Einpassen */
    padding: 10px;
    /* Luft zum Rand für freigestellte PNGs */
    display: block;
    border-radius: inherit;
    position: relative;
    z-index: 1;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: #f8fbff;
}

.option-card.selected {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}

.opt-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: var(--transition-premium);
    position: relative;
}

.opt-icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: filter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: invert(35%) sepia(15%) saturate(700%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.option-card.has-card-image .opt-icon {
    width: 44px;
    height: 44px;
}

.opt-checkmark {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-premium);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.opt-checkmark i,
.opt-checkmark svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 4 !important;
}

.option-card.selected .opt-checkmark {
    opacity: 1;
    transform: scale(1);
}

.option-card.selected .opt-icon {
    background: var(--primary-color);
    color: white !important;
}

.option-card.selected .opt-icon i {
    color: white !important;
}

.option-card.selected .opt-icon .opt-icon-image {
    filter: brightness(0) saturate(100%) invert(100%);
}

.opt-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opt-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Zentrierung wenn keine Beschreibung da ist */
.opt-desc:empty {
    display: none;
}

.opt-name:last-child {
    margin-bottom: 0;
}

.opt-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.opt-price {
    display: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.show-option-prices .opt-price {
    display: block;
}

@media (max-width: 640px) {
    .opt-main {
        gap: 16px;
    }

    .opt-media {
        width: 64px;
        min-width: 64px;
        height: 64px;
        border-radius: 16px;
    }
}

.badge-recommended {
    position: absolute;
    top: 0;
    right: 20px;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.opt-tip {
    border-top: 1px solid #f1f5f9;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-style: italic;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    /* Apply border-radius to the bottom to match the parent card's radius */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.opt-tip i,
.opt-tip svg {
    color: #fbbf24;
    /* Warm yellow/amber icon */
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

/* Footer / Actions */
.config-footer {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition-premium);
}

.btn-primary:hover {
    background: #0d64a0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes calcPulse {
    0% {
        opacity: 0.55;
        filter: saturate(0.9);
    }

    50% {
        opacity: 1;
        filter: saturate(1.1);
    }

    100% {
        opacity: 0.55;
        filter: saturate(0.9);
    }
}

/* Final Step Styles */
.final-step-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
    max-width: 1000px;
    transition: opacity 0.2s ease;
}

.summary-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--bg-dark);
}

.summary-list {
    list-style: none;
}

.summary-item {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.summary-price-total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.summary-price-total .total-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    white-space: nowrap;
}

.summary-price-total .total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-left: 10px;
}

.summary-price-total .total-amount.is-calculating {
    font-size: 1.0rem;
    font-weight: 700;
    color: #0f4a84;
}

.summary-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

#price-note {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 10px;
}

#current-step-title {
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #1e293b;
}

.inquiry-form-container {
    flex: 1.4;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.inquiry-form-container h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.inquiry-form-container p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-premium);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.form-consent label {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary, #666);
    cursor: pointer;
}

.form-consent label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-send-inquiry {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-premium);
}

.btn-send-inquiry:hover {
    background: #f35b2a;
    transform: translateY(-2.5px);
}

.btn-send-inquiry.is-success {
    background: #10b981;
}

.product-hero.is-pulse img.active {
    filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.18));
}

/* ==========================================================================
   INLINE HELP PROMPT (Schritt-Hilfe)
   ========================================================================== */
.help-inline-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.02);
    grid-column: 1 / -1;
    /* Always full width in grid */
}

@media (min-width: 640px) {
    .help-inline-box {
        flex-direction: row;
        align-items: center;
        padding: 24px;
    }
}

/* Exit Intent Modal Specifics */
.btn-exit-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    margin-top: 4px;
    width: 100%;
    text-align: center;
    transition: color 0.2s;
}

.btn-exit-dismiss:hover {
    color: var(--primary);
}

.help-icon-wrap {
    background-color: #fff;
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.help-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.help-content {
    flex: 1;
}

.help-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.help-btn:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.05);
}

.help-btn svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* ================================================
   ACI RESPONSIVE ARCHITECTURE (Unified & Clean)
   - Desktop: Base styles
   - Laptop: (1500px - 1101px)
   - Tablet/iPad: (1100px - 641px)
   - Smartphone: (<= 640px)
   ================================================ */

/* 0. ULTRA-WIDE ( > 1800px ) */
@media (min-width: 1801px) {
    .options-wrapper,
    .options-wrapper.is-layout-grid-2 {
        max-width: 1000px;
    }
    
    .options-wrapper.is-layout-grid-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 1. LAPTOP (1500px - 1101px) */
@media (max-width: 1800px) {
    .config-title h1 {
        font-size: 2.1rem;
    }

    .top-header {
        margin-bottom: 45px;
    }


}

@media (max-width: 1560px) {
    .config-title h1 {
        font-size: 1.85rem;
    }

    .brand-logo {
        width: 110px;
    }

    .top-header {
        margin-bottom: 40px;
        gap: 20px;
    }
}

@media (max-width: 1500px) {
    :root {
        --sidebar-width: 66px;
        --preview-width: 26%;
    }

    .product-hero {
        /* Nudge image slightly more to the left to avoid collision */
        left: calc(var(--preview-width) + var(--sidebar-width) - 40px);
        z-index: 60;
    }

    .config-panel {
        padding: 42px 42px 24px 140px;
        position: relative;
    }

    .config-title h1 {
        font-size: clamp(1.6rem, 2vw, 2.2rem);
    }

    .step-indicator {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 66px;
        gap: 12px;
        min-height: 110px;
        overflow-x: auto;
    }

    .step-circle {
        width: 66px;
        height: 66px;
        min-width: 66px;
        border-radius: 18px;
    }

    /* Options Wrapper Laptop - Allow 2 columns */
    .options-wrapper,
    .options-wrapper.is-layout-grid-2 {
        max-width: none;
    }

    /* Search & Grouping Laptop */
    .options-search-wrap {
        grid-column: 1 / -1;
        margin-bottom: 25px;
    }

    .options-group-title {
        grid-column: 1 / -1;
        font-size: 1.25rem;
        margin-top: 25px;
        color: var(--text-main);
        font-weight: 800;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 10px;
    }
}

/* 2. TABLET / IPAD (1100px - 641px) */
@media (max-width: 1100px) {
    .app-container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .lang-menu {
        top: calc(100% + 8px);
        left: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
        display: none; /* Controlled by JS click on mobile */
    }

    .lang-menu:not([hidden]) {
        display: block;
    }

    .lang-dropdown::after {
        display: none;
    }

    .control-bar {
        width: 100%;
        height: var(--mobile-controlbar-height);
        flex-direction: row;
        padding: 0 12px;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #1e293b;
        align-items: center;
        justify-content: flex-start;
        z-index: 100;
    }

    /* Hide new desktop utility items on mobile */
    #lang-dropdown,
    #btn-config-restart,
    #btn-homepage,
    .desktop-only {
        display: none !important;
    }

    .control-item {
        width: 42px;
        height: 42px;
        margin-bottom: 0;
        border-radius: 12px;
        flex: 0 0 auto;
    }

    .control-item.active::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%);
        width: 18px;
        height: 4px;
    }

    .control-divider {
        width: 1px;
        height: 24px;
        margin: 0 2px;
        border-top: none;
        background: rgba(255, 255, 255, 0.12);
    }

    .control-support {
        margin-top: 0;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .control-more-dropdown {
        display: block;
        position: relative;
    }

    .control-more-trigger {
        border: none;
        background: transparent;
        padding: 0;
    }

    .control-more-menu {
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        min-width: 190px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        padding: 8px;
        z-index: 140;
    }

    .control-more-option {
        width: 100%;
        border: none;
        background: transparent;
        border-radius: 12px;
        padding: 11px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        font: inherit;
        color: #1f2937;
        cursor: pointer;
    }

    .control-more-option:hover {
        background: #f8fafc;
    }

    .control-more-option.is-active {
        background: #eff6ff;
        color: #0f4a84;
        font-weight: 700;
    }

    .control-more-option svg,
    .control-more-option i {
        color: inherit;
    }

    #btn-homepage-toolbar svg,
    #btn-homepage-toolbar i,
    #btn-config-restart-toolbar svg,
    #btn-config-restart-toolbar i {
        opacity: 0.55;
        transform: scale(0.9);
    }

    .preview-panel {
        width: 100%;
        height: 220px;
        /* More compact for this layout */
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .preview-status {
        width: 100%;
        margin-bottom: 0;
    }

    .product-hero {
        top: calc(var(--mobile-controlbar-height) + 220px + var(--mobile-hero-overlap-adjust));
        right: 40px;
        left: auto;
        width: 260px;
        height: 260px;
        transform: translateY(-50%);
        z-index: 60;
    }

    .config-panel {
        width: 100%;
        padding: 40px 25px;
        border-radius: 30px 30px 0 0;
        margin-top: -20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
        background: #fff;
        position: relative;
        z-index: 50;
    }

    .options-wrapper,
    .options-wrapper.is-layout-grid-2 {
        max-width: none;
    }

    .app-legal-footer {
        max-width: none;
    }

    .top-header {
        flex-direction: column;
        gap: 15px;
    }

    .step-indicator {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 70px;
        gap: 14px;
        min-height: 120px;
        padding-top: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .step-circle {
        width: 70px;
        height: 70px;
        min-width: 70px;
        border-radius: 20px;
    }

    .btn-ghost {
        padding: 12px 16px;
        min-height: 50px;
    }

    /* Search & Grouping Tablet */
    .options-search-wrap {
        margin-bottom: 20px;
    }

    .options-group-title {
        font-size: 1.15rem;
        margin-top: 25px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f1f5f9;
    }
}

/* 3. SMARTPHONE (<= 640px) */
@media (max-width: 640px) {

    body,
    html {
        overflow: auto !important;
        height: auto !important;
    }

    .app-container {
        flex-direction: column;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .preview-panel {
        height: var(--mobile-preview-height);
        padding: 20px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .preview-status {
        margin-bottom: 0;
    }

    .price-amount {
        font-size: 1.2rem;
    }

    .product-hero {
        top: calc(var(--mobile-controlbar-height) + var(--mobile-preview-height) + var(--mobile-hero-overlap-adjust));
        right: 20px;
        left: auto;
        width: 170px;
        height: 170px;
        transform: translateY(-50%);
        justify-content: flex-end;
        align-items: flex-start;
        z-index: 60;
    }

    .config-panel {
        padding: 30px 20px;
        flex: none;
        position: relative;
        z-index: 50;
    }

    .top-header {
        position: relative;
        margin-bottom: 15px;
    }

    .lang-selector {
        display: none;
    }

    .config-title h1 {
        font-size: 1.45rem;
    }

    .brand-logo {
        width: min(100%, 100px);
        margin-bottom: 12px;
    }

    .options-wrapper.is-layout-grid-2 {
        grid-template-columns: 1fr;
    }

    .final-step-container {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        margin-top: 10px;
    }

    .summary-card,
    .inquiry-form-container {
        width: 100%;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .summary-card h3,
    .inquiry-form-container h3 {
        font-size: 1.2rem;
    }

    .inquiry-form-container p {
        margin-bottom: 20px;
        font-size: 0.92rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-input {
        padding: 14px 16px;
    }

    textarea.form-input {
        min-height: 120px;
    }

    .summary-price-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .summary-price-total .total-amount {
        margin-left: 0;
        font-size: 1.45rem;
    }

    .step-indicator {
        grid-auto-columns: 58px;
        gap: 10px;
        min-height: 110px;
        padding: 15px 150px 15px 5px;
        margin-bottom: 15px;
    }

    .step-circle {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 16px;
    }

    .opt-main {
        padding: 16px;
        gap: 14px;
    }

    .opt-name {
        font-size: 1.05rem;
    }

    .app-legal-footer {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .app-legal-nav {
        width: 100%;
        justify-content: center;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .app-copyright {
        width: 100%;
        text-align: center;
    }

    /* Search & Grouping Mobile */
    .options-search-wrap {
        margin-bottom: 15px;
    }

    .options-group-title {
        font-size: 1.05rem;
        margin-top: 20px;
        padding-bottom: 6px;
    }
}

/* GLOBAL TOOLTIP KILLER FOR TOUCH DEVICES */
@media (max-width: 1024px) {

    .step-label,
    .control-label {
        display: none !important;
    }
}

/* Slide-in Help Box */
.help-slidein-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    z-index: 1000;
    padding: 24px;
    transform: translateX(130%);
    transition: var(--transition-premium);
    opacity: 0;
    pointer-events: none;
}

.help-slidein-container.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.help-slidein-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    z-index: 2;
}

.help-slidein-close:hover {
    background: #f1f5f9;
    color: var(--text-main);
    transform: rotate(90deg);
}

.help-slidein-container .help-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
}

.help-slidein-container .help-text {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.help-slidein-container .help-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
}

.help-slidein-container .help-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 640px) {
    .help-slidein-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}