/* Havit Etikett-Tool – Stil. Große Bedienelemente für die Produktion. */
* { box-sizing: border-box; }

:root {
  --havit-blau: #1d4f91;
  --grau: #f2f4f7;
  --rand: #cfd6e0;
}

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--grau);
  color: #1a1a1a;
}

.versteckt { display: none !important; }

/* ------------------------------------------------ Anmeldung */
#ansicht-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-karte {
  background: white;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 32px 36px;
  width: 360px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  text-align: center;
}
.login-logo { width: 180px; }
.login-karte h1 { font-size: 22px; margin: 8px 0 20px; color: var(--havit-blau); }
.login-karte form { text-align: left; }

/* ------------------------------------------------ Kopfzeile */
header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  border-bottom: 2px solid var(--havit-blau);
  padding: 8px 20px;
}
.kopf-logo { height: 40px; }
nav { display: flex; gap: 8px; flex: 1; }
.tab {
  border: 1px solid var(--rand);
  background: var(--grau);
  border-radius: 6px 6px 0 0;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
}
.tab.aktiv {
  background: var(--havit-blau);
  color: white;
  border-color: var(--havit-blau);
  font-weight: 600;
}
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
#angemeldet-als { color: #555; }

/* ------------------------------------------------ Inhalt */
main { padding: 20px; }
h2 { margin-top: 0; color: var(--havit-blau); }

#bereich-etikett {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  gap: 28px;
  align-items: start;
}
.spalte-maske, .spalte-vorschau {
  background: white;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 20px 24px;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
}
label small { display: block; font-weight: 400; color: #777; margin-top: 2px; }
.pflicht { color: #c0392b; }

input, select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 17px;
  border: 1px solid var(--rand);
  border-radius: 6px;
}
input:focus, select:focus { outline: 2px solid var(--havit-blau); border-color: var(--havit-blau); }

.knopf-gross {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: var(--havit-blau);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.knopf-gross:hover { background: #163d72; }
.knopf-gross:disabled { background: #9ab; cursor: wait; }

.knopf-klein {
  padding: 8px 14px;
  font-size: 14px;
  border: 1px solid var(--rand);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  margin-right: 6px;
}
.knopf-klein:hover { background: var(--grau); }
.knopf-rot { color: #c0392b; border-color: #c0392b; }

.meldung-fehler {
  background: #fdecea;
  border: 1px solid #c0392b;
  color: #7b241c;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  white-space: pre-line;
}
.meldung-warnung {
  background: #fef5e7;
  border: 1px solid #e67e22;
  color: #935116;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.hinweis { color: #777; font-size: 14px; }

/* ------------------------------------------------ Vorschau */
#vorschau-rahmen { display: flex; justify-content: center; }
.etikett-svg {
  width: 100%;
  max-width: 560px;
  border: 1px dashed var(--rand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
  background: white;
}

/* ------------------------------------------------ Tabellen / Filter */
.filterleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}
.filterleiste label { margin-bottom: 0; min-width: 150px; }
.filterleiste button { height: 42px; }

.tabellen-rahmen {
  background: white;
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow-x: auto;
}
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--rand); text-align: left; white-space: nowrap; }
th { background: var(--grau); position: sticky; top: 0; }
tbody tr:hover { background: #f7f9fc; }

@media (max-width: 900px) {
  #bereich-etikett { grid-template-columns: 1fr; }
}
