/*
 * Jauch Optik - Amparex Booking Widget Styles
 * Based on: https://amparex.clickhelp.co/resources/Storage/amparex-lts/ax_screenshots/styles-termin.css
 *
 */

html {
  font-size: 62.5%;
  margin: 0;

  /* colors from jauch_optik overrides.ts */
  --primary-color: rgb(165, 166, 14);
  --secondary-color: rgb(0, 0, 0);
  --background-color: rgb(240, 245, 248);
  --header-color: rgb(255, 255, 255);
  --text-color: rgb(0, 0, 0);
  --text-light-color: rgb(255, 255, 255);

  /* derived colors */
  --text-hover-color: rgb(80, 80, 80);
  --link-color: var(--primary-color);
  --link-hover-color: rgb(130, 131, 11);
  --icon-color: var(--primary-color);
  --icon-hover-color: rgb(220, 225, 228);
  --active-icon-color: rgb(200, 205, 208);
  --tile-color: var(--header-color);
  --tile-hover-color: rgb(230, 235, 238);
  --chosen-text-color: var(--text-light-color);
  --inputfield-color: var(--header-color);
  --confirm-inactive-color: rgb(200, 205, 208);
  --confirm-active-color: var(--primary-color);

  /* typography */
  --font-size-tile: 1.6rem;
  --font-size-tile-header: 2.5rem;
  --font-size-tile-title: 2.5rem;
  --font-size-tile-text: 1.8rem;
  --font-size-resource-tile: 2.5rem;
  --font-size-month-year: 2.5rem;
  --font-size-calendar-category: 1.6rem;
  --font-size-legal-footer: 1.2rem;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-color);
}

@media screen and (min-width: 1000px) {
  html {
    background: url("assets/calendar_background.jpg");
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: var(--background-color);
    background-attachment: fixed;
  }
  html body,
  header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .mat-grid-tile.mat-grid-tile.date-picker:hover {
    color: var(--text-hover-color);
    background: var(--tile-hover-color);
  }
  .svg-icon-button:hover {
    background-color: var(--icon-hover-color);
  }
}

body,
header {
  margin: 0;
  background-color: var(--background-color);
}

header {
  padding-top: 10px;
}

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

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

.wizard-body {
  min-height: 100vh;
  display: flex;
  flex-flow: column nowrap;
  padding-left: 5px;
  padding-right: 5px;
}

.svg-icon-button {
  border: none;
  background-color: transparent;
  width: 48px;
  height: 48px;
  border-radius: 0;
}

.nav {
  width: 100%;
  position: relative;
  z-index: 1;
  top: 5px;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 10px;
  margin-bottom: 20px;
}

.svg-icon {
  fill: none;
  stroke: var(--icon-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-width: 1.5px;
  scale: 1.1;
}

.active-icon {
  background: var(--active-icon-color);
}

.svg-icon-header {
  fill: none;
  stroke: var(--chosen-text-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-width: 1.5px;
  scale: 1.5;
}

.calendar-header {
  position: absolute;
  top: 30px;
  left: 30px;
}

.view-header-div {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

mat-grid-tile-header {
  font-size: var(--font-size-tile-header);
}

.mat-grid-tile.resource-title {
  background: var(--icon-color);
  font-size: var(--font-size-resource-tile);
  color: var(--chosen-text-color);
  box-shadow: none;
}

.mat-grid-tile.resource-title:hover {
  color: var(--chosen-text-color);
  background: var(--icon-color);
}

.resource-title-text {
  max-width: 70%;
  text-align: center;
}

.mat-grid-list {
  margin-top: 15px;
  margin-bottom: 10px;
  width: 100%;
}

.type-selector {
  width: 100%;
  overflow: hidden;
}

.align-in-tile-appointmenttype {
  position: absolute;
  left: 20px;
}

.svg-icon-button-small {
  border: none;
  background-color: transparent;
  width: 48px;
  height: 48px;
  border-radius: 0;
}

.svg-icon-button-small:hover {
  background-color: var(--icon-hover-color);
}

.svg-icon-button-small-arrows {
  border: none;
  background-color: transparent;
  width: 48px;
  height: 48px;
  border-radius: 0;
}

.svg-icon-button-small-arrows:hover {
  background-color: var(--background-color);
}

.calendar-category {
  font-size: var(--font-size-calendar-category);
}

.svg-icon-small {
  fill: none;
  stroke: var(--icon-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-width: 1.5px;
  scale: 1.2;
}

.mat-grid-tile {
  color: var(--text-color);
  font-weight: bold;
  font-size: var(--font-size-tile);
  background: var(--tile-color);
  border-radius: 0;
  white-space: pre-wrap;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.mat-grid-tile:hover {
  color: var(--text-hover-color);
  background: var(--tile-hover-color);
}

.selected {
  color: var(--chosen-text-color);
  background: var(--icon-color);
}

.mat-grid-tile.date-picker-tile {
  text-align: center;
}

.mat-grid-tile.date-picker-tile:hover {
  color: var(--chosen-text-color);
  background: var(--icon-color);
}

.date-picker-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding-bottom: 20px;
}

.date-picker-row-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-month-year);
  overflow-x: hidden;
  overflow-y: hidden;
  height: 40px;
}

.time-selector {
  width: 100%;
  text-align: center;
}

.input-forms {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 0;
}

.input-forms mat-form-field {
  width: 100%;
}

.mdc-text-field {
  background-color: var(--inputfield-color);
}

.align-in-tile-summary,
.align-in-tile-summary-branch {
  font-size: var(--font-size-tile-text);
  font-weight: normal;
  position: relative;
  left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.align-in-tile-summary-branch {
  white-space: normal;
}

.edit-symbol {
  position: absolute;
  top: 10px;
  right: 10px;
}

.svg-icon-button-smaller {
  border: none;
  background-color: transparent;
  width: 36px;
  height: 36px;
  border-radius: 0;
}

.svg-icon-button-smaller:hover {
  background-color: var(--icon-hover-color);
}

.svg-icon-smaller {
  fill: none;
  stroke: var(--icon-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  stroke-width: 1.5px;
  scale: 1;
}

.summary-header {
  font-size: var(--font-size-tile-title);
  line-height: 1.5;
}

.summary-textbox {
  position: relative;
  color: var(--text-color);
  font-weight: bold;
  font-size: var(--font-size-tile);
  background: var(--tile-color);
  border-radius: 0;
  white-space: pre-wrap;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.confirm {
  width: 100%;
  color: var(--text-color);
  background: var(--confirm-inactive-color);
}

.legal-footer {
  font-size: var(--font-size-legal-footer);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.footer-position {
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

dialog {
  text-align: center;
  background-color: var(--background-color);
  color: var(--text-color);
  border-color: transparent;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.1);
}

.waiting-message-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dialog-text {
  font-size: var(--font-size-tile-text);
  padding-bottom: 10px;
}

.dialog-confirm-button {
  color: var(--text-color);
  font-weight: bold;
  font-size: var(--font-size-tile);
  background: var(--active-icon-color);
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.dialog-confirm-button:hover {
  color: var(--text-hover-color);
  background: var(--tile-hover-color);
}
