@font-face {
    font-family: 'EB Garamond';
    font-weight: 400;
    src: url('fonts/eb-garamond-v31-latin-regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'EB Garamond';
    font-weight: 600;
    src: url('fonts/eb-garamond-v31-latin-600.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v43-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v43-latin-600.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
:root {
    --brand-color: #AC0000;
    --secondary-brand-color: #800000;
    --primary-color: #111;
    --secondary-color: #eee;
    --primary-text-color: #eee;
    --secondary-text-color: #111;
    --link-color: #fff;
}
html {
    scroll-behavior: smooth;
}
body{
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
}
h1,
h2 {
    font-family: "EB Garamond", serif;
    font-weight: 600;
}
h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0;
}
h2 {
    font-size: clamp(18px, 3.5vw, 24px);
    margin: 30px 0 0;
    line-height: 1.4;
}
a {
    position: relative;
    color: var(--link-color);
    text-decoration: none;
}
a::after {
    content: "";
    position: absolute;
    left: -1px;
    bottom: -3px;
    width: calc(100% + 2px);
    height: 2px;
    background-color: var(--brand-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
a:hover::after {
    transform: scaleX(1);
}
.kontakt-button:hover::after,
.logo:hover::after {
    transform: scaleX(0);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    position: relative;
}
.inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4vw;
    gap: 4%;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.kontakt-button {
    padding: 10px 20px;
    background-color: var(--brand-color);
    border-radius: 10px;
    font-weight: 600;
    color: var(--link-color);
    transition: background-color 0.3s ease;
}
.kontakt-button:hover {
    background-color: var(--secondary-brand-color);
}
.hero {
    position: relative;    
    width: 100%;
    aspect-ratio: 2 / 1;
    background-image: image-set(
        url('images/voigt_portrait_large.webp') type('image/webp'),
        url('images/voigt_portrait_large.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
}
.ribbon {
    width: 100%;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    height: 100%;
    padding: 1%;
    box-sizing: border-box;
    position: relative;
}
.hero .navbar .logo img {
    display: none;
}
.ribbon .navbar .logo img {
    display: block;
}
.ribbon .navbar {
    height: 100px;
    align-items: center;
}
.logo img {
    height: 100%;
    width: auto;
    display: block;
}
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}
.menu {
    display: flex;
    gap: 50px;
    align-items: center;
    font-size: 20px;
}
.dropdown-item {
    background: var(--primary-color);
    overflow: hidden;
    color: var(--primary-text-color);
    margin-bottom: 30px;
}
.dropdown-box {
    margin-top: 20px;
}
.dropdown-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s ease;
    overflow: hidden;
}
.dropdown-content,
.dropdown-label {
    padding: 14px 50px 0 20px;
}
.dropdown-label {
    display: block;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background .1s
}
.dropdown-label::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: 20px;
    top: 35%;
    border-left: 3px solid var(--brand-color);
    border-bottom: 3px solid var(--brand-color);
    transform: rotate(-45deg);
    transform-origin: 25% 75%;
    transition: transform .4s ease-in-out;
}
.dropdown-content {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
    overflow: hidden;
}
.dropdown-input {
    display: none;
}
.dropdown-input:checked ~ .dropdown-wrapper {
    grid-template-rows: 1fr;
}
.dropdown-input:checked ~ .dropdown-label::after {
    transform: rotate(135deg);
}
.citation {
    position: relative;
}
.citation img {
    width: 100%;
    display: block;
}
.citation-text {
    padding: 3vw 6vw;
    position: relative;
    color: var(--primary-text-color);
    font-size: 4.5vw;
    text-align: center;
    font-family: 'EB Garamond', serif;
    line-height: 1.3;
}
.citation-box {
    top: 12%;
    right: 2vw;
    position: absolute;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent);
}
.faq,
.legal {
    background-color: var(--secondary-color);
}
.faq {
    background-color: var(--secondary-color);
    padding: 20px 0;
}
.faq .container h1 {
    text-align: center;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap-reverse;
}
.legal {
    padding: 40px 0;
}
.info-box {
    position: absolute;
    top: 22%;
    right: 2%;
    width: 55%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
    color: var(--primary-text-color);
    padding: 3vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5em;
}
.info-box img {
    width: 100%;
}
.introduction,
.vita,
footer {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
}
.content,
.text,
.image {
    position: relative;
    box-sizing: border-box;
    min-width: 280px;
}
.content {
    flex: 1 1 20%;
}
.text {   
    flex: 1 1 60%;
}
.image {
    flex: 1 1 36%;
    display: flex;
    justify-content: center;
    align-items: center
}
.image img {
    max-width: 50vw;
}
.schwerpunkte {
    color: var(--secondary-text-color);
    background-image: image-set(
        url('images/background-2.webp') type('image/webp'),
        url('images/background-2.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
}
.welcome {
    color: var(--secondary-text-color);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.5);
    background-image: image-set(
        url('images/background-1.webp') type('image/webp'),
        url('images/background-1.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.welcome .inner-container {
    text-align: center;
    flex-direction: column;
}
.welcome h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 50px);
}
.welcome h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: normal;
    color: var(--brand-color);
}
.corners {
    position: relative;
}
.corners::before,
.corners::after {
    content: "";
    position: absolute;
    width: clamp(5px, 5vw, 50px);
    height: clamp(5px, 5vw, 50px);
    pointer-events: none;
}
.corners::before {
    top: 2vw;
    left: 2vw;
    border-top: 3px solid var(--brand-color);
    border-left: 3px solid var(--brand-color);
}
.corners::after {
    bottom: 2vw;
    right: 2vw;
    border-bottom: 3px solid var(--brand-color);
    border-right: 3px solid var(--brand-color);
}
.profile-image,
.footer-image {
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vita .text {
    flex: 1 1 40%;
}
.profile-image {
    flex: 1 1 40%;
}
.footer-image {
    flex: 1 1 35%;
}
.profile-image img,
.footer-image img {
    max-width: 400px;
    display: block;
    border: 10px solid #fff;
}
a.kontakt-button:hover {
    text-decoration: none;
}
.imprint {
    text-align: center;
    padding-bottom: 10px;
}
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    padding-right: 4%;
    padding-top: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1001; 
}
.nav-toggle-label span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
@media (max-width: 768px) {
    #kontakt .content {
        text-align: center;
    }
    .navbar {
        position: relative;
    }
    .menu {
        position: absolute;
        top: 0;
        right: -100%;
        box-sizing: border-box;
        transition: right 0.3s ease-in-out;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 90px 30px 30px;
        z-index: 1000;
        gap: 30px;
        flex-direction: column;
    }
    .nav-toggle:checked ~ .menu {
        right: 0;
    }
    .ribbon:has(.nav-toggle:checked) {
        overflow: visible;
    }
    .hero {
        aspect-ratio: 3 / 4;
        background-image: image-set(
            url('images/voigt_portrait_large-2.webp') type('image/webp'),
            url('images/voigt_portrait_large-2.jpg') type('image/jpeg')
        );
    }
    .gradient-overlay {
        height: 14%;
    }
    .info-box {
        top: unset;
        bottom: 5%;
        right: 0;
        width: 80%;
        padding: 3vw;
        background: rgba(0, 0, 0, 0.5);
    }
    .citation img {
        width: 125%;
        margin-left: -25%;
        display: block;
    }
    h1 {
        text-align: center;
    }
    .profile-image img,
    .footer-image img {
        max-width: 80vw;
    }
    .nav-toggle-label {
        display: flex;
    }
    .nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}