@import "style/reset.css";
@import "style/fonts.css";

:root {
    --gelb: #FFCF30;
    --dunkelgrün: #35431F;
    --hellgrün: #8C9951;
    --beige:#E5D7C4;
    --braun:#544323;
    
    /* Responsive spacing variables */
    --container-padding: clamp(1rem, 4vw, 2.5rem);
    --section-padding: clamp(2rem, 5vw, 4rem);
    --content-max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dunkelgrün);
    margin: 0;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--container-padding);
    position: sticky;
    top: 0;
    background-color: var(--dunkelgrün);
    z-index: 100;
}

.logo {
    font-family: 'frijole';
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gelb);
    font-weight: lighter;
    text-decoration: none;
}

.menu {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    font-family: 'frijole';
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--gelb);
    font-weight: lighter;
}

.menu a {
    font-weight: lighter;
    text-decoration: none;
    color: var(--gelb);
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--hellgrün);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gelb);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

/* Typography */
h1 {
    font-family: 'frijole';
    font-size: clamp(3rem, 8vw, 7.5rem);
    color: var(--gelb);
    word-spacing: 95px;
    margin: 0;
    font-weight: lighter;
    line-height: 1;
    white-space: nowrap;
    position: relative;
}

h2 {
    font-family: 'rock 3d';
    font-weight: lighter;
    font-size: clamp(3rem, 10vw, 9rem);
    color: var(--gelb);
    line-height: 1;
    padding-right: 20px;
    white-space: nowrap;
    top: 0;
    right: 0;
    letter-spacing: clamp(-2px, -0.5vw, 0px);
}

h3 {
    font-family: 'frijole';
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: lighter;
    margin-bottom: 1rem;
}

h4 {
    font-family: 'frijole';
    font-size: clamp(2rem, 5vw, 4.375rem);
    font-weight: lighter;
    color: var(--hellgrün);
    margin: 0;
}

p {
    font-size: 25px;
}

/* Hero Section */
.einstieg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--container-padding);
    overflow: hidden;
}

.portrait {
    width: clamp(250px, 50vw, 600px);
    height: clamp(300px, 60vw, 500px);
    background-color: var(--hellgrün);
    flex-shrink: 0;
    position: relative;
    align-items: center;
    padding-right: 100px;
    z-index: 2;
}

.start2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin-left: auto;
    flex: 1;
    max-width: 800px;
    position: relative;
    margin-top: -600px;
}

.start1 {
    text-align: right;
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    margin-bottom: 0;
}

.start {
    text-align: right;
    position: absolute;
    z-index: 1;
    padding-top: 20px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(-2rem, -5vw, -1rem);
}

.toptop{
    margin: 0;
    position: relative;
    z-index: 1;
}

.topsecond,
.topsecond2 {
    margin: 0;
    position: relative;
    z-index: 1;
    margin-top: -80px;
}

.rolle {
    position: absolute;
    top: 50%;
    transform: translateY(150%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 5;
}

.multimedia {
    text-align: right;
    position: relative;
    margin-right: 180px;
}

.producerin {
    text-align: right;
    position: relative;
    margin-left: 50px;
}

/* Section Styles - Full Width */
.uebermich,
.projekte,
.kontakt {
    padding: var(--section-padding);
    font-family: 'advent pro';
    font-size: clamp(1.125rem, 3vw, 2.5rem);
    line-height: 1.6;
    width: 100%;
    margin: 0;
    max-width: none;
}

.uebermich {
    color: var(--braun);
    background-color: var(--beige);
}

.uebermich_titel {
    text-align: right;
    color: var(--braun);
}

.projekte {
    color: var(--gelb);
    background-color: var(--dunkelgrün);
}

.projekte_titel {
    color: var(--gelb);
    text-align: left;
}

.kontakt {
    color: var(--braun);
    background-color: var(--beige);
}

/* Behind the Scenes Slideshow */
.bts {
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.bts-title {
    font-family: 'frijole';
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--braun);
    font-weight: lighter;
    text-align: center;
    margin-bottom: 2rem;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slides {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dunkelgrün);
    background: none;
    border: none;
    padding: 1rem;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    transform: translateY(-50%) scale(1.1);
}

.dots-container {
    text-align: center;
    padding: 1.5rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--dunkelgrün);
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--gelb);
    transform: scale(1.2);
}

.projekte {
    color: var(--gelb);
    background-color: var(--dunkelgrün);
    max-width: none;
    margin: 0;
    width: 100%;
}

.projekte_titel {
    color: var(--gelb);
    text-align: center;
}

/* Project Grid */
.projekt-grid {
    display: grid;
    grid-template-columns: repeat(2, 400px);
    grid-template-rows: repeat(3, 250px);
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    width: 100%;
    padding: 0 2rem;
}

.projekt-box {
    background-color: var(--hellgrün);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.projekt-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projekt-titel {
    font-family: 'frijole';
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--dunkelgrün);
    font-weight: lighter;
    margin: 0;
    text-align: center;
}

.kontakt_titel {
    text-align: right;
    color: var(--braun);
    margin-bottom: 2rem;
}

/* Links and Footer */
a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hellgrün);
}

footer {
    background-color: var(--braun);
    color: var(--beige);
    text-align: center;
    padding: var(--section-padding);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-family: 'advent pro';
    width: 100%;
    margin: 0;
    max-width: none;
}

/* Portrait Box with Object Image */
.portrait-box {
    width: clamp(300px, 50vw, 600px);
    height: clamp(350px, 60vw, 500px);
    background-color: var(--hellgrün);
    margin: 2rem auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.portrait-object {
    max-width: 90%;
    max-height: 95%;
    object-fit: contain;
    object-position: bottom;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* === MEDIA QUERIES - 3 BREAKPOINTS === */

/* MOBILE FIRST: Up to 768px - Optimized for 390x844 template */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 2rem 1rem;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dunkelgrün);
        border-top: 2px solid var(--gelb);
        flex-direction: column;
        padding: 1rem var(--container-padding);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .menu.open {
        display: flex;
    }
    
    /* Hero Section - Mobile Layout - Optimized for 390px width */
    .einstieg {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .portrait {
        width: min(75vw, 280px);
        height: min(55vw, 240px);
        order: 1;
        margin: 0 auto;
    }
    
    .start2 {
        order: 2;
        margin-left: 0;
        align-items: center;
        gap: 0.5rem;
        margin-top: -40px;
        max-width: 100%;
    }
    
    .start,
    .start1 {
        text-align: center;
        position: static;
        top: auto;
        right: auto;
        white-space: none;
        width: 100%;
    }

    .start {
        margin-top: -15px;
        gap: 30px;
        width: 100%;
    }

    .toptop,
    .topsecond,
    .topsecond2 {
        letter-spacing: 9px;
        word-spacing: -30px;
    }
    
    .rolle {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 1.5rem;
        align-items: center;
        margin-right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
        margin-top: 50px;
    }
    
    .multimedia {
        text-align: left;
        margin: 0;
    }

    .producerin {
        text-align: right;
        margin: 0;
    }
    
    /* Typography - Mobile - Consistent sizing for all phones */
    h1 {
        white-space: normal;
        font-size: 38px;
        word-spacing: -1px;
    }
    
    h2 {
        white-space: normal;
        letter-spacing: 100px;
        position: relative;
        top: auto;
        right: auto;
        letter-spacing: normal;
        font-size: clamp(2rem, 6vw, 3rem);
        padding-right: 0;
    }
    
    h3 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    h4 {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
        text-align: center;
    }
    
    /* Smaller paragraph text as requested */
    p {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
        line-height: 1.5;
        text-align: left;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .uebermich_titel,
    .kontakt_titel {
        text-align: center;
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    /* Section styling for mobile consistency */
    .uebermich,
    .projekte,
    .kontakt {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
        padding: 1.5rem 1rem;
    }
    
    /* Project Grid - Stack Vertically - Optimized for mobile */
    .projekt-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(160px, 180px));
        gap: 1rem;
        padding: 0 1rem;
        margin: 1.5rem 0;
    }
    
    .projekt-box {
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 160px;
    }
    
    .projekt-titel {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
        padding: 1rem;
    }
    
    /* Slideshow - Mobile - Consistent across devices */
    .slideshow-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .slides {
        height: clamp(250px, 60vw, 300px);
    }
    
    .prev, .next {
        padding: 0.6rem;
        font-size: 1.1rem;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}

/* TABLET: 769px to 1200px (All iPad sizes) */
@media (min-width: 768px) and (max-width: 1200px) {
    .menu-toggle {
        display: none;
    }
    
    .menu {
        display: flex !important;
    }
    
    /* Hero Section - Mobile Style for Tablet */
    .einstieg {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .portrait {
        width: min(60vw, 350px);
        height: min(45vw, 300px);
        order: 1;
        margin: 0 auto;
    }
    
    .start2 {
        order: 2;
        margin-left: 0;
        align-items: center;
        gap: 0.5rem;
        margin-top: -50px;
        max-width: 100%;
    }
    
    .start,
    .start1 {
        text-align: center;
        position: static;
        top: auto;
        right: auto;
        width: 100%;
    }

    .start {
        margin-top: -1vh;
        gap: 0px;
        width: 100%;
    }

    .toptop,
    .topsecond,
    .topsecond2 {
        letter-spacing: 9px;
        word-spacing: -30px;
    }
    
    .rolle {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 50px;
        align-items: center;
        margin-right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
    }
    
    .multimedia,
    .producerin {
        text-align: center;
        margin: 0;
    }
    
    .multimedia {
        text-align: left;
    }

    .producerin {
        text-align: right;
    }
    
    /* Typography - Tablet (similar to mobile) */
    h1 {
        white-space: normal;
        font-size: clamp(3rem, 7vw, 4rem);
        word-spacing: normal;
    }
    
    h2 {
        white-space: normal;
        position: relative;
        top: auto;
        right: auto;
        letter-spacing: normal;
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        padding-right: 0;
    }
    
    .uebermich_titel,
    .kontakt_titel {
        text-align: center;
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    /* Project Grid - Desktop Style (2 Columns) for Tablet */
    .projekt-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        grid-template-rows: repeat(3, 220px);
        gap: 2rem;
        padding: 0 2rem;
        max-width: 900px;
        margin: 3rem auto;
    }
}

/* DESKTOP: 1201px and above */
@media (min-width: 1201px) {
    .menu-toggle {
        display: none;
    }
    
    .menu {
        display: flex !important;
    }
    
    /* Hero Section - Desktop Layout */
    .einstieg {
        flex-direction: row;
        gap: 4rem;
        justify-content: space-between;
        margin: 0 auto;
        max-width: 1400px;
        padding: 4rem 2rem;
    }
    
    .portrait {
        margin-right: 3rem;
    }
    
    /* Project Grid - Desktop 2 Columns Optimized */
    .projekt-grid {
        grid-template-columns: repeat(2, 400px);
        grid-template-rows: repeat(3, 250px);
        gap: 2rem;
        justify-content: center;
        margin: 4rem auto;
        max-width: 1200px;
    }
}