:root {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --highlight-color: #1d4ed8;
  --container-bg: white;
  --button-bg: #007BFF;
  --button-hover: #0056b3;
  --copy-button-bg: #4CAF50;
  --copy-button-hover: #45a049;
  --password-bg: #f0f0f0;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --highlight-color: #fcf803;
  --container-bg: #1e1e1e;
  --button-bg: #2a7df4;
  --button-hover: #1a5fb4;
  --copy-button-bg: #4caf60;
  --copy-button-hover: #3d8b40;
  --password-bg: #2d2d2d;
  --border-color: #444;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  margin-bottom: 60px;
}

.container {
  text-align: center;
  background: var(--container-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  width: 50%;
  min-width: 600px;
  position: relative;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 10px 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

.footer-container {
    display: flex;
    justify-content: flex-end; /* Schiebt alles nach rechts */
    gap: 20px;                 /* Abstand zwischen Counter und Version */
    align-items: center;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace; /* Monospace sieht für Versionen oft "technischer" aus */
    font-size: 13px;
    color:var(--text-color);
}

@keyframes pulse {
    0% { transform: scale(1); color: var(--shadow-color); }
    50% { transform: scale(1.2); color: var(--highlight-color); font-weight: bold; }
    100% { transform: scale(1); color: var(--shadow-color); }
}

.counter-update {
    animation: pulse 0.4s ease-out;
}

#password {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 1rem auto;
  padding: 0.8rem;
  background: var(--password-bg);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  width: 90%;
  word-break: break-all;
  color: var(--text-color);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.copy-button {
  background: var(--copy-button-bg);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-button:hover {
  background: var(--copy-button-hover);
}

.renew-button {
  background: var(--button-bg);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.renew-button:hover {
  background: var(--button-hover);
}

.code-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
}

.code-link:hover {
  opacity: 1;
}
.help-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.7;
  text-decoration: none;
}

.help-link:hover {
  opacity: 1;
}

#toast {
  visibility: hidden;
  min-width: 150px;
  background-color: var(--copy-button-bg);
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 0.5rem;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px var(--shadow-color);
}

#theme-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

pre {
  font-family: 'Courier New', Courier, monospace;
  background: var(--password-bg);
  padding: 0.8rem;
  border-radius: 4px;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

a {
  color: var(--button-bg);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.debug-banner {
  position: absolute;
  top: 1rem;
  left: 4rem;
  font-size: 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.debug-only {
    display: none;
}

.debug-footer {
  position: absolute;
  bottom: 4em;
  left: 0;

}

body.is-debug .debug-only {
  display: inline-block;
  border: 1px dashed red;
}
