@charset "UTF-8";

:root {
  --border-radius: 8px;
  --button-radius: 8px;
  --margin: 40px;
  --gap: 20px;
  --red: #D8001B;
  --black: #111;
}

@font-face {
  font-family: "base-font";
  font-weight: 300;
  font-display: swap;
  src: url("fonts/SofaSans-300.woff") format("woff");
}

@font-face {
  font-family: "base-font";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/SofaSans-500.woff") format("woff");
}

@font-face {
  font-family: "base-font";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/SofaSans-700.woff") format("woff");
}

@font-face {
  font-family: "base-font";
  font-weight: 900;
  font-display: swap;
  src: url("fonts/SofaSans-900.woff") format("woff");
}

@font-face {
  font-family: "icons";
  font-weight: normal;
  font-display: swap;
  src: url("fonts/SofaIcons-Regular.woff") format("woff");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 1rem;
  font-family: "base-font", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.4;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 0 auto;
}
.margin-gap{ margin-bottom: var(--gap); }
.margin-bottom-s{ margin-bottom: calc(var(--margin) / 2); }
.margin-bottom{ margin-bottom: var(--margin); }
.margin-bottom-m{ margin-bottom: calc(var(--margin) * 2); }
.margin-bottom-l{ margin-bottom: calc(var(--margin) * 4); }

.padding-vertical{
  padding-top: 5em;
  padding-bottom: 5em;
}
.padding{ padding: 2em; }
.padding-l{ padding: 4em; }

.border-radius{
  border-radius: var(--border-radius);
}
.hide { display: none; }
.show-on-mobile{ display: none; }

#site-footer {
  flex-shrink: 0;
}

/* Typo */

h1, h2, h3, h4, .like-h1 {
  font-size: clamp(1.5rem, 3vw, 4rem);
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 .2em 0;
}

h2, .like-h2 {
  font-size: clamp(1.5rem, 2.5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: .8em;
}

h3 {
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
  margin-bottom: .7em;
}

h4 {
  color: var(--black);
  font-size: 1em;
  margin-bottom: .2em;
}
.smaller{
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
}
.light{
  font-weight: 300;
}
b, strong{
  font-weight: 700;
}
p {
  margin: 0;
}
.intro{
  font-size: clamp(1.2rem, 1.3vw, 1.8rem);
  margin-bottom: .5em;
}
.icon,.icons{
  font-family: "icons"; 
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  &:hover {
    
  }
}

.uname {
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 4rem);
  line-height: 100%;
  text-transform: uppercase;
}
.dname {
  font-size: clamp(0.7rem, 1.2vw, 2rem);
  text-transform: lowercase;
  color: white;
  margin-top: 2px;
}

.note{
  margin-top: .9em;
  font-size: clamp(0.7rem, 1.1vw, 1rem);
}




.alert {
  color: var(--red);
  padding: 1em;
}

/* Colors */

.red {
  color: var(--red);
}
.white{
  color: white;
}
.black{
  color: var(--black);
}
.bg{
  background-color: #efefef;
}
.bg-red{
  background-color: var(--red);
}
.bg-white{
  background-color: white;
}
.bg-beige{
  background-color: #f5f2ef; /* #FCF8F5; */
}

/* Grid */

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  
  img{
    width: 100%;
  }
}

.flex{
  display: flex;
  flex-direction: column;
}

.col3{
  grid-template-columns: 1fr 1fr 1fr;
}

.col4{
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.self-center-vertical{
  align-self: center;
}
.width-small{
  width: 50%;
}
.center-text{
  text-align: center;
}

/* Legal */

.legal {
  h1 {
    margin-bottom: 1em;
  }
  h2, h3, h4 {
    line-height: 1.2;
    color: var(--black);
    margin: 2em 0 .5em 0;
    text-transform: none;
    font-weight: 500;
  }
  h2 {
    font-size: 1.4em;
  }
  h3 {
    font-size: 1.2em;
  }
  h4 {
    font-size: 1em;
    text-transform: none;
  }
  p {
    margin-bottom: 1em;
  }
}

/* Buttons */

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .5em .8em;
  border: 1px solid var(--black);
  border-radius: var(--button-radius);
  background: var(--black);
  color: #fff;
  font-family: "base-font", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  & a {
    text-decoration: none;
  }
  &.icon,
  &.icons{
    font-size: clamp(0.7rem, 1.2vw, 1.2rem);
    line-height: 1;
  }
}

/* Varianten */

.button-primary, button.primary {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.button-secondary, button.secondary, .ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.button-light, button.light {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

.button-ghost, button.ghost {
  color: var(--black);
  border-color: var(--black);
  &.white-bg{
    background-color: rgba(255, 255, 255, 0.9);
  }
  &:hover {
    background: white;
    border-color: white;
  }
  &.white {
    color: white;
    border-color: white;
    &:hover {
      background: var(--black);
      border-color: var(--black);
    }
  }
  
}

.button-danger, button.danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Größen */

.button-small, button.small-btn {
  padding: 0 14px;
  font-size: .85rem;
  color: var(--red) !important;
}

.button-large, button.large {
  font-size: clamp(1rem, 1.8vw, 2rem);
}
.button-svg{
  padding: .2em .4em;
  margin-right: .4em;
}

/* States */

button: hover, ;
.button: hover {
  text-decoration: none;
}

button: disabled, ;
.button.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.button-pending {
  border: 0;
  font-size: .8em;
}
.button-form,
.btn-edit,
.btn-del{
  font-size: clamp(.8em,1vw,1em);
}

/* Header */

.hero {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100vh;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: var(--margin);
  img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    &.home-img{
      object-position: 50% 50%;
    }
  }
  header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
    gap: 12px;
    &.sedcard {
      padding: 1em var(--margin);
      color: white;
      background: rgba(0, 0, 0, 0.2);
    }
  }
  .logo {
    font-size: clamp(0.9rem, 1.5vw, 2.7rem);
    a {
      color: inherit;
      text-decoration: none;
    }
  }
  &.auto {
    aspect-ratio: auto;
    background: var(--red);
    color: white;
  }
  &.discover {
    aspect-ratio: auto;
    background: var(--red);
    color: white;
    .filter {
      display: flex;
      flex-wrap: wrap;
      gap: 0 var(--gap);
      padding: 1em 0em 2em 0em;
      align-items: flex-start;
       > label, > .rangeFilter, > #skillFilters, > .row {
        flex: 0 0 auto;
      }
    }
    .content {
      padding: 1em 2em;
    }
  }
  &.profile {
    aspect-ratio: auto;
    background: var(--red);
    color: white;
  }
  .headline {
    position: absolute;
    bottom: clamp(1.5rem, 5vw, 10rem);
    z-index: 1;
    h1 {
      font-size: clamp(2rem, 8vw, 10rem);
    }
    .subline {
      font-size: clamp(1rem, 2.5vw, 3rem);
      line-height: 1.3em;
      margin-bottom: .7em;
    }
  }
}

/* Content */

.container {
  width: calc(100% - 2 * var(--margin));
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}
.container-small {
  width: 80%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.bg-image{
  width: 100%;
  overflow: hidden;
  background-size: cover;
}

.flex-break {
  flex-basis: 100%;
  height: 0;
}

.card {
  /*margin-bottom: calc(2 * var(--margin));*/
}

.secHead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--margin);
}

/* Discover */

.rangeFilter {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  margin: 0 0 12px 0;
}

.rangeHead {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 24px;
  margin: 0 0 4px 0;
  font-size: .7em;
  white-space: nowrap;
}

.rangeHead p {
  margin: 0;
}

.rangeSlider {
  position: relative;
  display: block;
  width: 100%;
  height: 32px;
  flex: 0 0 32px;
}

.rangeSlider input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 20px;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
  appearance: none;
  background: transparent;
}

.rangeSlider input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: white;
  border-radius: 999px;
}

.rangeSlider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  pointer-events: auto;
}

.rangeSlider input[type="range"]::-moz-range-track {
  height: 1px;
  background: white;
  border-radius: 999px;
}

.rangeSlider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  pointer-events: auto;
}

/* Profile Grid */

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--margin);
}

@media (min-width: 720px) {
  .profiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Profile Card */

.profile-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  background: #f0f0f0;
}

.meta {
  position: absolute;
  bottom: 0;
  margin: 1.4em;
  color: white;
  
}

.badge-verified {
  position: absolute;
  top: 10px;
  right: 10px;
  width: clamp(1.5em, 3vw, 4em);
  height: clamp(1.5em, 3vw, 4em);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.badge-verified svg {
  width: clamp(1.5em, 3vw, 4em);
  height: clamp(1.5em, 3vw, 4em);
  display: block;
  fill: #fff;
}

/* Sedcard Page */

#sedcard{
  .hero{
    aspect-ratio: 16/9;
  }
}
.profile-content {
  background: #efefef;
}

.profile-details {
  text-align: center;
  margin-bottom: var(--margin);
  padding: var(--margin) 0;
  .profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    /* Verified */

  }
  .profile-name {
    margin: 0;
  }
  .verified-badge {
    position: relative;
    top: -.5em;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  .verified-badge svg {
    display: block;
    width: clamp(1em, 1.5vw, 2em);
    height: clamp(1rem, 1.5vw, 2em);
  }
  .subline {
    display: none;
    font-size: 1rem;
  }
  .bio {
    width: 70%;
    margin: 0 auto 1.2em auto;
    padding: 1em 0;
  }
  .facts {
    display: inline-block;
    margin: 1.2em 0;
    font-size: clamp(.8rem, 1.2vw, 2rem);
    
    
    .fact {
      display: inline-block;
      padding: 0 .4rem;
      .k {
        display: inline;
        text-transform: uppercase;
      }
      .v {
        display: inline;
        font-weight: 700;
      }
    }
  }
  .profile-skills {
    .facts {
      display: inline-block;
      .fact {
        display: inline-block;
        padding: 0 .4rem;
        .k {
          display: block;
          text-transform: uppercase;
        }
        .v {
          display: block;
          text-transform: lowercase;
          font-family: "icons";
        }
      }
    }
  }
}

/* Booking Request */

.booking-request {
  margin-top: 1em;
  .badge-note {
    font-size: .8em;
    color: #b00020;
    margin-top: .8em;
  }
}

#btn-booking {
  position: relative;
  font-size: 1em;
}

/* Social Links */

.social-links {
  padding: 1em 0;
  text-align: center;
  a {
    text-decoration: none;
    margin: 0 .3em;
  }
  a: hover {
    font-weight: normal;
  }
  .ico svg {
    width: 32px;
    height: 32px;
    display: inline-block;
  }
}

.profile-sedcard-images, .profile-polaroid-images {
  width: 100%;
  margin-bottom: calc(2 * var(--margin));
}

.gallery-mount {
  width: 100%;
}

.media-layout {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 100%;
}

.media-row {
  display: grid;
  gap: 0px;
  width: 100%;
  align-items: stretch;
}

/* Standard-Fälle */

.media-row.cols-1 {
  grid-template-columns: 1fr;
}

.media-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Gemischte Muster */

.media-row.pattern-ll {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-row.pattern-lpp {
  grid-template-columns: 2fr 1fr 1fr;
}

.media-row.pattern-plp {
  grid-template-columns: 1fr 2fr 1fr;
}

.media-row.pattern-ppl {
  grid-template-columns: 1fr 1fr 2fr;
}

.media-row.pattern-lp {
  grid-template-columns: 2fr 1fr;
}

.media-row.pattern-pl {
  grid-template-columns: 1fr 2fr;
}

.media-row.pattern-llpp {
  grid-template-columns: 2fr 2fr 1fr 1fr;
}

.media-row.pattern-ppll {
  grid-template-columns: 1fr 1fr 2fr 2fr;
}

.media-row.pattern-lpl {
  grid-template-columns: 2fr 1fr 2fr;
}

.media-item {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  min-width: 0;
}

.media-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-item.is-portrait img {
  aspect-ratio: 3 / 4;
}

.media-item.is-landscape img {
  aspect-ratio: 4 / 3;
}

/* Mobile only */
/*
@media (max-width: 640px) {
  .profile-sedcard-images, .profile-polaroid-images {
    margin-top: 20px;
  }
  .media-layout {
    gap: 12px;
  }
  .media-row {
    gap: 12px;
    grid-template-columns: 1fr !important;
  }
  .media-item img, .media-item.is-portrait img, .media-item.is-landscape img {
    aspect-ratio: auto;
    height: auto;
  }
}
*/

input, textarea, select {
  width: 100%;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  background-color: #fff;
  color: var(--black);
  font-family: "base-font";
  font-weight: 300;
  font-size: clamp(1em, 1vw, 1em);
}

select {
  font-size: clamp(1em, 1vw, 1em);
  font-weight: 300;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
  color: var(--black);
}

input: focus, ;
textarea: focus, ;
select: focus {
  outline: 3px solid var(--black);
  outline-offset: 0;
}

input[type="file"] {
  width: auto;
  max-width: 75%;
}
input[type="checkbox"] {
  width:  clamp(1.5em, 1.7vw, 1.7em);
  height:  clamp(1.5em, 1.7vw, 1.7em);
}

.dropzone {
  padding: 2em;
  border: 2px dashed #bbb;
  border-radius: var(--border-radius);
  text-align: center;
  background: white;
  margin-bottom: 10px;
}

.dropzone.dragover {
  border-color: #111;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gitem {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #eee;
  background: #f6f6f6;
}

.gitem img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ================================
   Profile editor gallery (profile.html)
   Portrait = 3/4, Landscape = 6/4
   ================================ */

.profile-page .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}

@media (min-width: 900px) {
  .profile-page .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.profile-page .gitem {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
}

.profile-page .gitem.is-landscape {
  grid-column: span 2;
}

.profile-page .gitem.is-portrait {
  grid-column: span 1;
}

.profile-page .gitem img, .profile-page .gitem img.thumb {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: cover;
  background: #f6f6f6;
  aspect-ratio: 3 / 4;

  /* default portrait */

}

.profile-page .gitem.is-landscape img, .profile-page .gitem.is-landscape img.thumb {
  aspect-ratio: 6 / 4;
}

.profile-page .gbar {
  position: static !important;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff !important;
  color: #111 !important;
  border-top: 1px solid #eee;
  font-size: 12px;
}

.profile-page .gbar .btn-edit, .profile-page .gbar .btn-del {
  padding: 8px 10px;
  border-radius: var(--button-radius);
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.profile-page .gbar .btn-edit {
  border-color: var(--black);
  color: var(--black);
}

.profile-page .gbar .btn-del {
  border-color: #b00020;
  color: #b00020;
}

.gbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  color: #fff;
  font-size: 12px;
}

.btn-del {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.stars {
  display: flex;
  gap: 4px;
}

.star {
  cursor: pointer;
  user-select: none;
  opacity: 1;
  color: white;
  text-shadow: 0 0 2px rgba(0, 0, 0, 1);
}

.star.on {
  color: var(--black);
  opacity: 1;
  text-shadow: none;
}

label {
  display: block;
  margin: 0 0 15px 0;
  font-weight: 500;
  p {
    font-size: .75rem;
    white-space: nowrap;
    text-transform: uppercase;
    margin-bottom: .4em;
  }
}

.grid > div {
  min-width: 0;
}

.profile-card, .gitem {
  position: relative;
}

#reference {
  margin-bottom: calc(var(--margin) * 2);
  text-align: center;
  .small {
    font-size: clamp(.7em,1vw,1em);
    margin: 0;
  }
  .nf-typo {
    font-size: clamp(1.2em,1.7vw,2em);
  }
  a.no-underline {
    font-size: clamp(1.4em,1.9vw,2.2em);
    color: var(--black);
    text-decoration: none;
  }
}

#footer {
  width: 100%;
  height: auto;
  font-size: clamp(.7rem,1vw,1em);
  background: var(--black);
  color: white;
  padding: 2em 0;
  
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--margin);
  }
  a {
    color: white;
  }
}

/* Login / Register */

#login-register {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #efefef;
  #status {
    display: none;
  }
  #btn-home {
    font-size: 2em;
    line-height: 1;
    color: white;
    background: var(--black);
    margin-bottom: 3em;
  }
   > .grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  @media (max-width: 768px) {
     > .grid {
      display: grid;
      grid-template-columns: 1fr;
    }
  }
  .hero {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 40% 50%;
    }
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--red);
      mix-blend-mode: multiply;
      pointer-events: none;
      z-index: 1;
    }
    .row {
      width: 100%;
      display: flex;
      justify-content: space-between;
    }
  }
  header {
    position: relative;
    display: flex;
    z-index: 2;
    color: white;
    min-height: 100%;
    align-items: start;
    flex-direction: column;
    justify-content: space-between;
    h2 {
      font-size: clamp(2rem, 5vw, 6rem);
      line-height: 1.2;
      color: white;
      .light {
        font-weight: 300;
      }
    }
    .subline {
      font-size: clamp(1rem, 2vw, 5rem);
      line-height: 1.3;
      margin-bottom: 2em;
      b {
        font-weight: 900;
      }
    }
  }
  .form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 4rem;
    h1, h3 {
      color: var(--red);
    }
    .small {
      margin: 1em 0;
      opacity: .7;
    }
    #username-hint.small {
      display: inline-block;
      background: #b00020;
    }
  }
  .roleRow {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    background: white;
    border-radius: var(--button-radius);
    padding: 4px;
    gap: 0;
  }
  .roleBtn {
    flex: 1;
    padding: 14px 18px;
    border: 0;
    border-radius: var(--button-radius);
    background: transparent;
    cursor: pointer;
    /*font-size: 1em;*/
    line-height: 1;
    font-weight: 300;
    color: var(--black);
    transition: all .2s ease;
  }
  .roleBtn.active {
    background: #000;
    color: #fff;
  }
  .form-fields {
    width: 80%;
    .col2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1em;
    }
    .username-box {
      font-weight: 300;
      display: flex;
      align-items: center;
      margin-top: 6px;
    }
    .iconBox {
      width: 28px;
      height: 100%;
      display: flex;
      align-items: center;
    }
    .iconBox svg {
      width: 22px;
      height: 22px;
      display: inline-block;
    }
    .ok svg {
      fill: #00bf3b;
    }
    .bad svg {
      fill: #ec0000;
    }
  }
  .muted {
    opacity: .65;
  }
  
  .register-note{
    font-size: clamp(.7em,1vw,1em);
  }
  
  @media (max-width: 640px) {
    .form-fields {
      width: 100%;
    }
    /*
    .roleBtn {
      font-size: 18px;
      padding: 12px;
    }*/
  }
}

/* Backend */

#profile-backend .hero-image-container {
  position: relative;
  .heroPrev {
    margin-bottom: .5em;
  }
}

#profile-backend #hero-preview {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: var(--gap);
  overflow: hidden;
  .live-hero {
    position: relative;
    aspect-ratio: 16/9;
  }
  .pending-hero {
    position: relative;
    aspect-ratio: 16/9;
  }
  img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    object-fit: cover;
    background: #f0f0f0;
  }
  .hero-state {
    position: absolute;
    left: 12px;
    bottom: 12px;
  }
}

#profile-backend #hero-preview .live-hero .hero-state {
  background: rgba(19, 193, 0, 1);
}

#profile-backend #hero-preview .pending-hero .hero-state {
  background: rgba(235, 171, 0, 1);
}

#profile-backend {
  background: white;
  .card {
    border-radius: var(--border-radius);
    padding: clamp(.8em, 1.5vw, 2em) clamp(.8em, 1.5vw, 2em);
    margin-bottom: var(--margin);
    /*padding: 1.5em 2em;
    /*margin-bottom: 2em;*/
    background: #efefef;
  }
  h3 {
    .small {
      font-size: .8rem;
      font-weight: 300;
      text-transform: none;
    }
  }
  .tab-bar {
    .tabs {
      display: flex;
      flex-wrap: wrap;
    }
    .tabbtn {
      background: #fff;
      color: var(--black);
      cursor: pointer;
      margin-right: var(--gap);
    }
    .tabbtn.active {
      border-color: var(--black);
      background: var(--black);
      color: #fff;
    }
  }
  .tabpane {
    display: none;
  }
  .tabpane.active {
    display: block;
  }
  .profile-image-container {
    .avatarPrev {
      position: relative;
      width: 100%;
      margin-bottom: .5em;
    }
    #avatar-preview {
      position: relative;
      display: flex;
      flex-direction: row;
      gap: var(--gap);
      flex-wrap: wrap;
      .avatar-state {
        position: absolute;
        inset: auto auto 12px 12px;
      }
      img {
        display: block;
        width: 100%;
        height: 200px;
        aspect-ratio: 3/4;
        object-fit: cover;
        border-radius: var(--border-radius);
        background: #f0f0f0;
      }
      .live-image {
        position: relative;
        .avatar-state {
          background: rgba(19, 193, 0, 1);
        }
      }
      .pending-image {
        position: relative;
        .avatar-state {
          background: rgba(235, 171, 0, 1);
        }
      }
    }
  }
  .model-data-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--gap);
  }
  .model-data-input > label {
    /*flex: 1 1 160px;*/
    flex: 1 1 40%;
    max-width: 220px;
  }
  .model-social-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--gap);
  }
  #skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 calc(var(--gap) * 2);
    .skill-row label p {
      margin-bottom: .8em;
    }
  }
}

#profile-backend{
  h2,h3{
    /*
    color: var(--black);
    text-transform: none;
    font-weight: 500;*/
  }
  .sedcard-inspiration{
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    margin-bottom: 1em;
    
    img{
      width: auto;
      max-height: 10em;
      border-radius: var(--border-radius);
    }
  }
  
  .polaroid-inspiration{
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    margin-bottom: 1em;
    
    img{
      width: auto;
      max-height: 8em;
      border-radius: var(--border-radius);
    }
  }
}

/* ===== UI Busy Overlay (upload/login/register) ===== */

.ui-busy {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.ui-busy.open {
  display: flex;
}

.ui-busy .card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 12px 14px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(0, 0, 0, .06);
}

.ui-busy .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ui-busy .title {
  font-weight: 800;
  font-size: 16px;
}

.ui-busy .msg {
  font-size: 13px;
  opacity: .8;
  margin-top: 2px;
}

.ui-busy .close {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.ui-busy .barwrap {
  height: 12px;
  background: #efefef;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.ui-busy .bar {
  height: 100%;
  width: 0%;
  background: var(--black);
  transition: width .12s ease;
}

.ui-busy .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 10px;
}

.ui-busy .pct {
  font-size: 12px;
  opacity: .7;
}

.ui-busy .note {
  font-size: 12px;
  opacity: .7;
}

/* Log */

#upload-log-image {
  display: none;
  background: var(--red);
}

.loader {
  border: 4px solid #f3f3f3;

  /* Light grey */

  border-top: 4px solid #3498db;

  /* Material Blue */

  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== newfaces global overlay (UIBusy) ===== */

#nf-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2em;
  background: rgba(0, 0, 0, .55);
}

#nf-overlay .box {
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1em 1.5em 2em 1.5em;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .35);
}

#nf-overlay .head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

#nf-overlay .title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

#nf-overlay .msg {
  margin-top: 8px;
  line-height: 1.35;
}

#nf-overlay .barwrap {
  margin-top: 12px;
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

#nf-overlay .bar {
  height: 100%;
  width: 0%;
}

#nf-overlay .pct {
  margin-top: 8px;
  font-size: 12px;
  opacity: .7;
}

#nf-overlay .x {
  font-size: 1em;
  color: white;
  background: var(--black);
  border-radius: var(--button-radius);
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
}

/* pending badge on image tiles */

.img-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--black);
  color: #fff;
}

.img-badge.pending {
  background: #ff9800;
  color: var(--black);
}

.drag-handle {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .75;
}

.drag-handle svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 800px) {
  :root{
    --margin: 20px;
    --gap: 10px;
  }
/*
  .hero{
    aspect-ratio: 4/3;
  }
  */
  
  
  
  #login-register {
    > .grid{
      display: block;
    }
    .form{
      margin: 2em;
      .sign-in, .sign-up{
        margin-bottom: 3em;
      }
    }
  }
  
  .meta{ margin: .8em; }
  
  
}

#get-discovered{  
  .real-people-teaser{
    background-size: cover;
    background-position: 50% 50%;
    aspect-ratio: 16/9;
    justify-content: end;
  }
}


@media (max-width: 580px) {
  :root{
    --margin: 14px;
    --gap: 10px;
  }
  .hero{
    aspect-ratio: 1/1;
    
    &.home-img{
      object-position: 25% 50%;
    }
    
    &.discover {
      & .filter {
        > label, > .rangeFilter, > #skillFilters, > .row {
          flex: auto;
          width: 100%;
          }
      }
    }
  }
  .show-on-mobile{
    display: inherit;
  }
  label {
    width: 100%;
  }
  
  .profile-card img {
    aspect-ratio: 5 / 6;
  }
  
  #login-register {
    .form {
        margin: 2em 1em;
    }
  }
  
  .width-small{
    width: 100%;
  }
  
  .col3{
    grid-template-columns: 1fr;
  }
  .col4{
    grid-template-columns: 1fr 1fr;
  }
  
  #get-discovered,
  #for-clients{
   
   .gd-portraits{
     grid-template-columns: 1fr 1fr;
     gap: 0;
     
     img{
       border-radius: 0;
     }
     
     &.container{
       width: 100%;
     }
   }
   
   .padding-l{
     padding: 2em;
   }
   
   .real-people-teaser{
     aspect-ratio: 4/5;
     .col2{
       grid-template-columns: 1fr;
     }
   }
  }
  
  /*
  #profile-backend {
    .card {
      padding: 1.5em 2em;
      margin-bottom: var(--margin);
    }
  }
*/
}