/**
 * CSS für die Girl-Detail-Seite
 * - Optimiert für volle Responsivität
 * - Behebt horizontales Überflowproblem
 */

/* Basis-Box-Modell für alle Elemente */
* {
    box-sizing: border-box;
}

/* Container für die Girl-Detailseite */
.girl-detail {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Girl-Header */
.girl-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.girl-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.girl-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.girl-age {
    font-size: 24px;
    color: var(--silver-color);
    font-weight: 400;
    margin-left: 10px;
    font-style: italic;
}

.girl-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.girl-status .room {
    padding: 8px 20px;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Girl-Content Layout mit korrekter Responsivität */
.girl-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.girl-main {
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 35px 25px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.girl-sidebar {
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
}

/* Bildergalerie */
.girl-gallery {
    margin-bottom: 50px;
    width: 100%;
}

.main-image {
    height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    width: 100%;
}

.thumbnail {
    height: 100px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Beschreibung */
.girl-description, .girl-details, .girl-services, .girl-rates, .girl-schedule, .girl-contact {
    margin-bottom: 50px;
    width: 100%;
}

.girl-description h2, .girl-details h2, .girl-services h2, .girl-rates h2, .girl-schedule h2, .girl-contact h2 {
    font-size: 28px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--accent-color);
}

.girl-description h2::after, 
.girl-details h2::after, 
.girl-services h2::after, 
.girl-rates h2::after, 
.girl-schedule h2::after, 
.girl-contact h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.description-text {
    line-height: 1.8;
    color: var(--silver-color);
    font-size: 16px;
    width: 100%;
}

/* Details Tabelle mit Scrollbarkeit */
.details-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.details-table th, .details-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.details-table th {
    font-weight: 600;
    color: var(--silver-color);
    width: 25%;
    background-color: rgba(255, 255, 255, 0.03);
}

.details-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Scrollbare Tabellen-Container für mobile Geräte */
.details-table-container,
.services-table-container,
.rates-table-container,
.schedule-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Service Tabs */
.service-tabs {
    margin-top: 30px;
    width: 100%;
}

.tab-navigation {
    display: flex;
    overflow-x: auto;
    margin-bottom: 15px;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
    padding-bottom: 5px;
    width: 100%;
}

.tab-navigation::-webkit-scrollbar {
    height: 6px;
}

.tab-navigation::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 3px;
}

.tab-navigation::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.tab-button {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--silver-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid transparent;
}

.tab-button:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
}

.tab-button.active {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    font-weight: 600;
}

.tab-content {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Services Tabelle */
.services-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
}

.services-table th, .services-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.services-table th {
    font-weight: 600;
    color: var(--silver-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.services-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Rates Tabelle */
.rates-table-container {
    margin: 25px 0;
    width: 100%;
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rates-table th, .rates-table td {
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.rates-table th {
    font-weight: 600;
    color: var(--accent-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.rates-table td {
    font-size: 20px;
    font-weight: 600;
    color: var(--light-text);
}

.rates-notice {
    font-size: 15px;
    color: var(--silver-color);
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

/* Schedule Tabelle */
.schedule-table-container {
    margin: 25px 0;
    width: 100%;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-table th, .schedule-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.schedule-table th {
    font-weight: 600;
    color: var(--silver-color);
    background-color: rgba(255, 255, 255, 0.03);
}

.schedule-table tr.current-day {
    background-color: rgba(212, 175, 55, 0.1);
}

.schedule-table tr:hover:not(.current-day) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Verbesserte Icon-Stile und Abstände */
.availability {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 15px;
    border-radius: 20px;
    font-weight: 500;
    gap: 8px; /* Abstand zwischen Icon und Text */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
}

.availability i {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.availability.available {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.availability.available i {
    background-color: rgba(76, 175, 80, 0.3);
}

.availability.unavailable {
    background-color: rgba(199, 0, 57, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(199, 0, 57, 0.3);
}

.availability.unavailable i {
    background-color: rgba(199, 0, 57, 0.3);
}

/* Sidebar Styles */
.quick-info-box {
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px;
    margin-bottom: 35px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.quick-info-box h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--accent-color);
    text-align: center;
}

.quick-info-box h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.info-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.info-item i {
    width: 36px;
    height: 36px;
    color: var(--accent-color);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    font-size: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-item:hover i {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.info-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-info-box .availability {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    width: fit-content;
}

.quick-actions {
    margin-top: 25px;
    width: 100%;
}

.quick-actions .btn {
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-radius: 5px;
    width: 100%;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: transparent;
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-phone {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-phone:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(199, 0, 57, 0.3);
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Ähnliche Girls */
.similar-girls {
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
}

.similar-girls h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    color: var(--accent-color);
    text-align: center;
}

.similar-girls h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.similar-girls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.similar-girl-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    border-radius: 4px;
    height: 0;
    padding-bottom: 150%; /* Aspect ratio 2:3 */
}

.similar-girl-item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.similar-girl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.similar-girl-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 15px 10px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.similar-girl-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--accent-color);
}

.similar-girl-info p {
    font-size: 12px;
    margin-bottom: 0;
    color: var(--silver-color);
}

.similar-girl-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.similar-girl-item:hover img {
    transform: scale(1.1);
}

.similar-girl-item:hover .similar-girl-info {
    transform: translateY(0);
}

/* Kontaktformular */
.contact-form {
    width: 100%;
    max-width: 100%;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 100%;
}

.contact-alternatives {
    margin-top: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    min-width: 180px;
}

/* Verbesserte Responsive Design */
@media (max-width: 1200px) {
    .girl-content {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .girl-main {
        padding: 25px 20px;
    }
    
    .similar-girls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .girl-content {
        grid-template-columns: 1fr;
    }
    
    .girl-sidebar {
        position: static;
        order: -1;
        display: flex;
        flex-direction: column;
    }
    
    .quick-info-box, .similar-girls {
        margin-bottom: 30px;
    }
    
    .similar-girls-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-image {
        height: 400px;
    }

}

@media (max-width: 768px) {
	
	/* Für die Details-Tabelle */
    .details-table, 
    .details-table tbody, 
    .details-table tr {
        display: block;
        width: 100%;
    }
    
    .details-table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 15px;
    }
    
    .details-table tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .details-table th, 
    .details-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .details-table th {
        border-bottom: none;
        background-color: rgba(212, 175, 55, 0.05);
        color: var(--accent-color);
        font-size: 15px;
        padding-top: 12px;
        padding-bottom: 5px;
    }
    
    .details-table td {
        padding-top: 8px;
        padding-bottom: 12px;
        padding-left: 15px;
        font-size: 16px;
    }
    
    /* Entfernt horizontales Scrollen */
    .details-table-container {
        overflow-x: visible;
    }
    
    .details-table {
        min-width: unset;
    }
	
	.services-table, 
    .services-table tbody, 
    .services-table tr {
        display: block;
        width: 100%;
    }
    
    .services-table thead {
        display: none; /* Kopfzeile ausblenden */
    }
    
    .services-table tr {
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding-bottom: 15px;
        position: relative;
    }
    
    .services-table tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .services-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 15px;
        border-bottom: none;
    }
    
    .services-table td:first-child {
        font-weight: 600;
        font-size: 16px;
        color: var(--accent-color);
        padding-top: 12px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .services-table td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 600;
        width: 90px;
        color: var(--silver-color);
    }
    
    .services-table-container {
        overflow-x: visible;
    }
    
    .services-table {
        min-width: unset;
    }
    .girl-header h1 {
        font-size: 32px;
    }
    
    .girl-age {
        font-size: 18px;
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .thumbnail {
        height: 70px;
    }
    
    .girl-sidebar {
        flex-direction: column;
    }
    
    .similar-girls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-table, .services-table, .rates-table, .schedule-table {
        min-width: 500px; /* Für horizontales Scrollen auf kleinen Bildschirmen */
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .girl-description h2, 
    .girl-details h2, 
    .girl-services h2, 
    .girl-rates h2, 
    .girl-schedule h2, 
    .girl-contact h2 {
        font-size: 24px;
    }
	.schedule-table {
        min-width: 500px; /* Behält horizontales Scrollen bei */
    }
    
    .schedule-table-container {
        overflow-x: auto;
    }
	.rates-table {
        min-width: 400px; /* Behält horizontales Scrollen bei */
    }
    
    .rates-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .girl-main {
        padding: 20px 15px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .girl-description h2, 
    .girl-details h2, 
    .girl-services h2, 
    .girl-rates h2, 
    .girl-schedule h2, 
    .girl-contact h2 {
        font-size: 22px;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 0 calc(50% - 8px);
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
    
    .details-table th, .details-table td,
    .services-table th, .services-table td,
    .schedule-table th, .schedule-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .girl-status {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-info-box, .similar-girls {
        padding: 20px 15px;
    }
    
    .similar-girls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .girl-header h1 {
        font-size: 26px;
    }
    
    .similar-girls-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tab-button {
        flex: 1 0 100%;
        margin-bottom: 8px;
    }
}

/* Lightbox Anpassungen für Responsivität */
.lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    overflow-x: auto;
    white-space: nowrap;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 4px;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb:hover {
    opacity: 0.9;
}

.lightbox-thumb.active {
    border-color: var(--accent-color);
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: calc(90% - 90px);
    margin: auto;
}

@media (max-width: 768px) {
    .lightbox-thumb {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-thumbnails {
        padding: 10px;
    }
    
    .lightbox-content {
        max-height: calc(90% - 60px);
    }
    
    .lightbox-prev, .lightbox-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .lightbox-thumb {
        width: 30px;
        height: 30px;
    }
    
    .lightbox-content {
        max-height: calc(90% - 50px);
    }
}