@import "fonts.css";
@import "resets.css";

:root {
  font: "Montserrat-Regular";
  font-size: 36px;

  /*farben*/
  --bg-color: #dadada;
  --text-color: #222;
  --text-color-titel: #60917c;
  --auszeichnung2: #5dbb94;
  --white: #ffffff;

  /*abstände*/
  --ga-large: 2rem;
  --ga-medium: 1.11rem;
  --ga-small: 0.5rem;

  /*schriften*/
  --f-h1: 5.56rem/100% "Montserrat-Bold", sans-serif;
  --f-h2: 3rem/100% "Montserrat-SemiBold", sans-serif;
  --f-h3: 2rem/100% "Montserrat-Regular", sans-serif;
  --f-GT: 1rem/100% "Montserrat-Regular", sans-serif;
  --f-h4: 1rem/100% "Montserrat-Bold", sans-serif;
  --f-h5: 1rem/100% "Montserrat-Bold", sans-serif;
}

[data-theme="dark"] {
  --bg-color: #303c37;
  --text-color: #e6e6e6;
  --text-color-titel: #5dbb94;
  --auszeichnung2: #4be5a4;
  --white: #ffffff;
}

.content {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-column-gap: var(--ga-medium);
  grid-row-gap: 0px;
}

.bild-front {
  grid-area: 1 / 1 / 3 / 3;
}
.deko2 {
  grid-area: 3 / 1 / 5 / 3;
}
.header {
  grid-area: 1 / 3 / 2 / 8;
}
.text1 {
  grid-area: 2 / 3 / 3 / 8;
}
.stats {
  grid-area: 3 / 3 / 4 / 8;
}
.bild-seite {
  grid-area: 4 / 3 / 5 / 8;
}
.text2 {
  grid-area: 5 / 1 / 6 / 5;
}
.bild-ziffer {
  grid-area: 5 / 5 / 6 / 8;
}
.karussell {
  grid-area: 6 / 1 / 7 / 8;
}

.titel2 {
  grid-area: 1 / 1 / 2 / 8;
}

.text3 {
  grid-area: 2 / 1 / 3 / 5;
}

.text4 {
  grid-area: 3 / 1 / 4 / 5;
}

.bild-ich {
  grid-area: 2 / 5 / 4 / 8;
}

.titel3 {
  grid-area: 1 / 1 / 2 / 7;
}

.formular {
  grid-area: 2 / 1 / 3 / 7;
}

.text6 {
  grid-area: 2 / 1 / 3 / 6;
}

.titel5 {
  grid-area: 1 / 1 / 2 / 6;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  font-family: sans-serif;
  color: var(--text-color);
}

div {
  height: auto;
  min-height: 0;
}

.topnav {
  display: flex;
  justify-content: space-between;
  justify-content: flex-end;
  background-color: var(--bg-color);
  font: var(--f-GT);
  color: var(--text-color);
  margin-top: var(--ga-medium);
  margin-bottom: calc(var(--ga-large) * 2);
}

.topnav a::before {
  content: "";
  display: block;
  width: 3.33rem;
  height: 0.083rem;
  background: var(--text-color);
  margin: 0 auto 0.389rem 0;
}

.topnav #site1::before {
  background: var(--auszeichnung2);
}

.topnav #site2::before {
  background: var(--auszeichnung2);
}

.topnav #site3::before {
  background: var(--auszeichnung2);
}

.topnav li:hover a::before {
  background: var(--auszeichnung2);
}

ul {
  display: flex;
  list-style: none;
  gap: var(--ga-large);
}

.switch {
  height: 1.5rem;
  width: 100%;
  align-self: center;
  cursor: pointer;
  align-self: normal;
}

#nav-toggle {
  display: none;
}

.burger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.burger span {
  width: 1.5rem;
  height: 0.12rem;
  background: var(--text-color);
  display: block;
}

.burger {
  display: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

h1 {
  font: var(--f-h1);
}

h3 {
  font: var(--f-h3);
}

h2 {
  font: var(--f-h2);
  margin-bottom: 2.5rem;
}

h4 {
  font: var(--f-h4);
  color: var(--text-color-titel);
  line-height: 1.5rem;
  margin-bottom: 0.2rem;
}

h5 {
  font: var(--f-h4);
  color: var(--text-color);
  line-height: 1.22rem;
  margin-bottom: 0.2rem;
}

p {
  font: var(--f-GT);
  line-height: 1.22rem;
}

.master {
  max-width: 1750px;
  margin: 0 auto;
}

.bild-front {
  grid-area: 1 / 1 / 3 / 3;
}

.bild-front img {
  display: block;
  width: 80%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transform: translate(0%, -11%);
}

.header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: var(--ga-medium);
}

#armbanduhr {
  margin-bottom: 2rem;
  color: var(--text-color-titel);
}

#titel-home {
  margin-bottom: 0.8rem;
}

#untertitel-home {
  margin-bottom: 11.4rem;
}

.titel {
  grid-column: 1 / 5;
}

.deko1 {
  grid-column: 5 / 6;
  justify-self: stretch;
  align-self: center;
  overflow: hidden;
}

.deko1 img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.text1 {
  margin-bottom: 2.5rem;
}

.deko2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: var(--ga-medium);
  height: auto;
}

.deko2 {
  grid-column: 1 / 3;
  justify-self: stretch;
  align-self: center;
  overflow: hidden;
}

.deko2 img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: calc(var(--ga-large) * 3);
  row-gap: 0.3rem;
}

.stat::before {
  content: "";
  display: block;
  width: 3.33rem;
  height: 0.083rem;
  background: var(--text-color);
  margin: 0 auto 0.389rem 0;
}

.bild-seite {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--ga-medium);
  height: auto;
  overflow: hidden;
}

.bild-seite img {
  grid-column-start: 1;
  grid-column-end: 6;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}

.text2 {
  align-content: center;
}

.bild-ziffer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ga-medium);
  height: auto;
  overflow: hidden;
}

.bild-ziffer img {
  grid-column: 1 / 4;
  justify-self: center;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  align-self: center;
  margin: calc(var(--ga-large) * 2) 0 calc(var(--ga-large) * 3) 0;
}

.karussell {
  grid-column: 3 / 6;
  width: 100%;
  overflow-x: auto;
  display: flex;
  gap: 1rem;
  scroll-behavior: smooth;
  anchor-name: --karussell;
  scroll-snap-type: x mandatory;
}

.karussell::-webkit-scrollbar {
  display: none;
}

.karussell::scroll-button(right),
.karussell::scroll-button(left) {
  content: "›";
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.5rem;
  position: fixed;
  color: var(--text-color);
  position-anchor: --karussell;
  position-area: right center;
}

.karussell::scroll-button(left) {
  content: "‹";
  position-area: left center;
}

.karussell::scroll-button(right):disabled,
.karussell::scroll-button(left):disabled {
  opacity: 0.3;
  cursor: auto;
}

.card {
  scroll-snap-align: center;
  width: stretch;
  height: auto;
  padding: 1em;
}

.footer {
  display: flex;
  justify-content: center;
}

.Impressum {
  text-align: center;
  margin: var(--ga-large) 0 var(--ga-medium) 0;
}

.Impressum::before {
  content: "";
  display: block;
  width: 19.75rem;
  height: 0.083rem;
  background: var(--text-color);
  margin: 0 auto 0.389rem auto;
}

#site4::before {
  background: var(--auszeichnung2);
}

.Impressum:hover::before {
  background: var(--auszeichnung2);
}

/* Seite Über mich */

.bild-ich img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Seite Kontakt */

input,
textarea {
  border: none;
}

.deko4 {
  grid-column: 7 / 8;
  grid-row: 2 / 3;
  justify-self: stretch;
  align-self: center;
  overflow: hidden;
}

.deko4 img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.formular {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, auto);
  column-gap: var(--ga-medium);
  height: auto;
}

.formular input,
.formular textarea {
  font-family: var(--f-GT);
  padding-left: var(--ga-small);
}

label {
  font: var(--f-h5);
  line-height: 2rem;
}

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

#name {
  width: 100%;
  height: 1.3rem;
  box-sizing: border-box;
  font-size: 0.8rem;
  margin-bottom: var(--ga-medium);
}

.vorname {
  grid-column: 4 / 7;
  grid-row: 1 / 2;
}

#vorname {
  width: 100%;
  height: 1.3rem;
  box-sizing: border-box;
  font-size: 0.8rem;
  margin-bottom: var(--ga-medium);
}

.email {
  grid-column: 1 / 7;
  grid-row: 2 / 3;
}

#email {
  width: 100%;
  height: 1.3rem;
  box-sizing: border-box;
  font-size: 0.8rem;
  margin-bottom: var(--ga-medium);
}

.nachricht {
  grid-column: 1 / 7;
  grid-row: 3 / 4;
}

#nachricht {
  width: 100%;
  min-height: 8rem;
  box-sizing: border-box;
  font-size: 0.8rem;
  resize: vertical;
  margin-bottom: var(--ga-medium);
}

#butt {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
  border: none;
  width: 100%;
  height: 1.3rem;
  background-color: var(--auszeichnung2);
  margin-bottom: var(--ga-large);

  a {
    font-size: 1rem;
    color: var(--white);
  }
}

.quellen {
  display: flex;
  flex-direction: column;
  list-style-type: disc;
  list-style-position: inside;
  gap: 0;
  font: var(--f-GT);
}

#butt2 {
  grid-area: 3 / 5 / 4 / 6;
  border: none;
  width: 100%;
  height: 1.3rem;
  background-color: var(--auszeichnung2);
  margin-bottom: var(--ga-large);

  a {
    font-size: 1rem;
    color: var(--white);
  }
}

.deko5 {
  grid-column: 7 / 8;
  grid-row: 2 / 3;
  justify-self: stretch;
  align-self: center;
  overflow: hidden;
}

.deko5 img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Impressum */

.mailto {
  color: var(--auszeichnung2);
}

/* 360px, 768px, 1024px und 1366px */

@media (max-width: 1750px) {
  :root {
    font-size: 36px;
  }

  .master {
    padding-left: var(--ga-small);
    padding-right: var(--ga-small);
  }

  .bild-front {
    transform: translate(-6%, 0%);
  }
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--ga-large);
    row-gap: var(--ga-medium);
  }
}

@media (max-width: 1365px) {
  :root {
    font-size: 30px;
  }

  .master {
    padding-left: var(--ga-small);
    padding-right: var(--ga-small);
  }

  .bild-front {
    transform: translate(-6%, 0%);
  }
}

@media (max-width: 1089px) {
  :root {
    font-size: 25px;
  }

  .master {
    padding-left: var(--ga-small);
    padding-right: var(--ga-small);
  }

  .content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(7, auto);
    grid-column-gap: 0.84rem;
  }

  .bild-front {
    grid-area: 1 / 1 / 2 / 2;
  }
  .deko2 {
    grid-area: 5 / 1 / 6 / 2;
  }
  .header {
    grid-area: 1 / 2 / 2 / 4;
  }
  .text1 {
    grid-area: 2 / 1 / 3 / 4;
  }
  .stats {
    grid-area: 3 / 1 / 4 / 4;
  }
  .bild-seite {
    grid-area: 4 / 1 / 5 / 4;
  }
  .text2 {
    grid-area: 5 / 2 / 6 / 4;
  }
  .bild-ziffer {
    grid-area: 6 / 1 / 7 / 4;
  }
  .karussell {
    grid-area: 7 / 1 / 8 / 4;
  }
  .titel5 {
    grid-area: 1 / 1 / 2 / 4;
  }
  .text6 {
    grid-area: 2 / 1 / 3 / 3;
  }
  .deko5 {
    grid-area: 2 / 3 / 3 / 4;
    width: 50%;
    justify-self: center;
  }

  .burger {
    display: flex;
    align-self: center;
    margin-left: var(--ga-large);
    overflow: visible;
  }

  .topnav {
    flex-direction: row-reverse;
    justify-content: end;
    margin: var(--ga-large);
  }

  .topnav ul {
    display: none;
    flex-direction: row;
    gap: var(--ga-medium);
  }

  .burger span {
    width: 1.5rem;
    height: 0.12rem;
    background: var(--text-color);
    display: block;
  }

  #nav-toggle:checked + .burger + ul {
    display: flex;
  }

  #nav-toggle:checked + .burger span:nth-child(1),
  #nav-toggle:checked + .burger span:nth-child(3) {
    top: 0%;
    left: 0%;
    transform-origin: center;
  }

  #nav-toggle:checked + .burger span:nth-child(1) {
    transform: translate(0, 425%) rotate(45deg);
  }

  #nav-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked + .burger span:nth-child(3) {
    transform: translate(0%, -425%) rotate(-45deg);
  }

  .header {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.84rem;
  }

  .titel {
    grid-area: 1 / 1 / 2 / 3;
  }

  .deko1 {
    grid-area: 2 / 2 / 3 / 3;
    width: 50%;
    justify-self: center;
  }

  #untertitel-home {
    margin-bottom: 0;
  }

  .bild-front {
    transform: translate(-6%, 0%);
  }

  .stats {
    margin-bottom: calc(var(--ga-large) * 2);
  }

  .deko2 {
    grid-template-columns: none;
    width: 50%;
    justify-self: center;
    margin-top: calc(var(--ga-large) * 2);
  }

  .bild-ziffer {
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .bild-ziffer img {
    display: block;
    width: 40%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    align-self: center;
    margin: 0;
    margin-bottom: var(--ga-large);
  }

  .karussell {
    width: 70%;
    justify-self: center;
  }

  .titel2 {
    grid-area: 1 / 1 / 2 / 4;
  }

  .bild-ich {
    grid-area: 2 / 1 / 3 / 4;
  }

  .text3 {
    grid-area: 3 / 1 / 4 / 4;
  }

  .text4 {
    grid-area: 4 / 1 / 5 / 4;
  }

  .titel3 {
    grid-area: 1 / 1 / 2 / 4;
  }

  .formular {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-area: 2 / 1 / 7 / 4;
    column-gap: 0.84rem;
    height: auto;
  }

  .name {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .vorname {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }

  .email {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
  }

  .nachricht {
    grid-column: 1 / 4;
    grid-row: 4 / 5;
  }

  #butt {
    grid-column: 3 / 4;
    grid-row: 5 / 6;
    width: 50%;
    justify-self: end;
  }

  .deko4 {
    grid-area: 2 / 3 / 3 / 4;
    width: 50%;
    justify-self: center;
  }

  #butt2 {
    grid-area: 3 / 2 / 4 / 3;
    width: 50%;
    justify-self: end;
  }
}

@media (max-width: 899px) {
  :root {
    font-size: 20px;
  }
  .master {
    padding-left: var(--ga-small);
    padding-right: var(--ga-small);
  }

  .bild-front {
    transform: translate(-6%, 0%);
  }
}

@media (max-width: 767px) {
  :root {
    font-size: 17px;
  }

  .master {
    padding-left: var(--ga-small);
    padding-right: var(--ga-small);
  }

  .bild-front {
    transform: translate(-6%, 0%);
  }
}

@media (max-width: 623px) {
  :root {
    font-size: 13px;
  }
}

@media (max-width: 449px) {
  :root {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  :root {
    font-size: 11px;
  }
}
