/* p.cms.css */

/* Custom page-specific variables (not in defaults.css) */
body.dark-mode{
  --bg-page:#0b1020;
}

body.light-mode{
  --bg-page:#ffffff;
}

/* Apply page background */
html,body{background:var(--bg-page);}

/* Website Types Section */
.cms-website-types {
    padding: 6rem 0;
    background: var(--bg-primary, #0F0F23);
}

.cms-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cms-type-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: none;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cms-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    border-color: var(--accent-primary);
}

.cms-type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

.cms-type-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.cms-type-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cms-type-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-type-feature {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Maintenance Features Section */
.cms-maintenance-features {
    padding: 6rem 0;
    background: var(--bg-secondary, #1A1A2E);
}

.cms-maintenance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cms-maintenance-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cms-maintenance-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cms-maintenance-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cms-maintenance-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cms-benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cms-benefit-content h4 {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cms-benefit-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CMS Mockup - Moderneres Design */
.cms-mockup {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    border-radius: 20px;
    overflow: hidden;
    cursor: default;
}

.cms-mockup-header {
    background: #2c3e50;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: default;
}

.cms-mockup-controls {
    display: flex;
    gap: 0.5rem;
}

.cms-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cms-control.cms-red { background: #ff5f57; }
.cms-control.cms-yellow { background: #ffbd2e; }
.cms-control.cms-green { background: #28ca42; }

.cms-mockup-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.cms-mockup-content {
    display: flex;
    height: 200px;
    cursor: default;
}

.cms-mockup-sidebar {
    width: 120px;
    background: var(--bg-primary);
    padding: 1rem 0;
    border-right: 1px solid var(--border-color);
}

.cms-sidebar-item {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: default;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0.25rem 0.5rem;
}

.cms-sidebar-item.cms-active {
    background: #4A90E2;
    color: white;
}

.cms-mockup-main {
    flex: 1;
    padding: 1.25rem;
    cursor: default;
    background: var(--bg-secondary);
}

.cms-editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cms-toolbar-btn {
    width: 32px;
    height: 32px;
    background: #4A90E2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    cursor: default;
    font-weight: 600;
}

.cms-editor-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: default;
}

.cms-content-line {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    cursor: default;
    margin: 0.5rem 0;
}

.cms-content-line.cms-short {
    width: 60%;
}

/* Extensions Section */
.cms-extensions-section {
    padding: 6rem 0;
    background: var(--bg-secondary, #1A1A2E);
}

.cms-extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cms-extension-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: none;
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
}

.cms-extension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    border-color: var(--accent-primary);
}

.cms-extension-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

.cms-extension-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.cms-extension-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cms-extension-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.cms-extension-features span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Performance Section */
.cms-performance-section {
    padding: 6rem 0;
    background: var(--bg-primary, #0F0F23);
}

.cms-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cms-performance-item {
    text-align: center;
    padding: 2rem;
}

.cms-perf-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

.cms-performance-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.cms-performance-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design *//* Website Demo Section */
.cms-website-demo-section {
    padding: 6rem 0;
    background: var(--bg-primary, #0F0F23);
    border-top: 1px solid var(--border-color);
}

.cms-demo-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    margin-top: 2rem;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    border-radius: 20px;
    overflow: hidden;
    min-height: 600px;
}

/* Demo Sidebar */
.cms-demo-sidebar {
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: visible;
    height: auto;
}

.cms-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* Component Categories */
.cms-component-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: #4A90E2;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
}

.cms-component-category:hover {
    background: #357ABD;
    transform: translateY(-1px);
}

.cms-category-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cms-component-category.cms-collapsed .cms-category-icon {
    transform: rotate(-90deg);
}

/* Category Items Container */
.cms-category-items {
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    margin-bottom: 0.5rem;
    opacity: 1;
}

.cms-category-items.cms-collapsed {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
}

.cms-component-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.cms-component-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.cms-component-item.cms-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 140, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.cms-component-item:hover {
    background: #4A90E2 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.cms-component-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.cms-component-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cms-component-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.cms-demo-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
}

.cms-control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.cms-control-btn:hover {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.cms-btn-icon {
    font-size: 1rem;
}

/* Demo Canvas */
.cms-demo-canvas-container {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary) !important; 
    border-left: 1px solid var(--border-color);
}

.cms-canvas-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #2c3e50 !important;
    color: white;
}

.cms-canvas-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cms-canvas-title {
    font-weight: 600;
    color: white;
}

.cms-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 8px;
}

.cms-view-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.cms-view-btn.cms-active {
    background: #4A90E2;
    color: white;
}

.cms-demo-canvas {
    flex: 1;
    padding: 2rem;
    min-height: 500px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    margin: 1rem;
    border-radius: 8px;
}

/* Canvas im Light Mode weiß */
body.light-mode .cms-demo-canvas {
    background: white !important;
    border-color: #ddd !important;
}

.cms-demo-canvas.cms-mobile-view {
    max-width: 375px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.cms-canvas-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.cms-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #4A90E2;
}

.cms-canvas-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cms-canvas-placeholder p {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text-muted);
}

/* Canvas Elements */
.cms-canvas-element {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px dashed transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cms-canvas-element:hover {
    border-color: #4A90E2;
    background: rgba(74, 144, 226, 0.05);
}

.cms-canvas-element.cms-selected {
    border-color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
}

/* CTA Button Styling - MOVED TO BOTTOM (lines 1468-1486) - Removed duplicate */

/* Mobile Demo ausblenden */.cms-canvas-element .cms-element-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    display: none;
    gap: 0.25rem;
}

.cms-canvas-element:hover .cms-element-controls,
.cms-canvas-element.cms-selected .cms-element-controls {
    display: flex;
}

.cms-element-control {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.cms-canvas-header-element {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cms-canvas-text-element {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cms-canvas-image-element {
    width: 100%;
    max-width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.cms-canvas-button-element {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cms-canvas-button-element:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.cms-canvas-contact-element {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cms-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Drop Zone */
.cms-drop-zone {
    min-height: 60px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
}

.cms-drop-zone.cms-drag-over {
    border-color: var(--accent-primary);
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent-primary);
}

/* Drag and Drop Visual Feedback */
.cms-demo-canvas.cms-drag-over {
    background: rgba(0, 123, 255, 0.05) !important;
    border: 2px dashed var(--accent-primary) !important;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.2);
}

.cms-component-item {
    cursor: grab !important;
}

.cms-component-item:active {
    cursor: grabbing !important;
}

.cms-component-item.cms-dragging {
    opacity: 0.4;
    cursor: grabbing;
}

/* Global dragging state */
body.cms-dragging-active {
    cursor: grabbing !important;
}

body.cms-dragging-active * {
    cursor: grabbing !important;
}

/* Canvas drag feedback */
.cms-demo-canvas {
    transition: all 0.3s ease;
    border: 2px dashed transparent;
    position: relative;
}

.cms-demo-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.cms-demo-canvas.cms-drag-over::before {
    background: rgba(0, 123, 255, 0.05);
    border: 2px dashed var(--accent-primary);
}

/* Property Panel - Follows Element */
.cms-property-panel-container {
    position: fixed;
    z-index: 10000;
    max-width: 350px;
    min-width: 300px;
}

.cms-property-panel {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.cms-property-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    border: none;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 700;
}

.cms-property-close:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.cms-property-panel h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding-right: 40px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.cms-property-group {
    margin-bottom: 1.25rem;
}

.cms-property-label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cms-property-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cms-property-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background: var(--bg-primary);
}

.cms-color-picker {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cms-color-picker:hover {
    border-color: #4A90E2;
    transform: scale(1.05);
}

/* Element styling - animation handled by lazy-load.css */

/* Demo Container Position */
.cms-demo-container {
    position: relative;
}

/* Demo Responsive *//* Generate Button Special Styling - MOVED TO BOTTOM (lines 1495-1504) - Removed complex duplicate with ::before pseudo-element */

/* Generation Modal */
.cms-generation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.cms-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.cms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cms-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.cms-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cms-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Generation Steps */
.cms-generation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cms-step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cms-step-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cms-step-item span {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.cms-step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 1s ease;
}

.cms-step-item.cms-active .cms-step-icon {
    background: var(--accent-primary);
    color: white;
    animation: pulse 1s infinite;
}

.cms-step-item.cms-completed .cms-step-icon {
    background: #28a745;
    color: white;
}

.cms-step-item.cms-completed .cms-step-progress {
    width: 100%;
}

/* Website Preview */
.cms-website-preview {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cms-preview-frame {
    width: 100%;
    min-height: 400px;
    background: white;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Result Actions */
.cms-result-actions {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.cms-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.cms-action-btn.cms-primary {
    background: var(--accent-primary);
    color: white;
}

.cms-action-btn.cms-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cms-action-btn.cms-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cms-action-btn.cms-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Dominanter Vollbild Button */
.cms-fullscreen-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    color: white !important;
    padding: 1.5rem 3rem !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.cms-fullscreen-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cms-fullscreen-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.6) !important;
    background: linear-gradient(135deg, #357ABD 0%, #2868A3 100%) !important;
}

.cms-fullscreen-btn:hover::before {
    left: 100%;
}

.cms-fullscreen-btn .cms-btn-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Generation result animation removed - using lazy-load.css */

/* Modal Responsive *//* Kleine Geräte *//* === CTA BUTTON STYLING - REMOVED === */
/* REASON: Selectors .cms-cta-buttons and .product-cta don't exist in cms.html */
/* The actual button is in .cta-section (core class) and uses core .btn-primary styling */
/* This override never applied to any elements - moved to prov.duplicates.css */

/* === MOBILE DEMO AUSBLENDEN === *//* === TÜRKISER GENERATE BUTTON === */
.cms-generate-btn {
    background: linear-gradient(135deg, #4A89DC 0%, #4A89DC 100%) !important;
    color: white !important;
    border: none !important;
}

.cms-generate-btn:hover {
    background: linear-gradient(135deg, #4A89DC 0%, #4A89DC 100%) !important;
    box-shadow: 0 8px 25px #4A89DC!important;
}

/* === CANVAS ELEMENT STYLES === */
.cms-canvas-element {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px dashed transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    min-height: 40px;
}

.cms-canvas-element:hover {
    border-color: #4A90E2;
    background: rgba(74, 144, 226, 0.05);
}

.cms-canvas-element.cms-selected {
    border-color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
}

/* Canvas Element Controls */
.cms-element-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    display: none;
    gap: 0.25rem;
    z-index: 1000;
}

.cms-canvas-element:hover .cms-element-controls,
.cms-canvas-element.cms-selected .cms-element-controls {
    display: flex;
}

.cms-element-control {
    width: 24px;
    height: 24px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.cms-element-control:hover {
    transform: scale(1.1);
}

.cms-element-control.delete-btn {
    background: #ff4757;
}

.cms-element-control.move-btn {
    background: #2ed573;
}

/* Spezifische Canvas-Element Typen */
.cms-canvas-header-element {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 1rem 0 !important;
    text-align: center;
}

.cms-canvas-text-element {
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 1rem 0 !important;
    text-align: center;
}

.cms-canvas-image-element {
    width: 100%;
    max-width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 1rem auto;
    transition: all 0.3s ease;
}

.cms-canvas-button-element {
    display: block;
    padding: 0.75rem 2rem;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    margin: 1rem auto;
    text-align: center;
    width: fit-content;
    transition: all 0.3s ease;
}

/* Allow JavaScript to override these styles with inline styles */
.cms-canvas-element[data-type="image"] .cms-canvas-image-element[style*="max-width"] {
    max-width: inherit !important;
    width: inherit !important;
    height: inherit !important;
}

/* Hero elements MOVED TO hero-pages.css */

.cms-canvas-card-element {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin: 1rem 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.cms-canvas-card-element .card-image {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.cms-canvas-card-element h3 {
    font-size: 1.5rem !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.cms-canvas-card-element p {
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.card-link {
    color: #007bff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
}

.cms-canvas-contact-element {
    background: #f8f9fa !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 1rem 0 !important;
}

.cms-canvas-contact-element h3 {
    font-size: 1.5rem !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.contact-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #666 !important;
}

/* === MOBILE VIEW STYLES === */
.cms-demo-canvas.cms-mobile-view {
    max-width: 375px;
    margin: 1rem auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* === MODERNERE PROPERTY PANEL STYLES === */
.cms-property-panel-container {
    position: fixed;
    z-index: 10000;
    max-width: 400px;
    min-width: 350px;
}

.cms-property-panel {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cms-property-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    z-index: 1;
}

.cms-property-panel h4 {
    color: white;
    margin: 0;
    padding: 20px 60px 20px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cms-property-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 700;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.cms-property-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cms-property-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.cms-property-group {
    margin-bottom: 20px;
    position: relative;
}

.cms-property-label {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.cms-property-input,
.property-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.cms-property-input:focus,
.property-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
    background: var(--bg-primary);
    transform: translateY(-1px);
}

.cms-property-input:hover,
.property-input:hover {
    border-color: #4A90E2;
    transform: translateY(-1px);
}

.cms-color-picker,
.color-picker {
    width: 100%;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.cms-color-picker:hover,
.color-picker:hover {
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

/* Textarea specific styles */
textarea.cms-property-input,
textarea.property-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

/* Select specific styles */
select.cms-property-input,
select.property-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Input group styles */
.cms-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cms-input-group .cms-property-input {
    flex: 1;
}

.cms-input-group .cms-color-picker {
    width: 60px;
    flex-shrink: 0;
}

/* Property panel animations removed - using lazy-load.css system */

/* Custom scrollbar for property content */
.cms-property-content::-webkit-scrollbar {
    width: 6px;
}

.cms-property-content::-webkit-scrollbar-track {
    background: transparent;
}

.cms-property-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.cms-property-content::-webkit-scrollbar-thumb:hover {
    background: #4A90E2;
}

/* Range slider styles */
input[type="range"].cms-property-input {
    height: 8px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 4px;
    padding: 0;
}

input[type="range"].cms-property-input::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

input[type="range"].cms-property-input::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* === CANVAS DARK MODE FIXES === */
/* Canvas Elemente permanent dunkel im Dark Mode */
body.dark-mode .cms-canvas-element {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .cms-canvas-header-element {
    color: var(--text-primary) !important;
}

body.dark-mode .cms-canvas-text-element {
    color: var(--text-secondary) !important;
}

body.dark-mode .cms-canvas-card-element {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .cms-canvas-card-element h3 {
    color: var(--text-primary) !important;
}

body.dark-mode .cms-canvas-card-element p {
    color: var(--text-secondary) !important;
}

body.dark-mode .cms-canvas-contact-element {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .cms-canvas-contact-element h3 {
    color: var(--text-primary) !important;
}

body.dark-mode .contact-item {
    color: var(--text-secondary) !important;
}

/* Canvas Demo Container im Dark Mode */
body.dark-mode .cms-demo-canvas {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

/* Alle Canvas-Elemente dunkel im Dark Mode */
body.dark-mode .canvas-gallery-element,
body.dark-mode .canvas-video-element,
body.dark-mode .canvas-testimonial-element,
body.dark-mode .canvas-spacer-element,
body.dark-mode .canvas-divider-element {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .canvas-testimonial-element blockquote {
    color: var(--text-primary) !important;
}

body.dark-mode .canvas-testimonial-element cite {
    color: var(--text-secondary) !important;
}

body.dark-mode .gallery-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

body.dark-mode .video-placeholder {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Light Mode overrides */
body.light-mode .cms-canvas-header-element {
    color: #333 !important;
}

body.light-mode .cms-canvas-text-element {
    color: #666 !important;
}

body.light-mode .cms-canvas-card-element {
    background: white !important;
    border-color: #e2e8f0 !important;
}

body.light-mode .cms-canvas-card-element h3 {
    color: #333 !important;
}

body.light-mode .cms-canvas-card-element p {
    color: #666 !important;
}

body.light-mode .cms-canvas-contact-element {
    background: #f8f9fa !important;
    border-color: #e2e8f0 !important;
}

body.light-mode .cms-canvas-contact-element h3 {
    color: #333 !important;
}

body.light-mode .contact-item {
    color: #666 !important;
}