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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #b79f74 0%, #8c795a 100%);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #daa520 0%, #b79f74 100%);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #b79f74 #1a1a1a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0e1020;
    color: #e0e0e0;
    height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, rgba(14, 16, 32, 0.45) 0%, rgba(14, 16, 32, 0.72) 100%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s ease;
}

/* Aurora Gradient Mesh Background */
#three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.55) 0%, transparent 70%);
    top: -180px;
    left: -180px;
    animation: orbFloat1 28s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: orbFloat2 34s ease-in-out infinite;
    animation-delay: -10s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.38) 0%, transparent 70%);
    top: 45%;
    left: 38%;
    animation: orbFloat3 40s ease-in-out infinite;
    animation-delay: -18s;
}

.orb-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(183, 159, 116, 0.3) 0%, transparent 70%);
    top: 15%;
    right: 12%;
    animation: orbFloat1 32s ease-in-out infinite;
    animation-delay: -6s;
}

.orb-5 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation: orbFloat2 24s ease-in-out infinite;
    animation-delay: -14s;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%       { transform: translate(40px, -50px) scale(1.06); }
    50%       { transform: translate(-25px, 35px) scale(0.94); }
    75%       { transform: translate(50px, 25px) scale(1.03); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30%       { transform: translate(-45px, 30px) scale(1.05); }
    60%       { transform: translate(30px, -40px) scale(0.96); }
    80%       { transform: translate(-20px, -20px) scale(1.02); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20%       { transform: translate(35px, 45px) scale(1.04); }
    55%       { transform: translate(-40px, -30px) scale(0.97); }
    80%       { transform: translate(20px, -45px) scale(1.02); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    pointer-events:none;
}

.logo-container {
    position: fixed;
    overflow: visible;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events:all;
    width: max-content;
    max-width: calc(100vw - 20px);
}

.logo-container.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

.logo {
    margin: 0;
    position: relative;
    flex-shrink: 0;
}

.logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.5));
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.5));
}

.loading-text {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin: 0;
}

.value-proposition {
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.trust-element {
    color: #b79f74;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
    opacity: 0.85;
    font-style: italic;
}

.trust-element.upload-trust {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-align: center;
}

.start-button {
    margin: 0;
    padding: 15px 40px;
    background: linear-gradient(135deg, #b79f74 0%, #8c795a 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.start-button:hover {
    background: linear-gradient(135deg, #f0c040 0%, #daa520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.footer-links {
    margin: 0;
    display: flex;
    gap: 15px;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    color: #b79f74;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
a:focus {
    outline:none;
}
.footer-links a:hover {
    color: #daa520;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.footer-links .separator {
    color: #555;
}

/* Calculator Selection Screen */
.calculator-selection-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: calc(100% - 40px);
    max-width: 900px;
    z-index: 3;
}

.calculator-selection-wrapper.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: all;
}

.selection-container {
    background: rgba(20, 20, 20, 0.85);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.selection-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.selection-card {
    background: rgba(30, 30, 40, 0.6);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.selection-card:hover {
    border-color: #b79f74;
    background: rgba(30, 30, 40, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.2);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.selection-card:hover .card-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.selection-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: 600;
}

.selection-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: calc(100% - 40px);
    max-width: 1400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 3;
}

.calculator-wrapper.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: all;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b79f74;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.close-button:hover {
    background: rgba(183, 159, 116, 0.2);
    border-color: #b79f74;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.3);
}

/* Form Wrapper */
.form-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: calc(100% - 40px);
    max-width: 800px;
    z-index: 3;
}

.form-wrapper.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: all;
}

.form-container {
    background: rgba(20, 20, 20, 0.85);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #b0b0b0;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

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

.file-input {
    padding: 10px;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    background: rgba(183, 159, 116, 0.1);
    border: 1px solid #b79f74;
    border-radius: 4px;
    color: #b79f74;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.file-input::-webkit-file-upload-button:hover {
    background: rgba(183, 159, 116, 0.2);
}

.form-input[readonly] {
    background: #1a1a2e;
    cursor: default;
    color: #b79f74;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b79f74;
}

#stl-preview-canvas {
    border: 1px solid #3a3a4e;
    width: 100% !important;
    height: 60vh !important;
    max-height: 600px;
    max-width: 100%;
    border-radius: 6px;
    background: #1a1a2e;
    display: block;
}

@media (max-width: 1024px) {
    #stl-preview-canvas {
        height: 50vh !important;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    #stl-preview-canvas {
        height: 45vh !important;
        max-height: 400px;
    }
}

.impressum-content {
    color: #e0e0e0;
    line-height: 1.8;
}

.impressum-content h3 {
    color: #b79f74;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.impressum-content h3:first-child {
    margin-top: 0;
}

.impressum-content h4 {
    color: #b0b0b0;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.impressum-content p {
    margin-bottom: 15px;
    color: #d0d0d0;
}

.impressum-content ul {
    margin-left: 2rem;
    margin-bottom: 15px;
    color: #d0d0d0;
}

.impressum-content ul li {
    margin-bottom: 8px;
}

/* Linke Seite */
.input-section {
    background: rgba(20, 20, 20, 0.85);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.highlight {
    color: #b79f74;
    background: linear-gradient(135deg, #b79f74 0%, #8c795a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #b0b0b0;
}

/* Slider */
.slider-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 5px;
    background: #2a2a3e;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b79f74 0%, #8c795a 100%);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b79f74 0%, #8c795a 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.slider-value {
    width: 80px;
    padding: 10px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    text-align: center;
    font-size: 1rem;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    padding: 13px 18px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
}

.radio-option:hover {
    border-left-color: rgba(183, 159, 116, 0.5);
    background: rgba(183, 159, 116, 0.06);
}

.radio-option.active {
    border-left-color: #b79f74;
    background: rgba(218, 165, 32, 0.08);
}

.radio-option.active label {
    color: #ffffff;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #5a5a6e;
    margin-right: 14px;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked {
    background: #b79f74;
    border-color: #b79f74;
    box-shadow: 0 0 6px rgba(183, 159, 116, 0.5);
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    color: #e0e0e0;
}

/* Text Input */
.text-input {
    width: 100%;
    padding: 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
}

.text-input:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

/* Checkboxen */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-option {
    padding: 15px 20px;
    background: #2a2a3e;
    border: 2px solid #3a3a4e;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.checkbox-option:hover {
    border-color: #b79f74;
}

.checkbox-option.active {
    border-color: #b79f74;
    background: rgba(218, 165, 32, 0.1);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #b79f74;
}

.checkbox-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    color: #e0e0e0;
}

/* Number Input */
.number-input {
    width: 100%;
    padding: 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
}

.number-input:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

/* Select */
.select-input {
    width: 100%;
    padding: 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

.calc-select {
    width: 100%;
    padding: 13px 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b79f74' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    font-family: inherit;
}

.calc-select:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

.calc-select option {
    background: #1e1e30;
    color: #e0e0e0;
}

.calc-input {
    width: 100%;
    padding: 13px 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.calc-input:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

.calc-textarea {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a3e;
    border: 1px solid #3a3a4e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
}

.calc-textarea:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}

.calc-textarea::placeholder {
    color: #6a6a80;
}

/* Rechte Seite */
.result-section {
    background: rgba(20, 20, 20, 0.85);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.price-summary {
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-row.range {
    color: #888;
    font-size: 0.9rem;
}

.price-row.monthly {
    padding-top: 15px;
    border-top: 1px solid #3a3a4e;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
}

.price-range {
    font-size: 1.5rem;
    font-weight: 600;
}

.chart-container {
    margin: 30px 0;
    text-align: center;
}

#costChart {
    max-width: 200px;
    margin: 0 auto;
}

.chart-label {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

.breakdown {
    margin: 30px 0;
}

.breakdown h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a3e;
    font-size: 0.95rem;
}

.breakdown-item span:first-child {
    color: #b0b0b0;
}

.breakdown-item span:last-child {
    color: #e0e0e0;
    font-weight: 500;
}

.cta-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #b79f74 0%, #8c795a 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #f0c040 0%, #daa520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
    }
    
    .calculator-selection-wrapper {
        width: calc(100% - 20px);
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-wrapper {
        width: calc(100% - 20px);
    }
    
    body {
        padding: 10px;
    }
    
    .input-section,
    .result-section,
    .form-container {
        padding: 25px;
    }
    
    .selection-container {
        padding: 30px 25px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 220px;
        height: 220px;
    }
    
    .calculator-wrapper,
    .form-wrapper {
        max-height: calc(100vh - 20px);
    }
    
    .close-button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    /* Modals: oben verankern statt mittig – kein Abschneiden mehr */
    .calculator-wrapper,
    .calculator-selection-wrapper,
    .form-wrapper {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-height: 100dvh;
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0 0 12px 12px;
        /* Animation: nur Opacity, kein Y-Versatz auf Mobile */
        transition: opacity 0.4s ease;
    }

    .calculator-wrapper.visible,
    .calculator-selection-wrapper.visible,
    .form-wrapper.visible {
        transform: translateX(-50%);
    }
    
    .input-section,
    .result-section,
    .form-container {
        padding: 20px;
    }
    
    .selection-container {
        padding: 25px 20px;
    }
    
    .selection-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .selection-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .selection-card h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .selection-card p {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .logo {
        width: 180px;
        height: 180px;
    }
    
    .start-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .footer-links {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    .price-range {
        font-size: 1.2rem;
    }
    
    .radio-group,
    .checkbox-group {
        gap: 8px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px 15px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .calculator-wrapper,
    .calculator-selection-wrapper,
    .form-wrapper {
        width: 100%;
        border-radius: 0;
    }
    
    .input-section,
    .result-section,
    .form-container {
        padding: 15px;
    }
    
    .selection-container {
        padding: 20px 15px;
    }
    
    .selection-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .selection-grid {
        gap: 15px;
    }
    
    .selection-card {
        padding: 25px 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .selection-card h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .selection-card p {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .logo {
        width: 150px;
        height: 150px;
    }
    
    .start-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .footer-links {
        font-size: 0.8rem;
        gap: 10px;
    }
    
    .calculator-wrapper {
        gap: 15px;
    }
    
    .close-button {
        width: 32px;
        height: 32px;
        font-size: 1.6rem;
    }
    
    .price {
        font-size: 1.4rem;
    }
    
    .price-range {
        font-size: 1.1rem;
    }
    
    .breakdown-item {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 15px;
        font-size: 1rem;
    }
    
    .form-input,
    .slider-value,
    .number-input,
    .select-input {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    textarea.form-input {
        min-height: 100px;
    }
}


/* Form Success/Error Messages */
.form-success-message,
.form-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.success-content,
.error-content {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.form-success-message .success-content {
    border: 2px solid #4caf50;
}

.form-error-message .error-content {
    border: 2px solid #f44336;
}

.success-content h3 {
    color: #4caf50;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.error-content h3 {
    color: #f44336;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.success-content p,
.error-content p {
    color: #ccc;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .form-success-message,
    .form-error-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* Form Validation Styles */
.form-input.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.field-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-input:focus {
    outline: none;
    border-color: #b79f74;
    box-shadow: 0 0 0 2px rgba(183, 159, 116, 0.2);
}

.form-input.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 3D Print Calculator Specific Styles */

/* Print Calculator Chart Container */
.print-calculator-wrapper .chart-container {
    margin: 30px 0;
    text-align: center;
}

.print-calculator-wrapper #printCostChart {
    max-width: 200px;
    margin: 0 auto;
}

/* Error Messages for Print Calculator */
.error-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

.input-error {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.05) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STL Upload Section (Optional Feature) */
.stl-upload-section {
    margin-top: 30px;
}

.file-upload-area {
    position: relative;
    border: 2px dashed #3a3a4e;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    background: #2a2a3e;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #b79f74;
    background: rgba(218, 165, 32, 0.05);
}

.file-upload-area.drag-over {
    border-color: #b79f74;
    background: rgba(218, 165, 32, 0.1);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    filter: grayscale(0.5);
}

.file-upload-area:hover .upload-icon {
    filter: grayscale(0);
}

.upload-placeholder p {
    color: #b0b0b0;
    margin: 5px 0;
    font-size: 0.95rem;
}

.upload-hint {
    font-size: 0.85rem !important;
    color: #888 !important;
}

.upload-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* File Upload Success State */
.file-upload-area.file-selected {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.file-upload-area.file-selected .upload-icon {
    filter: grayscale(0);
}

/* Print Calculator Input Validation States */
.print-calculator-wrapper .number-input:invalid {
    border-color: #f44336;
}

.print-calculator-wrapper .number-input:valid {
    border-color: #3a3a4e;
}

.print-calculator-wrapper .number-input:focus:valid {
    border-color: #b79f74;
}

/* Input Error Styling */
.input-error {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.05);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Calculator Price Display */
.print-calculator-wrapper .price-summary {
    margin-bottom: 30px;
}

.print-calculator-wrapper .price {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    background: linear-gradient(135deg, #b79f74 0%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print Calculator Breakdown */
.print-calculator-wrapper .breakdown {
    margin: 30px 0;
}

.print-calculator-wrapper .breakdown h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #e0e0e0;
}

.print-calculator-wrapper .breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a3e;
    font-size: 0.95rem;
}

.print-calculator-wrapper .breakdown-item:last-child {
    border-bottom: none;
}

.print-calculator-wrapper .breakdown-item span:first-child {
    color: #b0b0b0;
}

.print-calculator-wrapper .breakdown-item span:last-child {
    color: #e0e0e0;
    font-weight: 500;
}

/* Responsive Adjustments for Print Calculator */
@media (max-width: 1024px) {
    .print-calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .print-calculator-wrapper .chart-container {
        margin: 25px 0;
    }
}

@media (max-width: 768px) {
    .print-calculator-wrapper .price {
        font-size: 1.6rem;
    }
    
    .print-calculator-wrapper .breakdown-item {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    
    .file-upload-area {
        padding: 25px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .print-calculator-wrapper .price {
        font-size: 1.4rem;
    }
    
    .print-calculator-wrapper .breakdown h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .print-calculator-wrapper .breakdown-item {
        font-size: 0.8rem;
        padding: 8px 0;
    }
    
    .file-upload-area {
        padding: 20px 10px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .upload-placeholder p {
        font-size: 0.85rem;
    }
}

/* ===================================
   Accessibility: Focus Indicators
   =================================== */

/* Button focus styles */
.start-button:focus,
.cta-button:focus,
.close-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.2);
}

/* Selection card focus styles */
.selection-card:focus {
    outline: none;
    border-color: #daa520;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

/* Radio button focus styles */
.radio-option input[type="radio"]:focus {
    outline: none;
}
.radio-option input[type="radio"]:focus-visible + label {
    outline: none;
}

/* Link focus styles */
a:focus {
    outline: none;
    text-decoration: underline;
}

/* Ensure focus is visible even when outline is removed */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content link (for keyboard navigation) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #daa520;
    color: #0a0a0f;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Additional Responsive Refinements for 3D Print Calculator */

/* Tablet landscape (1024px and below) */
@media (max-width: 1024px) {
    .selection-grid {
        gap: 20px;
    }
    
    .print-calculator-wrapper .input-group {
        margin-bottom: 20px;
    }
}

/* Tablet portrait and mobile (768px and below) */
@media (max-width: 768px) {
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .selection-card {
        padding: 25px 20px;
    }
    
    .print-calculator-wrapper .number-input {
        font-size: 1rem;
        padding: 12px;
    }
    
    .print-calculator-wrapper .radio-group {
        gap: 10px;
    }
    
    .print-calculator-wrapper .radio-option {
        padding: 12px 15px;
    }
    
    /* Ensure chart is visible on mobile */
    .print-calculator-wrapper .chart-container canvas {
        max-height: 250px;
    }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
    .print-calculator-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .print-calculator-wrapper h2 {
        font-size: 1.3rem;
    }
    
    .print-calculator-wrapper .input-group label {
        font-size: 0.9rem;
    }
    
    .print-calculator-wrapper .number-input {
        font-size: 0.95rem;
        padding: 10px;
    }
    
    .print-calculator-wrapper .radio-option label {
        font-size: 0.85rem;
    }
    
    .print-calculator-wrapper .cta-button {
        padding: 14px;
        font-size: 0.95rem;
    }
    
    /* Smaller chart on very small screens */
    .print-calculator-wrapper .chart-container canvas {
        max-height: 200px;
    }
    
    .print-calculator-wrapper .chart-label {
        font-size: 0.85rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for mobile */
    .print-calculator-wrapper .number-input,
    .print-calculator-wrapper .radio-option,
    .print-calculator-wrapper .cta-button {
        min-height: 44px; /* iOS recommended minimum */
    }
    
    .print-calculator-wrapper .close-button {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .print-calculator-wrapper .radio-option:hover {
        transform: none;
    }
    
    .print-calculator-wrapper .cta-button:hover {
        transform: none;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .print-calculator-wrapper {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .print-calculator-wrapper .chart-container {
        margin: 15px 0;
    }
    
    .print-calculator-wrapper .chart-container canvas {
        max-height: 180px;
    }
}

/* File Upload Styling */
.file-upload-area {
    border: 2px dashed rgba(183, 159, 116, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover {
    border-color: rgba(183, 159, 116, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.file-input {
    display: none;
}

.upload-placeholder {
    padding: 10px;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.upload-placeholder p {
    margin: 5px 0;
    color: #e0e0e0;
}

.upload-hint {
    font-size: 0.85rem;
    color: #888;
}

.upload-success {
    padding: 10px;
}

.success-icon {
    font-size: 2rem;
    color: #4caf50;
    display: block;
    margin-bottom: 10px;
}

.file-info {
    font-size: 0.9rem;
    color: #b79f74;
    margin-top: 5px;
}

.input-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* ===================================
   Mobile Text Optimization
   =================================== */

/* Apply word wrapping to all text containers to prevent overflow */
body,
.container,
.logo-container,
.selection-container,
.selection-card,
.calculator-wrapper,
.input-section,
.result-section,
.form-container,
.form-wrapper,
.input-group,
.breakdown-item,
.price-row,
p,
span,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Add hyphenation for German text to improve readability on mobile */
body {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Ensure CTA buttons don't truncate text on mobile */
.cta-button,
.start-button {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* For single-line CTA buttons that should truncate with ellipsis if absolutely necessary */
.cta-button.single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Responsive font sizing with clamp() for headlines */
h1 {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
}

h2 {
    font-size: clamp(1.2rem, 3vw + 0.4rem, 1.8rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw + 0.3rem, 1.5rem);
}

/* Selection card headlines */
.selection-card h2 {
    font-size: clamp(1.2rem, 2.5vw + 0.5rem, 1.5rem);
}

/* Ensure tagline and value proposition scale appropriately */
.loading-text {
    font-size: clamp(0.8rem, 1.5vw + 0.3rem, 0.9rem);
}

.value-proposition {
    font-size: clamp(0.75rem, 1.5vw + 0.2rem, 0.85rem);
}

/* Selection subtitle responsive sizing */
.selection-subtitle {
    font-size: clamp(0.9rem, 2vw + 0.3rem, 1.1rem);
}

/* Ensure all text elements have proper line height for readability */
p,
span,
label,
.breakdown-item,
.price-row {
    line-height: 1.5;
}

/* Prevent horizontal scrolling on any text element */
* {
    max-width: 100%;
}

/* Specific handling for long words in German text */
.selection-card p,
.breakdown-item span,
.price-row span,
.input-group label,
.form-group label {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile-specific text adjustments */
@media (max-width: 768px) {
    /* Ensure headlines are readable on mobile */
    h1 {
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    h2 {
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    /* Adjust button text for mobile */
    .cta-button,
    .start-button {
        font-size: clamp(0.95rem, 2vw + 0.3rem, 1.1rem);
        line-height: 1.4;
        padding: 15px 20px;
    }
    
    /* Ensure service descriptions are readable */
    .selection-card p {
        font-size: clamp(0.85rem, 1.8vw + 0.2rem, 0.95rem);
        line-height: 1.6;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Further optimize text for very small screens */
    .loading-text,
    .value-proposition {
        max-width: 90vw;
        text-align: center;
    }
    
    /* Ensure CTA buttons wrap text properly on small screens */
    .cta-button,
    .start-button {
        padding: 12px 15px;
        min-height: 44px; /* Touch-friendly minimum */
    }
    
    /* Optimize breakdown items for small screens */
    .breakdown-item {
        font-size: clamp(0.8rem, 1.5vw + 0.2rem, 0.95rem);
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* ===================================
   VALUE PROPOSITION TOOLTIPS
   Feature: marketing-text-optimization
   Requirements: 7.3
   =================================== */

/* Add tooltip functionality for labels with value propositions */
label[data-value-prop] {
    position: relative;
    cursor: help;
}

/* Tooltip container */
label[data-value-prop]::after {
    content: attr(data-value-prop);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(30, 30, 30, 0.95);
    color: #daa520;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(183, 159, 116, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Tooltip arrow */
label[data-value-prop]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: rgba(30, 30, 30, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

/* Show tooltip on hover */
label[data-value-prop]:hover::after,
label[data-value-prop]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

label[data-value-prop]:hover::before {
    transform: translateX(-50%) translateY(2px);
}

/* Material description tooltips for print calculator */
label[data-description] {
    position: relative;
    cursor: help;
}

label[data-description]::after {
    content: attr(data-description);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(30, 30, 30, 0.95);
    color: #b79f74;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(183, 159, 116, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

label[data-description]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: rgba(30, 30, 30, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

label[data-description]:hover::after,
label[data-description]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

label[data-description]:hover::before {
    transform: translateX(-50%) translateY(2px);
}

/* Mobile adjustments for tooltips */
@media (max-width: 768px) {
    label[data-value-prop]::after,
    label[data-description]::after {
        font-size: 0.8rem;
        padding: 6px 10px;
        max-width: 220px;
        white-space: normal;
    }
    
    /* Position tooltips above on mobile to avoid overflow */
    label[data-value-prop]::after,
    label[data-description]::after {
        left: 0;
        transform: translateX(0) translateY(-8px);
    }
    
    label[data-value-prop]:hover::after,
    label[data-description]:hover::after {
        transform: translateX(0) translateY(-4px);
    }
    
    label[data-value-prop]::before,
    label[data-description]::before {
        left: 20px;
        transform: translateX(0) translateY(-2px);
    }
    
    label[data-value-prop]:hover::before,
    label[data-description]:hover::before {
        transform: translateX(0) translateY(2px);
    }
}

/* Touch device support - show tooltip on tap */
@media (hover: none) and (pointer: coarse) {
    label[data-value-prop]:active::after,
    label[data-value-prop]:active::before,
    label[data-description]:active::after,
    label[data-description]:active::before {
        opacity: 1;
    }

}


/* =============================================
   LANDING PAGE EXTENSIONS
   ============================================= */

/* CTA Row */
.landing-cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link-btn {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid rgba(183, 159, 116, 0.5);
    border-radius: 8px;
    color: #b79f74;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(183, 159, 116, 0.06);
    white-space: nowrap;
}

.contact-link-btn:hover {
    background: rgba(183, 159, 116, 0.15);
    border-color: #daa520;
    color: #daa520;
    transform: translateY(-1px);
}

/* About Strip */
.about-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50px;
    padding: 8px 18px 8px 8px;
    width: fit-content;
    margin: 0 auto;
}

.about-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b79f74, #daa520);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0a0a0f;
    flex-shrink: 0;
}

.about-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

.about-info strong {
    font-size: 0.88rem;
    color: #e0e0e0;
}

.about-info span {
    font-size: 0.78rem;
    color: #8a8aa0;
}

/* Stats */
.landing-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #b79f74;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: #6a6a80;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: #9a9ab8;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Reference Cards */
.ref-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.ref-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

.ref-card:hover {
    border-color: rgba(183, 159, 116, 0.3);
}

.ref-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.ref-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ref-content strong {
    font-size: 0.78rem;
    color: #d0d0e0;
}

.ref-content span {
    font-size: 0.68rem;
    color: #6a6a80;
}

/* White Mode overrides */
body.white-mode .contact-link-btn {
    color: #7a6540;
    border-color: rgba(183, 159, 116, 0.4);
    background: rgba(183, 159, 116, 0.06);
}
body.white-mode .contact-link-btn:hover {
    color: #5a4828;
    border-color: #b79f74;
    background: rgba(183, 159, 116, 0.12);
}
body.white-mode .about-strip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}
body.white-mode .about-info strong { color: #1a1c2e; }
body.white-mode .about-info span   { color: #7a7a90; }
body.white-mode .stat-number       { color: #7a6540; }
body.white-mode .stat-label        { color: #9a9ab0; }
body.white-mode .stat-divider      { background: rgba(0, 0, 0, 0.12); }
body.white-mode .tech-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.10);
    color: #5a5d78;
}
body.white-mode .ref-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.07);
}
body.white-mode .ref-content strong { color: #1a1c2e; }
body.white-mode .ref-content span   { color: #9a9ab0; }

@media (max-width: 480px) {
    .ref-cards {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    .landing-stats { gap: 14px; }
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */

.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 15, 28, 0.72);
    border: 1px solid rgba(183, 159, 116, 0.35);
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.theme-toggle:hover {
    border-color: #b79f74;
    background: rgba(183, 159, 116, 0.18);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 24px rgba(218, 165, 32, 0.3);
}

/* =============================================
   WHITE MODE — Apple / Stripe Cool Blue-Gray
   ============================================= */

body.white-mode {
    color-scheme: light;
}

/* ── Base ── */
body.white-mode {
    background: #eef0f5 !important;
    color: #1a1c2e !important;
}

body.white-mode::before {
    background: radial-gradient(ellipse at 35% 45%,
        rgba(215, 220, 240, 0.85) 0%,
        rgba(238, 240, 245, 0.97) 100%);
}

/* ── Scrollbar ── */
body.white-mode ::-webkit-scrollbar-track {
    background: #dde0ea;
}
body.white-mode ::-webkit-scrollbar-thumb {
    border-color: #dde0ea;
}
body.white-mode * {
    scrollbar-color: #b79f74 #dde0ea;
}

/* ── Toggle Button ── */
body.white-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(183, 159, 116, 0.4);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.10);
}
body.white-mode .theme-toggle:hover {
    background: rgba(183, 159, 116, 0.12);
}

/* ── Cards / Panels ── */
body.white-mode .input-section,
body.white-mode .result-section,
body.white-mode .selection-container,
body.white-mode .form-container {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, 0.06);
    color: #1a1c2e;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.07);
}

body.white-mode .selection-card {
    background: rgba(245, 247, 252, 0.92);
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
body.white-mode .selection-card:hover {
    background: #ffffff;
    border-color: #b79f74;
    box-shadow: 0 6px 28px rgba(183, 159, 116, 0.18);
}
body.white-mode .selection-card h2  { color: #1a1c2e; }
body.white-mode .selection-card p   { color: #5a5d78; }
body.white-mode .selection-subtitle { color: #5a5d78; }

/* ── Close Button ── */
body.white-mode .close-button {
    background: rgba(245, 247, 252, 0.95);
    border-color: rgba(0, 0, 0, 0.10);
    color: #b79f74;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.white-mode .close-button:hover {
    background: rgba(183, 159, 116, 0.10);
    border-color: #b79f74;
}

/* ── Typography ── */
body.white-mode .loading-text         { color: #6a6d88; }
body.white-mode .value-proposition    { color: #6a6d88; }
body.white-mode .trust-element        { color: #9a8a6a; }
body.white-mode .input-group label    { color: #5a5d78; }
body.white-mode h2.calculator-subheadline { color: #5a5d78; }
body.white-mode .footer-links a       { color: #9a8a6a; }
body.white-mode .footer-links a:hover { color: #b79f74; }
body.white-mode .footer-links .separator { color: #b8bcd0; }
body.white-mode .price-row.range      { color: #6a6d88; }
body.white-mode .price-note           { color: #6a6d88; }
body.white-mode .input-hint           { color: #9a8a6a; }

/* ── Inputs ── */
body.white-mode .slider               { background: #d8dbe8; }
body.white-mode .slider-value {
    background: #eceef5;
    border-color: #cdd0df;
    color: #1a1c2e;
}
body.white-mode .radio-option {
    background: #eceef5;
    border-color: #cdd0df;
}
body.white-mode .radio-option:hover   { border-left-color: rgba(183,159,116,0.5); background: rgba(183,159,116,0.06); }
body.white-mode .radio-option.active  { background: rgba(183,159,116,0.10); border-left-color: #b79f74; }
body.white-mode .radio-option label   { color: #1a1c2e; }
body.white-mode .radio-option.active label { color: #1a1c2e; }
body.white-mode .radio-option input[type="radio"] { border-color: #9a9ab0; }
body.white-mode .radio-option input[type="radio"]:checked { background: #b79f74; border-color: #b79f74; }

body.white-mode .checkbox-option {
    background: #eceef5;
    border-color: #cdd0df;
}
body.white-mode .checkbox-option:hover  { border-color: #b79f74; background: #f4f5fa; }
body.white-mode .checkbox-option.active { background: rgba(183,159,116,0.10); border-color: #b79f74; }
body.white-mode .checkbox-option label  { color: #1a1c2e; }

body.white-mode .text-input,
body.white-mode .number-input,
body.white-mode .select-input,
body.white-mode .calc-select,
body.white-mode .calc-input,
body.white-mode .calc-textarea,
body.white-mode .form-input {
    background: #eceef5;
    border-color: #cdd0df;
    color: #1a1c2e;
}
body.white-mode .calc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b79f74' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #eceef5;
}
body.white-mode .calc-select option { background: #f0f2f8; color: #1a1c2e; }
body.white-mode .calc-textarea::placeholder { color: #9a9ab0; }
body.white-mode .text-input:focus,
body.white-mode .number-input:focus,
body.white-mode .select-input:focus,
body.white-mode .calc-select:focus,
body.white-mode .calc-input:focus,
body.white-mode .calc-textarea:focus,
body.white-mode .form-input:focus {
    border-color: #b79f74;
    box-shadow: 0 0 0 3px rgba(183, 159, 116, 0.15);
}
body.white-mode .form-input[readonly] {
    background: #e4e6f0;
    color: #9a8a6a;
}
body.white-mode #stl-preview-canvas {
    background: #e4e6f0;
    border-color: #cdd0df;
}
body.a:focus {
    outline: none;
}
/* ── Breakdown ── */
body.white-mode .breakdown-item        { border-bottom-color: #d4d7e6; }
body.white-mode .breakdown-item span:first-child { color: #5a5d78; }
body.white-mode .breakdown-item span:last-child  { color: #1a1c2e; }

/* ── File Upload ── */
body.white-mode .file-upload-area {
    background: #eceef5;
    border-color: #cdd0df;
}
body.white-mode .file-upload-area:hover {
    background: #f4f5fa;
    border-color: #b79f74;
}
body.white-mode .file-upload-area.drag-over {
    background: rgba(183, 159, 116, 0.08);
    border-color: #b79f74;
}
body.white-mode .upload-placeholder p  { color: #6a6d88; }
body.white-mode .upload-hint           { color: #8a8da8 !important; }
body.white-mode .upload-note           { color: #6a6d88; }
body.white-mode .file-input::-webkit-file-upload-button {
    background: rgba(183, 159, 116, 0.08);
    color: #9a8a6a;
    border-color: rgba(183, 159, 116, 0.35);
}

/* ── Impressum / Datenschutz ── */
body.white-mode .impressum-content        { color: #1a1c2e; }
body.white-mode .impressum-content p,
body.white-mode .impressum-content ul     { color: #32354e; }
body.white-mode .impressum-content h3     { color: #9a8a6a; }
body.white-mode .impressum-content h4     { color: #5a5d78; }

/* ── Tooltips ── */
body.white-mode label[data-value-prop]::after,
body.white-mode label[data-description]::after {
    background: rgba(255, 255, 255, 0.98);
    color: #9a8a6a;
    border-color: rgba(183, 159, 116, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
body.white-mode label[data-value-prop]::before {
    border-bottom-color: rgba(255, 255, 255, 0.98);
}
body.white-mode label[data-description]::before {
    border-top-color: rgba(255, 255, 255, 0.98);
}
