/* Design System Herzensgschenk */

/* Fonts - Locally Hosted for GDPR Compliance */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('assets/fonts/cormorant-garamond-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant SC';
    src: url('assets/fonts/cormorant-sc-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cormorant SC';
    src: url('assets/fonts/cormorant-sc-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/lato-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/lato-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url('assets/fonts/lato-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors */
    --primary: #E97D8A;
    --primary-dark: #D66A78;
    --primary-light: #FDE9EB;
    --secondary: #B8D8BA;
    --secondary-dark: #A3C1A5;
    --accent: #F4E4BA;
    --bg-main: #FAFAF7;
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-main: #2C2C2C;
    --text-muted: #7A7A7A;
    --text-light: #FDE9EB;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-title: 'Cormorant SC', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing & Borders */
    --section-spacing: 7rem;
    --container-width: 1200px;
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    /* Shadows */
    --shadow-soft: 0 15px 40px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 50px rgba(0,0,0,0.08);
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utility Classes */
h1 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.1;
}

h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2rem; }

.subtitle {
    display: block;
    font-family: var(--font-title);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* Navbar */
.navbar {
    background-color: rgba(250, 250, 247, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-name {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-title);
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 10rem;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, var(--primary-light) 0%, var(--bg-main) 60%);
}

.hero .grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
    font-family: var(--font-heading);
}

.hero-image-container {
    position: relative;
}

.hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 20px 30px 60px rgba(0,0,0,0.07);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(233, 125, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(233, 125, 138, 0.3);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* About Section */
.about {
    background-color: var(--white);
}

.featured-img-wrapper {
    position: relative;
    padding: 2rem;
}

.featured-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.featured-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

/* Haeuschen Section */
.haeuschen-section {
    background-color: var(--bg-main);
}

.section-header {
    max-width: 700px;
    margin-bottom: 5rem;
}

.haeuschen-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.map-container {
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Social Gallery */
.social-gallery {
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.gallery-overlay .instagram-icon {
    width: 40px;
    height: 40px;
    color: var(--white);
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay .instagram-icon {
    transform: scale(1);
}

.social-footer {
    display: flex;
    justify-content: center;
}

.instagram-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

.instagram-cta .instagram-icon {
    width: 24px;
    height: 24px;
}

.instagram-cta:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 125, 138, 0.2);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding: 8rem 0 4rem;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.footer-logo {
    display: block;
    height: 80px;
    width: auto;
    margin: 0 auto 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 3rem;
    text-align: center;
    color: var(--text-muted);
}

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

/* Mobile Adjustments */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.mobile-toggle span.open:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle span.open:nth-child(2) { opacity: 0; }
.mobile-toggle span.open:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }
    
    .hero .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero-img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    
    .grid { 
        grid-template-columns: 1fr; 
        gap: 3rem;
    }
    
    .mobile-toggle { display: flex; }

    .brand-name {
        font-size: 1.3rem;
    }

    .nav-logo {
        height: 40px;
    }

    .featured-img-wrapper {
        padding: 1rem;
    }

    .map-container {
        height: 400px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
