/* ! Change in Kuechenlotse.Main/wwwroot */
/* init */

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-top: 100px;
  margin-bottom: 60px;
}

/* .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary);
} */

/* grid */
/* by https://ryanmulligan.dev/blog/layout-breakouts/ */

.content-grid {
  --gap: clamp(1rem, 6vw, 3rem);
  --full: minmax(var(--gap), 1fr);
  --content-in: min(15rem, 17% - var(--gap));
  --content-out: min(25rem, 33% - var(--gap));
  --popout: minmax(0, 15rem);
  --feature: minmax(0, 20rem);

  display: grid;
  grid-template-columns:
    [full-start] 0 [full-left-start] 0 [side-left-start] var(--full) [feature-start] 0 [left-start] 0 [short-feature-left-start] var(--feature) [popout-start] var(--popout) [content-start] 0 [side-left-end] 0 [short-left-start] var(--content-out) [short-feature-left-end] 0 [short-left-end] 0 [main-feature-right-start] 0 [main-right-start] var(--content-in) [full-left-end] 0 [left-end] 0 [right-start] 0 [full-right-start] var(--content-in) [short-right-start] var(--content-out) [content-end] 0 [main-feature-right-end] 0 [short-right-end] 0 [side-right-start] var(--popout) [popout-end] var(--feature) [right-end] 0 [main-feature-right-end] 0 [feature-end] var(--full) [side-right-end] 0 [full-right-end] 0 [full-end];
}

.content-grid>* {
  grid-column: content;
}

.popout {
  grid-column: popout;
}

.feature {
  grid-column: feature;
}

.full {
  grid-column: full;
}

.left,
.short-feature-left,
.short-left,
.full-left,
.side-left,
.right,
.main-feature-right,
.main-right,
.full-right,
.short-right,
.side-right {
  grid-column: content;
  padding-bottom: 15px;
}

@media (min-width: 768px) {
  .full-left {
    grid-column: full-left;
  }

  .left {
    grid-column: left;
  }

  .short-feature-left {
    grid-column: short-feature-left;
  }

  .short-left {
    grid-column: short-left;
  }

  .side-left {
    grid-column: side-left;
  }

  .right {
    grid-column: right;
  }

  .main-feature-right {
    grid-column: main-feature-right;
  }

  .main-right {
    grid-column: main-right;
  }

  .full-right {
    grid-column: full-right;
  }

  .side-right {
    grid-column: side-right;
  }

  .short-right {
    grid-column: short-right;
  }
}

/* functional */

.on-center {
  margin: auto;
}

.on-right {
  margin-left: auto;
}
.side-by-side > .on-right {
  justify-self: end;
}

.scroll-container {
  overflow: auto;
}

.side-by-side,
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}

.tag {
  display: flex;
  gap: 3px;
  justify-content: space-between;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  background-color: var(--transparent);
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  border-radius: .25rem;
}

.tag>.btn {
  padding: 0;
  padding-left: 5px;
  /* XXX: why is this more centered? */
  padding-right: 6px;
}

.full-width,
.big-width,
.half-width {
  width: 100%;
}

.small-width {
  width: 60%;
}


.tiny-width {
  width: 36px;
}

img.tiny-width{
  width: 49%;
}

@media (min-width: 768px) {
  .big-width {
    width: 80%;
  }

  .half-width {
    width: 50%;
  }

  .small-width {
    width: 40%;
  }

  img.tiny-width{
    width: 24%;
  }
  
}

.space-around {
  padding: 10px;
}

.space-on-side {
  padding-left: 10px;
  padding-right: 10px;
}

.left-text {
  text-align: left;
}
.right-text,
.number {
  text-align: right;
}

.right-text-force {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  width: 95%;
}

.center-text {
  text-align: center;
}

.center {
  text-align: center;
  align-items: center;
  vertical-align: middle;
  align-content: center;
}

/* Layout */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--secondary);
  z-index: 1000;
}

.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.main-brand {
  color: var(--primary);
}

.sub-brand {
  position: relative;
  top: -5px;
  color: var(--accent);
}


.navbar-toggler-icon {
  background-color: var(--primary);
  color: var(--secondary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0,0,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  /* XXX no url? */
  border-radius: 20%;

}

.navbar-light .navbar-toggler {
  border-color: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

header,
.nav-link,
.dropdown-item,
.dropdown-menu,
footer {
  background-color: var(--secondary);
  border-color: var(--accent);
  color: var(--text);
}

.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--secondary);
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 768px) {
  .right-nav {
    position: absolute;
    right: 0;
  }
}

.border-top {
  border-top: 1px solid var(--accent);
}

.border-bottom {
  border-bottom: 1px solid var(--accent);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  z-index: 1000;
}

/* Login */

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.popup {
  border-radius: 15px;
  position: relative;
  margin: 75px auto;
  padding: 20px;
  background-color: var(--background);
  border: 0.2rem solid var(--primary);
}

#loginNav {
  border-radius: 5%;
}

/* Bootstrap (BS) Overwrites */

.form-control {
  color: var(--text);
  background-color: var(--transparent-active);
}

.form-control[readonly] {
  color: var(--text);
  background-color: var(--background);
}

.form-control:focus,
.btn:focus {
  border-color: var(--accent);
  color: var(--text);
  background-color: var(--secondary);
  outline-color: currentcolor;
  box-shadow: rgba(var(--accent-values), 0.25) 0px 0px 0px 0.25rem;
}

.form-control[readonly]:focus {
  border-color: gray;
  box-shadow: rgba(128, 128, 128, 0.25) 0px 0px 0px 0.25rem;
}

.btn {
  color: var(--text);
}


.hidden,
.tmp-hidden,
.search-hidden {
  display: none !important; 
}

/* alert */

#alerthere {
  position: absolute;
  z-index: 2000;
}