/* ============================================================ VARIABLES ============================================================ */

/* COLORS / BOX-SHADOW / BORDER */
body {

  /* BACKGROUND */
  --clr-background: #fafafa;
  --clr-background-linear-1: linear-gradient(#e1ecfb, #fff);
  --clr-background-linear-dark: linear-gradient(153.8deg, #424242 -15.98%, #282828 61.67%);
 
  /* TEXT */
  --clr-headline: #717171;
  --clr-text: #939393;

  /* COLOR */
  --clr-primary: #e1c36e;
  --clr-primary-hover: #cd9300;
  --clr-secondary: #133d55;
  --clr-secondary-hover: #d7d7d7;

  /* BUTTONS */
  --clr-button-primary: #e1c36e;
  --clr-button-primary-hover: color-mix(in oklab, var(--clr-button-primary) 90%, white);
  --clr-button-primary-text: #f6f6f6;
  --clr-button-secondary: #ededed;
  --clr-button-secondary-hover: color-mix(in oklab, var(--clr-button-secondary) 90%, white);
  --clr-button-secondary-text: var(--clr-text);
  
  --clr-button-border: #505050;



  /* BOXSHADOW */
  --box-shadow: 4px 4px 15px 0 #4a4a4a25;
  --box-shadow-wide: 0px 0px 50px 0 #3d3d3d25;
  --box-shadow-wide-2: 16px 24px 100px 0 #00000025;

  /* BORDER */
  --border: 2px solid var(--clr-primary);
  --border-radius: 16px;


  /* TRANSITION */
  --transition: 200ms;
}

body.dark {
  
  
}

body {
  --cc-bg: var(--clr-background) !important;
  --cc-text: var(--clr-headline) !important;
  --cc-btn-primary-bg: var(--clr-headline) !important;
  --cc-btn-primary-hover-bg: color-mix(in oklab, var(--clr-headline) 50%, rgb(0, 0, 0));
}


/* ============================================================ TYPOGRAPHY ============================================================ */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900; /* Definieren Sie den Bereich der Gewichtungen der variablen Schriftart */
  font-display: swap;
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype'); /* Pfad zur ttf-Datei */
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900; /* Definieren Sie den Bereich der Gewichtungen der variablen Schriftart */
  font-display: swap;
  src: url('../fonts/Inter-VariableFont.ttf') format('truetype'); /* Pfad zur ttf-Datei */
}
@font-face {
  font-family: 'SF Pro';
  font-style: normal;
  font-weight: 100 900; /* Definieren Sie den Bereich der Gewichtungen der variablen Schriftart */
  font-display: swap;
  src: url('../fonts/SF-Pro.ttf') format('truetype'); /* Pfad zur ttf-Datei */
}

/* EIGENE FONTS */

@font-face {
  font-family: "Addington-CF";
  src: url("../fonts/Addington-CF-Thin.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Addington-CF";
  src: url("../fonts/Addington-CF-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Addington-CF";
  src: url("../fonts/Addington-CF-Demi-Bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Addington-CF";
  src: url("../fonts/Addington-CF-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}


* {
  --font: 'Addington-CF', sans-serif;
}

* {
  -webkit-font-smoothing: antialiased;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-inter: 'Inter', sans-serif;
  --font-SFpro: 'SF Pro', sans-serif;


  --font-charter: "Charter", georgia, serif;
  --font-dmsans: 'DM Sans', sans-serif;

  --font-primary: var(--font-inter);
  --font-secondary: var(--font-inter);

  --fs-h1: calc(var(--fs-p) * 3.4);
  --fs-h2: calc(var(--fs-p) * 2.4);
  --fs-h3: calc(var(--fs-p) * 1.6);
  --fs-h4: calc(var(--fs-p) * 1.4);
  --fs-h5: calc(var(--fs-p) * 1.0);
  --fs-p: 18px;
  --fs-small: calc(var(--fs-p) * 0.875);
  --fs-big: calc(var(--fs-p) * 1.6);
}

@media (max-width: 768px) {
  * {
    --fs-h1: calc(var(--fs-p) * 3.0);
    --fs-h2: calc(var(--fs-p) * 2.0);
    --fs-h3: calc(var(--fs-p) * 1.5);
    --fs-h4: calc(var(--fs-p) * 1.125);
    --fs-h5: calc(var(--fs-p) * 1.1);
    --fs-p: 16px;

  }
}

/* DEFAULT */
body {
  color: var(--clr-headline);
  font-family: var(--font);
  font-weight: 600;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: calc(var(--fs-h1));
}

h2 {
  color: var(--clr-text);
  font-size: var(--fs-h2);
  line-height: calc(var(--fs-h2) * 1.1);
  font-weight: 600;
} 

h3 {
  color: var(--clr-text);
  font-size: var(--fs-h3);
  font-weight: 800;
}

h4 {
  color: var(--clr-primary);
  font-size: var(--fs-h4);
  font-weight: 700;
}

h5 {
  font-size: var(--fs-h5);
  font-family: var(--font);
  color: var(--clr-primary);
  font-weight: 400;
}

p, li {
  color: var(--clr-text);
  font-family: var(--font);
  font-size: var(--fs-p);
  line-height: calc(var(--fs-p) * 1.6);
  font-weight: 400;
}
p.small {
  color: var(--clr-text);
  font-family: var(--font);
  font-size: var(--fs-small);
  font-weight: 400;
}
p.big {
  color: var(--clr-text);
  font-family: var(--font);
  font-size: var(--fs-big);
  font-weight: 400;
}


a {
  color: var(--clr-headline);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
}
  a:hover {
    
  }


/* ============ SCROLLBAR ============ */
/* Firefox */
html {
  scrollbar-width: normal;
  scrollbar-color: #b9b9b9 #ffffff;
}
/* Chrome und alle anderen */
html::-webkit-scrollbar {
  width: 0px;
}
html::-webkit-scrollbar-thumb {
  background-color: #858585;
  border-radius: 1rem;
}
html::-webkit-scrollbar-thumb:hover {
  background-color: #dadada;
}
html::-webkit-scrollbar-track {
  background-color: transparent;
}


/* ============ CONTAINER ============ */

/* WINDOW MaxWidth */

* {
  --window-max: 1200px;
}
@media (max-width: 1200px) {
  * {
    --window-max: 1000px;
  }
}

.container {
  max-width: var(--window-max);
  margin: 0rem auto;
  padding-left: 1rem;
  padding-right: 1rem;
  
  /* box-shadow: var(--box-shadow); */
}
.container-inner {
  max-width: 800px !important;
  margin: 0 auto;
}


/* ============ BODY ============ */

body {
  background: var(--clr-background);
}
body.opened {
  overflow: hidden;
}

/* ============ SECTION ============ */

section:nth-of-type(1) {
  padding-top: calc(61px + 1rem);
}

section .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  transition: box-shadow 500ms, margin 500ms;
}
section.active .container {
  box-shadow: var(--box-shadow-wide);
  margin-bottom: 1rem !important;
}

section .section-head {
  margin: 1rem 0;
}

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

section.invert * {
  color: var(--clr-headline-invert) !important;
}


/* ============================================================ ELEMENTS ============================================================ */

/* SHOW UP */
.animate {
  transform: translate(0, 75px);
  opacity: 0;
  transition: transform 750ms ease-in-out, opacity 750ms ease-in-out;
}
.animate.show {
  transform: translate(0, 0);
  opacity: 1;
}

/* BUTTONS */
.button-wrapper {
  display: flex;
  gap: 1rem;
}


.button {
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  border-radius: 5rem;
  border: none;
  padding: 0.75rem 1.5rem;
  transition: color .16s ease,background-color .16s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.button:active {
  scale: 0.975;
}

.button svg {
  height: 22px;
  margin-right: -.5rem;
}



/* Button Primary */
.button-primary {
  background-color: var(--clr-button-primary);
  color: var(--clr-button-primary-text);
  box-shadow: 4px 4px 30px 0 #00000020;
}
.button-primary svg {
  fill: var(--clr-button-primary-text);
}
  .button-primary:hover {
    background-color: var(--clr-button-primary-hover);
  }

/* Button Secondary */
.button-secondary {
  background-color: var(--clr-button-secondary);
  color: var(--clr-button-secondary-text);
  box-shadow: 4px 4px 30px 0 #79797920;

}
.button-secondary svg {
  fill: var(--clr-button-secondary-text);
}

  .button-secondary:hover {
    background-color: var(--clr-button-secondary-hover);
    
  }

/* Button Round */
.button-round {
  padding: 0; 
  border-radius: 50%;
  height: 48px;
  aspect-ratio: 1/1;
  display: grid;
  place-content: center;
  position: relative;
}
.button-round svg {
  padding: 4px;
  height: inherit;
  width: inherit;
}


/* SWITCH */
.switch {
  height: 28px;
  width: 56px;
  border: none;
  border-radius: 100px;
  background-color: #424242;
  position: relative;
  cursor: pointer;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  height: 22px;
  width: 22px;
  background: var(--clr-primary);
  border-radius: 50%;
  transition: 200ms ease-in-out;
}
.switch:hover::before {
  width: 24px;
}

.switch.active::before {
  transform: translateX(28px);
}
.switch.active:hover::before {
  width: 24px;
  transform: translateX(26px);
}

/* INPUTS / FORMULAR */
input,
textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0.75rem;
  transition: 200ms;
}
input:active,
textarea:active {
  scale: 0.999;
  resize: vertical;
}

/* ============================================================ LAYOUTS ============================================================ */

/* GRID 1 */
.grid {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 3rem 0;
}

/* GRID 2 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}
.grid-2 .grid-content:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
  justify-content: center;
}
.grid-2 .grid-content:nth-of-type(2) {
  
}

@media (max-width: 768px) {
  .grid-2 {
  grid-template-columns: repeat(1, 1fr);

  }
}

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

.grid-3 .grid-content:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: center;
}

.grid-3 .grid-content:nth-of-type(2) {
  box-shadow: var(--box-shadow-wide-2);
  background: var(--clr-background);
  min-height: 400px;
}
.grid-3 .grid-content:nth-of-type(3) {
  box-shadow: var(--box-shadow-wide-2);
  background: var(--clr-background);
  min-height: 400px;
}


/* ======================== MAIN ======================== */





/* ============ KURZ ERKLÄRT ============ */

h3:has(img) {
  display: flex;
  align-items: center;
  gap: 1rem;
}
h3:has(img) img {
  height: 1.5rem;
  width: 32px;
}

/* ============ INHALTSVERZEICHNIS ============ */

ul {
  list-style: none;
}
main ul > li {
  margin: 1rem 0;
}

.structure-container a {
  background-image: linear-gradient(var(--clr-text), var(--clr-text));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: 250ms;
}
  .structure-container a:hover {
   background-size: 100% 1px;
  }


.structure-container li {
  margin: 1rem 0;
  display: flex;
  grid-template-columns: 2rem auto;
}
.structure-container li span {
  width: 2rem;
  margin-right: 1rem;
  display: grid;
  justify-content: center;
}

@media (max-width: 650px) {
  .structure-container li {
    display: grid;
  }

  .structure-container a:hover {
    background-size: 0% 1px;
   }
}

/* ============ ARTICLE ============ */

.article .short {
  background: var(--clr-background);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 0 -2rem;
}

article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

article h2 {
  position: relative;
}

article h2 span {
  height: 100%;
  width: 5rem;
  text-align: right;
  /* border: var(--border); */
  position: absolute;
  top: 0;
  left: -6rem;

}


@media (max-width: 1000px) {
  .article .short {
    margin: 0 0rem;
  }
  article h2 span {
    display: none;
  }
}

