/* Piquano CI für auth.piquano.com (Authelia-Login). Nur Optik, die Anmeldung bleibt unberührt. */
@import url('inter.css');

:root {
  --navy: #133447;
  --blue: #328cc1;
  --blue-hover: #236fa0;
  --blue-light: #5BA8D4;
  --ground: #F0F5F9;
  --text: #1A3A4F;
  --muted: #5E7F99;
  --border: #C8DCE9;
}

html, body, #root {
  background: var(--ground) !important;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
}

/* Karte */
.MuiPaper-root {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(19, 52, 71, .08) !important;
}

/* Text */
.MuiTypography-root, .MuiInputBase-root, .MuiFormControlLabel-label, .MuiButton-root {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
.MuiTypography-body1, .MuiTypography-body2, .MuiFormControlLabel-label {
  color: var(--text);
}

/* Buttons */
.MuiButton-contained {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  text-transform: none !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  min-height: 52px !important;
}
.MuiButton-contained:hover {
  background: var(--blue-hover) !important;
}
.MuiButton-text, .MuiButton-outlined {
  color: var(--blue) !important;
  text-transform: none !important;
  font-weight: 600 !important;
}

/* Links */
a, .MuiLink-root {
  color: var(--blue) !important;
}
a:hover, .MuiLink-root:hover {
  color: var(--blue-hover) !important;
}

/* Eingabefelder */
.MuiOutlinedInput-root {
  border-radius: 8px !important;
}
.MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline {
  border-color: var(--border) !important;
}
.MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--blue-light) !important;
}
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--blue) !important;
}
.MuiInputLabel-root {
  color: var(--muted) !important;
}
.MuiInputLabel-root.Mui-focused {
  color: var(--blue) !important;
}
.MuiCheckbox-root {
  color: var(--border) !important;
}
.MuiCheckbox-root.Mui-checked {
  color: var(--blue) !important;
}

/* Logo: kleiner und weiter oben */
img[src*="logo"] {
  display: block;
  width: 150px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 28px;
  position: relative;
  top: -28px;
}

/* Überschriften (nach der Textregel, höhere Spezifität) */
h1, h2, h3, h4, h5, h6,
.MuiTypography-root.MuiTypography-h1, .MuiTypography-root.MuiTypography-h2,
.MuiTypography-root.MuiTypography-h3, .MuiTypography-root.MuiTypography-h4,
.MuiTypography-root.MuiTypography-h5, .MuiTypography-root.MuiTypography-h6 {
  font-family: Georgia, serif !important;
  color: var(--navy) !important;
  letter-spacing: -.015em;
  font-weight: 400 !important;
}

/* Kopfleiste: Navy mit weißem Text */
.MuiAppBar-root, header.MuiPaper-root {
  background: var(--navy) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.MuiAppBar-root .MuiButton-root,
.MuiAppBar-root .MuiTypography-root,
.MuiAppBar-root .MuiSvgIcon-root,
.MuiAppBar-root svg,
.MuiAppBar-root span {
  color: #fff !important;
}

/* Browser-Autofill ohne Blauton */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #fff inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* PQ-BANNER-FIX: Meldungen oben rechts (Snackbar/Alert) lesbar, weiße Schrift auf Navy.
   Höhere Spezifität als die allgemeine .MuiPaper-root-Regel. */
.MuiPaper-root.MuiSnackbarContent-root,
.MuiPaper-root.MuiAlert-root {
  background: var(--navy) !important;
  color: #fff !important;
  border: 0 !important;
}
.MuiPaper-root.MuiAlert-colorError,
.MuiPaper-root.MuiAlert-filledError {
  background: #b3261e !important;
}
.MuiSnackbarContent-root .MuiSnackbarContent-message,
.MuiAlert-root .MuiAlert-message,
.MuiAlert-root .MuiAlert-icon,
.MuiAlert-root .MuiSvgIcon-root {
  color: #fff !important;
}
