/* ========= PREISRECHNER PAGE STYLES ========= */

/* Stile für den Hauptinhalt */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main h1 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 50px;
}

/* ========= PREISRECHNER SECTION ========= */
.preisrechner-section {
    background: var(--bg-gradient-primary);
    padding: 100px 20px 80px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    /* Removed clip-path for 90 degree edges */
}

.preisrechner-section h2 {
    text-align: center;
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preisrechner-section .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.preisrechner-container {
    display: flex;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

/* ===== Linke Spalte - Eingabefelder ===== */
.preisrechner-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* Custom Dropdown Styles */
.input-group select {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    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='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-group select option {
    background-color: #026284;
    /* Fallback for variable match */
    color: white;
    padding: 10px;
}

/* Slider Styles */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.slider-value {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    min-width: 70px;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.slider-wrapper {
    position: relative;
    padding: 10px 0;
}

.slider-wrapper input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, white 0%, white var(--slider-progress, 50%), rgba(255, 255, 255, 0.2) var(--slider-progress, 50%), rgba(255, 255, 255, 0.2) 100%);
    appearance: none;
    cursor: pointer;
    border: none;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 5px;
}

.slider-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 5px;
}

/* ===== Payroll Section Styles ===== */
.lohn-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 0;
}

.subsection-title {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.zusatz-optionen {
    margin-top: 40px;
}

.zusatz-optionen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.number-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.number-input-group label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.number-input-group input[type="number"] {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.number-input-group input[type="number"]:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
}

/* ===== Rechte Spalte - Preisübersicht ===== */
.preisrechner-result {
    flex: 0 0 380px;
    max-width: 100%;
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 35px;
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle light border */
    box-sizing: border-box;
    position: sticky;
    top: 130px;
    /* Sticky support */
}

/* Make it visually distinct for results */
.preisrechner-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-accent);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.result-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.price-item {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.price-item .price-label {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

.price-item .price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.price-total {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--color-border);
    flex-direction: column;
    align-items: flex-end;
}

.price-total .price-label {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-text);
}

.price-total .price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

/* ===== Notice Box using Alert Styles ===== */
.calculator-notice {
    background-color: #fefce8;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.calculator-notice i {
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.calculator-notice p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== Price Subsection Styles ===== */
.price-subsection {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.subsection-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CTA Section ===== */
.cta-section {
    margin-top: 40px;
    text-align: center;
}

.cta-hint {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 18px 25px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.price-disclaimer {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.5;
}

/* ===== Responsive Design für Preisrechner ===== */

/* Tablet Portrait & Mobile (unter 900px) */
@media (max-width: 900px) {
    .preisrechner-section {
        padding: 120px 20px 60px;
        /* More top padding for header space */
        clip-path: none;
    }

    .preisrechner-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .preisrechner-inputs {
        width: 100%;
        padding: 25px;
    }

    .preisrechner-result {
        flex: none;
        width: 100%;
        max-width: 600px;
        position: static;
        box-shadow: var(--shadow-md);
    }
}

/* Mobile (unter 600px) */
@media (max-width: 600px) {
    main h1 {
        font-size: 1.8rem;
    }

    .preisrechner-section {
        padding: 100px 15px 50px;
    }

    .preisrechner-section h2 {
        font-size: 1.6rem;
    }

    .preisrechner-inputs {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .zusatz-optionen-grid {
        grid-template-columns: 1fr;
    }

    .price-total .price-label {
        font-size: 1rem;
    }

    .price-total .price-value {
        font-size: 2rem;
    }
}


main h1 {
    text-align: center;
    color: #0d6b7e;
    margin-bottom: 50px;
}

/* ========= PREISRECHNER SECTION ========= */
.preisrechner-section {
    background: var(--bg-gradient-primary);
    padding: 60px 20px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

.preisrechner-section h2 {
    text-align: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.preisrechner-section .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 40px;
}

.preisrechner-container {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

/* ===== Linke Spalte - Eingabefelder ===== */
.preisrechner-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Custom Dropdown Styles */
.input-group select {
    background-color: #2a5554;
    color: white;
    border: none;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.input-group select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.input-group select option {
    background-color: #2a5554;
    color: white;
}

/* Slider Styles */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.95rem;
}

.slider-value {
    background-color: #2a5554;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.slider-wrapper {
    position: relative;
    padding: 10px 0;
}

.slider-wrapper input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, white 0%, white var(--slider-progress, 50%), #2a5554 var(--slider-progress, 50%), #2a5554 100%);
    appearance: none;
    cursor: pointer;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: #5ba3a2;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #5ba3a2;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 5px;
}

.slider-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 5px;
}

/* ===== Payroll Section Styles ===== */
.lohn-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.subsection-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

.zusatz-optionen {
    margin-top: 25px;
}

.zusatz-optionen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.number-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.number-input-group label {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.number-input-group input[type="number"] {
    background-color: #2a5554;
    color: white;
    border: none;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.number-input-group input[type="number"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.input-hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-style: italic;
}

/* ===== Rechte Spalte - Preisübersicht ===== */
.preisrechner-result {
    flex: 0 0 340px;
    max-width: 100%;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    color: #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #0d6b7e;
    box-sizing: border-box;
}

.result-intro {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.price-item {
    margin-bottom: 25px;
}

.price-item .price-label {
    font-size: 0.95rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.price-item .price-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.price-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.15);
}

.price-total .price-label {
    font-size: 1rem;
    margin-bottom: 8px;
}

.price-total .price-value {
    font-size: 2.2rem;
    font-weight: 700;
}

/* ===== Notice Box for High Revenue ===== */
.calculator-notice {
    background-color: #FFF4E6;
    border-left: 4px solid #F59E0B;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.calculator-notice i {
    color: #F59E0B;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.calculator-notice p {
    color: #78350F;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.calculator-notice strong {
    color: #92400E;
}

/* ===== Price Subsection Styles ===== */
.price-subsection {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.subsection-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    color: #0d6b7e;
}

.price-subitem {
    margin-bottom: 15px;
    padding-left: 15px;
}

.price-subitem .price-label {
    font-size: 0.85rem;
}

.price-subitem .price-value {
    font-size: 1.3rem;
}

/* ===== CTA Section ===== */
.cta-section {
    margin-top: 30px;
}

.cta-hint {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 15px;
}

.cta-button {
    display: block;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 16px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.price-disclaimer {
    margin-top: 20px;
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* ===== Responsive Design für Preisrechner ===== */

/* Tablet Portrait & Mobile (unter 900px) - Einspaltiges Layout */
@media (max-width: 900px) {
    .preisrechner-section {
        padding: 40px 20px;
    }

    .preisrechner-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .preisrechner-inputs {
        width: 100%;
        max-width: 500px;
    }

    .preisrechner-result {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .preisrechner-section h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .preisrechner-section .subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* Mobile (unter 600px) - Optimierte Abstände */
@media (max-width: 600px) {
    main {
        padding-top: 0;
    }

    main h1 {
        font-size: 1.8rem;
    }

    .preisrechner-section {
        padding: 30px 15px;
        margin-top: 0;
    }

    .preisrechner-section h2 {
        font-size: 1.3rem;
    }

    .preisrechner-inputs,
    .preisrechner-result {
        max-width: 100%;
    }

    .preisrechner-result {
        padding: 25px 20px;
    }

    .input-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .slider-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .slider-header span:first-child {
        flex: 1 1 100%;
    }

    .zusatz-optionen-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-title {
        font-size: 1rem;
    }

    .calculator-notice {
        padding: 12px;
        gap: 10px;
    }

    .calculator-notice i {
        font-size: 1.1rem;
    }

    .calculator-notice p {
        font-size: 0.85rem;
    }
}

/* Kleine Mobile-Geräte (unter 400px) */
@media (max-width: 400px) {
    .preisrechner-section {
        padding: 25px 12px;
    }

    .preisrechner-section h2 {
        font-size: 1.15rem;
    }

    .preisrechner-result {
        padding: 20px 15px;
    }

    .price-item .price-value {
        font-size: 1.4rem;
    }

    .price-total .price-value {
        font-size: 1.6rem;
    }

    .input-group label {
        font-size: 0.9rem;
    }
}

/* Tablet-spezifische Anpassungen */
@media (min-width: 769px) and (max-width: 1024px) {
    main {
        padding-top: 0;
    }
}

/* ========= PREISRECHNER STYLES ENDE =========  */