/* Desktop Top Area Styles - Namespaced for WordPress plugin */

/* Container styles */
.grothues-desktop-header #app {
    width: 1920px;
    height: 1463px;
    position: relative;
    background-color: white;
}

.grothues-desktop-header .desktop-top-area {
    width: 1920px;
    height: 1463px;
    position: relative;
    background-color: white;
    transition: transform 0.3s ease;
    transform-origin: top center;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    color: white;
}

.grothues-desktop-header .desktop-top-area * {
    box-sizing: border-box;
}

.grothues-desktop-header .desktop-top-area img {
    max-width: 100%;
    height: auto;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
}

/* Ensure background image scales properly */
.grothues-desktop-header .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Fallback for browsers that don't support WebP (especially Safari) */
    background-image: url(/wp-content/plugins/notboring-desktop-header/assets/background.jpg);
    /* WebP for modern browsers that support it */
    background-image: url(/wp-content/plugins/notboring-desktop-header/assets/background.webp);
    background-size: cover;
    background-position: top center;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
}

.grothues-desktop-header .logo {
    position: absolute;
    top: 31px;
    left: 27px;
    z-index: 2;
}

.grothues-desktop-header .aktion {
    position: absolute;
    top: 287px;
    left: 29px;
    z-index: 2;
}

.grothues-desktop-header .leih-link {
    position: absolute;
    top: 1353px;
    left: 29px;
    z-index: 2;
    text-decoration: none;
}

.grothues-desktop-header .leih-icon {
    display: block;
}

.grothues-desktop-header .wash-link {
    position: absolute;
    top: 1355px;
    left: 152px;
    z-index: 2;
    text-decoration: none;
}

.grothues-desktop-header .wash-card {
    display: block;
}

/* Divider styles */
.grothues-desktop-header .divider {
    position: absolute;
    z-index: 5; /* Higher than most other elements to ensure visibility */
    max-width: none; /* Override the general img max-width rule if needed */
    width: auto;
    height: auto;
}

.grothues-desktop-header .tanken-link {
    position: absolute;
    top: 1354px;
    left: 1181px;
    z-index: 2;
    text-decoration: none;
    display: flex;
}

.grothues-desktop-header .tanken-text {
    display: none; /* Hide the "tanken & mieten" label */
}

.grothues-desktop-header .avia-logo {
    display: block;
}

.grothues-desktop-header .europcar-link {
    position: absolute;
    top: 1353px;
    left: 1361px;
    z-index: 2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grothues-desktop-header .europcar-logo {
    display: block;
}

.grothues-desktop-header .europcar-text {
    display: none; /* Hide the "abhol-stationen" label */
}

.grothues-desktop-header .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.grothues-desktop-header .desktop-top-area h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.grothues-desktop-header .desktop-top-area p {
    color: #FFF;
    font-size: 1.6rem;
}

/* Top row icons */
.grothues-desktop-header .hermes-link {
    position: absolute;
    top: 1353px;
    left: 1540px;
    z-index: 2;
    text-decoration: none;
}

.grothues-desktop-header .amazon-hub-link {
    position: absolute;
    top: 1353px;
    left: 1720px;
    z-index: 2;
    text-decoration: none;
}

/* Middle row icons */
.grothues-desktop-header .phone-link {
    position: absolute;
    top: 33px;
    left: 1818px;
    z-index: 2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grothues-desktop-header .phone-text {
    position: absolute;
    top: 39px;
    left: 1532px;
    width: 269px;
    height: 70px;
    text-transform: lowercase;
    white-space: nowrap;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.grothues-desktop-header .mail-link {
    position: absolute;
    top: 133px;
    left: 1817px;
    z-index: 2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grothues-desktop-header .mail-text {
    position: absolute;
    top: 140px;
    left: 1625px;
    width: 173px;
    height: 70px;
    text-transform: lowercase;
    white-space: nowrap;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.grothues-desktop-header .clock-link {
    position: absolute;
    top: 228px;
    left: 1817px;
    z-index: 2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grothues-desktop-header .clock-text {
    position: absolute;
    top: 228px;
    left: 1532px;
    width: 269px;
    height: 70px;
    text-transform: lowercase;
    white-space: nowrap;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.grothues-desktop-header .card-link {
    position: absolute;
    top: 1353px;
    left: 274px;
    z-index: 2;
    text-decoration: none;
}

/* Bottom row icons */
.grothues-desktop-header .instagram-link {
    position: absolute;
    top: 1353px;
    left: 400px;
    z-index: 2;
    text-decoration: none;
}

.grothues-desktop-header .coffee-link {
    position: absolute;
    top: 1353px;
    left: 489px;
    z-index: 2;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.grothues-desktop-header .coffee-text {
    text-transform: lowercase;
    white-space: nowrap;
    text-align: left;
    color: white;
    font-size: 32px;
    z-index: 10;
    cursor: pointer;
    position: relative;
    top: 0;
    line-height: 1; /* Add line-height to ensure consistent height */
}

.grothues-desktop-header .nature-link {
    position: absolute;
    top: 1342px;
    left: 748px;
    z-index: 2;
    text-decoration: none;
}

.grothues-desktop-header .nature-text-link {
    position: absolute;
    top: 1375px;
    left: 817px;
    z-index: 2;
    text-decoration: none;
    display: flex; /* Add flex display to match coffee-link */
    align-items: center; /* Center items vertically */
}

.grothues-desktop-header .nature-text {
    text-transform: lowercase;
    white-space: nowrap;
    text-align: center;
    color: white;
    font-size: 32px;
    z-index: 10;
    cursor: pointer;
    position: relative;
    top: 0;
    line-height: 1; /* Add line-height to ensure consistent height */
}

/* Teaser Container Styles */
.grothues-desktop-header .teaser-container {
    position: absolute;
    width: 425px;
    height: 665px; /* Total height of all elements */
    z-index: 2; /* Match the z-index of other visible elements */
    overflow: visible;
}

/* Using specific classes for positioning */
.grothues-desktop-header .teaser-1 {
    top: 672px;
    left: 290px;
}

.grothues-desktop-header .teaser-2 {
    top: 672px;
    left: 749px;
}

.grothues-desktop-header .teaser-3 {
    top: 672px;
    left: 1205px;
}

/* Ensure teaser images scale properly */
.grothues-desktop-header .teaser-headline-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    -moz-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.grothues-desktop-header .teaser-text {
    position: absolute;
    top: 110px;
    left: 0;
    width: 425px;
    height: 246px;
    color: #fff;
    font-size: 27px;
    line-height: 1.25;
    border-radius: 5px;
}

.grothues-desktop-header .teaser-text p {
    font-size: 27px;
    line-height: 1.25;
    margin: 0 0 17px 0;
    color: #fff;
}

/* Termin text for teaser-3 */
.grothues-desktop-header .termin-text {
    position: absolute;
    top: 175px;
    left: 0;
    background-color: #888b8a;
    color: white;
    padding: 2px 1px 2px 1px;
    text-align: center;
    font-size: 24px;
    border-radius: 3px;
    z-index: 3;
    display: inline-block;
    line-height: 1.2; /* Ensure consistent line height */
}

/* Specific positioning for teaser-3 text only */
.grothues-desktop-header .teaser-3 .teaser-text {
    top: 210px;
}

/* Safari-specific adjustments for font rendering differences */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        /* Safari-specific styles */
        .teaser-3 .teaser-text {
            top: 215px; /* Move text down more on Safari */
        }
        
        .termin-text {
            line-height: 1.1; /* Tighter line height for Safari */
        }
    }
}

/* Alternative Safari detection method */
@supports (-webkit-hyphens:none) {
    .teaser-3 .teaser-text {
        top: 215px; /* Move text down more on Safari */
    }
    
    .termin-text {
        line-height: 1.1; /* Tighter line height for Safari */
    }
}

.grothues-desktop-header .desktop-top-area .teaser-image {
    position: absolute;
    top: 366px;
    left: 0;
    width: 356px !important;
    max-width: 356px !important;
    height: 217px;
    border-radius: 5px;
    -moz-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.grothues-desktop-header .teaser-cta-button {
    position: absolute;
    top: 605px;
    left: 261px;
    width: 150px;
    height: 32px;
    background-color: #888b8a;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 25px !important;
    text-transform: lowercase;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    padding: 8px;
}

.grothues-desktop-header .teaser-cta-button:hover {
    background-color: #7a7d7c;
}

/* Contact icons row for teaser-3 */
.grothues-desktop-header .contact-icons-row {
    position: absolute;
    top: 107px;
    left: 0;
    width: 425px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.grothues-desktop-header .contact-icon-link {
    text-decoration: none;
}

.grothues-desktop-header .contact-icon {
    display: block;
} 
