:root {
    --color-bg: #fafaf8;
    --color-text: #1a1a1a;
    --color-accent: #c17b5c;
    --color-muted: #888;
    --color-border: #eee;
}

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

body {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    /* font-family: 'DM Serif Display', serif;  */
    font-weight: 600;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; /*was 20px 40px*/
    padding-bottom: 0px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
header img {
    height: 80px;
    width: auto;
}
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    height: 90dvh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

/* .hero {
    position: static !important;
    background: red !important;
    height: 300px !important;
    border: 10px solid lime !important;
}

.hero::after {
    display: none !important;
} */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1; /*sits above the overlay */
    width: 80%;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-top: 10px;
}
.welcome {
    max-width: min(700px, 90%);
    margin: 80px auto;
    text-align: center;
}

.photo-divider {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 70vh;
    height: 70dvh;
    overflow: hidden;
    position: relative;
}
.photo-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;

}

.warum-tanzen {
    max-width: min(700px, 90%);
    margin:80px auto;
    padding: 0 20px;
    text-align: center;
}

.warum-tanzen p {
    margin-bottom: 16px;
}

.warum-tanzen h2,
.kursinfos h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.kursinfos {
    max-width: min(700px, 90%);
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.kurs-grid {
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.kursarten,
.kursdetails {
    text-align: left;
}

.kursdetails {
    border-left: 1px solid var(--color-border);
    padding-left: 40px;
}

.kursdetails-inner {
    padding-left: 0;
}

.kursdetails ul {
    list-style: none;
    padding-inline-start: 0;
    margin: 0;
}

.kursinfos h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* .kurs-details h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}*/

.kursarten ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
    white-space: nowrap;
}

.hochzeit-hinweis {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    /*color: var(--color-muted);*/
    line-height: 1.8;
}

.hinweis-titel {
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 6px;
}

/* .tanz-heading {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
} */

.kurs-dances {
    display: grid; 
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

/*.kurs-dances ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 20px;
    columns: 2;
    white-space: nowrap;
}*/
.kurs-dances ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mehr {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-muted);
    font-style: italic;
    margin-top: 10px;
}

.end-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    align-items: stretch;
}

.photo-left {
    min-height: 550px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.photo-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.text-right {
    padding: 60px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    line-height: 1.8;
}
.btn-link {
    color: var(--color-accent);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.btn-link:hover {
    opacity: 0.7;
}
/* .offer h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}
    zusammengelegt mit warum-tanzen h2
*/
nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
}

nav a:hover {
    color: var(--color-accent);
}

/* hide hamburger nav on desktop */
.hamburger {
    display: none;
}
main {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.kontakt {
    text-align: center;
    padding: 80px 40px;
    border-top: 1px solid var(--color-border);
}

.kontakt h2 {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 16px;
}

.kontakt p {
    margin-bottom: 32px;
    color: var(--color-muted);
}

.kontakt .btn {
    display: inline-block;
    margin: 8px;
    padding: 12px 28px;
    border: 1px solid var(--color-text);
    text-decoration: none;
    color: var(--color-text); 
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.kontakt .btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}
footer {
    text-align: center;
    padding: 60px 40px 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    margin-bottom: 40px;
}

.footer-name {
    font-family: 'Coromorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-content a {
    color: var(--color-muted);
    text-decoration: none;
    display: block;
    margin: 6px 0;
}

.footer-content a:hover {
    color: var(--color-accent);
}

.footer-legal {
    font-size: 0.8rem;
    color: var(--color-muted);
}


.footer-legal a {
    color: var(--color-muted);
    text-decoration: none;
}

/* IMPRESSUM SPECIFIC START */
.impressum {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 40px;
}

.impressum h2 {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 16px;
    margin-top: 40px;
}

.impressum h2:first-child {
    margin-top: 0;
}

.impressum p {
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--color-text);
}

.impressum a {
    color: var(--color-accent);
    text-decoration: underline;
}
/* IMPRESSUM SPECIFIC END */

/* ABOUT PAGE START */
.about-hero {
    display: block;
    width: 100vw;
    height: 70vh;
    height: 70dvh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    
}
.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.about-hero-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
    width: 80%;
}
.about-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.about-hero-text p {
    margin-top: 10px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.about-intro {
    margin: 80px auto;
}
.intro-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    align-items: stretch;
}
.about-text img {
    float: right;
    width: 45%;
    margin: 0 0 20px 40px;
    object-fit: cover;
}
.intro-grid-photo {
    min-height: 550px;
    overflow: hidden;
}
.intro-grid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.intro-grid-bio {
    padding: 60px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-quote {
    max-width: 700px;
    margin: 0 auto 80px;
    text-align: center;
    padding: 0 40px;
}

.about-quote blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.6;
    font-style: italic;
}

.about-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-muted);
    font-style: normal;
}

.about-text {
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 0 40px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 16px;
}

.about-press {
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 0 40px 0 60px;
    border-left: 3px solid var(--color-accent);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-muted);
}

.about-press p {
    margin-bottom: 8px;
}
.contact-nudge {
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    line-height: 2;
}

.contact-nudge p:first-child {
    margin-bottom: 16px;
    color: var(--color-muted);
}

.contact-nudge a {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    font-size: 1.1rem;
}

.contact-nudge a:hover {
    color: var(--color-accent);
}

.source {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/*ABOUT PAGE END */

/*global test*/
.hero,
.photo-divider,
.about-hero {
        background-attachment: scroll !important;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    @media (max-width: 600px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }
    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-text);
        transition: all 0.3s ease;
    }
    #main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 20px 0;
        text-align: center;
        gap: 0;
    }
    #main-nav.open {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    #main-nav a {
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }
    /*#main-nav a:first-child {
        border-top: 1px solid var(--color-border);
    }*/
    #main-nav a:last-child {
        border-bottom: none;
    }
    header img {
        height: 52px;
        padding-bottom: 0px;
    }
    nav a {
        margin-left: 0;
    }
    main {
        padding: 0 24px;
    }
    .end-grid {
        grid-template-columns: 1fr;
    }
    .photo-left {
        -webkit-mask-image:none;
        mask-image: none;
        height: 300px;
    }
    .hero {
        background-attachment: scroll;
        height: 60vh;
        background-position: 60% center;
    }
    .hero-text h1 {
        font-size: 1.9rem;
    }
    .hero-text {
        width: 90%;
        top: 55%;
    }
    .welcome {
        margin-top:50px;
        margin-bottom: 60px;
    }
    .warum-tanzen {
        margin-top: 0px;
        margin-bottom: 50px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 24px;
    }
    .welcome,
    .warum-tanzen {
        max-width: 100%;
        padding: 0 22px;
        margin-left: 0;
        margin-right: 0;
    }

    .photo-divider {
        background-attachment: scroll;
        height: 45vh;
    }
    .photo-left {
        min-height: 440px;
    }
    .photo-left img {
        height: 50vh;
    }
    .kurs-grid {
        grid-template-columns: 1fr;
    }
    .kursinfos h2 {
        text-align: center;
    }
    .kursinfos {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 0 24px;
        max-width: 100%;
    }
    .kursarten {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }
    .kursdetails {
        border-left: none;
        text-align: center;
        padding-left: 0;
    }
    .kursdetails-inner {
        padding-left: 0;
    }
    .kursdetails ul {
        list-style: none;
        padding-left: 0;
        margin-left: 0;
    }
    .kurs-dances ul {
        list-style: none;
        display: block;
        padding: 0;
        white-space: normal;
        text-align: center;
        grid-template-columns: 1fr;
    }
    .kurs-dances {
        grid-template-columns: 1fr;
        margin-top: 25px;
        text-align: center;
    }
    .kursarten,
    .kursdetails,
    .kurs-dances {
        width: 100%;
        justify-self: center;
    }
    .text-right {
        padding-top: 25px;
        padding-right: 24px;
        padding-left: 24px;
        padding-bottom: 25px;
        text-align: center;
    }
    .footer {
        padding: 10px;
    }
}    

    /*Testing*/
    /*.kursinfos      { outline: 2px solid red; }
    .kurs-grid      { outline: 2px solid blue; }
    .kursarten      { outline: 2px solid green; }
    .kursdetails    { outline: 2px solid orange; }
    .kurs-dances    { outline: 2px solid purple; }
    .kursdetails {
    background: rgba(255,0,0,.1);
    }

    .kursdetails ul {
    background: rgba(0,255,0,.1);
    }
    */

/* ABOUT PAGE MOBILE */
@media (max-width: 600px) {
     header {
        transition: transform 0.15s ease-out;
        will-change: transform;
    }
    header.nav-hidden {
        transform: translateY(-100%);
    }
    .about-hero {
        background-attachment: scroll !important;
        height: 55vh;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid-photo {
        -webkit-mask-image: none;
        mask-image: none;
        min-height: 350px;
    }

    .intro-grid-bio {
        padding: 30px 24px;
    }

    .about-text img {
        float: none;
        width: 100%;
        margin: 0 0 24px 0;
    }

    .about-quote,
    .about-text,
    .about-press {
        padding: 0 24px;
    }

    .about-press {
        padding-left: 20px;
    }
}
/* ABOUT PAGE MOBILE END */

/* MOBILE LANDSCAPE IMAGES FIX */
@media (orientation: landscape) and (max-height: 500px) {
    .hero,
    .about-hero {
        background-attachment: scroll !important;
    }
    .hero,
    .about-hero {
        height: 100vh;
        height: 100dvh;
    }
    .photo-divider {
        height: 70vh;
    }
     header {
        transition: transform 0.15s ease-out;
        will-change: transform;
    }
    header.nav-hidden {
        transform: translateY(-100%);
    }
}