/* Kundenportal – Ergänzungen zum Theme */

/* Markenfarben aus dem Logo „NORM Prüfung“ */
:root {
  --marke-blau: #0b4f74;
  --marke-blau-dunkel: #083b57;
  --marke-blau-hell: #e7f0f5;
  --marke-schwarz: #282828;
}

/* Logo mit Schriftzug */
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.marke img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.marke-text {
  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.marke-hell .marke-text { color: #fff; }
.marke-dunkel .marke-text { color: var(--marke-blau); }

/* Seitenleiste in Markenblau */
.sidebar .sidebar-header {
  background-color: var(--marke-blau-dunkel);
}

.sidebar,
.sidebar .sidebar-navigation {
  background-color: var(--marke-blau);
}

.sidebar .menu-category {
  color: rgba(255, 255, 255, .55);
}

.sidebar .menu-link,
.sidebar .menu-link .icon,
.sidebar .menu-link .title {
  color: rgba(255, 255, 255, .85);
}

.sidebar .menu-item:hover > .menu-link,
.sidebar .menu-item.active > .menu-link {
  background-color: var(--marke-blau-dunkel);
}

.sidebar .menu-item:hover > .menu-link .title,
.sidebar .menu-item.active > .menu-link .title,
.sidebar .menu-item.active > .menu-link .icon {
  color: #fff;
}

/* Firmenauswahl: aktuell gewählte Firma hervorheben */
.card.firma-aktuell {
  box-shadow: 0 0 0 2px var(--marke-blau);
}

.card.firma-aktuell .card-header {
  background-color: var(--marke-blau-hell);
}

.card-header.firma-kopf {
  display: block;
}

.firma-kopf .badge {
  margin-top: 6px;
}

.firma-knopf {
  min-width: 120px;
  white-space: normal;
}

.badge-marke {
  color: #fff;
  background-color: var(--marke-blau);
}

.btn-outline-marke {
  color: var(--marke-blau);
  border: 1px solid var(--marke-blau);
  background: transparent;
}

.btn-outline-marke:hover,
.btn-outline-marke:focus {
  color: #fff;
  background-color: var(--marke-blau);
}

/* Anmeldeseiten */
body.gast {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--marke-blau) 0%, var(--marke-blau-dunkel) 100%);
}

.card-header.gast-kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-bottom: 3px solid var(--marke-blau);
  padding-top: 24px;
  padding-bottom: 16px;
}

.gast-kopf img {
  display: block;
  margin: 0 0 10px;
}

.gast-titel {
  color: var(--marke-blau);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.gast-untertitel {
  color: #6c757d;
  font-size: 13px;
}

.btn-marke {
  color: #fff;
  background-color: var(--marke-blau);
  border-color: var(--marke-blau);
}

.btn-marke:hover,
.btn-marke:focus {
  color: #fff;
  background-color: var(--marke-blau-dunkel);
  border-color: var(--marke-blau-dunkel);
}

/* Seiten ohne Seitenleiste (z. B. Pflicht-Passwortänderung) */
main.ohne-menue,
.ohne-menue + .topbar,
body:not(:has(.sidebar)) .topbar {
  padding-left: 0;
  left: 0;
}

.protokoll-link {
  font-size: 18px;
  line-height: 1.6em;
}

.alert .close {
  text-decoration: none;
}

/* DataTables 1.13: Auswahl „Einträge anzeigen“ – Platz für den Pfeil (Theme-CSS ist Bootstrap 4.0-beta) */
div.dataTables_wrapper div.dataTables_length select {
  width: auto;
  min-width: 4.5rem;
  padding-right: 1.75rem;
  margin: 0 .25rem;
}

/* Zwei-Faktor-Anmeldung */
.zweifaktor-code {
  font-size: 1.4rem;
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
}

.zweifaktor-qr {
  width: 220px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.zweifaktor-schluessel {
  font-size: 1rem;
  letter-spacing: .08em;
  word-break: break-all;
}

.zweifaktor-knoepfe {
  gap: 10px 16px;
}

.notfallcodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
}

.zweifaktor-wahl {
  border: 1px solid #e3e6ea;
}

/* Textseiten (Datenschutzerklärung) */
.textseite {
  max-width: 860px;
}

.datenschutz {
  font-size: 15px;
  line-height: 1.65;
  color: #3a4750;
}

.datenschutz h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--marke-blau);
}

.datenschutz h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  color: var(--marke-blau);
}

.datenschutz h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 1.4rem;
}

.datenschutz p {
  max-width: 72ch;
}

.tabelle-rahmen {
  overflow-x: auto;
}

/* Noch auszufüllende Stellen – fallen auf, damit nichts ungeprüft online geht */
mark.ergaenzen {
  background: #ffe08a;
  color: #5a4300;
  padding: 0 .25em;
}

/* Links zu Datenschutz und Impressum */
.rechtliches a + a {
  margin-left: 16px;
}

.gast-fuss {
  padding-top: 12px;
  padding-bottom: 24px;
}

.gast-fuss .rechtliches {
  text-align: center !important;
  font-size: 13px;
}

.gast-fuss .rechtliches a {
  color: rgba(255, 255, 255, .85);
}

.gast-fuss .rechtliches a:hover,
.gast-fuss .rechtliches a:focus {
  color: #fff;
}

/* Dashboard-Hinweis auf die Zwei-Faktor-Anmeldung */
.hinweis-2fa {
  gap: 10px 20px;
}

.hinweis-2fa-text {
  flex: 1 1 280px;
  min-width: 0;
}

.hinweis-2fa-knoepfe {
  gap: 8px;
}

/* Ersatz für style="…" im HTML (wegen Content-Security-Policy) */
.breite-50 { width: 50%; }
.breite-100px { width: 100px; }
.bewertung-bild { max-width: 420px; }

/* Sternebewertung */
p.sternebewertung {
  float: right;
  margin: 0;
}

p.sternebewertung > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

p.sternebewertung > label {
  float: right;
  width: 1em;
  padding: 0 .1em;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  font-size: 50px;
  line-height: 1.2;
  color: #d0d0d0;
}

p.sternebewertung > label::before {
  content: '★ ';
}

p.sternebewertung > input:checked ~ label {
  color: #fcc525;
}

p.sternebewertung > input:focus-visible + label {
  outline: 2px solid #33cabb;
}

p.sternebewertung:not(:checked) > label:hover,
p.sternebewertung:not(:checked) > label:hover ~ label {
  color: #fecf41;
}

p.sternebewertung > input:checked + label:hover,
p.sternebewertung > input:checked + label:hover ~ label,
p.sternebewertung > input:checked ~ label:hover,
p.sternebewertung > input:checked ~ label:hover ~ label,
p.sternebewertung > label:hover ~ input:checked ~ label {
  color: #fbb600;
}
