/**
 * Website Styling
 * Responsive Website with landingpage, productpages (grid, cards)
 * 
 * Structur:
 * - Variables and fonts
 * - Basic Elementes (header, banner, grid items)
 * - Landingpage
 * - Responsive design
 */

/* Font  */
@font-face {
  font-family: "Roboto";
  src: url(fonts/Roboto-Light.ttf) format("truetype");
  font-weight: 300;
}

@font-face {
  font-family: "Roboto";
  src: url(fonts/Roboto-Regular.ttf) format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Roboto";
  src: url(fonts/Roboto-Medium.ttf) format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Roboto";
  src: url(fonts/Roboto-Bold.ttf) format("truetype");
  font-weight: 700;
}

/* Global CSS Variables */
:root {
  /* Typography */
  --font-family: "Roboto", sans-serif;
  --font-size-large: 48px;      
  --font-size-semi-large: 28px; 
  --font-size-medium: 22px;     
  --font-size-small: 16px;      
  --font-weight-bold: 700;
  --font-weight-regular: 400;
  --font-weight-light: 300;
  --font-weight-medium: 600;

  /* Color scheme */
  --background-color: #ffffff;
  --text-color: #011f3d;        
  --secondary-text-color: #555555;
  --font-hover: #058192;      
  
  /* Utility colors */
  --color-130: #605E5C;
  --color-50: #A19F9D;
  --color-40: #DADADA;
  --color-30: #EAEAEA;
  --color-20: #F4F4F4;
  --color-neutral-400: #537393;
  --footer-background: #f8f8f8;
  
  /* Layout measurements */
  --box-shadow-hover: 0 0px 4px #058192;
  --box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  --banner-height: 320px;
  --header-height: 38px;
  --footer-height: 38px;
  --padding: 32px;
  --gap-large: 300px;
  --gap-medium: 48px;
  --gap-small: 10px;
  --box-width: 25em;
  --box-height: 22em;
  --box-border-radius: 10px;
  --illustration-width: 400px;
  
  /* Gradients and effects */
  --banner-gradient: linear-gradient(
    to right,
    rgba(60, 194, 183, 0.8),
    rgba(141, 64, 247, 0.8)
  );
  --banner-opacity: 0.16;
}

/*Base*/
html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; 
}


header, .banner, .grid-container, .grid-item, footer, 
.locales, .versions, .banner-content, 
.align-text, .book_title, .docAdditionalNotes, 
.copyright, footer .social-links {
  display: flex;
}

header, .banner-content, .grid-container {
  align-items: center;
}

/* Utility classes */
.hidden {
  display: none !important;
}

hr, .copyright .responsive-text, .info-button .hidden {
  display: none;
}

header {
  height: var(--header-height);
  position: relative;
  padding: 8px 48px;
  box-shadow: var(--box-shadow);
}

header .logo img {
  height: 34px !important;
}

.logo {
  cursor: pointer;
}

.locales, .versions {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
}

.locales {
  right: 48px;
}

.versions {
  right: 192px;
}

.locales select, .versions select {
  font-family: var(--font-family);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  border-bottom: 1px solid var(--color-50);
}

.banner {
  position: relative;
  height: var(--banner-height);
  justify-content: center;
  overflow: hidden;
  align-items: center;
  padding: 0 var(--padding);
  text-align: left;
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--banner-gradient);
  opacity: var(--banner-opacity);
}

.banner-content {
  z-index: 2;
  gap: var(--gap-large);
}

.banner h1 {
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  font-size: var(--font-size-large);
  text-overflow: ellipsis;
  margin: 0;
}

.illustration {
  width: var(--illustration-width);
  height: auto;
}

.grid-container {
  justify-content: center;
  align-items: stretch;
  gap: var(--gap-medium);
  flex-wrap: wrap;
  padding: 16px 48px;
}

.grid-item {
  background-color: var(--background-color);
  padding: var(--padding);
  border: 1px solid #d8d8d8;
  border-radius: var(--box-border-radius);
  box-shadow: var(--box-shadow);
  width: var(--box-width);
  min-height: var(--box-height);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.grid-item h1 {
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
}

.grid-item h2, .book_title h2 {
  color: var(--text-color);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-medium);
  margin-bottom: var(--gap-small);
}

.grid-item p {
  font-size: var(--font-size-small);
  color: var(--secondary-text-color);
}

.grid-item a {
  padding-left: 4px;
  text-decoration: none;
  vertical-align: top;
}

.grid-item a:hover {
  text-decoration: underline;
  color: var(--font-hover);
}

.grid-item li {
  margin-bottom: var(--gap-large);
}

.grid-item .content {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 92px 8px;
}

.book_title {
  gap: 16px;
  align-items: center;
}

.book_title img {
  height: 48px;
  width: 48px;
}

.item-basic > h2 {
  color: var(--text-color);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-semi-large);
  margin-bottom: var(--gap-small);
}

.item-basic, .item-enterprise {
  display: block;
  margin-bottom: 20px;
  width: 100%;
  max-width: 2537px;
}

.item-basic .grid-item, .item-enterprise .grid-item {
  width: 100%;
}

.item-basic .grid-item {
  min-height: 56px;
}

.item-enterprise ul, .item-basic ul {
  column-count: 3;
}

.item-enterprise li, .item-basic li {
  flex-direction: row;
}

.item-enterprise li:nth-child(odd), .item-basic li:nth-child(odd),
.item-enterprise li:nth-child(even), .item-basic li:nth-child(even) {
  grid-row: span 1;
}

.localeDisclaimer {
  display: flex;
  padding: 0 48px;
  color: #000;
  background-color: var(--color-20);
  border: 1px solid var(--color-20);
  box-shadow: var(--box-shadow);
  position: relative;
}

.info-icon {
  align-items: center;
  width: 24px;
  margin-right: 10px;
}

.content {
  padding: 64px;
}

.align-text {
  align-items: start;
  gap: 5pt;
}

body .body-shared-style {
  text-align: left;
}

.bpa .grid-container {
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: left;
}

.bpa .grid-item {
  max-width: 100%;
  box-sizing: border-box;
}

.bpa .grid-item,
.body-shared-style .grid-item {
  display: block;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
}

.bpa .grid-item h2,
.bpa .grid-item a,
.bpa .grid-item p,
.body-shared-style .grid-item h2,
.body-shared-style .grid-item a,
.body-shared-style .grid-item p {
  flex-grow: 1;
  color: var(--text-color);
}

.bpa .grid-item h2 img,
.body-shared-style .grid-item h2 img {
  height: 64px;
  vertical-align: bottom;
}

.bpa .grid-item ul,
.body-shared-style .grid-item ul {
  padding-left: 0;
  list-style-type: none;
}

.bpa .grid-item li,
.body-shared-style .grid-item li {
  margin-bottom: 16px;
  margin-left: 64px;
}

.bpa .grid-item li img,
.body-shared-style .grid-item li img {
  vertical-align: baseline;
}

.info-button {
  width: 100%;
  margin: 10px 0;
}

.info-button .docAdditionalNotes {
  margin: 10px 0;
}

.info-button .docLink {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 19px 48px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  color: #000;
  text-decoration: none;
  background: var(--color-20);
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;

}

.hover-highlight {
  cursor: pointer;
  padding-right: 5px;
  color: var(--font-hover);
  text-decoration: underline;
}

/* Landing Page
 Special styling -> banner and cards
 */
body.landingpage {
  position: relative;
}

body.landingpage::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: var(--banner-gradient);
  opacity: var(--banner-opacity);
  z-index: -1;
}

body.landingpage main {
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 86px 20px;
  z-index: 1;
  position: relative;
}

body.landingpage header {
  background-color: white;
}

body.landingpage .logo strong {
  margin-right: 6px;
}

body.landingpage .banner {
  margin-top: 20px;
  margin-bottom: 128px;
  border-radius: 10px;
  padding: 40px 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  width: auto;
}

body.landingpage .banner > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

body.landingpage .banner-background {
  display: none;
}

body.landingpage .banner h1 {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-bold);
  color: var(--text-color);
  margin: 0;
}

body.landingpage .banner-button {
  background-color: var(--text-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  margin-left: auto; 
  display: inline-block;
  align-self: center; 
}

.banner-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body.landingpage section {
  margin-top: 100px;
}

body.landingpage h2 {
  color: var(--text-color);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-semi-large);
  margin-bottom: 20px;
}

body.landingpage h2::before {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--text-color);
  margin-bottom: 20px;
  border-radius: 2px;
}

body.landingpage .card-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

body.landingpage .products .card {
  position: relative;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 35px;
  flex: 1;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

body.landingpage .products .card:hover {
  box-shadow: var(--box-shadow-hover);
}

body.landingpage .card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

body.landingpage .products .card-header {
  display: flex;
  align-items: center; 
  margin-bottom: 15px;
  flex-direction: row;
}

body.landingpage .products .card-icon {
  width: 38px;
  height: 38px;
  margin-right: 36px;
  color: var(--font-hover);
  display: flex;
  align-items: center;
}

body.landingpage .products .card-title {
  font-size: var(--font-size-medium);
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
  display: block;
  text-align: left;
  line-height: 1.2;
}

body.landingpage .products .card-content {
  font-size: var(--font-size-small);  
  font-weight: 400;
  color: var(--text-color);
  flex-grow: 1;
  margin-top: 16px;
  line-height: 1.5;
  text-align: left;
  padding-left: 74px; 
}


/* Quick Links Cards */

body.landingpage .quick-links .card {
  position: relative; 
  background-color: white;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 24px 35px;
  flex: 1;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;            
  justify-content: space-between;
  min-height: 40px;
}

body.landingpage .quick-links .card:hover {
  box-shadow: var(--box-shadow-hover)
}

body.landingpage .quick-links .card-icon {
  width: 38px;
  height: 38px;
  margin-right: 36px;
  color: var(--font-hover);
}

body.landingpage .quick-links .card-title {
  font-size: var(--font-size-medium);
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

body.landingpage .quick-links .card-content {
  color: var(--text-color);
  flex-grow: 1;
}

body.landingpage .quick-links .card-container {
  gap: 15px;
}

body.landingpage .quick-links .card-header {
  align-items: center;
  margin-bottom: 0;
  flex-grow: 1;
}

body.landingpage .arrow-icon {
  color: var(--color-130);
}

/* Footer Components */
footer {
  height: var(--footer-height);
  padding: 8px 48px;
  background-color: white;
  text-align: center;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.8em;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.social-links {
  gap: var(--gap-small); 
}

.copyright {
  justify-content: center;
  align-items: center;
  flex: 1; 
}

.docAdditionalNotes {
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

/* Responsive Design
 * - Large screens (1920px and below)
 * - Medium screens (1024px and below)
 * - Small screens (959px and below)
 * - Mobile screens (479px and below)
 */
@media (max-width: 1920px) {
  html, body {
    height: 100%;
  }
  
  body.landingpage::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: var(--banner-gradient);
    opacity: var(--banner-opacity);
    z-index: -1;
  }

  body.landingpage main {
    max-width: 1400px;
    width: 85%;
    padding: 20px 20px;
  }
  
  body.landingpage .banner {
    margin-top: 16px;
    margin-bottom: 100px;
    padding: 32px 0;
  }
  
  body.landingpage .banner h1 {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-large);
  }
  
  body.landingpage .banner-button {
    padding: 8px 16px;
    font-size: var(--font-size-small);
  }
  
  body.landingpage section {
    margin-top: 80px;
  }
  
  body.landingpage h2 {
    font-size: var(--font-size-semi-large);
    margin-bottom: 16px;
  }
  
  body.landingpage h2::before {
    width: 70px;
    height: 3px;
    margin-bottom: 16px;
  }
  
  body.landingpage .card-container {
    gap: 16px;
  }
  
  body.landingpage .products .card {
    padding: 28px;
    min-height: 140px;
    border-radius: 8px;
  }
  
  body.landingpage .quick-links .card {
    padding: 18px 28px;
    min-height: 36px;
    border-radius: 8px;
  }
  
  body.landingpage .products .card-icon,
  body.landingpage .quick-links .card-icon {
    width: 34px;
    height: 34px;
    margin-right: 30px;
  }
  
  body.landingpage .products .card-title,
  body.landingpage .quick-links .card-title {
    font-size: var(--font-size-medium);
  }
  
  body.landingpage .products .card-content {
    font-size: var(--font-size-small);
    margin-top: 14px;
    padding-left: 64px;
  }
  
  body.landingpage .quick-links .card-container {
    gap: 14px;
  }
  
  body.landingpage .card-header {
    margin-bottom: 14px;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 8px 16px;
  }

  .locales {
    right: 16px;
  }

  .versions {
    right: 148px;
  }

  .content {
    padding: 16px;
  }

  .banner {
    height: 220px;
    justify-content: center;
    text-align: center;
    padding: 0 var(--padding);
  }

  .banner-background {
    height: 220px;
  }

  .grid-container {
    padding: 16px;
    align-items: center;
    gap: 20px;
  }

  .grid-item {
    padding: 16px;
    margin-bottom: 16px;
  }

  .grid-item h2 {
    font-size: 1.4em;
  }

  .grid-item p {
    font-size: 1em;
  }

  .illustration {
    display: none;
  }

  footer {
    padding: 8px 16px;
    gap: 16px;
  }

  .copyright .default-text {
    display: none;
  }

  .copyright .responsive-text {
    display: inline;
  }

  .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
  }
  
  body.landingpage section {
    margin-top: 40px;
  }

  body.landingpage .banner {
    flex-direction: column;
    text-align: left;
    margin-bottom: 40px;
  }

  body.landingpage .banner > div {
    display: flow;
  }
    
  body.landingpage .banner h1 {
    padding-bottom: 20px;
  }

  body.landingpage .card-container {
    flex-direction: column;
  }
}

@media (max-width: 959px) {
  .banner-background,
  .banner {
    height: 260px;
  }

  .grid-item {
    width: 100%;
    min-height: 220px;
  }

  .grid-container .product-icons {
    height: 80px;
    width: 80px;
  }

  .item-enterprise ul,
  .item-basic ul {
    column-count: 2;
  }
}

@media (max-width: 479px) {
  .banner {
    height: 220px;
  }

  .item-enterprise ul,
  .item-basic ul {
    column-count: 1;
  }

  .align-text {
    display: flex;
    align-items: start;
    gap: 5pt;
  }
}