body {
    font-family: Arial, sans-serif;
    background-color: #f1f5fb;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1, h2 {
    color: #2c3e50;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

table th, table td {
    text-align: left;
}

table th {
    background-color: #3498db;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #e3f2fd;
}

form {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

p {
    margin-bottom: 1em;
}



form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #333;
}

input[type="text"], textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
}

button[type="submit"] {
  color: white;
  border: none;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 1em;
  border-radius: 4px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  margin-bottom: 1em;
  border-radius: 4px;
}


.email-header {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1.5em;
  max-width: 700px;
}

.email-header th {
  text-align: left;
  padding-right: 15px;
  color: #555;
  font-weight: 600;
  width: 120px;
}

.email-header td {
  color: #222;
}

.email-body {
  max-width: 700px;
  margin-bottom: 2em;
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.action-links a {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  margin-right: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease;
}

.action-links a:hover {
  background-color: #0056b3;
}


#th-sender a,
#th-subject a,
#th-sent_at a {
    color: white !important;     /* Weiß statt blau */
    text-decoration: none;       /* Optional: keine Unterstreichung */
}

.tagify__input{
  min-width: 500px !important;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: bold;
}


/* --- Mobile Optimierung --- */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  table th, table td {
    padding: 8px 6px;
  }

  form {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  input[type="text"],
  input[type="password"],
  textarea,
  select {
    font-size: 1rem;
    padding: 10px;
  }

  button,
  button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
  }

  .email-header,
  .email-body {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .action-links a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
    padding: 12px;
  }
}
