:root {
  /* Color Variables */
  --color-light: #f2f0ef;
  --color-dark: #121212;
  --color-light-grey: #b0b0b0;
  --color-light-green: #afff66;
  --color-dark-green: #354d1b;
  --color-light-purple: #ff7bac;
  --color-dark-purple: #910091;
  --color-189-red: #ff4b4b;
  --color-background: oklch(from var(--color-dark) 20% c h / 0.8);
  --color-background-darker: oklch(from var(--color-dark) 5% c h / 0.8);
  --border-dark: 0.9px solid var(--color-dark);
  --border-light: 0.9px solid var(--color-light);

  /* Spacing Variables */
  --space-small: 0.5rem;
  --space-normal: 1rem;
  --space-medium: 2rem;
  --space-large: 4rem;
  --space-xlarge: 6rem;

  /* Font Size Variables */
  --font-size-small: 0.5rem;
  --font-size-normal: 1rem;
  --font-size-medium: 1.5rem;
  --font-size-large: 2rem;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded/unbounded-v12-latin-700.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Noto-Sans";
  src: url("../fonts/noto_sans/noto-sans-v42-latin-300.woff2") format("woff2");
  font-weight: 300;
}

@font-face {
  font-family: "Noto-Sans-Headline";
  src: url("../fonts/noto_sans/noto-sans-v42-latin-700.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Noto-Serif";
  src: url("../fonts/noto_serif/noto-serif-v33-latin-300.woff2") format("woff2");
  font-weight: 300;
}

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

html {
  scroll-behavior: smooth;
  hyphens: manual;
}

body {
  margin-block: var(--space-medium);
}

main {
  margin-block: var(--space-large);
}

p {
  text-wrap-style: pretty;
}

.bg--black {
  background-color: var(--color-dark);
}

.bg--white {
  background-color: var(--color-light);
}

.color--light {
  color: var(--color-light);
}

.color--dark {
  color: var(--color-dark);
}

.section {
  padding-block: calc(var(--space-xlarge) * 1.5);
}

a:focus-visible {
  outline: 0.15rem dashed var(--color-light-purple);
  border-radius: 1px;
  outline-offset: 0.7rem;
}

nav a:focus-visible {
  outline: 0.15rem dashed var(--color-light-purple);
  border-radius: 1px;
  outline-offset: var(--space-small);
}

.contact__adress a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 0.15rem dashed var(--color-dark-purple);
  border-radius: 1px;
  outline-offset: 1.2rem;
}

.projects__content a:focus-visible {
  outline: 0.15rem dashed var(--color-dark-purple);
  border-radius: 1px;
  outline-offset: 0.7rem;
}

fieldset:focus-within {
  background: oklch(from var(--color-dark) l c h / 0.1);
}

/* input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0.15rem dashed var(--color-dark-purple);
  border-radius: 1px;
  outline-offset: 1.3rem;
} */

.blur {
  filter: blur(10px);
}

img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Link Underline Animation */
.link__transitionAnimation {
  text-decoration: none;
  position: relative;
}

.link__transitionAnimation::after {
  content: "";
  height: 2px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -5px;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.51, 0.92, 0.24, 1);
  transform-origin: 0 0;
}

.link__transitionAnimation:not(:disabled):hover:after {
  transform: scaleX(1);
  transition: transform 0.4s cubic-bezier(0.51, 0.92, 0.24, 1);
}

.link__transitionAnimation--alternative::after {
  height: 0.5px;
  background-color: var(--color-dark);
  transform: scaleX(1);
}

.link__transitionAnimation--alternative:not(:disabled):hover:after {
  transform: scaleX(0);
}

/* Button Animation */
.projects__cardLink {
  max-width: 100%;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  z-index: 2;

  font-size: var(--font-size-normal);
  font-weight: 400;
  line-height: 1.65;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.projects__cardLink:hover {
  color: var(--color-light);
  transition: color 0.3s ease-in-out;
}

.projects__cardLink:before {
  width: 100%;
}

.projects__cardLink:after {
  background: var(--color-dark);
  width: 0.75rem;
}

.projects__cardLink:after,
.projects__cardLink:before {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition:
    width 0.3s ease-in-out,
    left 0.15s ease-in-out;
  z-index: -1;
}

.projects__cardLink:not(:disabled):hover:after {
  left: 0.75rem;
  transition:
    width 0.3s ease-in-out,
    left 0.15s ease-in-out 0.15s;
  width: calc(100% - 0.75rem);
}

@media (prefers-reduced-motion: no-preference) {
  .projects__card.fade-in-animation {
    scale: 0.3;
    opacity: 0.1;
    animation: fade-in cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
    animation-timeline: view(50px);
  }

  @keyframes fade-in {
    to {
      scale: 1;
      opacity: 1;
    }
  }
}

/* utillity und debugging */
.border--red {
  outline: 2px dashed red;
  outline-offset: -2px;
}

.border--blue {
  outline: 2px dashed blue;
  outline-offset: -2px;
}

.hide {
  display: none;
}

h1,
h2 {
  font-family: "Unbounded", sans-serif;
  font-size: var(--font-size-medium);
  font-weight: 700;
  margin-block: 0 var(--space-normal);
}

h3 {
  font-family: "Unbounded", sans-serif;
  /* Test mit Fluid Typography für einheitliches Design in den Projectcards */
  font-size: clamp(
    calc(var(--font-size-normal) * 0.8),
    0.01rem + 1.4vw,
    calc(var(--font-size-normal) * 1.2)
  );
  font-weight: 700;
}

h4 {
  font-family: "Noto-Sans-Headline", sans-serif;
  font-weight: 700;
  margin-block: var(--space-xlarge) 0;
}

.hero__indexContent h1 {
  font-size: clamp(
    calc(var(--font-size-large) * 0.71),
    -0.334rem + 2.714vw,
    var(--font-size-large)
  );
}

p {
  font-family: "Noto-Sans", sans-serif;
  line-height: 180%;
}

li {
  font-family: "Noto-Sans", sans-serif;
}

.clr-189 {
  color: var(--color-189-red);
}

a .clr-189 {
  color: oklch(from var(--color-189-red) 45% 0.24 35);
}

adress {
  font-family: "Noto-Sans", sans-serif;
  color: var(--color-light);
}

.contact__adress {
  font-family: "Noto-Sans", sans-serif;
  color: var(--color-dark);

  & a {
    font-family: "Noto-Sans", sans-serif;
    color: var(--color-dark);
    text-decoration: none;
    text-underline-offset: var(--space-small);

    &:hover {
      color: var(--color-dark-purple);
    }
  }

  &::selection {
    color: var(--color-light-green);
    background-color: var(--color-dark);
  }
}

label::after {
  content: "*";
  color: var(--color-dark-purple);
}
*:required {
  border: var(--border-dark);
}

a {
  font-family: "Noto-Sans-Headline", sans-serif;
  color: var(--color-light);
}

a[data-current] {
  text-decoration: underline dotted var(--color-light) !important;
  text-underline-offset: 0.3rem;
}

span {
  &[data-font="noto-serif"] {
    font-family: "Noto-Serif", serif;
  }

  &[data-font="unbounded"] {
    font-family: "Unbounded", sans-serif;
  }
}

footer ul li a {
  font-size: 0.8rem;
}

nav .desktopMenu li a {
  font-family: "Noto-Sans", sans-serif;
  font-weight: 300;
  color: var(--color-light);
}

nav #mobileMenu li a {
  font-family: "Noto-Sans-Headline", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-light);
}

nav a:visited {
  color: initial;
}

nav a {
  text-decoration: none;
}

*::selection {
  color: var(--color-light-green);
  background-color: var(--color-dark);
}

adress::selection {
  color: var(--color-dark-green);
  background-color: var(--color-light);
}

a::selection {
  color: var(--color-dark);
  background-color: var(--color-light-purple);
}

a:visited {
  color: var(--color-light-purple);
}

form,
select {
  font-family: "Noto-Sans", sans-serif;
}

form fieldset legend {
  font-family: "Noto-Sans-headline", sans-serif;
  font-weight: 700;
}

/* Hamburger lines size */
.hamburger.is-lg {
  font-size: var(--font-size-large);
}

.hamburgerMenu {
  color: var(--color-light);
}

.hamburger {
  font-size: inherit;
  color: inherit;
}

.projects__detailsContent p {
  font-family: "Noto-Serif", serif;
  line-height: 180%;
}

.projects__detailsContent {
  color: var(--color-light);
  hyphens: auto;
}

.contact__heroContent,
.documentation__heroContent {
  text-align: center;
  color: var(--color-light);
}

.navigation--sticky {
  position: sticky;
  top: 1.7rem;
  z-index: 10;
}

/* Burger Menü Symbol und Animation */
.hamburgerMenu {
  display: flex;
  flex-flow: row;
  z-index: 99;
  border: var(--border-light);
  border-radius: 5px;
  background-color: var(--color-background);
  backdrop-filter: blur(5px);
  padding: var(--space-normal);
}
.hamburger {
  display: flex;
  position: relative;
  width: 1em;
  height: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
}
.hamburger-line {
  position: absolute;
  right: 0;
  width: 100%;
  height: 0.05em;
  border-radius: 0.125em;
  background: currentColor;
  transition: inherit;
}
.hamburger-line:nth-child(1) {
  top: 0.125em;
}
.hamburger.is-active .hamburger-line:nth-child(1),
.w-nav-button.w--open .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotateZ(-135deg);
}
.hamburger-line:nth-child(2) {
  top: 0.438em;
}
.hamburger.is-active .hamburger-line:nth-child(2),
.w-nav-button.w--open .hamburger-line:nth-child(2) {
  right: 50%;
  width: 0;
}
.hamburger-line:nth-child(3) {
  top: 0.75em;
}
.hamburger.is-active .hamburger-line:nth-child(3),
.w-nav-button.w--open .hamburger-line:nth-child(3) {
  top: 50%;
  width: 100%;
  transform: translateY(-50%) rotateZ(135deg);
}

#mobileMenu {
  display: none;
}

#mobileMenu.active {
  display: flex;
  flex-direction: column;
  z-index: 98;
  position: absolute;
  top: 2rem;
  right: 0;
  padding: var(--space-medium);
  margin: 0;
  height: 50vh;
  justify-content: space-around;

  list-style: none;
  line-height: 280%;

  border: var(--border-light);
  border-radius: 5px;

  background-color: var(--color-background);
  backdrop-filter: blur(5px);
}

.desktopMenu {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  min-width: 600px;
  max-width: fit-content;
  list-style: none;
  line-height: 280%;
  border: var(--border-light);
  border-radius: 5px;
  background-color: var(--color-background);
  backdrop-filter: blur(5px);
}

@media (min-width: 640px) {
  .hamburgerMenu {
    display: none;
  }

  .navigation--sticky {
    position: sticky;
    top: 3rem;
    z-index: 10;
  }
}

/* Index Hero Section */

#hero__index.section {
  padding: 0;
}

.hero__indexBackground {
  border-radius: 5px;
  background-image: url(../images/189east_hero/189east-office-1.webp);
  background-position: center;
  background-size: cover;
  min-height: 100%;
  height: auto;
}

.hero__indexContent {
  color: var(--color-light);
  padding-block: var(--space-medium) var(--space-large);
  padding-inline: var(--space-medium);
  max-width: 75ch;
  margin-inline: auto;

  border-radius: 5px;
  border: var(--border-light);

  background-color: var(--color-background);
  backdrop-filter: blur(5px);
}

.hero__indexContent p {
  margin-block: calc(var(--space-medium) * 1.5);
}

.hero__indexButton {
  text-decoration: none;
  padding-block: var(--space-normal);
  padding-inline: var(--space-medium);
  border: var(--border-dark);
  background-color: var(--color-light);
  color: var(--color-dark);
  border-radius: 5px;
}

.hero__indexButton:visited {
  color: var(--color-dark);
}

.hero__indexButton:hover,
.hero__indexButton:focus-visible {
  transition:
    border 150ms ease-in-out,
    color 175ms ease-in,
    background 150ms ease-in-out;

  border: var(--border-light);
  color: var(--color-light);
  border-radius: 5px;
  background: oklch(from var(--color-background) l c h / 0.2);

  & .clr-189 {
    transition: color 175ms ease-in;
    color: var(--color-189-red);
  }
}

/* Projects Hero Section */

@media screen and (width >= 640px) {
  #hero__projects {
    height: 700px;

    & .row {
      max-width: 2560px;
    }
  }
}
@media screen and (width < 640px) {
  #hero__projects {
    height: 600px;

    & .row {
      max-width: 2560px;
    }
  }

  .hero__projectsContent h1 {
    font-size: calc(var(--font-size-large) * 0.7);
  }
}

#hero__projects.section {
  padding: 0;
}

/* verschiedene Hero Background Bilder */
.hero__projectsBissjeTommy {
  background-image: url(../images/projekte/bissjetommy/hero_bissjetommy_und_logo.webp);
  background-position: 80% 20%;
  background-size: cover;
  height: 100%;
  max-height: auto;
  width: 100%;
}
.hero__projectsCornelius {
  background-image: url(../images/projekte/cornelius/cornelius_hero.webp);
  background-position: center;
  background-size: cover;
  height: 100%;
  max-height: auto;
  width: 100%;
}
.hero__projectsWebentwicklung {
  background-image: url(../images/projekte/webentwicklung/hero_webentwicklung.webp);
  background-position: top left;
  background-size: cover;
  height: 100%;
  max-height: auto;
  width: 100%;
}
.hero__projectsUxui {
  background-image: url(../images/projekte/ux-ui/ux-ui_hero.webp);
  background-position: center;
  background-size: cover;
  height: 100%;
  max-height: auto;
  width: 100%;
}

.hero__projectsContent {
  color: var(--color-light);
  padding: var(--space-medium);

  max-width: 75ch;
  margin-inline: auto;

  border-radius: 5px;
  border: var(--border-light);

  background-color: var(--color-background);
  backdrop-filter: blur(5px);
}

/* Contact Hero Section */

#contact__hero .row {
  max-width: 2560px;
}

#contact__hero.section {
  padding: 0;
}

/* verschiedene Hero Background Bilder */
.contact__heroFormular {
  background-image: url(../images/contact_documentation/contact_2.webp);
  background-position: 50% 50%;
  background-size: cover;
  max-width: 100%;
  height: 360px;
}

.contact__heroContent {
  padding-block: var(--space-small);
  padding-inline: var(--space-medium);

  max-width: fit-content;
  margin-inline: auto;
  border-radius: 5px;
  border: var(--border-light);

  background-color: var(--color-background);
  backdrop-filter: blur(5px);

  & h1 {
    margin-block: var(--space-normal);
  }
}

/* Documentation Hero Setion */

#documentation__hero .row {
  max-width: 2560px;
}

#documentation__hero.section {
  padding: 0;
}

.documentation__heroBackground {
  background-image: url(../images/contact_documentation/documentation.webp);
  background-position: top right;
  background-size: cover;
  max-width: 100%;
  height: 360px;
}

.documentation__heroContent {
  padding-block: var(--space-small);
  padding-inline: var(--space-medium);
  border-radius: 5px;
  border: var(--border-light);

  max-width: fit-content;
  margin-inline: auto;

  background-color: var(--color-background);
  backdrop-filter: blur(5px);

  & h1 {
    margin-block: var(--space-normal);
  }
}

.documentation__details .documentation__imageContainer {
  max-width: 960px;
  height: 640px;
}

.documentation__image {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.documentation__details h2:not(:first-child) {
  margin-block: var(--space-large) var(--space-normal);
}

.documentation__details li {
  line-height: 180%;
}

.documentation__colorList li {
  padding-block: var(--space-small);
  padding-inline: var(--space-medium);
  margin-block: var(--space-normal);
  border: 1px solid transparent;
  list-style: none;
  text-align: center;
  width: 28ch;
  border: var(--border-dark);
  border-radius: 5px;
}
.documentation__colorList li:nth-of-type(1) {
  background: var(--color-dark);
  color: var(--color-light);
}
.documentation__colorList li:nth-of-type(2) {
  background: var(--color-light);
  color: var(--color-dark);
}
.documentation__colorList li:nth-of-type(3) {
  background: var(--color-dark);
  color: var(--color-light-green);
}
.documentation__colorList li:nth-of-type(4) {
  background: var(--color-light);
  color: var(--color-dark-green);
}
.documentation__colorList li:nth-of-type(5) {
  background: var(--color-dark);
  color: var(--color-light-purple);
}
.documentation__colorList li:nth-of-type(6) {
  background: var(--color-light);
  color: var(--color-dark-purple);
}

.footer {
  max-width: 1440px;
  margin-inline: auto;
  margin-bottom: calc(var(--space-large) * 1.5);
  position: relative;
}

.footer__sitemap:before {
  content: "";
  top: 16px;
  width: 100%;
  height: 0.5px;
  background: var(--color-light);
  position: absolute;
}

.footer__container {
  line-height: 180%;
  margin-block: calc(var(--space-medium) * 1.5);
  padding-block: 0;
  padding-inline: var(--space-medium);

  & div {
    padding: 0 !important;
  }
}

.footer__logo {
  max-width: 250px;
  height: auto;
  margin-bottom: var(--space-medium);
}

.footer__sitemap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

footer ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-inline-start: 0;

  & li {
    line-height: 250%;
  }
}

.projects__headlineH2 {
  text-align: center;
  padding-inline: var(--space-normal);
}

.projects__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: var(--space-xlarge);
}

.projects__index .projects__imageContainer {
  max-width: auto;
}
.projects__image {
  object-fit: contain;
}

.projects__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  gap: var(--space-medium);
}

.projects__card h3 {
  margin-block: var(--space-medium) 0;
}

.projects__linkContainer {
  margin-top: auto;
}

.projects__cardLink {
  border: var(--border-light);
  border-radius: 5px;
  padding-block: var(--space-normal);
  padding-inline: var(--space-medium);
  background-color: var(--color-dark);
}

a.projects__cardLink {
  background-color: var(--color-light);
  color: var(--color-dark);
  border: 1px solid black;
  border-radius: 5px;
  transition:
    background-color 0.8s ease-in-out,
    color 0.3s ease-in-out;
}

a.projects__cardLink:visited {
  color: var(--color-dark);
}

a.projects__cardLink:visited:hover {
  color: var(--color-light);
}

.projects__highlights .projects__imageContainer {
  max-width: 480px;
  height: 320px;
}

.projects__list .projects__imageContainer {
  max-width: 480px;
  height: auto;
}

.projects__listImage {
  max-width: 100%;
  height: auto;
}

.projects__list ul {
  padding: var(--space-normal);
  list-style-type: square;
}

.row.projects__listContent {
  gap: calc(var(--space-medium) * 1.5);
}

/* verschiedene Details Background Bilder */
.projects__detailsBissjeTommy {
  border-radius: 5px;
  background-image: url(../images/projekte/bissjetommy/figma_layout_mit_den_verschiedenen_webdesigns.webp);
  background-position: center;
  background-size: cover;
  min-height: 100%;
  height: auto;
}
.projects__detailsCornelius {
  border-radius: 5px;
  background-image: url(../images/projekte/cornelius/figma_design_cornelius.webp);
  background-position: center;
  background-size: cover;
  min-height: 100%;
  height: auto;
}
.projects__detailsWebentwicklung {
  border-radius: 5px;
  background-image: url(../images/projekte/webentwicklung/Bildschirm_mit_htmlcode.webp);
  background-position: center;
  background-size: cover;
  min-height: 100%;
  height: auto;
}
.projects__detailsUxui {
  border-radius: 5px;
  background-image: url(../images/projekte/ux-ui/ux_ui_detailsbackground.webp);
  background-position: center;
  background-size: cover;
  min-height: 100%;
  height: auto;
}

.projects__detailsContent {
  border-radius: 5px;
  padding-block: var(--space-medium) var(--space-large);
  padding-inline: var(--space-medium);
  border-radius: 5px;
  border: var(--border-light);

  max-width: 75ch;
  margin-inline: auto;

  background-color: var(--color-background-darker);
  backdrop-filter: blur(5px);
}

.projects__highlights .projects__image {
  object-fit: contain;
}

form input,
textarea {
  font-family: "Noto-Sans", sans-serif;
  width: 100%;
  border-radius: 5px;

  padding-block: calc(var(--space-normal) * 0.3) var(--space-small);
  padding-inline: calc(var(--space-normal) * 0.3);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-light-grey);
  font-size: calc(var(--font-size-normal) * 0.8);
}

textarea {
  max-width: 100%;
  min-width: 50%;
  max-height: auto;
  min-height: var(--space-xlarge);
}

form fieldset {
  border: var(--border-dark);
  border-radius: 5px;
  padding: var(--space-small);
  margin-block: var(--space-normal);
}

form fieldset legend {
  position: relative;
  top: 0.3rem;
}

form input.submit {
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
  padding-block: var(--space-normal);
  padding-inline: var(--space-medium);
  border: var(--border-dark);
  background-color: var(--color-light);
  color: var(--color-dark);
  border-radius: 5px;
}

.row .contact__formularSubmit .column {
  padding-inline: 0;
}

@media screen and (width >= 640px) {
  #hero__index {
    height: 700px;

    & .row {
      max-width: 2560px;
    }
  }
}
@media screen and (width < 640px) {
  #hero__index {
    height: 600px;

    & .row {
      max-width: 2560px;
    }
  }
  .hero__indexContent h1 {
    font-size: calc(var(--font-size-large) * 0.7);
  }
}

/* aus UX Perspektive eine gute Sache um Links wirklich für jeden eindeutig als solche erkennbar zu machen, aus designtechnischer Hinsicht, aber nicht sehr schön.
Im Rahmen dieses Projekts habe ich mich dann dagegen entschieden, und den Code wieder auskommentiert. Möchte ihn zur Referenz aber trotzdem hier sichtbar haben.*/
/* @media (pointer:coarse) {
  a:any-link:not(nav a) {
    text-decoration: 2px underline solid currentColor;
    text-underline-offset: var(--space-small);
  }
} */
