:root {
    --site-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --primary-color: #3b82f6;
    --nav-bg: rgba(30, 41, 59, 0.95);
    --nav-submenu-bg: rgba(15, 23, 42, 0.8);
    --text-dark: #1f2937;
    --text-gray: #374151;
    --success-color: #16a34a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--site-font);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image: url("../img/Hintergrund.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

main {
    flex: 1 0 auto;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 5% 1rem 5%;
    background-color: transparent;
    position: relative;
    z-index: 20;
}

.page-home header {
    margin-bottom: 40px;
}

.logo {
    width: 21%;
    min-width: 140px;
    margin-bottom: 1.5rem;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

#menu-toggle,
.submenu-toggle {
    display: none;
}

.hamburger-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 30;
}

.hamburger-icon span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
    border-radius: 3px;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: 0.4s ease-in-out;
    list-style: none;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0 0 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: none;
    text-align: center;
    z-index: 30;
    box-sizing: border-box;
}

#menu-toggle:checked ~ .nav-menu {
    display: block;
}

#menu-toggle:checked ~ .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu li {
    position: relative;
    width: 100%;
}

.nav-menu li a,
.submenu-label {
    color: #f8fafc;
    text-decoration: none;
    display: block;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
}

.nav-menu li a:hover,
.submenu-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #60a5fa;
}

.submenu {
    list-style: none;
    padding: 0;
    display: none;
    background-color: var(--nav-submenu-bg);
    border-radius: 8px;
    margin: 5px 5px 10px 5px;
}

.submenu-toggle:checked ~ .submenu {
    display: block;
}

.submenu li a {
    font-size: 0.85rem;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    backdrop-filter: none;
    display: none;
    z-index: 15;
}

#menu-toggle:checked ~ #menu-overlay {
    display: block;
}

footer {
    margin-top: auto;
    background-color: transparent;
    color: var(--text-gray);
    padding: 2rem 5%;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80px;
    z-index: 10;
    box-sizing: border-box;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 5px 0;
}

.footer-center a,
footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-center a:hover,
footer a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.footer-right {
    position: absolute;
    right: 5%;
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease, fill 0.3s ease;
    fill: var(--text-dark);
}

.social-link:hover svg {
    transform: scale(1.15);
}

.instagram-hover:hover svg {
    fill: #e1306c;
}

.tiktok-hover:hover svg {
    fill: #00f2ea;
}

.cta-btn,
.cta-button,
.submit-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-btn:hover,
.cta-button:hover,
.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
}

.gallery-grid img,
.gallery-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

.page-home .logo-animation-container {
    position: relative;
    width: 320px;
    height: 220px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.page-home .logo-animation-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page-home .hand-part {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transition: transform 1.8s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 20;
}

.page-home .hand-part.left {
    left: 0;
    clip-path: inset(0 50% 0 0);
    transform: translateX(20%);
}

.page-home .hand-part.right {
    right: 0;
    clip-path: inset(0 0 0 50%);
    transform: translateX(-20%);
}

.page-home .logo-diamond {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    transform: scale(0.6);
    transition: all 1.5s ease-out 1.5s;
}

.page-home .logo-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    transform: translateY(15px);
    transition: all 1s ease-out 3s;
}

.page-home.loaded .hand-part.left,
.page-home.loaded .hand-part.right {
    transform: translateX(0);
}

.page-home.loaded .logo-diamond {
    opacity: 1;
    transform: scale(1);
}

.page-home.loaded .logo-text {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        position: static;
        padding: 2rem 0;
    }

    .footer-right {
        position: static;
        margin-top: 20px;
    }

    .logo {
        width: 40%;
    }

    .page-home .logo-animation-container {
        width: 280px;
        transform: scale(0.9);
    }
}
