@import "normalize.css";

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/Inter-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/Inter-SemiBoldItalic.woff2') format('woff2');
}

html {
  font-size: 16px; /* Basis-Font-Size */
}

:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  /* Color Palette */
  --color-gold-darker: #5C5005;
  --color-gold-dark: #847308;
  --color-gold: #b9a103;
  --color-gold-lighter: #d5b700;
  --color-gold-light: #f2eda6;
  --color-white: #ffffff;
  --color-off-white: #f9f9f9;
  --color-white-transparent: rgba(255, 255, 255, 0.5);
  --color-gray-light: #5b594f;
  --color-gray-dark: #474221;
  --color-black: rgba(0, 0, 0, 0.87);
  --color-yellow: #ddc533;
  --color-yellow-light: #f3f5c7;
  --color-green: #6bc477;
  --color-green-light: #80d18d;
  --color-green-dark: #494511;
  --color-red: #c35252;
  --color-red-light: #eb5454;
  --color-red-bg: rgba(220, 53, 69, 0.05);

  /* Semantic Colors */
  --primary-color: var(--color-gold-dark);
  --secondary-color: var(--color-gold);
  --background-color: var(--color-white);
  --background-secondary-color: var(--color-black);
  --text-color: var(--color-black);
  --text-color-light: var(--color-gray-light);
  --text-secondary-color: var(--color-white);
  --headline-color:  var(--color-green-dark);
  --topbar-background: var(--color-green-dark);
  --menu-color: var(--color-yellow-light);
  --menu-hover-color: var(--color-yellow);
  --menu-secondary-color: var(--color-gray-dark);
  --menu-secondary-hover-color: var(--color-gold);
  --link-color: var(--color-gold);
  --link-color-hover: var(--color-gold-lighter);
  --button-color: var(--color-white);
  --button-bg-color: var(--color-green-dark);
  --button-bg-color-hover: var(--color-gold-dark);
  --info-color: var(--color-yellow);
  --info-secondary-color: var(--color-yellow-light);
  --success-color: var(--color-green);
  --success-secondary-color: var(--color-green-light);
  --error-color: var(--color-red);
  --error-secondary-color: var(--color-red-light);
  --error-color-bg: var(--color-red-bg);
  --border-color: var(--color-gold-light);
  --border-color-focus: var(--color-gold-dark);
  --placeholder-color: var(--color-gold-dark);

  --border-radius: 0.5rem;
  --border-radius-small: 0.25rem;

  --box-shadow-color: rgba(132, 115, 8, 0.2);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p {
  margin: 0 0 0.75em;
  padding: 0;
  font-size: 0.875em;
  line-height: 1.5;
}

a {
  font-weight: 600;
  color: var(--link-color);
  text-decoration: inherit;
  transition: all 0.5s;
}

a:hover {
  color: var(--link-color-hover);
}

h1 {
  color: var(--headline-color);
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.25em;
}

h2 {
  color: var(--headline-color);
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5em;
}

h3 {
  color: var(--headline-color);
  margin-top: 0;
  margin-bottom: 0.5em;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-white);
  color: var(--text-color);
}

#root {
  min-height: 100vh;
}


.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-gold-dark) 0%,
    var(--color-gold) 13%,
    var(--color-off-white) 70%,
    var(--color-white) 100%
  );
}

.app-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
}

.app-bg-img-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100dvh;
  padding-top: 65px;
}

.app-bg-img {
  position: relative;
  width: 100%;
  max-width: 940px;
  height: 100%;
  margin: 0 auto;
  background-image: url('./img/bgBirdsWhite.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.main-content-wrap {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 1024px;
  flex-grow: 1;
  padding: 0 1rem;
  margin: 0 auto;
}

.main-content {
  position: relative;
  flex-grow: 1;
  width: 100%;
  max-width: 700px;
  padding-top: 2rem;
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  background-color: var(--topbar-background);
  width: 100%;
  padding: 0.25rem 0.5rem;
  margin-bottom: 2rem;
}

.page-logo {
  height: 40px;
}

.page-logo img {
  max-height: 100%;
}

.content-wrap {
  background-color: var(--color-white-transparent);
  border-radius: var(--border-radius);
  padding: 2rem 1rem;
}

.page-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  margin: 2.5rem auto 2rem;
}

.header-img {
  display: block;
}

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

.page-title-wrap {
  text-align: center;
  margin-bottom: 1rem;
}

.footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
} 

.footer a {
  font-size: 0.75em;
  color: var(--text-color);
  opacity: 0.7;
  transition: all 0.5s ease;
}

.footer a:hover {
  opacity: 1;
}

.footer-text {
  font-size: 0.75em;
  color: var(--text-color);
}

.trenner {
  color: var(--text-color);
  margin-left: 0.25em;
  margin-right: 0.25em;
}

/* Media-Queries */
@media (min-width: 375px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }

  .app-bg-img-wrap {
    padding-top: 65px;
  }

  .topbar {
    padding: 0.75rem 1rem;
  }

  .page-header {
    margin-top: 1.2rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  .app-bg-img-wrap {
    padding-top: 100px;
  }

  .topbar {
    padding: 1rem;
  }

  .page-logo {
    height: 50px;
  }  

  .content-wrap {
    padding: 2rem;
  }

  .page-header {
    width: 350px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  .page-header {
    width: 450px;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
}

@media (min-width: 1280px) {
  .page-header {
    width: 500px;
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}
