/* Anzeige Detail Page - Exact Figma Design Match */

.anzeige-main {
    background: transparent;
    min-height: 100vh;
    padding-top: 48px; /* 160px total from top (112px body + 48px) - matches index.html visual alignment */
}

.anzeige-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-nav {
    /* margin-bottom: 20px; */
    position: relative;
    top: -20px;
}

.back-nav a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.back-nav a:hover {
    text-decoration: underline;
}

/* Main Page Layout: Gallery + Info Side by Side */
.page-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Gallery Section - Following Figma nodeId 966:2849 */
.gallery-section {
    flex: 1;
    max-width: 640px;
}

/* Gallery Container - Following Figma nodeId 966:2850 */
.gallery-container {
    display: flex;
    gap: 8px;
    width: 600px;
}

/* Gallery Columns - Following Figma nodeIds 966:2851, 966:2855 */
.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 296px;
}

/* Image with Fallback Components - Following Figma nodeIds 966:2852+ */
.image-with-fallback {
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.image-with-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 4px;
    max-width: none;
}

/* Dynamic aspect ratios based on Figma design pattern */
/* Original Figma pattern (images 0-6) */
.dynamic-image-0, .image-0 {
    aspect-ratio: 398.672 / 498.337;  /* tall */
}

.dynamic-image-1, .image-1 {
    aspect-ratio: 398.672 / 224.431;  /* short (video) */
}

.dynamic-image-2, .image-2 {
    aspect-ratio: 398.672 / 598.002;  /* very tall */
}

.dynamic-image-3, .image-3 {
    aspect-ratio: 398.672 / 598.002;  /* very tall */
}

.dynamic-image-4, .image-4 {
    aspect-ratio: 398.672 / 720.558;  /* extremely tall */
}

.dynamic-image-5, .image-5 {
    aspect-ratio: 398.672 / 498.337;  /* tall */
}

.dynamic-image-6, .image-6 {
    aspect-ratio: 398.672 / 598.002;  /* very tall */
}

/* Extended pattern for images beyond the original 7 (cycling the pattern) */
.dynamic-image-7 {
    aspect-ratio: 398.672 / 498.337;  /* cycle: tall */
}

.dynamic-image-8 {
    aspect-ratio: 398.672 / 224.431;  /* cycle: short */
}

.dynamic-image-9 {
    aspect-ratio: 398.672 / 598.002;  /* cycle: very tall */
}

.dynamic-image-10 {
    aspect-ratio: 398.672 / 598.002;  /* cycle: very tall */
}

.dynamic-image-11 {
    aspect-ratio: 398.672 / 720.558;  /* cycle: extremely tall */
}

.dynamic-image-12 {
    aspect-ratio: 398.672 / 498.337;  /* cycle: tall */
}

.dynamic-image-13 {
    aspect-ratio: 398.672 / 598.002;  /* cycle: very tall */
}

.dynamic-image-14 {
    aspect-ratio: 398.672 / 498.337;  /* cycle: tall */
}

.dynamic-image-15 {
    aspect-ratio: 398.672 / 224.431;  /* cycle: short */
}

/* Fallback for very large galleries - simplified pattern */
.dynamic-image-16, .dynamic-image-17, .dynamic-image-18, .dynamic-image-19, .dynamic-image-20 {
    aspect-ratio: 398.672 / 498.337;  /* standardize to tall for very large galleries */
}

/* Play Overlay - Following Figma nodeId 994:3068 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45.136px;
    height: 45.136px;
    pointer-events: none;
}

.play-overlay svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Info Section - Right Side - Figma nodeId: 966:2862 */
.info-section {
    flex: 1;
    max-width: 500px;
    padding-left: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
}

/* Info Container - Figma nodeId: 966:2863 */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

/* Name Section - Figma nodeId: 966:2864-966:2866 */
.name-section {
    display: flex;
    gap: 12px;
    height: 24px;
    align-items: center;
    width: 100%;
}

.name-section h1 {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    line-height: 24px;
    font-size: 28px;
    color: #555;
    text-wrap: nowrap;
    white-space: pre;
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* Location with Icon - Figma nodeId: 966:2867-966:2872 */
.location-with-icon {
    display: flex;
    gap: 8px;
    height: 24px;
    align-items: center;
    width: 100%;
}

.location-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

.location-text {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    font-size: 16px;
    color: #666;
    text-wrap: nowrap;
    white-space: pre;
    margin: 0;
    flex-shrink: 0;
}

/* Contact Section - Figma nodeId: 1155:243-1155:248 */
.contact-section {
    display: flex;
    gap: 8px;
    height: 24px;
    align-items: center;
    width: 100%;
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

.contact-text p {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    font-size: 16px;
    color: #666;
    text-wrap: nowrap;
    white-space: pre;
    margin: 0;
    flex-shrink: 0;
}

/* Business Hours Section - Figma Component 1 */
.business-hours-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    overflow: visible;
    padding: 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
}

.hours-container {
    display: flex;
    gap: 8px;
    height: 24px;
    align-items: center;
    width: 100%;
}

.clock-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #666;
}

.hours-text {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    height: 24px;
}

.day-label {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    font-size: 16px;
    color: #666;
    margin: 0;
    flex-shrink: 0;
    width: 88px;
}

.time-range {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    font-size: 16px;
    color: #666;
    text-wrap: nowrap;
    white-space: pre;
    text-align: right;
    margin: 0;
    flex-shrink: 0;
}

.chevron-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #666;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hours-toggle {
    cursor: pointer;
}

.hours-toggle:hover {
    opacity: 0.8;
}

.chevron-icon.open {
    transform: rotate(180deg);
}

/* Hours Dropdown */
.hours-dropdown {
    width: 338px;
    max-height: 401.55px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #8A38F5;
    background: white;
    padding: 20px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hours-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    min-height: 24px;
}

.hours-dropdown-item:first-child {
    padding-top: 0;
}

.clock-icon-small {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #525252;
}

.hours-dropdown-item .day-name {
    width: 88px;
    color: #525252;
    font-size: 16px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    line-height: 24px;
    flex-shrink: 0;
}

.hours-dropdown-item .day-time {
    text-align: right;
    color: #525252;
    font-size: 16px;
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 400;
    line-height: 24px;
    flex: 1;
}

/* Description Text - Figma nodeId: 966:2873 */
.description-text {
    width: 100%;
}

.description-text p {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    font-size: 16px;
    color: #2f2e2e;
    margin: 0;
    width: fit-content;
    min-width: 100%;
}

/* Model Characteristics Grid - Figma nodeId: 966:2874-985:2993 */
.characteristics-grid {
    display: flex;
    gap: 32px;
    height: 48px;
    align-items: flex-start;
    width: 100%;
}

.char-item {
    height: 48px;
    position: relative;
    flex-shrink: 0;
    min-width: fit-content;
}

/* Specific widths to prevent bleeding */
.age-item {
    width: 51px;
}

.oberweite-item {
    width: 69px;
}

.typ-item {
    width: 68px;
}

.char-value {
    position: absolute;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    left: 0;
    font-size: 16px;
    color: #030213;
    text-wrap: nowrap;
    top: 0;
    white-space: pre;
    width: 100%;
}

.char-label {
    position: absolute;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    line-height: 24px;
    left: 0;
    font-size: 16px;
    color: #999;
    text-wrap: nowrap;
    top: 24px;
    white-space: pre;
    width: 100%;
}

/* Action Buttons - Figma nodeId: 966:2890-966:2899 */
.action-buttons {
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    height: 44px;
    align-items: flex-start;
    padding-bottom: 0;
    padding-top: 8px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.btn-message, .btn-bookmark {
    background: #030213;
    border-radius: 8px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    color: white;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    line-height: 20px;
    font-size: 14px;
    text-wrap: nowrap;
    white-space: pre;
}

.btn-bookmark {
    height: 36px;
    gap: 8px;
    padding: 10px 12px;
}

.btn-share {
    background: white;
    border: 0.714px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.714px;
    color: #666;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* Figma Card Design - Following exact Figma specs */
.figma-card {
    background: #f8f1f1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    position: relative;
    border-radius: 24px;
    width: 100%;
    margin-bottom: 24px;
    border: none;
}

/* Über mich Card - Following Figma nodeId 966:2906 */
.uber-mich-card h3 {
    font-family: 'SF Pro', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 860;
    line-height: normal;
    font-size: 24px;
    color: #2f2e2e;
    margin: 0;
    text-wrap: nowrap;
    white-space: pre;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.info-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    line-height: 24px;
    color: #2f2e2e;
    font-size: 16px;
    width: 100%;
}

.info-label {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    width: 96px;
    flex-shrink: 0;
    margin: 0;
}

.info-value {
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    flex-shrink: 0;
    text-wrap: nowrap;
    white-space: pre;
    margin: 0;
}

.mehr-anzeigen {
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-style: solid;
    font-family: 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    line-height: 24px;
    color: #2f2e2e;
    font-size: 16px;
    text-wrap: nowrap;
    white-space: pre;
    margin: 0;
    cursor: pointer;
}

/* Service Card - Following Figma nodeId 966:2936 */
.service-card h3 {
    font-family: 'SF Pro', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 860;
    line-height: normal;
    font-size: 24px;
    color: #2f2e2e;
    margin: 0;
}

.service-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.service-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    line-height: 26px;
    color: #2f2e2e;
    font-size: 16px;
    width: 100%;
}

.service-label {
    font-family: 'SF Pro', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    width: 104px;
    flex-shrink: 0;
    margin: 0;
}

.service-value {
    font-family: 'SF Pro', 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    flex: 1;
    flex-grow: 1;
    min-height: 1px;
    min-width: 1px;
    margin: 0;
}

/* No Model Info */
.no-model-info {
    text-align: center;
    padding: 40px 20px;
    background: #ffebee;
    border-radius: 24px;
    color: #c62828;
}

.no-model-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .gallery-container {
        width: 100%;
        max-width: 600px;
    }
    
    .info-section {
        max-width: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .gallery-column {
        min-width: auto;
    }
    
    .basic-info h1 {
        font-size: 28px;
    }
    
    .figma-card {
        padding: 24px;
    }
    
    .info-label,
    .service-label {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .anzeige-container {
        padding: 10px;
    }
    
    .figma-card {
        padding: 20px;
    }
    
    .basic-info h1 {
        font-size: 24px;
    }
    
    .basic-info .anzeigentext {
        font-size: 16px;
    }
    
    .info-label,
    .service-label {
        width: 70px;
        font-size: 14px;
    }
    
    .info-value,
    .service-value {
        font-size: 14px;
    }
}

/* Fixed Contact Button - Bottom-aligned with 100px margin, right-aligned flush with content */
.fixed-contact-button {
    position: fixed;
    right: calc((100vw - 1200px) / 2 + 7px); /* Align with content: centered 1200px container + content padding */
    bottom: 100px; /* 100px margin from bottom */
    height: 56px;
    padding: 16px 24px;
    background: #E51E4F;
    box-shadow: 4px 6px 12px rgba(63.84, 56.11, 58.68, 0.25);
    border-radius: 100px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    z-index: 100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 8px 16px rgba(63.84, 56.11, 58.68, 0.35);
}

.fixed-contact-button .contact-number {
    text-align: center;
    color: white;
    font-size: 16px;
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 510;
    white-space: nowrap;
}

.fixed-contact-button .contact-icon {
    width: 20px;
    height: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-contact-button .contact-icon svg {
    width: 15px;
    height: 15px;
}

.fixed-contact-button .contact-icon path {
    fill: white;
}

/* Responsive adjustments for contact button */
@media (max-width: 1400px) {
    .fixed-contact-button {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .fixed-contact-button {
        right: 20px;
        bottom: 80px;
        padding: 12px 20px;
        height: 48px;
    }
    
    .fixed-contact-button .contact-number {
        font-size: 14px;
    }
    
    .fixed-contact-button .contact-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .fixed-contact-button {
        right: 10px;
        bottom: 60px;
        padding: 10px 16px;
        height: 44px;
    }
}