/*
Header Privat
*/

a, li, button {
    outline : none !important;
}

:root {
    --text: #e8f1f2;
    --overlay-opacity: 0;
}
/*
#wrapwrap > header {
    background: transparent !important;
}
#wrapwrap > header.o_header_affixed {
    background: transparent !important;
}
    */
#wrapwrap .o_footer,
#wrapwrap footer {
    background-color: #0E3233 !important;
    color: #e8f1f2;
}

#wrapwrap .o_footer a,
#wrapwrap footer a {
    color: #e8f1f2;
}

#wrapwrap .o_footer a:hover,
#wrapwrap footer a:hover {
    color: #fff;
}

#wrapwrap.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

#primary-nav::before {
    content: "";
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,.7);
    z-index: 0;
    opacity: var(--overlay-opacity);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0.7px);
    pointer-events: none;
}

#primary-nav > li:not(.has-mega):not(.hover) {
    z-index: -1;
}

li.has-mega:not(.hover) button.nav-link {
    z-index: -1;
}

li.has-mega.hover button.nav-link {
    z-index: 1;
}

li.has-mega.open button.nav-link {
    z-index: 1;
}

.top-bar {
    background-color: #0E3233;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.top-bar a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
}
.top-bar a:hover {
    color: #fff;
}

.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    backdrop-filter: none;
    border-bottom: none;
}

.homepage .header-nav {
    background: transparent;
}
.homepage .citynet-logo {
    content: url(/hall_website/static/src/img/citynet-logo-light.png);
}

.citynet-logo {
    content: url(/hall_website/static/src/img/citynet-logo-dark.png);
}

.homepage .citynet-logo.dark {
    content: url(/hall_website/static/src/img/citynet-logo-dark.png);
}

.citynet-logo.dark {
    content: url(/hall_website/static/src/img/citynet-logo-dark.png);
}

.s_hall_tariff_card_dl, .s_hall_tariff_card_ul {
    background: #75D3C9;
}

.homepage #primary-nav a,
.homepage #primary-nav button {
    color: #FFFFFF;
}
.homepage #primary-nav .nav-link .nav-link-text::after {
    background-color: #FFFFFF;
}

.s_hall_promo_banner_badge {
    background-color: #75D3C9;
}

.s_hall_contact_cta_inner {
    background-color: #75D3C9;
}

.topnav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-inline: auto;
}

#primary-nav {
    gap: 14px;
    list-style: none;
    z-index: 1;
    position: absolute;
}

#primary-nav > li {
    position: relative;
}

#primary-nav a, #primary-nav button {
    appearance: none;
    border: 0;
    background: none;
    color: #0E3233;
    font: inherit;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13pt;
    font-weight: 350;
    position: relative;
}

.brand {
    position: absolute;
    left: 50px;
}

#primary-nav a:hover, #primary-nav button:hover,
#primary-nav a:focus-visible, #primary-nav button:focus-visible {
    outline: none;
}

#primary-nav .nav-link .nav-link-text {
    position: relative;
    display: inline-block;
}

#primary-nav .nav-link .nav-link-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0E3233;
    transition: width 0.3s ease-out;
}
#primary-nav a.nav-link:hover .nav-link-text::after,
#primary-nav button.nav-link:hover .nav-link-text::after,
#primary-nav > li.open button.nav-link .nav-link-text::after,
#primary-nav > li.hover button.nav-link .nav-link-text::after {
    width: 100%;
}

.external-link-icon {
    display: inline-flex;
    vertical-align: text-top;
    margin-left: 5px;
}

.external-link-icon::after {
    content: '↗';
    font-size: 15px;
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.caret {
    margin-left: 6px;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .15s ease-out;
    margin-bottom: 3px;
}

#primary-nav > li.hover .caret,
#primary-nav > li.open .caret {
    transform: rotate(225deg) translateY(-1px);
}

.mega {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: none;
    opacity: 0;
    pointer-events: none;
    width: min(960px, calc(100vw - 24px));
    border-radius: 40px;
    padding: 8px;
    top: 100%;
    margin-top: 4px;
    z-index: 1001;
    background: #606060 !important;
}

#primary-nav > li.has-mega::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 1;
}

#primary-nav > li.open .mega,
#primary-nav > li.hover .mega {
    display: block;
    opacity: 1;
    pointer-events: auto;
    z-index: 1001;
    animation: megaFadeIn .16s ease-out;
}

#primary-nav > li:focus-within .mega {
    display: block;
    opacity: 1;
    pointer-events: auto;
    animation: megaFadeIn .16s ease-out;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

.mega-grid {
    display: flex;
    gap: 0.4rem;
}
.mega-grid > .mega-area {
    min-height: 300px;
    flex: 1 1 auto;
    min-width: 0;
}

.mega-grid > .mega-area[data-snippet="mega-area-left"] {
    flex: 1 1 45%;
}

.mega-grid > .mega-area[data-snippet="mega-area-right"] {
    flex: 0 1 55%;
    
}

section.mega-area.mega-area-right-default,
section.mega-area.mega-area-right-default.card,
section.mega-area[data-snippet="mega-area-right"],
section.mega-area[data-snippet="mega-area-right"].card,
section.mega-area[data-snippet="mega-area-right"] .card {
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.mega-area-right-default .s_hall_mega_promo_card,
.mega-area-right-default [data-snippet="s_hall_mega_promo_card"],
.mega-area-right-default .oe_structure,
.mega-area-right-default > * {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}


.card {
    background: #FFFFFF;
    border: 1px solid #48463b;
    border-radius: 40px;
    padding: 10px;

    background-clip: padding-box;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.menu-list li + li {
    margin-top: 6px;
}

.menu-list{list-style:none;margin:0;padding:6px}
.menu-list li + li{margin-top:6px}

.menu-item{
    display:flex; 
    align-items:center; 
    gap:20px;
    padding:12px;
    border-radius:32px !important;
    transition:.15s background;

    span {
        color: black;
        font-weight: 400;
    }
}

.menu-item:hover, .menu-item:focus-visible{
    background:rgba(180, 180, 180, 0.419) !important;
}

.icon{
    height:60px;
    border-radius:24px; 
    flex:0 0 94px;
    display:flex; 
    align-items:center; 
    justify-content:center;
}

.icon img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border-radius:24px;
}


.item-text {
    font-weight: 600;
}

.arrow {
    margin-left: auto;
    margin-right: 12px;
    width: 8px;
    height: 8px;
    opacity: .6;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.hall-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #071511;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    border: 0;
    box-shadow: 0 8px 18px rgba(16,185,129,.35);
    text-decoration: none;
    cursor: pointer;
}

.util {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--muted);
    font-size: .95rem;
}

.util a {
    padding: 8px 6px;
    border-radius: 8px;
}

.util a:hover {
    background: rgba(255,255,255,.06);
}

/* Hamburger button - hidden by default */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;

    &.dark {
        background-color: #000000;
    }
}

/* Transform hamburger to X when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);      /* korrigiert um den top-Versatz */
    height: calc(100dvh - 40px);     /* dynamische Viewport-Einheit, überschreibt obige Zeile in modernen Browsern */
    background-color: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;  /* sauberes Momentum-Scrolling auf iOS */
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding-bottom: 60px; /* NEU – Scroll-Puffer am Ende */
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Adjust top position when user is logged into Odoo (admin navbar is 46px) */
body.o_connected_user .mobile-menu-overlay {
    top: 86px; /* 40px top-bar + 46px admin navbar */
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-top-bar-container {
    padding: 0;
    position: relative;
    z-index: 2002;
}

.mobile-top-bar-container .mobile-top-bar {
    padding: 10px 20px;
    font-size: 14px;
}

.mobile-top-bar-container .mobile-top-bar a {
    color: #FFFFFF;
    text-decoration: none;
}

.mobile-top-bar-container .mobile-top-bar #top-bar-right {
    display: none;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-brand {
    flex: 0 0 auto;
}

.mobile-brand .citynet-logo {
    max-height: 40px;
    width: auto;
}

.citynet-logo.mobile-logo {
    max-width: 175px;
    max-height: 55px;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    right: 30px;
}

.phone-link {
    margin-left: 0;
    display: none;
}

.mobile-phone-icon {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    content: url(/hall_website/static/src/img/phone-icon-dark.png);
}

/* Startseite (dunkler Hero-Hintergrund) → helles Icon, solange Menü zu ist */
.homepage .mobile-phone-icon {
    content: url(/hall_website/static/src/img/phone-icon-light.png);
}

/* Startseite, aber Menü offen (weißer Overlay-Hintergrund) → wieder dunkles Icon */
.homepage.mobile-menu-open .mobile-phone-icon {
    content: url(/hall_website/static/src/img/phone-icon-dark.png);
}

/* cyan dot on phone icon */
a[class="phone-link"] {
    position: relative;
}

a[class="phone-link"]::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #75D3C9;
    border-radius: 50%;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    padding: 0;
}

/* Mobile navigation */
.mobile-nav-container {
    padding-top: 125px;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin: 5px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 20px;
    font-weight: 300;
    text-align: left;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;

    .external-link-icon {
        font-size: 1.3em;

    }
}

.mobile-nav-divider {
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: #E0E0E0;
    height: 0.4px;
    margin-left: 25px;
    margin-right: 25px;
}

.mobile-arrow {
    margin-left: 10px;
    font-size: 20pt;
    font-weight: 100;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Mobile top bar right container */
#mobile-top-bar-right-container {
    margin-top: 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

#mobile-top-bar-right-container .mobile-top-bar-right {
    display: flex !important;
    flex-direction: column;
    gap: 0;
}

#mobile-top-bar-right-container .mobile-top-bar-right a {
    display: block;
    padding: 5px 20px;
    color: #000;
    font-size: 15px;
    font-weight: 350;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease;
    margin: 0;
}

/* Mobile hotline card container */
#mobile-hotline-card-container {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
}

#mobile-hotline-card-container .mobile-hotline-card {
    display: inline-block;
    position: relative;
    right: auto;
    left: auto;
}
/* Mobile mega menu overlay */
.mobile-mega-overlay {
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 65px;
    padding-bottom: 120px;
    height: 100%;

    &.active {
        display: block;
    }
}

.mobile-mega-overlay.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.mobile-mega-header {
    display: flex;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-mega-back {
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 15px;
    font-weight: 300;
    cursor: pointer;
    padding: 10px;
    transition: background 0.2s ease;

    display: inline-flex;
    vertical-align: text-top;
    margin-top: 20px;
}

.mobile-mega-back::before {
    content: '\2039';
    font-size: 15px;
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.mobile-mega-content {
    padding: 10px;
}

/* Mobile mega menu content styling */
.mobile-mega-content .mega-grid {
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: 0;
}

.mobile-mega-content .menu-list {
    padding: 0;
}

.mobile-mega-content .menu-item {
    padding: 1px;
    margin-bottom: 10px;
    background-color: #F1F1F1 !important;
}

.s_hall_hotline_card {
    background: #fff;
    border-radius: 16px;
    padding: 8px 20px;
    border: 1px solid #75D3C9;
    position: absolute;
    right: 50px;

    .top-line {
        font-weight: 800;
    }

    .bottom-line {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 14px;
        font-weight: 400;
    }

    .inline-dot {
        display:inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #75D3C9;
        vertical-align: middle;
    }
}

.s_hall_hotline_card .inline-dot.hotline-closed {
    background: #E53935;
}

.s_hall_mega_promo_card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background-image: url(/hall_website/static/src/img/website-background.jpg);
    background-size: cover;
    background-position: center;
}

.s_hall_mega_promo_card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.s_hall_mega_promo_card .mega-promo-card-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 32px 36px;
    text-decoration: none;
    color: inherit;
}

.s_hall_mega_promo_card .mega-promo-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
} 

.s_hall_mega_promo_card .mega-promo-card-headline {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    color: #75D3C9;
    line-height: 1.15;
}

.s_hall_mega_promo_card .mega-promo-card-cta {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #75D3C9;
    color: #071511;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.s_hall_mega_promo_card .mega-promo-card-cta:hover {
    opacity: 0.85;
}

.s_hall_mega_promo_card .mega-promo-card-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.s_hall_mega_promo_card .mega-promo-card-benefits li {
    position: relative;
    padding-left: 24px;
    color: #fff;
    font-size: 0.95rem;
}

.s_hall_mega_promo_card .mega-promo-card-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #75D3C9;
    font-weight: bold;
}

@media (max-width: 768px) {
    .product-overview-item .product-overview-icon {
        height: 80px;
        width: 80px;
        flex-shrink: 0;
    }
}

@media (max-width: 860px) {
    .mega-grid {
        grid-template-columns: 1fr;
    }
    .promo {
        min-height: 220px;
    }
    #primary-nav {
        gap: 6px;
    }
}

@media (max-width: 1000px) {
    /* Hide desktop navigation */
    #primary-nav {
        display: none;
    }

    .brand {
        left: 30px;
    }

    .card {
        border: 1px solid #fff;
    }

    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust topnav for mobile */
    .topnav {
        justify-content: space-between;
        padding-left: 20px;
        padding-right: 20px;
        &.dark {
            background-color: white;
        }
    }

    /* Hide desktop mega menus */
    .mega {
        display: none !important;
    }

    .phone-link {
        display: block;
    }

    .top-bar {
        padding: 10px 20px;
        font-weight: 300;
        font-size: 13px;
    }

    #top-bar-right {
        display: none;
    }

    .s_hall_hotline_card {
        display: none;
    }
}

@media (max-width: 640px) {
    .citynet-logo.mobile-logo{
        max-width: 120px;
    }
    .util {
        width: 100%;
        justify-content: flex-end;
    }
    .mega {
        left: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
    }
}
