.ac-form {
  margin-top: 30px;
}

.ac-ip-title {
  margin-top: 10px;
  font-size: 20px;
  color: #e6e6e6;
  margin-bottom: 16px;
  font-weight: 600;
  background: #2a2e32;
  padding: 10px 12px;
  border: 1px solid #3a3d40;
  border-radius: 8px;
  text-align: center;
}

.ac-ip-value {
  color: #ffa500;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(255, 165, 0, 0.4);
}

/* Metro-Ribbon Tabs - Dark Theme */

body {
  background-color: #f4f6f8;
}

.ac-tab-container {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  padding: 5px 5px 0;
  background: transparent;
  border-bottom: 1px solid #ccd0d4;
}

.ac-tab-container button {
  background: #f5f6f7;
  border: 1px solid #bbb;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #2b2f33;
  margin-right: 5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ac-tab-container button:hover {
  background: #dce0e3;
}

.ac-tab-container button.active {
  background: #2b2f33;
  color: #ffffff;
  border-color: #2b2f33;
}

.ac-tab-content {
  display: none;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 20px;
  border-radius: 0;
  box-shadow: none;
}

.ac-tab-content.active-tab {
  display: block;
}

/* Metro-Ribbon Switch - Dark Theme */
.ac-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin: 8px;
}

.ac-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ac-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  /* dunkler Hintergrund im Off-Zustand */
  transition: 0.3s;
  border-radius: 34px;
  box-shadow: inset 0 0 4px #000;
}

.ac-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ccc;
  /* heller Button im Off-Zustand */
  transition: 0.3s;
  border-radius: 50%;
}

.ac-switch input:checked+.ac-slider {
  background-color: #1a1c1f;
  /* dunkler Hintergrund im On-Zustand */
}

.ac-switch input:checked+.ac-slider:before {
  background-color: #ffffff;
  /* weißer Button im On-Zustand */
  transform: translateX(24px);
}

.ac-slider {
  background-image: linear-gradient(to right, #3a3d40, #2b2f33);
}

/* Metro-Ribbon Button - Dark Theme */
.ac-button {
  background-color: #2b2f33;
  color: #fff;
  border: 1px solid #1f2225;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.ac-button:hover {
  background-color: #3a3f44;
}

.ac-button:active {
  transform: scale(0.97);
}

.ac-button:disabled {
  background-color: #999;
  border-color: #888;
  cursor: not-allowed;
}

/* Metro-Ribbon ListView - Dark Theme */
/* === ListView – Dark Theme, flexible Spalten === */
.ac-listview {
  width: 100%;
  border: 1px solid #2b2f33;
  border-radius: 6px;
  background: #2b2f33;
  color: #e6e6e6;
  font-size: 14px;
  overflow: hidden;
}

/* Kopf */
.ac-listview-header {
  display: grid;
  grid-template-columns: var(--ac-cols, 30% 1fr);
  /* Default 2 Spalten */
  align-items: center;
  padding: 10px 15px;
  background: #1a1c1f;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid #2b2f33;
}

/* Zeilen */
.ac-listview-item {
  display: grid;
  grid-template-columns: var(--ac-cols, 30% 1fr);
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #3a3d40;
}

/* Zebra + Hover */
.ac-listview-item:nth-child(odd) {
  background: #2b2f33;
}

.ac-listview-item:nth-child(even) {
  background: #303338;
}

.ac-listview-item:hover {
  background: #35393d;
}

/* Zellen (neutrale Klasse) */
.ac-cell {
  padding: 0 12px;
  word-break: break-word;
}

/* Ausrichtung: 1. Spalte rechts, rest zentriert */
.ac-listview-header .ac-cell:nth-child(1),
.ac-listview-item .ac-cell:nth-child(1) {
  text-align: right;
}

.ac-listview-header .ac-cell:nth-child(n+2),
.ac-listview-item .ac-cell:nth-child(n+2) {
  text-align: center;
}

/* Mobile: Spalten untereinander */
@media (max-width: 782px) {

  .ac-listview-header,
  .ac-listview-item {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .ac-listview-header .ac-cell,
  .ac-listview-item .ac-cell {
    text-align: left;
  }
}

/* Metro-Ribbon Label - Dark Theme */
.ac-dark-hint {
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: #2a2e32;
  color: #eef1f3;
  border: 1px solid #3a3d40;
  border-radius: 8px;
}

/* Footer-Additional ac-dark-hint */
.ac-dark-hint.ac-footer {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}

.ac-dark-hint.ac-footer a {
  color: #cfd8dc;
  text-decoration: none;
}

.ac-copy-button {
  background-color: #2b2f33;
  border: 1px solid #1f2225;
  color: #f0f0f0;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 10px;
  vertical-align: middle;
  transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.ac-copy-button svg {
  width: 18px;
  height: 18px;
  stroke: #f0f0f0;
  transition: stroke 0.2s ease;
}

.ac-copy-button:hover {
  background-color: #3a3f44;
}

.ac-copy-button:active {
  background-color: #f0f0f0;
  color: #2b2f33;
  transform: scale(0.96);
}

.ac-copy-button:active svg {
  stroke: #2b2f33;
}

.ac-flag {
  width: 20px;
  height: auto;
  border-radius: 2px;
  vertical-align: middle;
}

.ac-dark-select {
  width: 100%;
  margin: 12px 0;
  padding: 10px 12px;
  background-color: #2a2e32;
  border: 1px solid #3a3d40;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e6e6e6;
  width: 100%;
  box-sizing: border-box;
}

.ac-dark-select label {
  font-weight: 600;
  font-size: 13px;
  color: #cfd2d4;
}

/* Wrapper für optionales Icon + Select */
.ac-dark-select-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-dark-select-wrapper img {
  width: 20px;
  height: 14px;
  object-fit: contain;
  border-radius: 3px;
}

/* <select> mit Dark-Stil */
.ac-dark-select select {
  width: 100%;
  background-color: transparent !important;
  color: #eef1f3 !important;
  border: 1px solid #3a3d40;
  border-radius: 6px;
  padding: 8px 10px;
  appearance: none;
  outline: none;
}

/* Hover-Zustand für <select> */
.ac-dark-select select:hover {
  border-color: #4a4f55;
}

.ac-dark-select select:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, .25);
}

/* Firefox + Standard-Dropdown Dark Fix */
.ac-dark-select select option {
  background: #2a2e32;
  color: #eef1f3;
}

.ac-dark-input {
  margin: 12px 0;
  padding: 10px 12px;
  background-color: #2a2e32;
  /* dunkel wie ac-dark-hint */
  border: 1px solid #3a3d40;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-dark-input label {
  font-weight: 600;
  font-size: 13px;
  color: #cfd2d4;
}

.ac-dark-input input[type="text"],
.ac-dark-input input[type="password"],
.ac-dark-input input[type="email"] {
  background-color: transparent;
  /* nur das Feld ist transparent */
  color: #f1f1f1;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.ac-dark-input input::placeholder {
  color: #777;
  opacity: 1;
  font-style: italic;
}

.ac-dark-groupbox{
  position: relative;
  margin: 20px 0 30px;
  padding: 22px 20px 18px;          
  border: 1.5px solid #8a8f94;    
  border-radius: 10px;
  background: transparent;
  color: #eef1f3;
}

/* Legend exakt mittig auf der Rahmenlinie */
.ac-dark-groupbox legend{
  position: absolute;
  top: -0.9em;   
  left: 50%;
  transform: translateX(-50%);
  display: block;
  margin: 0;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #8a8f94;            
  background: transparent;   
  text-align: center;
  pointer-events: none;
}

