:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #111111;
  --panel-hover: #191919;
  --border: #292929;
  --text: #f5f5f5;
  --muted: #929292;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.main {
  min-height: 100vh;
  margin-left: 245px;
  transition: margin-left .2s ease;
}

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
}

.page {
  max-width: 1250px;
  margin: 0 auto;
  padding: 36px 30px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -1.2px;
}

.subtitle {
  color: var(--muted);
  line-height: 1.7;
}

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

.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card:hover {
  background: var(--panel-hover);
  border-color: #444;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 16px;
  background: white;
  color: black;
  border: 1px solid white;
  border-radius: 8px;
  font-weight: 650;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 12px;
  background: #111;
  color: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.button-secondary:hover {
  background: #1b1b1b;
  border-color: #555;
}

@media (max-width: 700px) {

  .topbar {
    padding: 0 16px;
  }

  .page {
    padding: 28px 16px;
  }
}

/* Gleiche Abstände für den Seiteninhalt */
.app-content {
  min-width: 0;
  margin-left: 246px;
  width: calc(100% - 246px);
}

@media (max-width: 760px) {

  .app-content {
    width: 100%;
    margin-left: 0;
  }
}

.main,
.app-content {
  min-width: 0 !important;
}

@media (min-width: 769px) {
}

@media (max-width: 768px) {
  .main,
  .app-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
}
@media (min-width: 769px) {
}

