/* === Basis-Layout === */
body {
  background-color: #1e1e1e;
  font-family: system-ui, sans-serif;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  padding: 30px;
  margin: 0;
}

/* === MacOS-Fensterrahmen === */
.mac-window {
  background-color: #2e2e2e;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.mac-header {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.mac-header div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

/* === Inhalt und Logo === */
.content {
  padding: 20px;
}

img.logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 220px;
  height: auto;
}

/* === Typografie und Links === */
h1, h2, h3 {
  color: #ffffff;
  margin-top: 0;
}

a {
  color: #80cfff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === Tabellen === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #444;
  text-align: left;
}

th {
  background-color: #3a3a3a;
  color: #fff;
}

/* === Formularfelder === */
input[type="text"],
select {
  padding: 6px;
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 6px;
  margin-right: 10px;
  margin-bottom: 6px;
  min-width: 180px;
  transition: all 0.2s ease-in-out;
}

/* === Buttons === */
button {
  padding: 8px 16px;
  background: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease-in-out;
}
button:hover {
  background-color: #666;
}

/* === Fieldsets und Checkboxen === */
fieldset {
  border: 1px solid #444;
  padding: 10px;
  margin: 15px 0;
  background-color: #292929;
  border-radius: 6px;
}

legend {
  font-weight: bold;
  color: #ddd;
}

.tag-label {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 8px;
  min-width: 220px;
}

.checkbox-list label {
  display: inline-block;
  margin-bottom: 6px;
  margin-right: 12px;
}

/* === Listen auf Startseite === */
ul {
  padding: 0;
  list-style: none;
}
ul li {
  margin-bottom: 10px;
}

/* === Hinweise / Feedback === */
.success {
  color: #6fd36f;
}
.error {
  color: #ff5f56;
}

/* === Responsive Anpassungen === */
@media (max-width: 600px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  .mac-window {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .content {
    padding: 15px;
  }

  img.logo {
    max-width: 180px;
    margin-bottom: 10px;
  }

  input[type="text"],
  select,
  button {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
  }

  .checkbox-list label,
  .tag-label {
    width: 100%;
    min-width: unset;
  }

  .flex-row {
    display: flex;
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    min-width: 120px;
  }

  fieldset {
    padding: 10px;
  }

  legend {
    font-size: 1.1rem;
  }
}

.mac-window.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  z-index: 9999;
  transition: all 0.3s ease;
}

.variant-tags {
  margin-left: 10px;
}

.variant-tags span {
  background: #444;       /* dunkler Hintergrund */
  color: #fff;           /* weiße Schrift */
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.8em;
  margin-right: 4px;
}

.accordion-header {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #444;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.accordion-header.open {
  background: #666;
}

.accordion .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
