body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 1rem;
  background-color: #f9f9f9;
  color: #222;
}

/* Container für Language + Theme Toggle */
.top-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 1.2rem 1.5em;
}

body.dark {
  background-color: #0d1117;
  color: #c9d1d9;
}

body.dark .api-card {
  background-color: #161b22;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.dark .api-card h3,
body.dark .api-card p,
body.dark .subdomain {
  color: #c9d1d9;
}

body.dark table th {
  background-color: #2c3e50;
}

body.dark table td {
  border-bottom: 1px solid #444c56;
}

body.dark a {
  color: #58a6ff;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}
header h1 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 2rem;
}
header p {
  margin-bottom: 4rem;
  color: #555;
}

.api-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.api-card {
  position: relative;
  background-color: #ffffff;
  padding: 2rem 2rem 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (max-width: 600px) {
  .api-card {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
}
.api-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.api-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #111;
}
.api-card p {
  margin: 0.5rem 0;
  color: #333;
}

/* Tabelle horizontal scrollbar machen */
.api-card .table-wrapper {
  overflow-x: auto;              
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin-top: 1rem;
}

/* Optional: Scrollbar etwas sichtbar machen */
.api-card .table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.api-card .table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
body.dark .api-card .table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
}

/* GitHub button */
.github-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #24292f;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.github-btn:hover {
  background-color: #444c56;
}
.github-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
table th, table td {
  text-align: left;
  padding: 0.6rem;
  vertical-align: top;
}
table th {
  background-color: #3a8ee6;
  color: #fff;
  font-weight: 600;
}
table td {
  border-bottom: 1px solid #eee;
}
ul {
  padding-left: 1.2rem;
  margin: 0;
}

.notice {
  font-size: 0.8rem;
  color: #555;                /* Grau im Lightmode */
  font-style: italic;          /* Kursiv */
  margin-top: 0.8rem;
  padding: 0.6rem 1rem;       /* Innenabstand für Hintergrund */
  border-left: 4px solid #1e90ff;  /* Dünne Akzentlinie */
  background-color: #f0f4f8;  /* Leichter hellgrauer Hintergrund */
  border-radius: 0.5rem;      /* Abgerundete Ecken */
}

body.dark .notice {
  color: #c0c5ce;             /* Textgrau */
  border-left-color: #2c3e50; /* Akzentlinie */
  background-color: #1a1f28;  /* etwas helleres Dunkel für Hintergrund */
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: #777;
  font-size: 0.85rem;
}

a {
  color: #1e90ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.subdomain {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.2rem;
}
