/* IP-Anzeige – gehört zu ip-copy.js
   Greift nur auf .ip-container, ändert nichts am übrigen Seiten-CSS. */

.ip-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 18px;
  padding: 14px 16px;
  background: #F7F5F2;
  border: 1px solid #E2DCD4;
  border-left: 4px solid #F07800;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #1A1A1A;
  letter-spacing: 0.01em;
  word-break: break-all;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ip-container:hover {
  background: #FDFBF9;
  border-color: #CFC7BD;
  border-left-color: #F07800;
}

/* Der Wert selbst – von ip-copy.js in ein span gelegt */
.ip-container .ip-value {
  flex: 1 1 auto;
  min-width: 0;
  cursor: text;
  -webkit-user-select: all;
  user-select: all;
}

/* Kopier-Schalter */
.ip-container .ip-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  min-height: 36px;
  background: #FFFFFF;
  border: 1px solid #D8D1C8;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #4A443D;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ip-container .ip-copy:hover {
  background: #F07800;
  border-color: #F07800;
  color: #1A1A1A;
}

.ip-container .ip-copy:focus-visible {
  outline: 2px solid #F07800;
  outline-offset: 2px;
}

.ip-container .ip-copy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: block;
}

/* Zustand nach dem Kopieren */
.ip-container .ip-copy.is-copied {
  background: #E8F3E4;
  border-color: #8FBE7F;
  color: #2C5C1E;
}

.ip-container .ip-copy.is-copied:hover {
  background: #E8F3E4;
  border-color: #8FBE7F;
  color: #2C5C1E;
}

/* Schmale Bildschirme: Schalter unter den Wert */
@media (max-width: 520px) {
  .ip-container {
    flex-wrap: wrap;
    font-size: 15px;
  }
  .ip-container .ip-copy {
    width: 100%;
    justify-content: center;
  }
}
