/* Allgemeine Stile */
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #2b2b2b;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header-Stil */
header {
    background-color: #1a1a1a;
    padding: 20px;
    font-size: 24px;
}

/* Footer-Stil */
footer {
    background-color: #a1a1a1;
    padding: 10px;
    font-size: 14px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Status-Bereich (nur für index.html) */
#status {
    font-size: 20px;
    margin-top: 50px;
}

/* Server-IP-Anzeige (nur für index.html) */
#server-ip {
    font-size: 18px;
    margin-top: 20px;
}

/* Log-Anzeige (nur für log.html) */
#log-container {
    width: 90%;
    max-width: 1200px;
    height: 500px;
    margin: 50px auto;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
    text-align: left;
    white-space: pre-wrap;
    font-family: monospace;
    border: 1px solid #444;
}

/* Navigation und Links */
nav {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 10px;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444; /* ersetzt die <hr> Linie */
    background-color: #222;
}

nav a, nav a:visited {
    color: #00aaff;
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}

nav a:hover {
    text-decoration: underline;
}

/* Generell alle Links einheitlich dunkel gestalten */
a, a:visited {
    color: #00aaff; /* helle Akzentfarbe für gute Lesbarkeit */
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Klare Trennung mit einer Linie */
hr {
    border: none;
    border-bottom: 1px solid #444;
    margin: 20px auto;
    width: 80%;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Editor-Textarea-Stil */
.log-editor {
    width: 80%;                 /* Breite 80% vom Container */
    height: 60vh;               /* Höhe 60% der Fensterhöhe */
    padding: 10px;
    resize: none;               /* verhindert manuelles Größenverändern */
    font-family: monospace;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #282828;
    color: #ffffff;
    box-sizing: border-box;     /* verhindert, dass padding über Breite hinausgeht */
}

.button {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    background-color: #4CAF50;
    color: white;
}

.button:hover {
    background-color: #45a049;
}

/* Container für Editorformular */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 100px auto;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Editor-Textarea-Stil */
.log-editor {
    width: 100%;
    height: 500px;
    padding: 10px;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #282828;
    color: #ffffff;
}

/* Buttons einheitlich gestalten */
.button {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    background-color: #4CAF50;
    color: white;
    margin: 5px;
}

.button:hover {
    background-color: #45a049;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 0.5rem;
  flex-wrap: wrap;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  background-color: #3b3b3b;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar a:hover {
  background-color: #5e5e5e;
}
