/* Benutzerdefinierte Stile */
.font-display {
    font-family: 'Merriweather', serif;
}
.font-handwriting {
    font-family: 'Caveat', cursive;
}
.option-button {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.1);
}
.option-button:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.1);
 }
.option-button:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}
.option-button.selected {
    background-color: #8c6d52 !important;
    color: #f0e6d0 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.main-panel {
    background-color: #5d4a3c;
    border: 2px solid #4a3b30;
    box-shadow: 0 0 0 3px #4a3b30, 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
}

input[type="range"].custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    background-color: #4a3b30;
    border-radius: 0.375rem;
    outline: none;
    opacity: 0.7;
    transition: opacity .15s ease-in-out;
}
input[type="range"].custom-slider:hover {
    opacity: 1;
}
input[type="range"].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #d97706;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #f0e6d0;
}
input[type="range"].custom-slider::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background-color: #d97706;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #f0e6d0;
}


/* Schematic Webpage Preview Styles */
.schematic-preview {
    background-color: #7a6252;
    border: 2px solid #4a3b30;
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.25);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.schematic-preview-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.75rem;
}
.browser-dot {
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.dot-red { background-color: #c77878; }
.dot-yellow { background-color: #d9c382; }
.dot-green { background-color: #82c382; }


.schematic-preview-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.25rem;
    position: relative;
}


.feature-chip {
    background-color: #8c6d52;
    border: 1px solid #5d4a3c;
    border-radius: 9999px;
    padding: 0.375rem 0.875rem;
    color: #f0e6d0;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.9) translateY(5px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
}
.feature-chip.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.feature-chip i {
    font-size: 0.875rem;
}


/* Styles for stacked pages */
.subpage-stack-visualizer {
    margin-top: auto;
    padding-top: 1rem;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}
.stacked-page-visual {
    background-color: #a1887f;
    border: 1px solid #8c6d52;
    width: 60%;
    max-width: 150px;
    height: 10px;
    border-radius: 3px 3px 0 0;
    position: absolute;
    bottom: 0;
    box-shadow: 0 -2px 3px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, bottom 0.3s ease-out;
}
.stacked-page-visual.visible {
    opacity: 1;
    transform: translateY(0);
}
.subpage-count-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d97706;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
.subpage-count-indicator.visible {
    opacity: 1;
}




/* E-Mail Popup Stile */
.email-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}
.email-popup-overlay.visible { opacity: 1; visibility: visible; }

.email-popup-content {
    background-color: #5d4a3c;
    color: #f0e6d0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 600px;
    border: 3px solid #4a3b30;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.email-popup-title {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #f0e6d0;
    margin-bottom: 1rem;
    text-align: center;
}
.email-popup-textarea {
    width: 100%;
    min-height: 150px;
    max-height: 300px;
    background-color: #7a6252;
    border: 2px dashed #8c6d52;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #f0e6d0;
    white-space: pre-wrap;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.email-popup-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #8c6d52;
    border-radius: 0.375rem;
    background-color: #7a6252;
    color: #f0e6d0;
    margin-bottom: 0.25rem;
}
.email-popup-input::placeholder {
    color: #cab8a4;
}
.email-popup-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}
.error-message {
    color: #f87171;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: none;
}


.email-popup-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}
@media (min-width: 640px) {
    .email-popup-footer {
        flex-direction: row;
    }
     .email-popup-textarea {
        min-height: 200px;
    }
}
.email-popup-info-text {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: #f0e6d0;
    text-align: center;
}
@media (min-width: 640px) {
    .email-popup-info-text {
        text-align: left;
    }
}
.email-popup-copy-button {
    background-color: #d97706;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 2px solid #b45309;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.email-popup-copy-button:hover {
    background-color: #b45309;
}
.email-popup-copy-button.copied-success {
    background-color: #22c55e;
    border-color: #16a34a;
}
.email-popup-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    border: none;
    font-size: 1.8rem;
    color: #f0e6d0;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.email-popup-close-button:hover {
    color: #d97706;
}


/* CSS-Stile für den "Anfrage formulieren" Button */
.button {
    position: relative;
    overflow: hidden;
    height: 3rem;
    padding: 0 2rem;
    border-radius: 1.5rem;
    background: #d97706; /* Standardhintergrund Orange */
    background-size: 400%;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif; /* Explizite Schriftart */
    font-weight: 600; /* Explizites Schriftgewicht */
    font-size: 1.125rem;
    line-height: 3rem; /* Angepasst an Button-Höhe für vertikale Zentrierung */
    text-align: center;
    display: inline-flex; /* Für bessere Kontrolle über Größe und Ausrichtung */
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease; /* Für den Fall, dass ::before nicht greift */
}


@media (min-width: 640px) {
    .button {
         font-size: 1.25rem;
    }
}


.button:hover::before,
.button:focus-visible::before {
     transform: scaleX(1);
 }


.button-content {
    position: relative;
    z-index: 1;
}


.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        82.3deg,
        #b45309 10.8%,
        #8c6d52 94.3%  
    );
    transition: all 0.475s cubic-bezier(0.23, 1, 0.32, 1);
}