@font-face {
    font-family: boska;
    src: url(../fonts/Boska-Bold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal
}

@font-face {
    font-family: switzer;
    src: url(../fonts/Switzer-Extralight.woff2) format("woff2");
    font-weight: 300;
    font-style: normal
}

@font-face {
    font-family: switzer;
    src: url(../fonts/Switzer-Light.woff2) format("woff2");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: switzer;
    src: url(../fonts/Switzer-Regular.woff2) format("woff2");
    font-weight: 500;
    font-style: normal
}

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');

html {
    scroll-behavior: smooth
}

body {
    font-family: switzer, switzer, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333
}

h1,
h2,
h3,
h4 {
    font-family: "Bodoni Moda", serif;
    line-height: 1.2;
    margin-bottom: 1rem
}

h1,
h2 {
    font-weight: 500;
}

h3,
h4 {
    font-weight: 400;
}

h1 {
    padding: 0;
    margin: 0;
    font-size: 80px
}

h2 {
    padding: 0;
    margin: 0;
    font-size: 60px
}

h3 {
    padding: 0;
    margin: 0;
    font-size: 40px
}

h4 {
    padding: 0;
    margin: 0;
    font-size: 30px
}

.h-klein {
    font-family: switzer, switzer, sans-serif;
    font-size: 24px;
    color: #333
}

p {
    font-family: switzer, switzer, sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 1rem
}

.hamburger-btn {
    right: 25px;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    z-index: 1201;
    cursor: pointer;
    padding: 0
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 5px;
    margin: 2.5px 0;
    background: #333;
    border-radius: 2px;
    transition: .3s
}

.hamburger-btn #small-bar {
    width: 13px !important;
    margin-left: 7px !important
}

.hamburger-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px #00000014;
    z-index: 1200;
    transform: translate(100%);
    transition: transform .5s cubic-bezier(.4, 1, .6, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px
}

.hamburger-nav-overlay.open {
    transform: translate(0)
}

.hamburger-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px
}

.hamburger-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 8px;
    transition: background-color .3s
}

.hamburger-nav-link:hover {
    background: #f7f7f7
}

.hamburger-nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #00000026;
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.hamburger-nav-bg.open {
    opacity: 1;
    pointer-events: auto
}

.max-width {
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto
}

.text-center {
    text-align: center
}

header {
    position: sticky;
    top: 63px;
    left: 50%;
    z-index: 1000
}

.header-nav {
    width: calc(100vw - 14rem);
    max-width: 600px;
    padding: 1rem 3rem;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 15px #00000013;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    background: #fffc;
    box-shadow: 0 4px 32px #1f435a1a;
    backdrop-filter: blur(15px) saturate(200%) brightness(110%);
    -webkit-backdrop-filter: blur(15px) saturate(200%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, .18)
}

nav hr {
    margin: -7px 15px;
    border-left: 1px solid #ddd;
    width: 30px
}

.logo-a {
    font-family: switzer, switzer, sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    text-decoration: none;
    padding: 0;
    margin: 0
}

.logo-a span {
    font-family: boska, serif;
    font-weight: 600
}

.header-nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 8px;
    transition: background-color .5s ease
}

.header-nav-link:hover {
    transition: background-color .5s ease;
    background-color: #dfdfdf55;
    color: #333
}

.header-nav-link.active {
    background-color: #fff5;
    border: #afafaf33 1px solid
}

footer {
    padding: 1rem 4rem;
    background-color: #1f0033;
    color: #ddd;
    background-size: cover;
    display: flex;
    justify-content: center
}

.footer-nav {
    display: flex;
    justify-self: center;
    width: 100%;
    justify-content: space-between;
    align-items: top;
    max-width: 1200px;
    margin-top: 30px
}

.footer-logo {
    height: 70px
}

.footer-nav-links {
    color: #ddd;
    margin: 0 0 30px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .5rem
}

.footer-nav-link {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 8px;
    transition: background-color .5s ease
}

.footer-nav-link:hover {
    text-decoration: underline #fff
}

/* Hamburger Sub-navigation */
.nav-group {
    display: flex;
    flex-direction: column;
    /* Removed gap: 10px to prevent extra spacing when collapsed */
    gap: 0;
}

.nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submenu-toggle.rotate {
    transform: rotate(180deg);
}

.hamburger-nav-sublinks {
    list-style: none;
    padding: 0 0 0 20px;
    /* Indent */
    margin: 10px 0 0 0;
    /* Add margin when expanded */
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    max-height: 500px;
    /* Arbitrary large height for transition */
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    opacity: 1;
}

.hamburger-nav-sublinks.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    /* Remove margin when collapsed */
    pointer-events: none;
}

.hamburger-nav-link.sub-link {
    font-size: 1.1rem;
    /* Slightly smaller */
    padding: 5px 10px;
    display: block;
}

/* Hover logic for desktop */
.nav-group:hover .hamburger-nav-sublinks {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
    /* Consistently apply margin */
    pointer-events: auto;
}