* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0a0113 0%, #0732f3 100%);
    /*background-image: url(bra.jpg);
    background-position: center;
    background-size: contain;*/ 
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}    

.header {
    text-align: center;
    /*background: #f7f7f7;*/
    background-image: url(pic/bra.jpg);
    background-position: center;
    background-size: cover;
    color: white;
    margin-bottom: 20px;
    padding: 20px 20px;
    /*padding: 40px 0;*/
    /*background: rgba(0,0,0,0.3);*/
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.header h1 {
    font-style: italic;
    font-size: 4rem;
    text-decoration: overline underline;
    margin-bottom: 10px;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
    color: white;
    text-shadow: 2px 2px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.calendar-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.calendar-title {
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
}

.calendar-day-header {
    background: rgba(255,255,255,0.2);
    padding: 10px 5px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 5px;
}

.calendar-day {
    background: rgba(255,255,255,0.1);
    padding: 10px 5px;
    text-align: center;
    min-height: 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.other-month:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
}

.calendar-day.today {
    background: linear-gradient(135deg, #3a3eff, #646fff);
    font-weight: bold;
    box-shadow: 0 0 15px rgba(107, 142, 255, 0.5);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    font-weight: bold;
    box-shadow: 0 0 15px rgba(78,205,196,0.5);
}

.calendar-day.past {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.past:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
}

.selected-date-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    text-align: center;
}

.selected-date-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.time-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.time-slot {
    /*background: rgba(255,255,255,0.2);*/
    border: none;
    /* color: white; */
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.time-slot:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.time-slot.selected {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 0 10px rgba(78,205,196,0.3);
}

.time-slot.busy {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.past {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-section {
    background: rgb(117, 117, 117);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-title {        
    text-align: center;
    position: relative;
    font-style: italic;
    font-size: 2rem;
    text-decoration: overline underline;
    margin-bottom: 20px;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
    color: white;
    text-shadow: 2px 2px 2px black, 0 0 25px blue, 0 0 5px darkblue;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.place-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #f8f9ff, #e8e9f3);
}

.place-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
}

.place-card.in-cart {
    border-color: #4ecdc4;
    background: linear-gradient(145deg, #4ecdc4, #44a08d);
    color: white;
}

/* Neuer Stil für nicht verfügbare Arbeitsplätze */
.place-card.unavailable {
    border-color: #ff6b6b;
    background: linear-gradient(145deg, #ffcccc, #ff9999);
    opacity: 0.6;
    color: #666;
}

.place-card.unavailable:hover {
    transform: none;
    box-shadow: none;
}

.place-card.unavailable h3 {
    color: #666;
}

.place-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: inherit;
}

.add-place-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 10px;
    width: 100%;
}

.add-place-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.add-place-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.place-card.in-cart .add-place-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.place-card.in-cart .add-place-btn:hover {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
}

.place-card.in-cart .add-place-btn::before {
    content: "✓ ";
}

.place-card.unavailable .add-place-btn {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.place-card.unavailable .add-place-btn:hover {
    background: #999;
    transform: none;
    box-shadow: none;
}

.duration-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.place-card.in-cart .duration-controls {
    border-top-color: rgba(255,255,255,0.3);
}

.place-card.unavailable .duration-controls {
    border-top-color: rgba(0,0,0,0.2);
}

.duration-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.toggle-btn {
    padding: 8px 16px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.place-card.in-cart .toggle-btn {
    border-color: rgba(255,255,255,0.5);
    background: transparent;
    color: rgba(255,255,255,0.8);
}

.place-card.unavailable .toggle-btn {
    border-color: rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.5);
    cursor: not-allowed;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
}

.place-card.in-cart .toggle-btn.active {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.8);
}

.place-card.unavailable .toggle-btn.active {
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.8);
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-group label {
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
}

.place-card.in-cart .slider-group label {
    color: white;
}

.place-card.unavailable .slider-group label {
    color: rgba(0,0,0,0.5);
}

.duration-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.place-card.in-cart .duration-slider {
    background: rgba(255,255,255,0.3);
}

.place-card.unavailable .duration-slider {
    background: rgba(0,0,0,0.2);
    cursor: not-allowed;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.place-card.in-cart .duration-slider::-webkit-slider-thumb {
    background: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.place-card.unavailable .duration-slider::-webkit-slider-thumb {
    background: #999;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.duration-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.place-card.unavailable .duration-slider::-webkit-slider-thumb:hover {
    transform: none;
    box-shadow: none;
}

.duration-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.place-card.in-cart .duration-slider::-moz-range-thumb {
    background: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.place-card.unavailable .duration-slider::-moz-range-thumb {
    background: #999;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.duration-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.place-card.in-cart .duration-slider::-webkit-slider-track {
    background: rgba(255,255,255,0.6);
}

.place-card.unavailable .duration-slider::-webkit-slider-track {
    background: rgba(0,0,0,0.3);
    cursor: not-allowed;
}

.duration-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.place-card.in-cart .slider-labels {
    color: rgba(255,255,255,0.8);
}

.place-card.unavailable .slider-labels {
    color: rgba(0,0,0,0.4);
}

.calculated-price {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: #ff6b6b;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 8px;
}

.place-card.in-cart .calculated-price {
    color: white;
    background: rgba(255,255,255,0.2);
}

.place-card.unavailable .calculated-price {
    color: rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.3);
}

.tools-section {
    margin-top: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tool-item {
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: #667eea;
    background: #e8e9f3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.tool-description {
    font-size: 0.9rem;
    color: #666;
}

.tool-control {
    display: block;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.tool-price {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
}

.add-tool-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 100px;
}

.add-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.add-tool-btn.added {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    transform: scale(0.95);
}

.add-tool-btn.added:hover {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    transform: scale(1) translateY(-2px);
}

.add-tool-btn.added::before {
    content: "✓ ";
}

.shopping-cart {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
}

.shopping-cart h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-empty {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.cart-item-details {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cart-item-price {
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    color: #FFE5B4;
}

.remove-item-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-item-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

.cart-total {
    border-top: 2px solid rgba(255,255,255,0.3);
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.4rem;
    font-weight: bold;
}

.total-price {
    font-size: 2rem;
    font-weight: bold;
    color: #FFE5B4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.book-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.book-btn:disabled {
    background: rgba(255,255,255,0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.special-offer {
    /*background: linear-gradient(45deg, #4ecdc4, #44a08d);*/
    background-image: url(pic/öl.png);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.special-offer h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.cart-item-count {
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
    }
    
    .duration-toggle {
        justify-content: center;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item-price {
        margin-right: 0;
    }

    .cart-total {
        flex-direction: column;
        gap: 10px;
    }
}




/* Zusätzliche CSS-Regeln für deaktivierte Werkzeuge */

.tool-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.add-tool-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    color: #666 !important;
}

.add-tool-btn:disabled:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Style for workplace cards when no time is selected */
.place-card.time-not-selected {
    border-color: #ddd;
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    opacity: 0.5;
    pointer-events: none;
    color: #666;
}

.place-card.time-not-selected h3 {
    color: #666;
}

.place-card.time-not-selected .add-place-btn {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    color: #666 !important;
}

.place-card.time-not-selected .add-place-btn:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.place-card.time-not-selected .duration-controls {
    opacity: 0.5;
}

.place-card.time-not-selected .toggle-btn {
    border-color: rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.5);
    cursor: not-allowed;
}

.place-card.time-not-selected .duration-slider {
    background: rgba(0,0,0,0.2);
    cursor: not-allowed;
}

.place-card.time-not-selected .duration-slider::-webkit-slider-thumb {
    background: #999;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.place-card.time-not-selected .duration-slider::-webkit-slider-thumb:hover {
    transform: none;
    box-shadow: none;
}

.place-card.time-not-selected .duration-slider::-webkit-slider-track {
    background: rgba(0,0,0,0.3);
    cursor: not-allowed;
}

.place-card.time-not-selected .calculated-price {
    color: rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.3);
}

/* Ensure proper hover states are maintained for available cards */
.place-card:not(.time-not-selected):not(.unavailable):hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
}