* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f7fb;
  color: #1f2937;
}

/* Genau eine Ansicht sichtbar */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.is-active {
  display: block;
}

.screen-login.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.screen-card {
  width: 100%;
  max-width: 400px;
}

.screen-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

h1 { margin: 0 0 8px; font-size: 1.5rem; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }

.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tab-bar {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  font: inherit;
}

.login-tab.active {
  background: #2563eb;
  color: #fff;
}

.portal-panel { display: none; }
.portal-panel.active { display: block; }

button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
}

button:hover { background: #1d4ed8; }
button:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-block { width: 100%; margin-top: 4px; }
.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #4b5563; }

.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.muted { color: #6b7280; font-size: 14px; }
.error { color: #b91c1c; font-size: 14px; }
.hint { font-size: 13px; color: #6b7280; margin-top: 8px; }
.hint.warn { color: #b45309; }
.status-line { margin-top: 12px; min-height: 1.25em; }

.support-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
}

.invite-link {
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  background: #f3f4f6;
  padding: 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.parent-advanced { margin-top: 16px; }
.parent-advanced summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }

.ticket-item { cursor: pointer; padding: 6px 0; }
.ticket-item.selected { font-weight: bold; color: #2563eb; }

ul { padding-left: 18px; margin: 0; word-break: break-word; }

code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 4px;
  border-radius: 4px;
}
