/* === FONT DEFINITIONS === */
@font-face {
    font-family: 'Kaushan Script';
    src: url('fonts/KaushanScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist';
    src: url('fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* === GLOBAL STYLES === */
body, html {
    scroll-padding-top: 70px; /* Accounts for sticky nav when anchor linking */
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    scroll-behavior: smooth;
}

/* Page-specific Backgrounds */
body.home-page {
    background-image: url(media/hintergrund.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Replaces the old fixed-background div */
}

body.legal-page {
    background-color: #f0f4f8;
    padding: 2rem 1rem;
}

/* === TYPOGRAPHY === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

h2 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 1.5rem;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
}

p {
    line-height: 1.5;
}

a {
    color: #b17ad9;
    text-decoration: none;
}

a:hover {
    color: #d7aefc;
}

li {
    margin-bottom: 0.4rem;
}

/* Utility Classes */
.highlight-text {
    color: #612D88;
}

.intro-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 380;
    font-size: 1.6rem;
    text-align: center;
}

/* === HEADER SECTION === */
header {
    position: relative;
    width: 100%;
}

.welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; 
}

.logo img {
    max-width: 1130px;
    max-height: 75vh;
}

/* === NAVIGATION === */
#nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #612D88;
    padding: 1.3rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#nav-list {
    display: flex;
    flex-wrap: wrap; 
    width: 100%;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    gap: 0.5rem clamp(0.7rem, 2.7vw, 4rem);
}

#nav-list li {
    margin: 0; 
}

#nav-list a {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    padding: 0.2rem;
    white-space: nowrap;
    text-align: center;
}

#nav-list a:hover {
    color: #B47DDB;
    transition: 0.2s;
}

#hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

/* === MAIN CONTENT (HOME) === */
.main-content {
    position: relative;
    overflow-x: hidden;
}

.hero {
    background-color: #ffffff;
    color: #000000;
    padding: 2rem;
}

.content {
    background-color: #ffffff;
    color: #000000;
    padding: 5rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    width: 83%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.right {
    margin-left: auto;
    margin-right: 0;
}

.content .logo {
    position: absolute;
    right: 0;
    top: 64%; 
    transform: translateY(-50%);
    width: auto;
    height: 575px; 
    z-index: 1;
}

.content h2,
.content p,
.content ul,
.content .contact {
    position: relative;
    z-index: 2;
}

.contact {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.contact .portrait {
    max-width: 250px;
    height: auto;
    margin-top: 2rem;
}

.contact .info {
    max-width: 390px;
}

/* === LEGAL PAGES CONTENT === */
.content.legal-content {
    margin-top: 0;
    margin-bottom: 0;
    min-height: 100vh; /* Stretches the white box all the way to the bottom of the screen */
}

/* === FOOTER === */
footer {
    background-color: #612D88;
    color: #B47DDB;
}

footer div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 4rem;
}


/* ========================================= */
/* === RESPONSIVE MEDIA QUERIES === */
/* ========================================= */

/* TABLET (Max 1024px) */
@media (max-width: 1024px) {
    .logo img { max-width: 95vw; }
    
    .content .logo {
        height: 450px; 
    }
}

/* MOBILE & SMALL TABLET (Max 768px) */
@media (max-width: 768px) {
    body, html { font-size: 1.1rem; }
    h2 { font-size: 1.8rem; }
    
    .intro-text { font-size: 1.4rem; }
    
    /* Nav shrinks to hamburger */
    #nav-list:not(.legal-nav) {
        display: none;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
    }
    
    #nav-list.active {
        display: flex; /* Triggered by JavaScript */
    }

    #hamburger-menu {
        display: flex;
    }

    .content {
        padding: 2.5rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
        width: 95%;
    }

    .content .logo {
        opacity: 0.2; /* Fade background logo on small screens for readability */
        height: 350px; 
    }

    .contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact .info-text {
        order: -1; /* Move text above portrait */
    }

    footer div {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        text-align: center;
    }
    
}

/* SMALL MOBILE (Max 480px) */
@media (max-width: 480px) {
    .content {
        padding: 1.5rem;
        width: 100%;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}