
/* ============================================
   TIERARZTPRAXIS HOIS
   CUSTOM HEADER / TYPO3 13
   OHNE BOOTSTRAP
   ============================================ */

:root {
    --hois-red: #b54344;
    --hois-red-dark: #913031;
    --hois-text: #424242;
    --hois-white: #ffffff;
    --hois-menu-bg: #a34547;
    --hois-header-height: 132px;
}

/* HEADER BASIS */

.hois-header,
.hois-header *,
.hois-mobile-menu,
.hois-mobile-menu * {
    box-sizing: border-box;
}

.hois-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--hois-header-height);
    background: #fff;
    z-index: 1000;
    transition:
        box-shadow .3s ease,
        min-height .3s ease;
}

.hois-header.is-scrolled {
    box-shadow: 0 5px 25px rgba(0,0,0,.12);
}

.hois-header-inner {
    max-width: 1320px;
    min-height: var(--hois-header-height);
    margin: 0 auto;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* LOGO */

.hois-brand {
    flex: 0 0 280px;
    min-width: 0;
    display: flex;
    align-items: center;
}

.hois-brand .frame,
.hois-brand figure,
.hois-brand picture {
    margin: 0;
    padding: 0;
}

.hois-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 112px;
    height: auto;
    object-fit: contain;
}

/* RECHTE HEADERSEITE */

.hois-header-content {
    flex: 1;
    min-width: 0;
    min-height: 112px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;

    padding: 5px 0 9px;
}

/* KONTAKTBEREICH */

.hois-contact {
    width: 100%;
    text-align: right;
    color: var(--hois-text);
    font-size: 14px;
    line-height: 1.5;
}

.hois-contact .frame,
.hois-contact p {
    margin: 0;
    padding: 0;
}

.hois-contact a {
    color: #537a66;
    text-decoration: none;
    transition: color .2s ease;
}

.hois-contact a:hover {
    color: var(--hois-red);
}

/* DESKTOP NAVIGATION */

.hois-desktop-nav {
    display: block;
    width: 100%;
}

.hois-desktop-nav .hois-nav-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.hois-desktop-nav .hois-nav-item {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hois-desktop-nav .hois-nav-item > a {
    display: block;
    padding: 10px 0;
    color: var(--hois-red);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    transition: color .25s ease;
}

/* ANIMIERTE UNTERSTREICHUNG */

.hois-desktop-nav .hois-nav-item > a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hois-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.hois-desktop-nav .hois-nav-item > a:hover::after,
.hois-desktop-nav .hois-nav-item.hois-active > a::after {
    transform: scaleX(1);
}

.hois-desktop-nav a:hover,
.hois-desktop-nav .hois-active > a {
    color: var(--hois-red-dark);
}

/* DESKTOP DROPDOWN */

.hois-desktop-nav .hois-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;

    background: #fff;
    padding: 12px 0;
    margin: 0;
    list-style: none;

    border-radius: 5px;
    box-shadow: 0 12px 35px rgba(0,0,0,.14);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s;
    z-index: 200;
}

/* UNTERMENÜ BEI HOVER ODER TASTATUR */

.hois-desktop-nav li:hover > .hois-submenu,
.hois-desktop-nav li:focus-within > .hois-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hois-desktop-nav .hois-submenu li {
    position: relative;
    list-style: none;
}

.hois-desktop-nav .hois-submenu a {
    display: block;
    padding: 10px 20px;
    color: #444;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
}

.hois-desktop-nav .hois-submenu a:hover {
    color: var(--hois-red);
    background: #faf4f4;
}

/* DRITTE MENÜEBENE */

.hois-desktop-nav
.hois-submenu .hois-submenu {
    top: 0;
    left: 100%;
}

/* BUTTON DESKTOP AUSBLENDEN */

.hois-menu-toggle {
    display: none;
}

/* ============================================
   MOBILES MENÜ – OVERLAY
   ============================================ */

.hois-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,15,20,.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.hois-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* SLIDE PANEL */

.hois-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(400px, 88vw);
    height: 100dvh;
    background: var(--hois-menu-bg);
    color: #fff;

    display: flex;
    flex-direction: column;

    z-index: 1999;
    overflow-y: auto;
    overflow-x: hidden;

    transform: translateX(105%);
    visibility: hidden;

    transition:
        transform .4s cubic-bezier(.22,1,.36,1),
        visibility .4s;
}

.hois-mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* MENÜ KOPF */

.hois-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 30px 28px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.hois-mobile-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}

/* CLOSE BUTTON */

.hois-menu-close {
    width: 42px;
    height: 42px;
    position: relative;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hois-menu-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    top: 19px;
    left: 11px;
    background: #fff;
}

.hois-menu-close span:first-child {
    transform: rotate(45deg);
}

.hois-menu-close span:last-child {
    transform: rotate(-45deg);
}

/* MOBILE NAVIGATION */

.hois-mobile-nav {
    flex: 1;
    padding: 28px 0;
}

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

.hois-mobile-nav li {
    position: relative;
    margin: 0;
    list-style: none;
}

.hois-mobile-nav .hois-nav-item {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hois-mobile-nav .hois-nav-item > a {
    display: block;
    padding: 17px 65px 17px 30px;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition:
        color .25s ease,
        padding-left .25s ease;
}

.hois-mobile-nav .hois-nav-item > a:hover,
.hois-mobile-nav .hois-active > a {
    color: #ef8d8e;
    padding-left: 37px;
}

/* UNTERMENÜ BUTTON */

.hois-sub-toggle {
    position: absolute;
    top: 7px;
    right: 20px;
    width: 42px;
    height: 42px;

    background: rgba(255,255,255,.06);
    border: 0;
    border-radius: 7px;
    color: white;
    font-size: 23px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hois-sub-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.hois-sub-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

/* MOBILE UNTERMENÜS */

.hois-mobile-nav .hois-submenu {
    display: none;
    position: static;
    background: rgba(0,0,0,.18);
    padding: 8px 0;
}

.hois-mobile-nav .hois-submenu.is-expanded {
    display: block;
}

.hois-mobile-nav .hois-submenu a {
    display: block;
    padding: 12px 55px 12px 45px;
    color: #ddd;
    font-size: 15px;
    text-decoration: none;
}

.hois-mobile-nav
.hois-submenu .hois-submenu a {
    padding-left: 60px;
    font-size: 14px;
}

.hois-mobile-nav .hois-submenu a:hover {
    color: #ef8d8e;
}

/* MOBILE KONTAKT UNTEN */

.hois-mobile-bottom {
    padding: 25px 28px 35px;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.12);
}

.hois-mobile-contact {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
    overflow-wrap: anywhere;
}

.hois-mobile-contact p,
.hois-mobile-contact .frame {
    margin: 0;
}

.hois-mobile-contact a {
    color: #ef8d8e;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1250px) {

    .hois-header-inner {
        gap: 25px;
    }

    .hois-brand {
        flex-basis: 280px;
    }

    .hois-desktop-nav .hois-nav-list {
        gap: 20px;
    }

    .hois-desktop-nav .hois-nav-item > a {
        font-size: 17px;
    }

    .hois-contact {
        font-size: 12px;
    }
}

@media (max-width: 1050px) {

    :root {
        --hois-header-height: 85px;
    }

    .hois-header,
    .hois-header-inner {
        min-height: 85px;
    }

    .hois-header-inner {
        padding: 10px 22px;
        gap: 15px;
    }

    .hois-brand {
        flex: 1;
        max-width: 230px;
    }

    .hois-brand img {
        max-height: 70px;
    }

    .hois-header-content {
        display: none;
    }

    .hois-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        position: relative;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;

        border: 1px solid rgba(181,67,68,.2);
        border-radius: 10px;
        background: #fff;
        cursor: pointer;
        z-index: 1001;
    }

    .hois-toggle-line {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--hois-red);
        border-radius: 2px;
        transition: transform .3s ease;
    }

    .hois-menu-toggle:hover {
        background: #faf2f2;
    }

    .hois-menu-toggle.is-active
    .hois-toggle-line:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .hois-menu-toggle.is-active
    .hois-toggle-line:nth-child(2) {
        transform: scaleX(0);
    }

    .hois-menu-toggle.is-active
    .hois-toggle-line:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {

    .hois-header-inner {
        padding: 8px 15px;
    }

    .hois-brand {
        max-width: 205px;
    }

    .hois-brand img {
        max-height: 65px;
    }

    .hois-mobile-menu {
        width: 90vw;
    }
}

/* SICHTBARKEIT & FOKUS */

.hois-menu-toggle:focus-visible,
.hois-menu-close:focus-visible,
.hois-sub-toggle:focus-visible,
.hois-mobile-menu a:focus-visible {
    outline: 2px solid #ef8d8e;
    outline-offset: 3px;
}

body.hois-menu-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .hois-header *,
    .hois-mobile-menu,
    .hois-menu-overlay {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Kontaktbereich mit SVG-Icons */
.hois-contact-modern {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    gap: 7px;
    padding-top: 15px;
    margin: 0;
}

.hois-contact-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
    color: #4b4b4b;
}

/* SVG ICONS */

.hois-contact-row svg {
    flex: 0 0 auto;
    color: #a34547;
    vertical-align: middle;
}

/* ÖFFNUNGSZEITEN */

.hois-hours {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.hois-hours-separator {
    display: inline-block;
    margin: 0 6px;
    color: #c9a0a0;
}

/* TELEFON & MAIL */

.hois-contact-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.hois-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #537a66;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

.hois-contact-link:hover {
    color: #a34547;
}

.hois-contact-link svg {
    color: #a34547;
}



/* FINAL: Bootstrap-Containerbreite – nur Header, nicht die gesamte Seite */
.hois-header-inner {width:100%;max-width:1320px;padding:0 12px;margin-inline:auto;}
@media(min-width:576px){.hois-header-inner{max-width:540px;}}
@media(min-width:768px){.hois-header-inner{max-width:720px;}}
@media(min-width:992px){.hois-header-inner{max-width:960px;}}
@media(min-width:1200px){.hois-header-inner{max-width:1140px;}}
@media(min-width:1400px){.hois-header-inner{max-width:1320px;}}
@media(min-width:1051px) and (max-width:1399px){
 .hois-brand{flex-basis:235px;}
 .hois-desktop-nav .hois-nav-list{gap:13px;}
 .hois-desktop-nav .hois-nav-item>a{font-size:16px;}
 .hois-hours,.hois-contact-row{font-size:12px;}
 .hois-contact-links{gap:12px;}
}
@media(min-width:1051px) and (max-width:1199px){
 .hois-brand{flex-basis:200px;}
 .hois-desktop-nav .hois-nav-list{gap:9px;}
 .hois-desktop-nav .hois-nav-item>a{font-size:14px;}
 .hois-hours,.hois-contact-row{font-size:11px;}
}
@media(max-width:1050px){
 .hois-header{--hois-header-height:75px;}
 .hois-header-inner{min-height:75px;max-width:100%;padding:0px 18px;}
 .hois-header-content{display:none!important;}
 .hois-brand img{max-height:100px;}
}
/* Mobiles Menü in Praxisrot */
.hois-mobile-menu{background:#a34547!important;}
.hois-mobile-top,.hois-mobile-bottom{background:#923a3d;}
.hois-mobile-nav .hois-submenu{background:rgba(75,15,20,.22);}
.hois-mobile-nav a,.hois-mobile-contact,.hois-mobile-contact p,.hois-mobile-contact a{color:#fff!important;}
.hois-menu-toggle{background:#a34547;border-color:#a34547;}
.hois-toggle-line{background:#fff;}



/* IMPRESSUM IM MOBILEN MENÜ */

.hois-mobile-legal {
    margin-top: 20px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255,255,255,.25);
}

.hois-mobile-legal a {
    font-size: 15px !important;
    color: #fff !important;
    opacity: .85;
}

.hois-mobile-legal a:hover {
    opacity: 1;
    color: #fff !important;
}


/* ==========================================
   HOIS HEADER – DESKTOP & LAPTOP OPTIMIERUNG
   ========================================== */

/* GROSSER DESKTOP – AB 1600 PX */
@media (min-width: 1600px) {

    .hois-header-inner {
        max-width: 1320px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        gap: 45px;
    }

    .hois-brand {
        flex: 0 0 320px;
    }

    .hois-brand img {
        max-height: 125px;
    }

    .hois-header-content {
        flex: 1;
        min-width: 0;
        align-items: flex-end;
    }

    .hois-desktop-nav .hois-nav-list {
        justify-content: flex-end;
        gap: 28px;
    }

    .hois-desktop-nav .hois-nav-item > a {
        font-size: 23px !important;
        font-weight: 400;
        white-space: nowrap;
    }

    .hois-hours {
        font-size: 13px;
    }

    .hois-contact-links {
        font-size: 14px;
    }
}

/* NORMALER DESKTOP / LAPTOP */
@media (min-width: 1051px) and (max-width: 1599px) {

    .hois-header-inner {
        max-width: 1140px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        gap: 25px;
    }

    .hois-brand {
        flex: 0 0 245px;
    }

    .hois-brand img {
        max-width: 100%;
        max-height: 100px;
    }

    .hois-header-content {
        flex: 1;
        min-width: 0;
        align-items: flex-end;
    }

    .hois-desktop-nav .hois-nav-list {
        justify-content: flex-end;
        gap: 17px;
    }

    .hois-desktop-nav .hois-nav-item > a {
        font-size: 17px !important;
        white-space: nowrap;
    }

    .hois-hours {
        font-size: 11px;
    }

    .hois-contact-links {
        font-size: 12px;
        gap: 14px;
    }

    .hois-contact-row svg {
        width: 15px;
        height: 15px;
    }
}

/* KLEINE LAPTOPS */
@media (min-width: 1051px) and (max-width: 1250px) {

    .hois-header-inner {
        max-width: 960px !important;
        gap: 15px;
    }

    .hois-brand {
        flex-basis: 200px;
    }

    .hois-brand img {
        max-height: 85px;
    }

    .hois-desktop-nav .hois-nav-list {
        gap: 11px;
    }

    .hois-desktop-nav .hois-nav-item > a {
        font-size: 15px !important;
    }

    .hois-hours {
        font-size: 10px;
    }

    .hois-contact-links {
        font-size: 11px;
    }
}

