/* ============================================
   Anna Kreuter — Professional Hairstylist
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-charcoal: #2D2D2D;
    --color-dark: #1A1A1A;
    --color-cream: #F5F0EB;
    --color-teal: #2A6B5A;
    --color-white: #FFFFFF;
    --color-text: #3A3A3A;
    --color-text-light: #CCCCCC;
    --color-divider: rgba(255, 255, 255, 0.3);
    --color-divider-dark: rgba(0, 0, 0, 0.1);

    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Lato', sans-serif;

    --section-padding: 5rem 1.5rem;
    --content-max-width: 1000px;
    --nav-height: 60px;
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-white);
}

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

a {
    color: inherit;
    text-decoration: none;
}


/* --- Typography --- */
h2 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-teal);
    margin: 1rem auto 0;
}

h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}


/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
}

a.nav-brand {
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* --- Hero --- */
#hero {
    background: var(--color-cream);
    margin-top: var(--nav-height);
}

.hero-image {
    width: 100%;
    max-height: 55vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 55vh;
    object-fit: cover;
    object-position: center;
}

.hero-image-placeholder {
    height: 40vh;
    min-height: unset;
}

.hero-content {
    text-align: center;
    padding: 3rem 2rem 4rem;
}

.hero-name {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-charcoal);
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: var(--color-teal);
    margin: 1.2rem auto;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: #888;
    letter-spacing: 0.05em;
}


/* --- Sections (general) --- */
.section-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

#ueber-mich {
    background: var(--color-cream);
    padding: var(--section-padding);
}

#leistungen {
    background: var(--color-white);
    padding: var(--section-padding);
}

#galerie {
    background: var(--color-charcoal);
    padding: var(--section-padding);
    color: var(--color-white);
}

#galerie h2::after {
    background: var(--color-cream);
}

#kontakt {
    background: var(--color-cream);
    padding: var(--section-padding);
}


/* --- Über mich --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* --- Leistungen --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-divider-dark);
    transition: border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-teal);
}

.service-card h3 {
    color: var(--color-teal);
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

.services-note {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #888;
}


/* --- Galerie --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-grid img:hover {
    opacity: 0.85;
}


/* --- Kontakt --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.contact-item h3 {
    color: var(--color-teal);
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--color-teal);
    font-weight: 400;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #888;
    margin-top: 1rem;
}

.contact-card {
    margin-top: 2.5rem;
}

.contact-card img {
    max-width: 300px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-map {
    min-height: 350px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    display: block;
}


/* --- Footer --- */
#footer {
    background: var(--color-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

#footer p {
    margin-bottom: 0.3rem;
}

#footer a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--color-white);
}


/* --- Legal Page (Impressum) --- */
.legal-page {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.legal-page h2 {
    text-align: left;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h2::after {
    display: none;
}

.legal-page p {
    margin-bottom: 1rem;
}


/* --- Placeholder (temporary) --- */
.image-placeholder {
    background: rgba(0, 0, 0, 0.08);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

#galerie .image-placeholder {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    aspect-ratio: 1;
    min-height: unset;
}


/* --- Responsive --- */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Nav: mobile menu */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Hamburger animation when open */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* About: stack */
    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

    /* Services: 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery: 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact: stack */
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Phone */
@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 1.25rem;
    }

    h2 {
        font-size: 1.4rem;
        letter-spacing: 0.15em;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    /* Services: single column */
    .services-grid {
        grid-template-columns: 1fr;
    }
}
