html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html, body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.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 #ff922b;
}

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

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.form-table {
  width: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
}

.form-table td {
  padding: 0.4rem 0;
  vertical-align: middle;
}

.form-table td:first-child {
  padding-right: 1rem;
  white-space: nowrap;
  width: 1%;
}

.form-table td:last-child {
  width: 100%;
}

.form-table input.form-control,
.form-table select.form-select {
  width: 110px;
}

.calc-results {
  width: 340px;
  max-width: 100%;
}

.affiliate-label {
  display: inline-block;
  min-width: 110px;
}

.affiliate-disclosure {
  font-size: 0.75rem;
  color: #adb5bd;
}

/* Marken-Akzentfarbe und Layout wie im Projekt Marktanalyse_App (Sidebar-Menü, Orange-Töne) */
a, .btn-link {
  color: #e8590c;
}

.btn-primary {
  color: #fff;
  background-color: #e8590c;
  border-color: #c94d0a;
}

.btn-primary:hover, .btn-primary:active {
  background-color: #c94d0a;
  border-color: #a83f08;
}

.btn-outline-primary {
  color: #e8590c;
  border-color: #e8590c;
}

.btn-outline-primary:hover, .btn-outline-primary:active {
  color: #fff;
  background-color: #e8590c;
  border-color: #e8590c;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sidebar {
  background-image: linear-gradient(180deg, #e8590c 0%, #7a2c05 70%);
}

.sidebar .top-row {
  min-height: 3.5rem;
  background-color: rgba(0, 0, 0, 0.4);
}

.sidebar .navbar-brand {
  font-size: 1.1rem;
  color: #fff;
}

.navbar-toggler {
  appearance: none;
  cursor: pointer;
  width: 3.5rem;
  height: 2.5rem;
  color: white;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked {
  background-color: rgba(255, 255, 255, 0.5);
}

.nav-item {
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
  padding-top: 1rem;
}

.nav-item:last-of-type {
  padding-bottom: 1rem;
}

.nav-item .nav-link {
  color: #d7d7d7;
  background: none;
  border: none;
  border-radius: 4px;
  height: 3rem;
  display: flex;
  align-items: center;
  line-height: 3rem;
  width: 100%;
  padding-left: 0.75rem;
}

.nav-item .nav-link.active {
  background-color: rgba(255, 255, 255, 0.37);
  color: white;
}

.nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-subitem {
  padding-bottom: 0.25rem;
}

.nav-subitem .nav-link {
  height: 2.25rem;
  line-height: 2.25rem;
  font-size: 0.8rem;
  padding-left: 1.75rem;
  color: rgba(215, 215, 215, 0.85);
}

.nav-scrollable hr {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.nav-scrollable {
  display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
  display: block;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding-top: 1.1rem;
}

@media (min-width: 641px) {
  .page {
    flex-direction: row;
    align-items: flex-start;
  }

  .sidebar {
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .navbar-toggler {
    display: none;
  }

  .nav-scrollable {
    display: block;
    height: calc(100vh - 3.5rem);
    overflow-y: auto;
  }

  main {
    flex: 1;
    min-width: 0;
  }

  .content {
    padding-left: 2rem !important;
    padding-right: 1.5rem !important;
  }
}
