@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
@import url('/assets/css/squua-ui.css');

/*
  SQUUA Time – Design Standard Update
  Wichtig: Kiosk bleibt ausgeschlossen.
*/

:root {
  --squua-red: #F32625;
  --squua-black: #050505;
  --squua-text: #111111;
  --squua-muted: #626B77;
  --squua-border: #DADDE2;
  --squua-border-strong: #AEB8C6;
  --squua-soft: #F4F5F7;
  --squua-soft-2: #F0F1F3;
  --squua-bg: #FFFFFF;
  --squua-surface: #FFFFFF;
  --squua-success: #16864A;
  --squua-warning: #B7791F;
  --squua-danger: #C62828;
  --squua-radius: 0px;
  --squua-shadow: none;
}

body:not(.kiosk-page):not(.kiosk-body) {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--squua-text);
  font-size: 14px;
  line-height: 1.5;
}

body:not(.kiosk-page):not(.kiosk-body) * {
  box-sizing: border-box;
}

body:not(.kiosk-page):not(.kiosk-body) a {
  color: inherit;
  text-underline-offset: 3px;
}

body:not(.kiosk-page):not(.kiosk-body) img {
  max-width: 100%;
}

/* Legacy layout compatibility */
body:not(.kiosk-page):not(.kiosk-body) .container {
  max-width: 1280px;
  width: min(1280px, calc(100% - 48px));
  margin: 32px auto;
  padding: 0 0 42px;
}

body:not(.kiosk-page):not(.kiosk-body) .row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

body:not(.kiosk-page):not(.kiosk-body) .col {
  flex: 1 1 320px;
  min-width: 280px;
}

body:not(.kiosk-page):not(.kiosk-body) .card,
body:not(.kiosk-page):not(.kiosk-body) .panel,
body:not(.kiosk-page):not(.kiosk-body) .box {
  background: #ffffff;
  border: 1px solid var(--squua-border);
  border-radius: 0;
  box-shadow: none;
  padding: 28px;
  margin-bottom: 24px;
}

body:not(.kiosk-page):not(.kiosk-body) .card h1,
body:not(.kiosk-page):not(.kiosk-body) .card h2,
body:not(.kiosk-page):not(.kiosk-body) h1,
body:not(.kiosk-page):not(.kiosk-body) h2,
body:not(.kiosk-page):not(.kiosk-body) h3 {
  letter-spacing: -0.02em;
  color: #050505;
}

body:not(.kiosk-page):not(.kiosk-body) h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 900;
}

body:not(.kiosk-page):not(.kiosk-body) h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 900;
}

body:not(.kiosk-page):not(.kiosk-body) h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 18px 0 12px;
  font-weight: 800;
}

/* Navigation */
body:not(.kiosk-page):not(.kiosk-body) .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--squua-border);
}

body:not(.kiosk-page):not(.kiosk-body) .nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body:not(.kiosk-page):not(.kiosk-body) .nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

body:not(.kiosk-page):not(.kiosk-body) .nav a:hover,
body:not(.kiosk-page):not(.kiosk-body) .nav a.is-active {
  background: var(--squua-soft-2);
  border-color: var(--squua-border);
}

/* Forms / Eingabebereiche */
body:not(.kiosk-page):not(.kiosk-body) form {
  margin: 0;
}

body:not(.kiosk-page):not(.kiosk-body) label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 7px;
  color: #161a20;
}

body:not(.kiosk-page):not(.kiosk-body) input[type="text"],
body:not(.kiosk-page):not(.kiosk-body) input[type="email"],
body:not(.kiosk-page):not(.kiosk-body) input[type="password"],
body:not(.kiosk-page):not(.kiosk-body) input[type="number"],
body:not(.kiosk-page):not(.kiosk-body) input[type="date"],
body:not(.kiosk-page):not(.kiosk-body) input[type="datetime-local"],
body:not(.kiosk-page):not(.kiosk-body) input[type="time"],
body:not(.kiosk-page):not(.kiosk-body) input[type="url"],
body:not(.kiosk-page):not(.kiosk-body) input[type="tel"],
body:not(.kiosk-page):not(.kiosk-body) select,
body:not(.kiosk-page):not(.kiosk-body) textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--squua-border-strong);
  border-radius: 0 !important;
  background: #ffffff;
  color: #111111;
  padding: 0 15px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

body:not(.kiosk-page):not(.kiosk-body) textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

body:not(.kiosk-page):not(.kiosk-body) input[type="checkbox"],
body:not(.kiosk-page):not(.kiosk-body) input[type="radio"] {
  width: auto;
  min-height: 0;
  accent-color: var(--squua-red);
}

body:not(.kiosk-page):not(.kiosk-body) input:focus,
body:not(.kiosk-page):not(.kiosk-body) select:focus,
body:not(.kiosk-page):not(.kiosk-body) textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(243, 38, 37, .10);
}

body:not(.kiosk-page):not(.kiosk-body) input::placeholder,
body:not(.kiosk-page):not(.kiosk-body) textarea::placeholder {
  color: #98A2B3;
}

/* Buttons */
body:not(.kiosk-page):not(.kiosk-body) button,
body:not(.kiosk-page):not(.kiosk-body) .btn,
body:not(.kiosk-page):not(.kiosk-body) a.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #000000;
  border-radius: 0 !important;
  background: #000000;
  color: #ffffff;
  padding: 0 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

body:not(.kiosk-page):not(.kiosk-body) button:hover,
body:not(.kiosk-page):not(.kiosk-body) .btn:hover {
  filter: brightness(.96);
  text-decoration: none;
}

body:not(.kiosk-page):not(.kiosk-body) .btn-secondary,
body:not(.kiosk-page):not(.kiosk-body) button.btn-secondary,
body:not(.kiosk-page):not(.kiosk-body) a.btn-secondary {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: var(--squua-border-strong) !important;
}

body:not(.kiosk-page):not(.kiosk-body) .btn-danger,
body:not(.kiosk-page):not(.kiosk-body) button.btn-danger {
  background: var(--squua-danger) !important;
  color: #ffffff !important;
  border-color: var(--squua-danger) !important;
}

/* Tables */
body:not(.kiosk-page):not(.kiosk-body) .table,
body:not(.kiosk-page):not(.kiosk-body) table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

body:not(.kiosk-page):not(.kiosk-body) .table th,
body:not(.kiosk-page):not(.kiosk-body) .table td,
body:not(.kiosk-page):not(.kiosk-body) table th,
body:not(.kiosk-page):not(.kiosk-body) table td {
  border-bottom: 1px solid var(--squua-border);
  padding: 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

body:not(.kiosk-page):not(.kiosk-body) .table th,
body:not(.kiosk-page):not(.kiosk-body) table th {
  background: #FAFAFA;
  color: #707885;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Messages */
body:not(.kiosk-page):not(.kiosk-body) .msg,
body:not(.kiosk-page):not(.kiosk-body) .alert {
  border: 1px solid var(--squua-border);
  border-radius: 0;
  padding: 14px 16px;
  margin: 16px 0;
  background: #fff;
  font-weight: 600;
}

body:not(.kiosk-page):not(.kiosk-body) .msg.ok,
body:not(.kiosk-page):not(.kiosk-body) .alert-success {
  color: var(--squua-success);
  border-color: rgba(22,134,74,.35);
  background: rgba(22,134,74,.07);
}

body:not(.kiosk-page):not(.kiosk-body) .msg.err,
body:not(.kiosk-page):not(.kiosk-body) .alert-danger,
body:not(.kiosk-page):not(.kiosk-body) .alert-error {
  color: var(--squua-danger);
  border-color: rgba(198,40,40,.35);
  background: rgba(198,40,40,.07);
}

body:not(.kiosk-page):not(.kiosk-body) .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--squua-border);
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
}

/* Legacy login */
body:not(.kiosk-page):not(.kiosk-body) .login {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  background: #ffffff;
}

body:not(.kiosk-page):not(.kiosk-body) .login-left {
  padding: 42px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body:not(.kiosk-page):not(.kiosk-body) .login-left .brand,
body:not(.kiosk-page):not(.kiosk-body) .brand {
  font-size: 18px;
  letter-spacing: .16em;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111;
}

body:not(.kiosk-page):not(.kiosk-body) .login-left h1 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 26px;
}

body:not(.kiosk-page):not(.kiosk-body) .login-left form {
  max-width: 520px;
  width: 100%;
}

body:not(.kiosk-page):not(.kiosk-body) .login-right {
  min-height: 420px;
  background: #f2f2f2 url('/assets/img/login-admin.jpg') center/cover no-repeat !important;
}

body:not(.kiosk-page):not(.kiosk-body) .footer,
body:not(.kiosk-page):not(.kiosk-body) .site-footer {
  margin-top: 22px;
  padding: 18px 24px;
  font-size: 12px;
  color: #333;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--squua-border);
}

body:not(.kiosk-page):not(.kiosk-body) .footer a,
body:not(.kiosk-page):not(.kiosk-body) .site-footer a {
  color: inherit;
  text-decoration: none;
}

body:not(.kiosk-page):not(.kiosk-body) .footer a:hover,
body:not(.kiosk-page):not(.kiosk-body) .site-footer a:hover {
  text-decoration: underline;
}

/* Partner login old markup enhancement */
body:not(.kiosk-page):not(.kiosk-body) .container > .row > .col > .card[style*="min-height"] {
  min-height: 420px !important;
  background: #f2f2f2 url('/assets/img/login-partner.jpg') center/cover no-repeat;
}

body:not(.kiosk-page):not(.kiosk-body) .container > .row > .col > .card[style*="min-height"] img {
  background: rgba(0,0,0,.86);
  padding: 22px 54px;
  max-height: 96px;
  width: auto;
}

/* Responsive */
@media (max-width: 1100px) {
  body:not(.kiosk-page):not(.kiosk-body) .login {
    grid-template-columns: 1fr;
  }
  body:not(.kiosk-page):not(.kiosk-body) .login-right {
    display: none;
  }
}

@media (max-width: 900px) {
  body:not(.kiosk-page):not(.kiosk-body) .container {
    width: calc(100% - 32px);
    margin: 22px auto;
  }
  body:not(.kiosk-page):not(.kiosk-body) .card {
    padding: 22px;
  }
  body:not(.kiosk-page):not(.kiosk-body) .login-left {
    padding: 34px 26px;
  }
  body:not(.kiosk-page):not(.kiosk-body) h1 {
    font-size: 30px;
  }
}

/* =========================================================
   SQUUA Admin Login – Eingabefeld-Abstand nach Icons
   Greift gezielt stärker als die globale app.css Input-Regel.
========================================================= */

body.auth-layout.squua-auth-login .squua-auth-card .squua-field input#email,
body.auth-layout.squua-auth-login .squua-auth-card .squua-field input#password,
body.auth-layout.squua-auth-login .squua-auth-card .squua-field input[name="email"],
body.auth-layout.squua-auth-login .squua-auth-card .squua-field input[name="password"] {
  padding-left: 58px !important;
  padding-right: 58px !important;
  text-indent: 0 !important;
}

