/* Helles Stotz-CI: heller Grund, dunkle Typo, Grün-Akzente (analog stotz.by) */
:root {
  --stotz-bg: #f0f2f5;
  --stotz-surface: #ffffff;
  --stotz-elevated: #f7f8fa;
  --stotz-border: #dde1e8;
  --stotz-green: #0d5c2e;
  --stotz-green-soft: #e6f0ea;
  --stotz-green-hover: #0a4a25;
  --stotz-text: #1a1d24;
  --stotz-muted: #5c6370;
  --stotz-danger: #b42318;
  --stotz-radius: 10px;
  --stotz-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.stotz-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--stotz-font);
  background: var(--stotz-bg);
  color: var(--stotz-text);
}

a {
  color: var(--stotz-green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.stotz-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.stotz-sidebar {
  background: var(--stotz-surface);
  border-right: 1px solid var(--stotz-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
}

/* Logo mit weißem Hintergrund (PNG) */
.stotz-brand {
  display: block;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.35rem;
  border-radius: var(--stotz-radius);
  background: #fff;
  border: 1px solid var(--stotz-border);
  text-decoration: none;
}
.stotz-brand:hover {
  text-decoration: none;
  border-color: var(--stotz-green);
}

.stotz-brand-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}

.stotz-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stotz-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--stotz-text);
  text-decoration: none;
  border: 1px solid transparent;
}
.stotz-nav a:hover {
  background: var(--stotz-elevated);
  text-decoration: none;
}
.stotz-nav a.is-active {
  border-color: var(--stotz-border);
  background: var(--stotz-green-soft);
  color: var(--stotz-green);
  font-weight: 600;
}

.stotz-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
}

.stotz-link-muted {
  color: var(--stotz-muted);
  font-size: 0.9rem;
}

.stotz-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stotz-topbar {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--stotz-border);
  background: var(--stotz-surface);
}

.stotz-page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--stotz-text);
}

.stotz-content {
  padding: 1.75rem;
  max-width: 1100px;
}

.stotz-card {
  background: var(--stotz-surface);
  border: 1px solid var(--stotz-border);
  border-radius: var(--stotz-radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.stotz-grid {
  display: grid;
  gap: 1rem;
}

.stotz-muted {
  color: var(--stotz-muted);
}

.stotz-label {
  display: block;
  font-size: 0.85rem;
  color: var(--stotz-muted);
  margin-bottom: 0.35rem;
}

.stotz-input,
.stotz-select {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--stotz-border);
  background: var(--stotz-surface);
  color: var(--stotz-text);
}

.stotz-btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--stotz-green);
  background: var(--stotz-green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.stotz-btn:hover {
  background: var(--stotz-green-hover);
  border-color: var(--stotz-green-hover);
  text-decoration: none;
}
.stotz-btn-secondary {
  background: var(--stotz-surface);
  color: var(--stotz-text);
  border-color: var(--stotz-border);
}
.stotz-btn-secondary:hover {
  background: var(--stotz-elevated);
}
.stotz-btn-danger {
  border-color: #8a1c15;
  background: var(--stotz-danger);
  color: #fff;
}
.stotz-btn-danger:hover {
  filter: brightness(0.95);
}

.stotz-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.stotz-table th,
.stotz-table td {
  border-bottom: 1px solid var(--stotz-border);
  padding: 0.75rem 0.5rem;
  text-align: left;
}
.stotz-table th {
  color: var(--stotz-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.stotz-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stotz-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.stotz-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.stotz-login-card {
  width: min(440px, 100%);
  background: var(--stotz-surface);
  border: 1px solid var(--stotz-border);
  border-radius: var(--stotz-radius);
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.stotz-login-brand-bar {
  margin: 0 0 1rem;
  padding: 0.5rem 0.35rem;
  border-radius: var(--stotz-radius);
  background: #fff;
  border: 1px solid var(--stotz-border);
}
.stotz-login-brand-bar img {
  display: block;
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.stotz-login-sub {
  margin: 0 0 1.5rem;
  color: var(--stotz-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .stotz-shell {
    grid-template-columns: 1fr;
  }
  .stotz-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .stotz-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stotz-sidebar-foot {
    margin-top: 0;
    margin-left: auto;
  }
}
