:root {
    --clr-neutral-400: #EFEEEC;
    --clr-accent-400: #EBE2B9;
    --clr-accent-600: #EFCD38;
    --clr-alt-200: #DBE7D6;
    --clr-alt-400: #CCD7C7;
    --clr-alt-600: #A2BCA3;
    --clr-alt-800: #697C6A;

    --fs-1600: 4rem;
    --fs-900: 2.25rem;
    --fs-700: 1.75rem;
    --fs-500: 1.25rem;
    --fs-400: 1rem; 
    --fs-300: 0.875rem; 

    --fw-300: 300;
    --fw-400: 400; 
    --fw-700: 700;
    --fw-900: 900;

    --p-width: 75ch;

    --mobile-width: 415px;
    --tablet-width: 1100px;

    --mobile-inline-padding: 3rem;

    --grid-gap: 4px;
}

@media only screen and (max-width: 700px) {
    :root {
        --fs-1600: 3.75rem;
        --fs-900: 1.75rem;
        --fs-700: 1.5rem;
        --fs-500: 1rem;
        --fs-400: 0.875rem; 
    }
}

@font-face {
    font-family: Chloe;
    src: url(/files/fonts/Chloe-Regular.otf);
}

@font-face {
    font-family: Open-Sans;
    src: url(/files/fonts/OpenSans-VariableFont_wdth\,wght.ttf);
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Global styles */

body {
    font-family: 'Open Sans', sans-serif;
    font-size: var(--fs-400);
    font-weight: var(--fw-400);
    line-height: 2.1;
    color: var(--clr-alt-800);
    background-color: var(--clr-neutral-400);
}

h1, 
h2, 
h3, 
h4 {
    font-family: 'Chloe';
    font-weight: normal;
    line-height: 1.1;
}

h2 {
    font-size: var(--fs-900);
    margin-block: 1.25rem 0.25rem
}

p {
    padding: 1rem 0;
    font-size: var(--fs-500);
}

a {
    font-size: var(--fs-500);
    font-weight: var(--fw-400);
    line-height: 2;
    color: var(--clr-alt-800);
}

u {
    text-decoration: none;
    font-weight: var(--fw-300);
}


/* composition */
.wrapper {
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 10px;
    height: 100vh;
}

.hstack {
    display: flex;
    flex-direction: row;
}

.vstack {
    display: flex;
    flex-direction: column;
}

.zstack {
    display: grid;
    align-items: center;
    justify-items: center;
}

.zstack > * {
	grid-area: 1/1/1/1;
}

.zstack-text-item {
    margin: 20%;
    font-size: max(1.2rem, calc(35vw * 0.08));
}

@media only screen and (max-width: 415px) {
    .zstack-text-item {
        font-size: 1.9rem;
    }
}

.flex-top {
    display: flex;
    align-items: baseline ;
}

.flex-align-end {
    display: flex;
    align-items: end;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.5fr 4px 0.5fr 1fr;
    grid-template-rows: 1fr 4px 1fr;
}

@media only screen and (max-width:1100px) {
    .faq-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, auto);
    }
}

.footer-grid {
    display: grid;
    grid-template-rows: repeat(4, 1fr) 5vw 0.3fr 1fr;
    grid-template-columns: 0.3fr minmax(100px, 0.35fr) minmax(100px, 0.35fr) 2.5vw minmax(142px, 0.5fr) 0.3fr;
    background: linear-gradient(var(--clr-neutral-400) 0% 10%, var(--clr-accent-400) 10% 100%);
}

@media only screen and (max-width:900px) {
    .hero-grid {
        grid-template-columns: 3vw minmax(100px, 0.35fr) minmax(100px, 0.35fr) 2.5vw minmax(142px, 0.7fr) 3vw;
    }
}

.cta {
    grid-row: 1 / span 2;
    grid-column: 2 / 4;
}

.phone {
    grid-row: 3;
    grid-column: 3;
    place-self: end;
}

.phone:hover > img {
    transition: ease-in-out 0.75s;
    transform: rotate(-45deg);
    scale: 1.1;
}

.phone > img {
    transition: ease-in-out 0.35s;
}

.form-container {
    grid-row: 2 / 5;
    grid-column: 5;
}

.footer-item:nth-of-type(1) {
    grid-row: 7;
    grid-column: 2;
}

.footer-item:nth-of-type(2) {
    grid-row: 7;
    grid-column: 5;
}

.footer-item:last-of-type {
    grid-row: 7;
    grid-column: 2;
}

@media only screen and ( max-width: 415px ) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .cta {
        position: absolute;
        left: -10%;
        min-width: 120%;
    }

    .phone {
        align-self: start;
        width: 50%;
    }

    .phone a {
        font-size: min(16vh,3.7vw);
    }

    .form-container {
        margin-top: 130vw;
    }

    .footer-item:nth-of-type(1) {
        padding-top: 15vh;
    }

}

.contact-bg {
    display: block;
    width: 100%;
    height: 100%;
    margin-top: 10rem;
    margin-bottom: 0px;
}

.paragraph-wrapper {
    margin-block: 7rem;
    margin-inline: auto;
    padding-inline: 3rem;
    max-width: calc(var(--p-width) + 6rem);
}

/* utility */
.absolute {
    position: absolute;
}

.top {
    top: 0px;
}

.right {
    right: 0px;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.full-height {
    height: 100vh;
    min-height: 20rem;
}

.p-8 {
    padding: .5rem;
}

p-16 {
    padding: 1rem;
}

.p-32 {
    padding: 2rem;
}

.p-48 {
    padding: 3rem;
}

.p-64 {
    padding: 4rem;
}

.m-0-auto {
    margin: 0 auto;
}

.m-8 {
    margin: .5rem;
}

.m-16 {
    margin: 1rem;
}

.m-32 {
    margin: 2rem;
}

.m-48 {
    margin: 3rem;
}

.fw-300 {
    font-weight: var(--fw-300);
}

.fs-400 {
    font-size: var(--fs-400);
}

.fs-500 {
    font-size: var(--fs-500);
}

.fs-700 {
    font-size: var(--fs-700);
}

.fs-900 {
    font-size: var(--fs-900);
}

.fs-1600 {
    font-size: var(--fs-1600);
}

.fs-2-5vmax {
    font-size: 2.5vmax;
}

.lh-1 {
    line-height: 1;
}

.normal-first-line::first-line {
    font-weight: var(--fw-400);
}

.border-radius-100 {
    border-radius: 100rem;
}

.border-radius-8 {
    border-radius: 0.5rem;
}

.clr-neutral-400 {
    color: var(--clr-neutral-400);
}

.clr-accent-400 {
    color: var(--clr-accent-400);
}

.clr-alt-200 {
    color: var(--clr-alt-200);
}

.clr-alt-400 {
    color: var(--clr-alt-400);
}

.clr-alt-600 {
    color: var(--clr-alt-600);
}

.clr-alt-800 {
    color: var(--clr-alt-800);
}

.bg-neutral-400 {
    background-color: var(--clr-neutral-400);
}

.bg-accent-400 {
    background-color: var(--clr-accent-400);
}

.bg-alt-200 {
    background-color: var(--clr-alt-200);
}

.bg-alt-400 {
    background-color: var(--clr-alt-400);
}

.bg-alt-600 {
    background-color: var(--clr-alt-600);
}

.bg-alt-800 {
    background-color: var(--clr-alt-800);
}

.border-clr-alt-800 {
    border-color: var(--clr-alt-800);
}

.w-3ch {
    width: 3ch;
}

.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}
.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-100 {
    width: 100%;
}

.w-full-view {
    width: 100vw;
}

.h-100 {
    height: 100%;
}

.r-90 {
    transform: rotate(90deg);
}

.fit-content {
    width: fit-content;
}

.perspective-3d {
    transform-style: preserve-3d;
}

.z--1 {
    z-index: -1;
}

.z--2 {
    z-index: -2;
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.clip-circle {
    clip-path: url(#clipShape);
}

.break-word {
    word-wrap: break-word;
    word-break: break-all;
}

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

.text-align-left {
    text-align: left;
}

.align-self-end {
    align-self: end;
}

.justify-items-start {
    justify-items: start;
}

.not-displayed {
    display: none;
}

.show-on-hover {
    opacity: 0;
    transition: 0.25s;
}

button:hover .show-on-hover {
    opacity: 1;
    transition: 0.25s;
}

/* block */
.button {
    background-color: var(--clr-neutral-400);
    border-width: 0.2rem;
    border-style: solid;
    border-color: var(--clr-alt-600);
    border-radius: var(--border-radius-100, 100rem);
    width: fit-content;
    padding: var(--p-16, 0.5rem) var(--p-32, 2rem);
    font-size: var(--fs-500);
    text-decoration: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 14vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 6rem;
}

.logo {
    background: radial-gradient(var(--clr-neutral-400) 55%, transparent 70%);
    width: clamp(4rem, 15%, 500px);
    transition: 0.15s;
}

.logo-position {
    position: relative;
    top: 10%;
    left: 10%;
}

.contact-btn {
    font-size: 1.7vmax;
    margin-top: calc(5% - 1.5ex - 0.5rem);
    box-shadow: 0px 0px 2px 0.1px var(--clr-alt-800);
    transition: ease-in-out .35s;
}

@media only screen and ( max-width: 415px ) {
    .contact-btn {
        border-width: 0.1rem;
    }
}


.contact-btn:hover {
    background-color: var(--clr-alt-800);
    border-color: var(--clr-alt-800);
    color: var(--clr-neutral-400);
    box-shadow: 0px 0px 2px 0.1px var(--clr-accent-400);
    transition: ease-in-out .2s;
}

.contact-btn-position {
    position: fixed;
    top: 10%;
    right: 10%;
}

.title-container {
    /*margin-left: calc(-0.0025 * ((100 * 100) * 1vw) + 3.954 * 100vw);*/
    position: absolute;
    top: 45vh;
    left: 35vw;
    width: 42vw;
}

@media only screen and ( max-width: 415px ) {
    .title-container {
        top: 30vh;
        left: 20vw;
        width: 65vw;
    }
}

.title {
    font-size: max(4vmax, 2rem);
}

.subtitle {
    float: right;
    margin-right: 20%;
}

.question {
    display: flex;
    background-color: var(--clr-alt-400);
    font-family: "Chloe";
    font-size: var(--fs-900);
    line-height: 1;
    align-items: center;
    user-select: none;
    color: var(--clr-alt-800);
    box-shadow: none;
    border: none;
    grid-column: 1;
    text-align: start;
    transition: 0.25s;
    overflow: hidden;
    margin: 0;
}

.question:nth-last-of-type(odd) {
    grid-column: 3;
}

.question:nth-of-type(3),
.question:nth-of-type(4) {
    grid-row: 3;
}

@media only screen and (max-width:1100px) {
    .question:nth-of-type(1n){
        grid-row: auto;
    }
}

.question:hover {
    background-color: var(--clr-alt-200);
    transition: 0.25s;  
}

.question.active {
    background-color: var(--clr-alt-200);
    background-image: url(/files/svgs/dots_green.svg);
}

@media screen and ( max-width:1100px ) {
    .question {
        grid-column: 1 !important;
        grid-row: auto;
    }
}

.answer {
    display: none;
    background-color: var(--clr-alt-600);
    grid-row: 1 / span 3;
    grid-column: 4;
}

@media screen and ( max-width:1100px ) {
    .answer {
        grid-column: 1;
        grid-row: auto;
    }
}

.answer-placeholder {
    display: block;
    color: var(--clr-neutral-400);
    grid-row: 1 / span 3;
    grid-column: 4;
    transition: 1s;
}

@media screen and ( max-width:1100px ) {
    .answer-placeholder {
        display: none;
    }
}

.avatar {
    width: 30vw;
    float: right;
    margin: 1rem;
    shape-outside: circle(50%);
    margin: 2rem;
    shape-outside: circle(50%);
    margin-right: 9vw;
}

.text-input {
    border: 0.1rem solid var(--clr-alt-600);
    border-radius: var(--border-radius-9, 9px);
    outline: 0rem solid var(--clr-neutral-400);
    margin-block: 1rem;
    padding-block: 1.5rem;
    padding-inline: 2.5rem;
    width: 100%;
    color: var(--clr-alt-800);
    line-height: 1.3;
    resize: none;
}

.text-input:focus {
    outline: 0.4rem solid var(--clr-neutral-400);
    box-shadow: 0px 0px 10px 8px var(--clr-neutral-400);
    transition: ease-in-out .15s;
}

.text-input::placeholder {
    font-family: 'Open-Sans', sans-serif;
    font-size: var(--fs-400);
    font-weight: var(--fw-400);
    color: var(--clr-alt-800);
    opacity: 0.6;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-inline: -0.4rem;
}

.btn-checkbox-container {
    flex: 1 1 fit-content; /*  No stretching: */
    padding: 1rem 0;
    margin-inline: 0.4rem;
    width: 100%;
}

.btn-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.btn-checkbox {
    display: block;
    background-color: var(--clr-neutral-400);
    border: 0.2rem solid var(--clr-alt-600);
    padding: var(--p-16, 0.5rem) var(--p-32, 2rem);
    border-radius: var(--border-radius-100, 100rem);
    text-align: center;
    user-select: none;
    transition: 0.1s;
}

.btn-checkbox-container input[type="checkbox"]:checked + .btn-checkbox {
    background-color: var(--clr-alt-600);
    color: var(--clr-neutral-400);
}

.inline-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.inline-checkbox-container input[type="checkbox"]:checked + label .custom-checkbox {
    opacity: 0;
    transition: 0.05s;
}

.custom-checkbox {
    width: 90%;
}

.dots-position-1 {
    top: -15.5%;
    left: -13.5%;
    width: 50vw;
    min-width: 344px;

    transform: translateZ(-2px);
}

@media only screen and ( max-width: 415px ) {
    .dots-position-1 {
        left: -195px;
        top: 32px;
    }
}

.dots-position-2 {
    top: 50%;
    right: -30%;
    width: 50vw;
    min-width: 295px;

    transform: translateZ(-3px);
}

@media only screen and ( max-width: 415px ) {
    .dots-position-2 {
        right: -158px;
        top: 385px;
    }
}

.circle-dot-position {
    top: 50%;
    left: calc(14vw * 0.75);
    min-width: 12rem;
}


/* Exeption */
@media only screen and (min-width: 415px) {
    .contact-btn {
        content: 'Anfrage';
    }
}

.button[data-state='filled'] {
    background-color: var(--clr-alt-600);
    border-color: var(--clr-alt-600);
    color: var(--clr-neutral-400);
    transition: ease-in-out .35s;
}

.button[data-state='filled']:hover {
    background-color: var(--clr-alt-800);
    border-color: var(--clr-alt-800);
    color: var(--clr-neutral-400);
    transition: ease-in-out .35s;
}