/* Basis-Styles */
.hamburger {
    display: none; /* Standardmäßig versteckt in Desktop-Ansicht */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #D6CDB7;
    margin: 5px 0;
    transition: all 0.3s ease;
}

:root {
    /* Dark Mode Colors */
    --primary-color-dark: #1A1A1A;
    --secondary-color-dark: #D6CDB7;
    --accent-color-dark: #9B7B4C;
    --background-color-dark: #121212;
    --text-color-dark: #D6CDB7;
    --text-secondary-dark: #9B7B4C;
    --hover-color-dark: #2C2C2C;
    --border-color-dark: rgba(214, 205, 183, 0.1);
    --hover-accent-dark: #B8860B;

    /* Light Mode Colors */
    --primary-color-light: #FFFFFF;
    --secondary-color-light: #1A1A1A;
    --accent-color-light: #9B7B4C;
    --background-color-light: #C0AD9A;
    --text-color-light: #1A1A1A;
    --text-secondary-light: #9B7B4C;
    --hover-color-light: #E5E5E5;
    --border-color-light: rgba(26, 26, 26, 0.1);
    --hover-accent-light: #B8860B;

    /* Default to dark mode */
    --primary-color: var(--primary-color-dark);
    --secondary-color: var(--secondary-color-dark);
    --accent-color: var(--accent-color-dark);
    --background-color: var(--background-color-dark);
    --text-color: var(--text-color-dark);
    --text-secondary: var(--text-secondary-dark);
    --hover-color: var(--hover-color-dark);
    --border-color: var(--border-color-dark);
    --hover-accent: var(--hover-accent-dark);
}

/* Light Mode */
[data-theme="light"] {
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --accent-color: var(--accent-color-light);
    --background-color: var(--background-color-light);
    --text-color: var(--primary-color-light);
    --text-secondary: var(--text-secondary-light);
    --hover-color: var(--hover-color-light);
    --border-color: var(--border-color-light);
    --hover-accent: var(--hover-accent-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.47059;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "SF Pro Display", -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

header {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem); /* Mehr Abstand zu den Seiten */
    max-width: 1200px;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

header:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Mehr Innenabstand */
    position: relative;
}

.logo {
    width: 180px;
    height: auto;
    margin: -25px 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
    margin-right: 120px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-start;
    margin-left: 120px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent-color);
    background: rgba(155, 123, 76, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-top: 100px; /* Abstand für den schwebenden Header */
    position: relative;
}

footer {
    position: relative;
    width: calc(100% - 2rem) !important;
    max-width: 1200px !important;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 1rem 0.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: 2rem auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: box-shadow 0.3s ease;
}

footer:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.footer-links {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    padding: 0.4rem 0.8rem;
    border-radius: 980px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 1rem;
}

.footer-links a:hover {
    background: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-links a:active {
    transform: translateY(0);
    box-shadow: none;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

/* Mobile Styles */
@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    .hamburger {
        display: block;
        position: fixed;
        right: 1.2rem;
        top: 1.2rem;
        transform: none;
        z-index: 1000;
    }

    nav {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #1A1A1A;
        backdrop-filter: none;
        flex-direction: column;
        padding: 0;
        transition: top 0.3s ease;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    nav.active {
        top: 0;
        width: 100%;
        height: 100vh;
    }

    .logo-container {
        max-width: 100%;
        overflow: hidden;
    }

    /* Standard Logo ausblenden */
    .logo {
        display: none;
    }

    /* Mobiles Logo in mobiler Ansicht anzeigen */
    .mobile-logo {
        display: block !important; /* Wichtig um die vorherige Regel zu überschreiben */
        width: 80px;
        height: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        margin: 0;
    }

    /* Verstecke Scrollbar für Chrome, Safari und Opera */
    ::-webkit-scrollbar {
        display: none;
    }

    /* Verstecke Scrollbar für Firefox */
    html {
        scrollbar-width: none;
    }

    /* Verstecke Scrollbar für IE und Edge */
    body {
        -ms-overflow-style: none;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0 0 12px 12px;
        padding: 0;
        height: 60px;
        background-color: #1A1A1A;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    header.header-hidden {
        transform: translateY(-100%);
    }

    .logo-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        position: relative;
    }

    /* Logo im Menü ausblenden */
    nav.active .logo {
        display: none;
    }

    /* Anpassung der Links im Menü */
    nav a {
        font-size: 1.5rem; /* Größere Schrift */
        margin: 1rem 0;
        color: #D6CDB7;
    }

    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
        -ms-touch-action: none !important;
        overscroll-behavior: none !important;
        -webkit-overflow-scrolling: none !important;
    }

    /* Verstecke Scrollbar im Body wenn Menü offen */
    body.menu-open::-webkit-scrollbar {
        display: none !important;
    }

    .hamburger.active span {
        background-color: #D6CDB7;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-left, .nav-right {
        width: 100%;
        align-items: center;
        gap: 2rem;
    }

    .theme-switch-wrapper {
        position: fixed;
        top: 1.2rem;
        left: 1.2rem;
    }

    footer {
        width: 100% !important;
        border-radius: 0;
        margin: 0 !important;
        padding: 0.5rem;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: #1A1A1A;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 1rem;
        transform: scale(0.9);
        transform-origin: center;
    }

    .footer-links a {
        font-size: 0.75rem;
        padding: 0.3rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        white-space: nowrap;
    }

    .footer-links a i {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    /* Copyright ausblenden in mobiler Ansicht */
    .copyright {
        display: none;
    }

    /* Verstecke Footer und Theme-Switch wenn Menü offen ist */
    body.menu-open footer,
    body.menu-open .theme-switch-wrapper {
        display: none;
    }

    /* Theme Switch im mobilen Menü ausblenden */
    nav.active .theme-switch-wrapper {
        display: none;
    }

    /* Auch den Theme Switch in der fixen Position ausblenden wenn Menü offen */
    body.menu-open .theme-switch-wrapper {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0;
    }

    .logo-container {
        padding: 0 0.6rem;
    }

    .logo {
        width: 120px;
    }

    nav {
        padding: 0.3rem;
    }

    nav a {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    footer {
        padding: 0.8rem;
        margin-top: 1rem;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .footer-links a i {
        font-size: 0.9rem;
    }
}

/* Entferne diese Regel am Ende der Datei */
/* .hamburger {
    display: none;
} */

/* SF Pro Schriftart */
@font-face {
    font-family: "SF Pro Text";
    src: url("../fonts/SF-Pro-Text-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../fonts/SF-Pro-Text-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "SF Pro Text";
    src: url("../fonts/SF-Pro-Text-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

/* SF Pro Display Schriftart */
@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/SF-Pro-Display-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/SF-Pro-Display-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Pro Display";
    src: url("../fonts/SF-Pro-Display-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--accent-color);
    border-radius: 13px;
    cursor: pointer;
    padding: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-switch::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: transform 0.3s ease;
    left: 3px;
    z-index: 1;
}

.theme-switch.active::before {
    transform: translateX(24px);
}

.theme-switch .fa-moon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color-light);
    font-size: 0.8rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.theme-switch .fa-sun {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color-dark);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.theme-switch.active .fa-sun {
    opacity: 1;
}

.theme-switch.active .fa-moon {
    opacity: 0;
}

@media (max-width: 768px) {
    .nav-left, .nav-right {
        flex-direction: column;
        width: 100%;
        margin: 0;
        align-items: center;
        gap: 1rem;
    }

    .theme-switch-wrapper {
        position: fixed;
        top: 1.2rem;
        left: 1.2rem;
    }
    
    .theme-switch {
        width: 44px;
        height: 22px;
    }
    
    .theme-switch::before {
        width: 16px;
        height: 16px;
    }
    
    .theme-switch.active::before {
        transform: translateX(22px);
    }
}

/* Verstecke Footer und Theme-Switch wenn Menü offen ist */
body.menu-open footer,
body.menu-open .theme-switch-wrapper {
    display: none;
}

/* Globale Regeln für das offene Menü */
html.menu-open,
body.menu-open {
    margin: 0;
    height: 100% !important;
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
    overscroll-behavior: none;
}

/* Mobile Logo standardmäßig ausblenden */
.mobile-logo {
    display: none;
} 