
.reservierung-container {
    background-color: var(--simpbook-container-bg) !important;
    color: var(--simpbook-text-color) !important;
    padding: 30px;
    padding-right: 50px; 
    padding-left: 50px; 
    border-radius: var(--simpbook-border-radius, 8px);
    max-width: 100%;
    margin-left: auto;  /* Zentrierung */
    margin-right: auto; /* Zentrierung */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .reservierung-container * {
        color: inherit;
    }

    .reservierung-container input:not([type="submit"]):not([type="button"]),
    .reservierung-container select,
    .reservierung-container textarea {
        color: var(--simpbook-input-text-color) !important;
    }

    .reservierung-container select option {
        color: black !important;
        background-color: white !important;
    }

    .reservierung-container label,
    .reservierung-container h2,
    .reservierung-container h3,
    .reservierung-container p {
        color: var(--simpbook-text-color) !important;
    }

    .reservierung-container input::placeholder,
    .reservierung-container textarea::placeholder {
        color: var(--simpbook-input-text-color) !important;
        opacity: 0.7 !important;
    }

    /* Fortschrittsschritte */
    .reservierung-steps {
        display: flex;
        justify-content: space-between;
		
        margin-bottom: 40px; /* Vergrößerter unterer Rand für die gesamten Schritte, um mehr Platz für Beschriftungen zu schaffen */
        position: relative;
    }

    .reservierung-steps:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: #ddd;
        z-index: 1;
        transform: translateY(-50%);
		width: 95%;
    }

    .reservierung-step {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        color: #666;
    }

    .reservierung-step.active {
        background: var(--simpbook-active-color);
        color: white;
    }

    .reservierung-step.completed {
        background: var(--simpbook-active-color);
        color: white;
    }

    .reservierung-step-label {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 15px; /* Vergrößerter oberer Rand für Schrittbeschriftungen */
		margin-bottom: 15px; /* Vergrößerter unteren Rand für Schrittbeschriftungen */
        white-space: nowrap;
        font-size: 16px; /* Reduzierte Schriftgröße für Schrittbeschriftungen */
        color: var(--simpbook-text-color);
    }

    .reservierung-step.active .reservierung-step-label,
    .reservierung-step.completed .reservierung-step-label {
        color: var(--simpbook-active-color);
        font-weight: bold;
    }

    /* Formularschritte */
    .reservierung-form-step {
        display: none;
    }

    .reservierung-form-step.active {
        display: block;
		margin-top: 50px;
    }

/* jQuery UI Datepicker Header Anpassungen */
.ui-datepicker-header {
    color: var( --simpbook-text-color) !important;
    background-color: var(--simpbook-container-bg) !important;
    display: flex; /* Flexbox aktivieren */
    align-items: center; /* Vertikal zentrieren */
    justify-content: space-between; /* Verteilt den Platz: erstes Element links, letztes rechts, Rest dazwischen */
    padding: 2px 0;
}

/* Pfeile und Titel als Flex-Items behandeln und ihre Reihenfolge steuern */
.ui-datepicker-prev {
    order: 1; /* Erster in der visuellen Reihenfolge */
    flex-shrink: 0;
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background-color: var(--simpbook-button-color) !important;
    border: none !important;
    margin-left: 5px !important;
}

.ui-datepicker-title {
    order: 2; 
    flex-grow: 1; 
    text-align: center; 
    margin: 0 0.5em; 
    line-height: 1.8em; 
}

.ui-datepicker-next {
    order: 3; 
    flex-shrink: 0;
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background-color: var(--simpbook-button-color) !important;
    border: none !important;
    margin-right: 5px !important;
}

.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
    background-image: none !important;
    text-indent: -9999px !important;
    overflow: hidden;
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.ui-datepicker-prev .ui-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3E%3Cpath d='M11.043 1.561a.75.75 0 00-1.061 0L4.779 6.764a.75.75 0 000 1.06L9.982 13.03a.75.75 0 101.06-1.061L6.37 7.294l4.673-4.673a.75.75 0 000-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.ui-datepicker-next .ui-icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3E%3Cpath d='M5.018 1.561a.75.75 0 011.061 0l5.203 5.203a.75.75 0 010 1.06l-5.203 5.203a.75.75 0 11-1.06-1.061L9.63 7.294 5.018 2.622a.75.75 0 010-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* Styling für "heute" */
.ui-datepicker-calendar td.ui-datepicker-today a.ui-state-default,
.ui-datepicker-calendar td.ui-datepicker-today span.ui-state-default {
    background: #fffadd !important;
    border-color: #fcefae !important;
    color: #363636 !important;
    font-weight: bold;
}

    /* Datumsauswahl - Moderne Kacheln */
    .date-selection-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 20px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .date-option {
        background: var(--simpbook-tile-bg, #ffffff);
        
        border-radius: var(--simpbook-tile-border-radius, 12px);
        padding: 24px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .date-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--simpbook-button-color, #2271b1), var(--simpbook-button-hover, #135e96));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .date-option:hover {
        border-color: var(--simpbook-button-color, #2271b1);
        box-shadow: 0 8px 24px rgba(34, 113, 177, 0.15);
        transform: translateY(-4px);
    }

    .date-option:hover::before {
        transform: scaleX(1);
    }

    .date-option.selected {
    border-color: #29b122 !important;
    border: 2px solid #29b122 !important;
    background: var(--simpbook-tile-bg, #ffffff);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--simpbook-button-color, #2271b1) 18%, transparent) !important;
    color: #fff;  
}

    .date-option.selected::before {
        transform: scaleX(1);
    }

    .date-option.disabled-option {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: var(--simpbook-tile-bg, #ffffff);
    }

    .date-option.disabled-option:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-color: #e0e0e0;
    }

    .date-option.disabled-option::before {
        background: #c94d4d;
    }

    .date-option h3 {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 600;
        color: var(--simpbook-tile-text-color, #333) !important;
    }

    .date-option.selected h3 {
        color: var(--simpbook-button-color, #2271b1);
    }

    .date-option p {
        margin: 0;
        font-size: 14px;
        color: var(--simpbook-tile-text-color, #666) !important;
        font-weight: 500;
    }

    .date-option.selected p {
        color: var(--simpbook-button-color, #2271b1);
    }







    .selected-date-display {
        text-align: center;
        margin: 20px 0;
        font-size: 18px;
    }
	
    .people-selection-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px; 
        margin-bottom: 20px;
		
    }

    .people-option {
        padding: 8px 15px; 
        border: 2px solid #ddd;
        border-radius: 6px; 
        cursor: pointer;
        transition: all 0.3s;
        text-align: center;
        min-width: 45px; 
        font-size: 16px;
        background: var(--simpbook-tile-bg, #ffffff);
        color: var(--simpbook-tile-text-color, #333) !important;
    }

    .people-option:hover {
        border-color: var(--simpbook-button-color);
    }

    .people-option.selected {
        border-color: var(--simpbook-button-color, #2271b1) !important;
        background: var(--simpbook-button-color, #2271b1) !important;
        color: #ffffff !important;
    }

    .time-selection-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px; 
        margin-bottom: 20px;
        justify-content: center;
    }

    .time-option {
        padding: 8px 15px; 
        border-radius: var(--simpbook-tile-border-radius, 12px);
        cursor: pointer;
        transition: all 0.3s;
        text-align: center;
        min-width: 40px; 
        font-size: 16px;
        background: var(--simpbook-tile-bg, #ffffff);
        color: var(--simpbook-tile-text-color, #333) !important;
    }

    .time-option:hover {
        border-color: var(--simpbook-button-color);
    }

    .time-option.selected {
    border-color: #29b122 !important;
    border: 2px solid #29b122 !important;
    background: var(--simpbook-tile-bg, #ffffff);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--simpbook-button-color, #2271b1) 18%, transparent) !important;
    color: var(--simpbook-tile-text-color, #333) !important;
    }

    .time-option.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        text-decoration: line-through;
    }

    /* Service Selection Container */
    .service-selection-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* Service Category Group - Gruppierung */
    .service-category-group {
        margin-bottom: 2px;
    }

    .service-category-header {
        font-size: 1.1em;
        font-weight: 600;
        color: var(--simpbook-text-color) !important;
        margin: 0 0 8px 0;
        padding-bottom: 4px;
        display: inline-block;
        margin-bottom: 10px !important;
    }

    .service-category-description {
        font-size: 0.9em;
        color: var(--simpbook-text-color) !important;
        opacity: 0.8;
        margin: 0 0 15px 0;
    }

    /* Service Selection Grid - Moderne Kacheln */
    .service-selection-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .service-card {
        background: var(--simpbook-tile-bg, #ffffff);
        border-radius: var(--simpbook-tile-border-radius, 12px);
        padding: 20px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--simpbook-button-color, #2271b1), var(--simpbook-button-hover, #135e96));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .service-card:hover {
        border-color: var(--simpbook-button-color, #2271b1);
        box-shadow: 0 8px 24px rgba(34, 113, 177, 0.15);
        transform: translateY(-4px);
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card.selected {
        border-color: #29b122 !important;
        border: 2px solid #29b122 !important;
        background: var(--simpbook-tile-bg, #ffffff);
        box-shadow: 0 8px 24px color-mix(in srgb, var(--simpbook-button-color, #2271b1) 20%, transparent) !important;
    }

    .service-card.selected::before {
        transform: scaleX(1);
    }

    .simpbook-service-deselect-btn {
        position: absolute !important;
        top: 10px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        border: none !important;
        background: var(--simpbook-container-bg) !important;
        color: var(--simpbook-text-color, #333) !important;
        font-size: 13px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        z-index: 5 !important;
        transition: background 0.2s !important;
    }

    .simpbook-service-deselect-btn:hover {
        background: rgba(255, 255, 255, 0.55) !important;
        border-color: var(--simpbook-text-color, #333) !important;
        border: 2px !important;
    }

    .service-card.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #f5f5f5;
    }

    .service-card.disabled:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .service-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    /* Auf großen Geräten: Foto links, Info rechts */
    
    .service-photo-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid #e0e0e0;
        transition: border-color 0.3s ease;
        flex-shrink: 0;
        background: #f5f5f5;
    }

    .service-card:hover .service-photo-wrapper {
        border-color: var(--simpbook-button-color, #2271b1);
    }

    .service-card.selected .service-photo-wrapper {
        border-color: #ffffff !important;
    }

    .service-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .service-card-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }

    .service-name {
        font-size: 16px;
        font-weight: 400;
        color: var(--simpbook-tile-text-color, #333) !important;
        line-height: 1.4;
        margin: 0;
        text-align: center;
    }

    .service-duration {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        color: var(--simpbook-tile-text-color, #666) !important;
        font-weight: 500;
    }

    .service-icon {
        color: var(--simpbook-tile-text-color, #666) !important;
        flex-shrink: 0;
        width: 14px;
        height: 14px;
    }
    
    .service-price {
        font-size: 14px;
        font-weight: 700;
        color: var(--simpbook-tile-text-color, #666) !important;
        margin-top: 4px;
    }

    .service-card.selected .service-price {
        color: var(--simpbook-tile-text-color, #333) !important;
    }

    .service-card.selected .service-duration {
        color: var(--simpbook-tile-text-color, #333) !important;
    }

    .service-card.selected .service-icon {
       color: var(--simpbook-tile-text-color, #333) !important;
    }
    
    .service-card.selected .service-name {
        color: var(--simpbook-tile-text-color, #333) !important;
    }

    /* Responsive Design für Service Cards */





    /* Employee Selection Grid - Moderne Kacheln */
    .employee-selection-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
    }

    .employee-card {
        background: var(--simpbook-tile-bg, #ffffff);
        
        border-radius: var(--simpbook-tile-border-radius, 12px);
        padding: 20px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
    }

    .employee-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--simpbook-button-color, #2271b1), var(--simpbook-button-hover, #135e96));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .employee-card:hover {
        border-color: var(--simpbook-button-color, #2271b1);
        box-shadow: 0 8px 24px rgba(34, 113, 177, 0.15);
        transform: translateY(-4px);
    }

    .employee-card:hover::before {
        transform: scaleX(1);
    }

    .employee-card.selected {
        border-color: var(--simpbook-button-color, #2271b1) !important;
        background: color-mix(in srgb, var(--simpbook-button-color, #2271b1) 80%, transparent) !important;
        box-shadow: 0 8px 24px color-mix(in srgb, var(--simpbook-button-color, #2271b1) 20%, transparent) !important;
    }

    .employee-card.selected::before {
        transform: scaleX(1);
    }

    .employee-card.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #f5f5f5;
    }

    .employee-card.disabled:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .employee-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    /* Auf großen Geräten: Foto links, Name rechts */

    .employee-photo-wrapper {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid #e0e0e0;
        transition: border-color 0.3s ease;
        flex-shrink: 0;
    }

    .employee-card:hover .employee-photo-wrapper {
        border-color: var(--simpbook-button-color, #2271b1);
    }

    .employee-card.selected .employee-photo-wrapper {
        border-color: #ffffff !important;
    }

    .employee-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .employee-name {
        font-size: 18px;
        font-weight: 600;
        color: var(--simpbook-tile-text-color, #333) !important;
        line-height: 1.4;
        margin: 0;
    }

    .employee-card.selected .employee-name {
        color: #ffffff !important;
    }

    /* Responsive Design für Employee Cards */





    .form-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
    }

    .form-button {
        padding: 12px 25px !important;
        border: none !important;
        border-radius: var(--simpbook-button-border-radius, 8px) !important;
        cursor: pointer !important;
        transition: background-color 0.3s !important;
    }

    .form-button.back {
        background-color: var(--simpbook-button-color) !important;
        color: var(--simpbook-button-text-color, #ffffff) !important;
    }

    .form-button.next,
    .form-button.submit {
        background-color: var(--simpbook-button-color) !important;
        color: var(--simpbook-button-text-color, #ffffff) !important;
    }

    .form-button:hover {
        opacity: 0.9 !important;
    }

    .form-button.next:hover,
    .form-button.submit:hover {
        background-color: var(--simpbook-button-hover) !important;
		color: var(--simpbook-button-text-color, #ffffff) !important;
    }

    .summary-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        text-align: left !important;
    }

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-label {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .reservierung-nachricht {
        padding: 15px;
        margin-top: 12%;
        border-radius: 5px;
        font-weight: bold;
		font-size: 16px;
        display: none;
    }

    .reservierung-nachricht.erfolg {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .reservierung-nachricht.fehler {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    /* Alte h2 Styles entfernt - jetzt form-section-header */

    .form-gruppe {
        margin-bottom: 20px;
		
    }

    /* Moderne Formular-Überschriften */
    .reservierung-container .form-section-header {
        font-size: 20px;
        font-weight: 400;
        color: var(--simpbook-text-color, #333) !important;
        margin: 0 0 24px 0;
        padding-top: 16px;
        padding-bottom: 8px;
        border-bottom: 3px solid var(--simpbook-button-color, #2271b1);
        position: relative;
        line-height: 1.3;
    }

    .reservierung-container .reservierung-container .form-section-header::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--simpbook-button-hover, #135e96);
        transition: width 0.3s ease;
    }

    .reservierung-container .reservierung-container .form-section-header:hover::after {
        width: 100px;
    }

    /* Responsive Design für Formular-Überschriften */





    .form-gruppe label {
        display: block;
        margin-bottom: 8px;
        color: var(--simpbook-text-color, #333);
        font-weight: 600;
        font-size: 16px;
    }

    .form-gruppe input:not([type="submit"]):not([type="button"]),
    .form-gruppe select,
    .form-gruppe textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: var(--simpbook-border-radius) !important;
        box-sizing: border-box;
        margin-top: 5px;
        color: var(--simpbook-input-text-color);
    }

    .date-selection-options .datepicker {
        display: block !important; 
        flex: 1;
        padding: 15px;
        text-align: center;
        border: 2px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
        box-sizing: border-box; 
        width: 100%; 
        font-size: 16px; 
        line-height: normal; 
        height: auto; 
        background-color: transparent; 
        color: inherit; 
        margin: 0; 
    }

    .date-selection-options .datepicker:hover {
        border-color: var(--simpbook-button-color);
    }

    .date-selection-options .datepicker::placeholder {
        color: transparent;
    }

    #custom-date-option {
         position: relative; 
         overflow: hidden; 
		 
    }

    #custom-date-option .datepicker {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0; 
        cursor: pointer;
        z-index: 10; 
    }

    #custom-date-option h3,
    #custom-date-option p {
        position: relative;
        z-index: 5; 
        pointer-events: none; 
		
    }

    /* ----------- MODIFIED DATEPICKER DAY STYLES START ----------- */
    /* Von neue-reservierung.css übernommen für konsistentes Styling */

    /* Datepicker allgemeines Styling */
    div.ui-datepicker {
        font-size: 14px !important;
        border-radius: 4px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        z-index: 1000 !important;
        width: 80% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important; /* Kein Innenabstand für den Hauptcontainer des Datepickers */
        background-color: #ffffff !important;
        border: 1px solid #ddd !important;
    }

    /* Calendar table should fill the entire datepicker container */
    .ui-datepicker-calendar {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 0 !important;
        table-layout: fixed !important; /* Ensures equal column widths */
    }

    .ui-datepicker-calendar th {
        background-color: #f7f7f7 !important; /* Heller Hintergrund für Wochentage-Header */
        color: #333 !important;
        padding: 5px 2px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        font-weight: bold !important;
        border: none !important; /* Kein Rahmen für Wochentage-Header */
        border-width: 0 !important;
    }

    /* Gemeinsame Stile für alle Tageszellen */
    .ui-datepicker-calendar td {
        padding: 1px !important; /* Minimales Padding um die Zellen für den Rand-Effekt */
        border: none !important; /* Kein direkter Rand an der Zelle, der Rand ist am Link/Span */
        border-width: 0 !important; /* Keine Border-Width für td */
    }

    /* Common styles for all day cells (links or spans) within the calendar table */
    .ui-datepicker-calendar td a.ui-state-default,
    .ui-datepicker-calendar td span.ui-state-default {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        text-align: center !important;
        text-decoration: none !important;
        padding: 5px 2px !important;
        font-size: 13px !important;
        line-height: 1.4em !important;
        border-radius: 3px !important; /* Kleinere Rundung wie im Backend */
        border: 1px solid #ddd !important;
        color: #333 !important;
        background: #fdfdfd !important; /* Sehr heller Hintergrund für Tage wie im Backend */
        opacity: 1.0 !important;
    }

    /* Hover-Effekt für verfügbare Tage */
    .ui-datepicker-calendar td a.ui-state-hover {
        background: #e0f7ff !important; /* Heller Blau-Hover */
        border-color: #99d1ff !important;
        color: #004a7c !important;
    }

    /* Styling for "today" */
    .ui-datepicker-calendar td.ui-datepicker-today a.ui-state-default,
    .ui-datepicker-calendar td.ui-datepicker-today span.ui-state-default {
        background: #fffadd !important; 
        border-color: #fcefae !important;
        color: #363636 !important;
        font-weight: bold !important;
    }

    /* Styling for selected day */
    .ui-datepicker-calendar td.ui-datepicker-current-day a.ui-state-default,
    .ui-datepicker-calendar td.ui-datepicker-current-day span.ui-state-default {
        background: #2271b1 !important;
        color: #ffffff !important;
        border-color: #135e96 !important;
        font-weight: bold !important;
    }

    /* Styling for disabled days (td has .ui-state-disabled) - ausgeschlossene Tage oder Vergangenheit */
    .ui-datepicker-calendar td.ui-state-disabled span.ui-state-default,
    .ui-datepicker-calendar td.ui-state-disabled a.ui-state-default {
        background-color: var(--simpbook-tile-bg, #f5f5f5) !important;
        color: #000000 !important;
        opacity: 1.0 !important;
        border-color: #ddd !important;
        cursor: not-allowed !important;
    }

    /* jQuery UI setzt pointer-events:none auf .ui-state-disabled – das blockiert Hover-Events.
       Hier wieder aktivieren damit der Geschlossen-Tooltip per JS funktioniert. */
    #ui-datepicker-div td.ui-state-disabled,
    #ui-datepicker-div td.ui-state-disabled span,
    #ui-datepicker-div td.ui-state-disabled a {
        pointer-events: auto !important;
    }

    /* ----------- MODIFIED DATEPICKER DAY STYLES END ----------- */


    /* Responsive Design für Dienstleistungen und Mitarbeiter */
    /* Responsiv */

/* Konsolidierte @media-Regeln */

/* Desktop */
@media (min-width: 1100px) {
    .service-card-content {
        align-items: center;
        text-align: left;
        gap: 16px;
        flex-direction: row;
    }

    .service-card-info {
        align-items: center;
    }

    .service-card {
        padding: 16px 24px;
    }

    .service-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .employee-card-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .employee-card {
        padding: 16px 24px;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .date-selection-options {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .date-option {
        padding: 20px;
    }

    .date-option h3 {
        font-size: 16px;
    }

    .date-option p {
        font-size: 13px;
    }

    .service-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .service-card {
        padding: 10px;
    }

    .service-name {
        font-size: 16px;
    }

    .service-duration {
        font-size: 13px;
    }

    .service-photo-wrapper {
        width: 90px;
        height: 90px;
    }

    .service-card-content {
        flex-direction: row;
    }

    .employee-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }

    .employee-card {
        padding: 18px;
    }

    .employee-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .employee-photo-wrapper {
        width: 70px;
        height: 70px;
    }

    .employee-name {
        font-size: 16px;
    }

    .reservierung-container .form-section-header {
        font-size: 18px;
        margin-bottom: 18px;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
        color: var(--simpbook-text-color) !important;
    }

    .reservierung-container .reservierung-container .form-section-header::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .date-selection-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .date-option {
        padding: 18px;
    }

    .service-selection-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .service-card {
        padding: 5px;
    }

    .service-card-content {
        align-items: center;
        text-align: left;
        gap: 8px;
        flex-direction: column;
    }

    .service-card-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0px;
    }

    .service-name {
        font-size: 14px;
    }

    .service-duration {
        font-size: 12px;
    }

    .service-photo-wrapper {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .service-price {
        font-size: 13px;
    }

    .employee-selection-grid {
        grid-template-columns: 1fr 1fr;
        gap: px;
    }

    .employee-card {
        padding: 12px;
    }

    .employee-photo-wrapper {
        width: 50px;
        height: 50px;
    }

    .employee-name {
        font-size: 14px;
    }

    .reservierung-container .form-section-header {
        font-size: 17px;
        margin-bottom: 16px;
        padding-top: 10px;
        padding-bottom: 10px;
        color: var(--simpbook-text-color) !important;
    }

    .reservierung-container {
        background-color: var(--simpbook-container-bg) !important;
        color: var(--simpbook-text-color) !important;
        padding: 30px;
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 10px;
        max-width: 100%;
        align-items: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .people-selection-grid,
    .time-selection-grid {
        justify-content: center;
    }

    .reservierung-steps {
        justify-content: center;
    }

    .reservierung-steps:before {
        display: none;
    }

    .reservierung-step {
        display: none !important;
    }

    .reservierung-step.active {
        display: flex !important;
    }

    .reservierung-step.active .reservierung-step-label {
        text-align: center;
    }

    .form-gruppe label {
        display: block;
        margin-bottom: 5px;
        color: var(--simpbook-text-color);
        font-weight: bold;
        text-align: center;
    }

    .reservierung-nachricht {
        padding: 15px;
        margin-top: 25%;
        border-radius: 5px;
        font-weight: bold;
        display: none;
    }

    div.ui-datepicker {
        width: 80% !important;
        max-width: 300px;
        max-height: 400px;
        margin-left: auto !important;
        margin-right: auto !important;
        background-color: #ffffff !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        padding: 10px !important;
    }

    .ui-datepicker-calendar {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    .ui-datepicker-calendar th {
        padding: 3px 1px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        border: none !important;
        border-width: 0 !important;
    }

    .ui-datepicker-calendar td a.ui-state-default,
    .ui-datepicker-calendar td span.ui-state-default {
        font-size: 10px !important;
        padding: 4px 4px !important;
        line-height: 1.3em !important;
        border-radius: 3px !important;
    }

    .ui-datepicker-calendar td a.ui-state-default,
    .ui-datepicker-calendar td span.ui-state-default {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        text-align: center !important;
        text-decoration: none !important;
        padding: 5px 2px !important;
        font-size: 14px !important;
        line-height: 1.4em !important;
        border-radius: 4px !important;
        border: 1px solid #ddd !important;
        color: #000000 !important;
        background: #ffffff !important;
        opacity: 1.0 !important;
    }

    .ui-datepicker-calendar td a.ui-state-hover {
        background: #e9e9e9 !important;
        border-color: #c5c5c5 !important;
    }

    .ui-datepicker-calendar td.ui-datepicker-today a.ui-state-default,
    .ui-datepicker-calendar td.ui-datepicker-today span.ui-state-default {
        background: #fffadd !important;
        border-color: #fcefae !important;
        color: #363636 !important;
    }

    .ui-datepicker-calendar td.ui-datepicker-current-day a.ui-state-default,
    .ui-datepicker-calendar td.ui-datepicker-current-day span.ui-state-default {
        background: #2271b1 !important;
        color: #ffffff !important;
        border-color: var(--simpbook-active-color, #2271b1) !important;
    }

    div.ui-datepicker {
        width: 80% !important;
        max-width: 300px;
        margin-left: auto !important;
        margin-right: auto !important;
        background-color: #ffffff !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        padding: 10px !important;
    }

    .ui-datepicker-calendar td.ui-state-disabled span.ui-state-default,
    .ui-datepicker-calendar td.ui-state-disabled a.ui-state-default {
        background-color: var(--simpbook-tile-bg, #f5f5f5) !important;
        color: #000000 !important;
        opacity: 1.0 !important;
        border-color: #ddd !important;
        cursor: not-allowed !important;
    }

    #employee-selection-group,
    #time-selection-group {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: none;
        margin-bottom: 0;
    }

    #employee-selection-group[style*="display: block"],
    #time-selection-group[style*="display: block"] {
        opacity: 1;
        max-height: 2000px;
        margin-bottom: 20px;
    }

    #employee-selection-group.visible,
    #time-selection-group.visible {
        opacity: 1;
        max-height: 2000px;
        margin-bottom: 20px;
    }
}

/* Service Description Modal */
.service-description-modal {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.service-description-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.service-description-content {
    background-color: var(--simpbook-container-bg, #fff);
    color: var(--simpbook-text-color, #333);
    padding: 20px;
    border-radius: var(--simpbook-border-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    min-width: 250px;
    border: 2px solid var(--simpbook-button-color, #2271b1);
}

.service-description-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--simpbook-text-color, #333);
    border-bottom: 2px solid var(--simpbook-button-color, #2271b1);
    padding-bottom: 8px;
}

.service-description-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--simpbook-text-color, #333);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.service-description-content p br + br {
    display: block;
    content: "";
    margin-top: 8px;
}

/* Service Card Hover Effect für Modal */
.service-card[data-service-description]:not([data-service-description=""]) {
    position: relative;
    cursor: help;
}

/* ---- Notification Modal ---- */
.simpbook-notif-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simpbook-notif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.simpbook-notif-content {
    position: relative;
    background: var(--simpbook-container-bg, #fff) !important;
    color: var(--simpbook-text-color, #333) !important;
    border-radius: 16px;
    padding: 40px 30px 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1;
    animation: simpbookModalSlideIn 0.3s ease-out;
}

@keyframes simpbookModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.simpbook-notif-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--simpbook-text-color, #333) !important;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simpbook-notif-close:hover {
    opacity: 0.7;
}

.simpbook-notif-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.simpbook-notif-success .simpbook-notif-icon {
    background-color: #d4edda;
    color: #28a745;
}

.simpbook-notif-success .simpbook-notif-icon::before {
    content: '✓';
    font-weight: bold;
}

.simpbook-notif-error .simpbook-notif-icon {
    background-color: #f8d7da;
    color: #dc3545;
}

.simpbook-notif-error .simpbook-notif-icon::before {
    content: '✕';
    font-weight: bold;
}

.simpbook-notif-message {
    font-size: 18px;
    line-height: 1.6;
    color: var(--simpbook-text-color, #333) !important;
    margin-bottom: 30px;
    padding: 0 10px;
}

.simpbook-notif-ok {
    background: linear-gradient(90deg, var(--simpbook-button-color, #2271b1), var(--simpbook-button-hover, #135e96));
    color: #fff !important;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.simpbook-notif-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.simpbook-notif-ok:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .simpbook-notif-content {
        padding: 35px 20px 25px;
        width: 95%;
    }

    .simpbook-notif-icon {
        width: 60px;
        height: 60px;
        font-size: 35px;
        margin-bottom: 20px;
    }

    .simpbook-notif-message {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .simpbook-notif-ok {
        padding: 12px 35px;
        font-size: 15px;
    }
}

.service-card[data-service-description]:not([data-service-description=""]):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Phone Input with Country Code Selector */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.country-code-selector {
    position: relative;
    flex-shrink: 0;
}

.country-code-button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: var(--simpbook-border-radius) !important;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 120px;
    height: 100%;
}

.country-code-button:hover {
    border-color: var(--simpbook-button-color, #2271b1);
    background: #f8f9fa;
}

.country-code-button:focus {
    outline: none;
    border-color: var(--simpbook-button-color, #2271b1);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.selected-flag {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.selected-flag .flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.selected-code {
    font-weight: 500;
    color: var(--simpbook-text-color, #333) !important;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--simpbook-button-color, #2271b1) !important;
    margin-left: auto;
    transition: transform 0.2s;
}

.country-code-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    background: var(--simpbook-container-bg, #fff);
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.country-search {
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
}

.country-search:focus {
    background: #f8f9fa;
}

.country-list {
    list-style: none !important; 
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    max-height: 250px !important;
}

.country-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
}

.country-list li:hover {
    background: #f0f8ff;
}

.country-list li.selected {
    background: var(--simpbook-button-color, #2271b1);
    color: white;
}

.country-list li .flag {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.country-list li .flag .flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.country-list li .country-name {
    flex: 1;
    color: var(--simpbook-text-color, #333);
}

.country-list li.selected .country-name {
    color: white;
}

.country-list li .dial-code {
    color: #666;
    font-weight: 500;
}

.country-list li.selected .dial-code {
    color: rgba(255, 255, 255, 0.9);
}

.phone-number-input {
    flex: 1;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px;
}

.phone-number-input:focus {
    border-color: var(--simpbook-button-color, #2271b1) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* Tooltip: geschlossene Kacheln / Kalender-Tage */
#simpbook-closed-tooltip {
    display: none;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    color: #c94d4d;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #c94d4d;
    pointer-events: none;
    z-index: 99999;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---- Buchungsoptionen Kacheln ---- */
.booking-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.booking-option-tile {
    background: var(--simpbook-tile-bg, #ffffff);
    
    border-radius: var(--simpbook-tile-border-radius, 12px);
    padding: 16px 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
}

.booking-option-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--simpbook-button-color, #2271b1), var(--simpbook-button-hover, #135e96));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.booking-option-tile:hover {
    border-color: var(--simpbook-button-color, #2271b1);
    box-shadow: 0 6px 18px rgba(34, 113, 177, 0.14);
    transform: translateY(-3px);
}

.booking-option-tile:hover::before {
    transform: scaleX(1);
}

.booking-option-tile.selected {
    border-color: #29b122 !important;
    border: 2px solid #29b122 !important;
    background: var(--simpbook-tile-bg, #ffffff);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--simpbook-button-color, #2271b1) 18%, transparent) !important;
    color: #fff;
}

.booking-option-tile.selected::before {
    transform: scaleX(1);
}

.booking-option-tile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--simpbook-text-color, #333);
    margin-bottom: 6px;
    line-height: 1.3;
}

.booking-option-tile.selected .booking-option-tile-name {
    color: var(--simpbook-text-color, #333);
}

.booking-option-tile-dauer {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.booking-option-tile.selected .booking-option-tile-dauer {
    color: rgba(255, 255, 255, 0.85);
}

.booking-option-tile-preis {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
}

.booking-option-tile.selected .booking-option-tile-preis {
   color: var(--simpbook-text-color, #333);
}
