/* 1. Fonts
   ========================================================================== */

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-light.woff2") format("woff2"),
         url("../../fonts/kitsch-light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-light-italic.woff2") format("woff2"),
         url("../../fonts/kitsch-light-italic.woff") format("woff");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-medium.woff2") format("woff2"),
         url("../../fonts/kitsch-medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-medium-italic.woff2") format("woff2"),
         url("../../fonts/kitsch-medium-italic.woff") format("woff");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-semibold-italic.woff2") format("woff2"),
         url("../../fonts/kitsch-semibold-italic.woff") format("woff");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-bold.woff2") format("woff2"),
         url("../../fonts/kitsch-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face{
    font-family: "Kitsch";
    src: url("../../fonts/kitsch-bold-italic.woff2") format("woff2"),
         url("../../fonts/kitsch-bold-italic.woff") format("woff");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* 2. Tokens
   ========================================================================== */

:root{
    /* Colours */
    --c-text:        rgb(94, 94, 93);
    --c-cream:       rgb(238, 229, 212);
    --c-brown:       rgb(157, 122, 104);
    --c-green:       rgb(95, 111, 99);
    --c-green-dark:  rgb(76, 88, 78);
    --c-green-light: rgb(151, 172, 150);
    --c-grey:        rgb(234, 234, 234);
    --c-tile:        rgba(243, 225, 205, 0.9);

    /* Spacing — the whole page grid is built on the 4.30vw gutter */
    --gutter:   4.30vw;
    --space-md: 2.65vw;
    --space-sm: 2.15vw;
    --space-xs: 1.325vw;
    --hero-top: 11.96vw;

    /* Widths */
    --page-width: 1280px;
    --media-width: 1180px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    --font-stack: "Kitsch", Helvetica, Arial, Lucida, sans-serif;
}


/* 3. Base & reset
   ========================================================================== */

html{
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-stack);
}

body{
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    color: var(--c-text);
}

h1,
h2,
h3,
h4,
h5{
    margin: 0;
    padding: 0;
}

ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

figure{
    margin: 0;
    padding: 0;
}


/* 4. Typography
   ========================================================================== */

#Werte{
    color: var(--c-cream);
}

strong{ font-weight: 500; }

h1{
    color: var(--c-brown);
    font-size: clamp(22px, 0.5129rem + 2.2989vw, 52px);
    line-height: 1.19;
    font-weight: 400;
}

h1 strong{
    font-weight: 700;
    font-style: italic;
}

h1 + p,
h1 + div + p{
    font-size: clamp(14px, 0.2428rem + 1.6858vw, 36px);
    line-height: 1.16;
    font-style: italic;
}

h1 + p strong{
    font-weight: 500;
}

h2{
    color: var(--c-cream);
    font-size: clamp(39px, 0.0237rem + 6.4368vw, 123px);
    line-height: 1.08;
    font-weight: 400;
    font-style: italic;
}

h3{
    font-size: clamp(26px, 4.9042vw - 0.2141rem, 90px);
    line-height: 1.12;
    font-weight: 300;
}

h3 strong{
    font-weight: 400;
    font-style: italic;
}

h4{
    font-size: clamp(16px, 2.7586vw - 0.0345rem, 52px);
    line-height: 1;
    font-weight: 300;
}

h4 strong{
    font-weight: 500;
}

header nav{
    font-size: clamp(6px, 0.4052rem + 0.9195vw, 16px);
}

#Werte h4{
    font-size: clamp(20px, 0.0144rem + 3.2950vw, 63px);
    line-height: 1.19;
}

#Werte h4  strong{
    font-style: italic;
}

.siegel__text h4 strong{
    font-style: italic;
}

.siegel__text a strong{
    font-weight: 500;
}

#Nachhaltigkeit h4{
    font-style: italic;
}

h5{
    font-size: clamp(11px, 1.9157vw - 0.0309rem, 36px);
    line-height: 1.22;
    font-weight: 500;
    font-style: italic;
}

h5 + ul{
    font-size: clamp(11px, 1.9157vw - 0.0309rem, 36px);
    line-height: 1.22;
    font-weight: 400;
    font-style: italic;
    margin-block-start: 1em;
}

figcaption button,
p{
    font-family: var(--font-stack);
    font-size: clamp(12px, 0.4052rem + 0.9195vw, 24px);
    font-weight: 300;
    line-height: 1.16;
}

p:first-child{ margin-block-start: 0; }
p:last-child{ margin-block-end: 0; }

p a,
footer a{
    color: inherit;
}

footer a,
p a:hover{
    text-decoration: none;
}

.big-text{
    font-size: clamp(15px, 2.5287vw - 0.0108rem, 48px);
}

.content-centered{
    text-align: center;
}


/* 5. Surfaces
   ========================================================================== */

.bg-green-dark{
    color: var(--c-cream);
    background: var(--c-green);
}

.bg-green{
    color: rgb(255, 255, 255);
    background: var(--c-green-light);
}

.bg-brownish{
    color: var(--c-text);
    background: var(--c-cream);
}

.bg-grey{
    background: var(--c-grey);
}


/* 6. Layout primitives
   ========================================================================== */

section{
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Cream backdrop behind the hero */
section:first-of-type::before{
    content: "";
    width: 100%;
    height: 90vh;
    display: block;
    top: 0;
    left: 0;
    position: absolute;
    background: var(--c-cream);
}

.section-spacing-vertical{
    padding-top: var(--gutter);
    padding-bottom: var(--gutter);
    box-sizing: border-box;
}

.content-column{
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--page-width);
    margin: 0 auto;
    position: relative;
}

.content-two-columns{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.content-two-columns--center{
    justify-content: center;
}

.content-two-columns--reverse{
    flex-direction: row-reverse;
    justify-content: center;
    gap: var(--gutter);
    padding-bottom: var(--space-md);
}

.content-two-columns--top{
    align-items: start;
}

.text-column{
    max-width: 32em;
}

.content-tiles{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}

/* Tiles shrink together instead of overflowing the column */
.content-tiles > li{
    flex: 0 1 auto;
    min-width: 0;
}

.content-tiles > li img{
    display: block;
    max-width: 100%;
    height: auto;
}


/* 7. Components
   ========================================================================== */

/* Header ------------------------------------------------------------------- */

header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    top: 0;
    right: 0;
    left: 0;
    position: absolute;
    z-index: 11;
}

header > div{
    max-width: var(--page-width);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

header .logo{
    max-width: 310px;
    margin-top: -42px;
}

header .logo img{
    width: 100%;
    height: auto;
    display: block;
}

header ul{
    display: flex;
    flex-direction: row;
    gap: var(--space-xs);
    padding-top: 2.4vw;
}

@media screen and (min-width: 801px) {
    header ul{
        white-space: nowrap;
    }
}

header ul li a{
    color: var(--c-green);
    text-transform: uppercase;
    text-decoration: none;
}

header ul li a:hover{
    color: var(--c-green-dark);
}

/* Vertically stacked section labels ---------------------------------------- */

.tagline{
    display: flex;
    flex-direction: column;
    position: absolute;
    line-height: 1.2;
    text-align: center;
}

.tagline--right{
    right: 0;
}

/* Decorative illustrations that overhang the section edges ------------------ */

.scroll-box{
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.scroll-box figure{
    transform: translate(var(--shift-x, 0), var(--shift-y, 0)) translate3d(0, var(--parallax-y, 0px), 0);
}

.scroll-box.has-parallax figure{
    will-change: transform;
}

@media (prefers-reduced-motion: reduce){
    .scroll-box figure{
        --parallax-y: 0px;
    }
}

.scroll-box img{
    width: var(--figure-width);
    height: auto;
    display: block;
}

.scroll-box--stalk{
    bottom: 0;
    --shift-x: -15%;
    --shift-y: -15%;
    --figure-width: 31.49vw;
}

.scroll-box--woman{
    right: 0;
    --shift-x: 35%;
    --shift-y: -50%;
    --figure-width: 34.75vw;
}

.scroll-box--balls{
    --shift-x: -35%;
    --shift-y: -65%;
    --figure-width: 54.8vw;
}

.scroll-box--flower{
    right: 0;
    --shift-x: 15%;
    --shift-y: -50%;
    --figure-width: 31.39vw;
}

.scroll-box--double-balls{
    top: 50%;
    --shift-x: -5%;
    --shift-y: -30%;
    --figure-width: 28.24vw;
}

/* Hero video --------------------------------------------------------------- */

#hero__video__container{
    width: 100%;
    max-width: var(--media-width);
    display: block;
    margin: 0 auto;
    text-align: center;
}

figure video{
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figcaption{
    display: flex;
    flex-direction: row;
    justify-content: end;
    max-width: var(--media-width);
    margin: 0 auto;
    padding-top: 1vw;
    padding-bottom: 1vw;
}

figcaption button{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
}

figcaption button::before{
    content: "";
    width: 50px;
    height: 48px;
    display: block;
    margin-right: 0.6em;
    background: url(../icns/Lautsprecher_beige.png);
    background-size: 100% 100%;
}

/* Numbered accordion items ------------------------------------------------- */

.item{
    display: flex;
    flex-direction: row;
    gap: var(--space-xs);
    font-size: clamp(9px, 1.6092vw - 0.0409rem, 30px);
    font-weight: 300;
    line-height: 1;
}

.item > div{
    max-width: 26vw;
    padding-top: var(--space-md);
}

.item--5 > div{
    max-width: 40vw;
}

.item details,
.item a{
    cursor: pointer;
}

.item details + a{
    color: inherit;
    text-decoration: none;
}

.item details[open] + a{
    opacity: 0;
}

.item summary{
    display: block;
}

.item summary + div{
    max-width: 26vw;
    display: block !important;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
}

.item--5 summary + div{
    max-width: 40vw;
}

.item details[open] summary + div{
    opacity: 1;
}

/* Image tiles with a hover caption ----------------------------------------- */

.content-tiles-hover li{
    position: relative;
    overflow: hidden;
}

.content-tiles-hover li > div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    padding: 0.8em;
    box-sizing: border-box;
    color: var(--c-green-dark);
    text-align: center;
    background: var(--c-tile);
    opacity: 0;
    transform: translate(0, 100%);
    transition: all .5s ease;
}

.content-tiles-hover li > div *{
    color: var(--c-green-dark);
    font-size: clamp(7px, 1.2261vw - 0.0223rem, 23px);
    line-height: 1.04;
}

.content-tiles-hover li:hover > div{
    opacity: 1;
    transform: translate(0, 0);
}

/* Footer ------------------------------------------------------------------- */

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: clamp(8px, 0.0402rem + 1.2261vw, 24px);
    font-weight: 300;
}

footer a{
    display: block;
}

footer h5{
    font-style: normal;
}

footer img{
    max-width: 158px;
    height: auto;
    display: block;
}

footer hr{
    width: 100%;
    max-width: 600px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    border: 0;
    border-top: 1px solid var(--c-text);
}

footer nav{
    margin-bottom: var(--space-md);
}

footer nav ul{
    display: flex;
    flex-direction: row;
}

.footer__intro{
    padding-bottom: var(--space-md);
}

.footer__links{
    padding-top: var(--space-md);
}

/* Back-to-top button ------------------------------------------------------- */

.to-top{
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    position: fixed;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--c-cream);
    background: var(--c-green);
    text-decoration: none;
    opacity: 0;
    transform: translateY(0.5rem);
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.to-top.is-visible{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.to-top svg{
    width: 1rem;
    height: 1rem;
}


/* 8. Sections
   ========================================================================== */

/* Hero (#top) -------------------------------------------------------------- */

.hero{
    padding-top: var(--hero-top);
}

.hero__inner{
    max-width: var(--page-width);
    margin: 0 auto;
}

.hero__intro{
    position: relative;
    padding-top: calc(var(--hero-top) + var(--gutter));
    padding-left: 60px;
}

.hero__badge{
    max-width: 60%;
    top: 0;
    right: -4vw;
    position: absolute;
}

.hero__badge figure{
    width: 100%;
}

.hero__badge figure img{
    width: 100%;
}

.hero__lead{
    display: flex;
    justify-content: end;
    padding-right: var(--gutter);
    padding-bottom: var(--space-md);
}

.hero__lead p{
    max-width: 420px;
}

/* Beste Baumwolle (#Baumwolle) --------------------------------------------- */

.cotton__columns{
    justify-content: center;
    align-items: end;
    gap: var(--space-sm);
}

.cotton__heading{
    max-width: 554px;
}

.cotton__text{
    max-width: 360px;
    margin-bottom: calc(var(--gutter) * -1);
}

/* Premium-Garn (#Garn) ----------------------------------------------------- */

#Garn{
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: calc(2 * var(--gutter));
}

.garn__heading{
    max-width: 700px;
    align-self: end;
    padding-bottom: var(--space-sm);
}

.garn__text{
    max-width: 630px;
    align-self: center;
}

.tagline--garn{
    top: calc(2 * var(--gutter));
}

/* Nachhaltigkeit (#Nachhaltigkeit) ----------------------------------------- */

.principles__intro{
    display: flex;
    flex-direction: row;
    justify-content: start;
    padding-left: 8.6vw;
    max-width: var(--media-width);
    padding-bottom: var(--gutter);
}

.principles{
    display: flex;
    flex-direction: column;
    padding-bottom: var(--gutter);
}

.item > figure{
    height: 13.75vw;
}

.item > figure img{
    height: 100%;
}

.item:first-child{
    align-self: center;
    transform: translateX(-40%);
}

.item--2{
    align-self: center;
    transform: translateX(70%);
}

.item--2 summary{
    max-width: 500px;
}

.item--3{
    align-self: center;
    margin-top: var(--gutter);
}

.item--4{
    align-self: center;
    transform: translateX(50%);
    margin-top: var(--gutter);
}

.item--5{
    align-self: center;
    transform: translateX(-30%);
}

/* Siegel (#Siegel) --------------------------------------------------------- */

.siegel{
    padding-bottom: var(--gutter);
}

.tagline--siegel{
    padding-top: var(--gutter);
}

.siegel__hangtag img{
    width: 28.66vw;
    height: auto;
    display: block;
}

.siegel__text > h4,
.siegel__text > p:first-of-type{
    max-width: 420px;
}

/* Pflanzanleitung (#Pflanzanleitung) --------------------------------------- */

.tagline--pflanz{
    transform: translateY(-65%);
}

.pflanz__intro{
    max-width: 930px;
}

.pflanz__tiles{
    padding-top: var(--space-md);
}

/* Responsive optimization -------------------------------------------------- */

@media screen and (max-width: 1900px) {

    #Heritage #Baumwolle > .content-column{
        display: flex;
        flex-direction: column;
    }

    #Heritage .cotton__columns{
        max-width: 75vw;
        margin: 0 auto;
    }

    #Heritage .cotton__text{
        width: 30vw;
    }

    #Heritage .cotton__columns h2{
        max-width: 30vw;
    }

    #Heritage #Garn{
        max-width: 50vw;
        align-self: end;
    }

    #Heritage .garn__text{
        max-width: 45vw;
        align-self: start;
        margin-left: -8.6vw;
    }

    #Heritage .bg-green-dark p,
    #Heritage .bg-green p{
        max-width: 35vw;
    }

}

@media screen and (max-width: 1750px) {

    header .logo{
        width: 20vw;
        min-width: 120px;
        margin-top: -3vw;
    }

    .hero__badge{
        right: 0;
    }

}

@media screen and (max-width: 1600px) {

    .hero__inner{
        padding-bottom: var(--gutter);
    }

    #Pflanzanleitung .pflanz__intro{
        max-width: 75vw;
    }

    .principles__intro{
        justify-content: center;
        padding-left: 0;
    }

}

@media screen and (max-width: 1400px) {

    .hero__inner {
        padding-bottom: calc(2 * var(--gutter));
    }

}

@media screen and (max-width: 1100px) {

    header nav{
        font-size: clamp(6px, 0.0876rem + 0.7663vw, 16px);
    }

    .hero__intro{
        padding-top: calc(var(--hero-top) + 2 * var(--gutter));
    }

}

@media (orientation: portrait) {

    section:first-of-type::before{
        height: 50vw;
    }

}

/* MOBILE ------------------------------------------------------------------- */

.nav__toggle {
    right: calc(1 * var(--gutter));
    top: calc(1 * var(--gutter));
    position: fixed;
    z-index: 9;
	display: none;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	place-items: center;
    background: transparent;
    border: 0;
}

.nav__toggle span {
	display: block;
	width: 2rem;
	height: 2px;
	background-color: rgb(106, 143, 101);
    transform-origin: center center;
	transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__toggle span.visually-hidden {
    opacity: 0;
}

@media screen and (max-width: 800px) {

    header > div{
        width: 100%;
    }

    .nav__toggle {
		display: grid;
	}

	.nav__list {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
		position: fixed;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: calc(var(--gutter) / 2);
		padding: var(--gutter);
		background: rgb(106, 143, 101);
		box-shadow: -12px 0 40px rgb(0 0 0 / 8%);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.4s var(--ease), visibility 0.4s;
	}

	.nav__list a{
        font-size: 30px;
        color: var(--c-cream);
    }

	nav.is-open .nav__toggle span{
        background-color: var(--c-cream);
    }

	nav.is-open .nav__toggle span:nth-child(1) {
		transform: translateY(10px) rotate(45deg);
	}

	nav.is-open .nav__toggle span:nth-child(2) {
		opacity: 0;
	}

	nav.is-open .nav__toggle span:nth-child(3) {
		transform: translateY(-10px) rotate(-45deg);
	}

	nav.is-open .nav__list {
		transform: translateX(0);
		visibility: visible;
	}

    .hero__intro{
        padding-top: 40vw;
    }

    .hero__intro p{
        max-width: 50vw;
    }

    .hero__intro p br{
        content: ' ';
        display: none;
    }

    .hero__intro p br::after {
        content: ' '
    }

}

@media screen and (max-width: 480px) {

    header .logo{
        margin-top: -7vw;
    }

    .nav__toggle {
        right: calc(2 * var(--gutter));
        top: calc(2 * var(--gutter));
	}

    .content-column{
        width: calc(100% - 4 * var(--gutter));
    }

    .content-two-columns--reverse{
        flex-direction: column;
    }

    .content-two-columns--reverse br{
        content: ' ';
        display: none;
    }

    .content-two-columns--reverse br::after{
        content: ' '
    }

    .content-two-columns{
        max-width: 100% !important;
        flex-direction: column;
    }

    .tagline{
        padding: var(--gutter) 0;
        position: relative;
        flex-direction: row;
    }

    #Garn .tagline--garn{
        top: 0;
    }

    #Siegel .tagline--siegel{
        position: absolute;
    }

    #Siegel .tagline--pflanz{
        transform: none;
    }

    .hero br{
        content: ' ';
        display: none;
    }

    .hero br::after{
        content: ' '
    }

    .hero__intro{
        padding: calc(2 * var(--gutter)) 0 0;
    }

    .hero__intro h1{
        text-align: center;
        padding: var(--gutter) 0 calc(2 * var(--gutter));
    }

    .hero__intro p {
        max-width: 100% !important;
    }

    .hero__badge{
        max-width: 100% !important;
        position: relative;
    }

    .hero__lead + .content-column{
        width: 100% !important;
    }

    #Heritage .bg-green-dark p, #Heritage .bg-green p {
        max-width: 100% !important;
    }

    #Heritage .cotton__heading{
        max-width: 100% !important;
    }

    #Heritage .cotton__columns h2{
        max-width: 100% !important;
    }

    #Heritage .cotton__text {
        width: 100% !important;
        max-width: 100% !important;
    }

    #Heritage #Garn {
        max-width: 100% !important;
    }

    #Heritage .garn__heading{
        max-width: 100% !important;
    }

    #Heritage .garn__text {
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .principles__intro br{
        content: ' ';
        display: none;
    }

    .principles__intro br::after{
        content: ' '
    }

    .principles .item{
        align-self: start;
        gap: var(--gutter);
        transform: none !important;
        margin: 0;
    }

    .principles .item--2,
    .principles .item--4{
        padding-left: 8vw;
    }

    .principles .item + .item{
        padding-top: var(--gutter);
    }

    .principles .item > div{
        max-width: 100% !important;
    }

    .principles .item details > div strong{
        display: none;
    }

    .principles .item summary + div {
        max-width: 100% !important;
        position: relative;
        opacity: 1;
    }

    .pflanz__tiles > li{
        flex: 1 1 auto;
    }

    .pflanz__tiles > li img{
        width: 100%;
    }

    #Siegel .bg-grey .content-tiles{
        flex-direction: column;
        gap: var(--gutter);
    }

    .pflanz__tiles {
        flex-wrap: wrap;
        gap: var(--gutter);
    }

    .pflanz__tiles li > div *{
        font-size: clamp(12px, 0.4052rem + 0.9195vw, 24px);
    }

    .scroll-box--woman{
        --shift-y: -15%;
    }

    .scroll-box--balls{
        z-index: -1;
        --shift-x: -70%;
        --shift-y: -15%;
    }

    .scroll-box--flower{
        --shift-y: -15%;
    }

    .scroll-box--double-balls{
        top: auto;
        z-index: 1;
        bottom: -15%;
        --shift-x: -50%;
        --shift-y: 0;
    }

}
