:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #fbfbfa;
  --line: #e8e8e6;
  --line-strong: #d9d9d5;
  --text: #37352f;
  --muted: #6f6e69;
  --muted-soft: #9b9a97;
  --accent: #2383e2;
  --accent-soft: #edf5fd;
  --danger: #d44c47;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.5;
}

.page {
  padding: 24px;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.shell-login {
  padding: 40px 0;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}

.hero-block,
.login-card,
.section-card,
.workspace-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-block {
  padding: 36px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.hero-title,
.sidebar-brand h1,
.card-header h2,
.section-header h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.95;
}

.hero-copy,
.sidebar-copy,
.card-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.login-card,
.section-card {
  padding: 28px;
}

.card-header,
.section-header {
  margin-bottom: 22px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea,
select,
button {
  width: 100%;
  font: inherit;
}

input,
textarea,
select {
  appearance: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(35, 131, 226, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.button,
button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease,
    border-color 120ms ease, color 120ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #ffffff;
}

.button-primary:hover {
  background: #22211d;
}

.button-ghost {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line);
}

.button-ghost:hover {
  background: #f0f0ee;
}

.notice {
  margin: 16px 0 0;
  color: var(--muted);
  min-height: 22px;
}

.notice-error {
  color: var(--danger);
}

.workspace-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.workspace-sidebar {
  padding: 24px 18px;
  display: grid;
  gap: 24px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.tabs {
  display: grid;
  gap: 6px;
}

.tab-btn {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
}

.tab-btn:hover {
  background: var(--surface-soft);
}

.tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(35, 131, 226, 0.18);
}

.workspace-main {
  display: grid;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.panel {
  min-height: 120px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  white-space: pre-wrap;
}

.panel-answer:empty::before {
  content: "Noch keine Antwort.";
  color: var(--muted-soft);
}

@media (max-width: 980px) {
  .login-layout,
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 14px;
  }

  .hero-block,
  .login-card,
  .section-card,
  .workspace-sidebar {
    padding: 20px;
    border-radius: 12px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }
}
