/* style.css */

body {
    background-image: url('/static/images/background.jpg'); /* Pfad zum Bild anpassen */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    margin: 2em;
}

.container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 1em;
    border-radius: 8px;
}

h1, h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 800;
    margin-bottom: 0.5em;
    background: linear-gradient(90deg, #004080, #66a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(102, 163, 255, 0.7);
    transition: color 0.3s ease;
    cursor: default;
}

h1 {
    font-size: 2.5em;
    text-align: center; /* h1 immer zentriert */
}

h2 {
    font-size: 1.5em;
      text-align: center; /* h1 immer zentriert */
}
}

a {
    color: #007bff;
    text-decoration: none;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2em;
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    table-layout: auto;
    width:auto;
     margin-left: auto;
  margin-right: auto;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75em 1em;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

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

.action-links {
    margin-bottom: 1.5em;
}

.action-links a {
    margin-right: 1.5em;
    font-weight: 600;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1em;
}

ul li {
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
}

ul li.success {
    color: green;
}

ul li.error {
    color: red;
}

/* Formulare */

form {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    margin: 40px auto; /* zentriert das Formular horizontal */
    display: block; /* sorgt dafür, dass margin auto wirkt */
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box; /* wichtig, damit Padding in der Breite enthalten ist */
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #3f87f5;
    outline: none;
    background: #f0f5ff;
}

/* Buttons */

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 0.5em 1.2em;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* keine Unterstreichung */
}

button:hover {
    background-color: #0056b3;
}

/* Inline-Button in Formularen */

form.inline-button button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}

.button-row button {
    display: block;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
}

.title {
    color: #003366;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    font-size: 2.5em;
    font-weight: bold;
}

/* Navigation */

.navbar {
    background-color: #333;
    padding: 10px 20px;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.navbar li {
    display: inline;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

/* Flash messages */

.flashes li {
    padding: 10px;
    margin-bottom: 5px;
}

.success {
    background-color: #c7f5c1;
}

.error {
    background-color: #f5c1c1;
}
textarea {
  width: 100%;
  box-sizing: border-box; /* Damit Padding und Border mitgerechnet werden */
  border: 2px solid #d1d9e6;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  resize: vertical; /* Optional: nur vertikal vergrößerbar */
}

textarea:focus {
  border-color: #3f87f5;
  outline: none;
  background: #f0f5ff;
}

input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid #d1d9e6;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  margin-bottom: 20px; /* Wichtig: Abstand nach dem Feld */
}

input[type="date"]:focus {
  border-color: #3f87f5;
  outline: none;
  background: #f0f5ff;
}

.inline-delete-form {
    all: unset;
    display: inline;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.navbar-logo {
    margin-left: auto; /* schiebt das Logo ganz nach rechts */
}

.navbar-logo img {
    max-width: 120px;   /* maximale Breite */
    max-height: 80px;   /* maximale Höhe */
    width: auto;        /* Breite proportional anpassen */
    height: auto;       /* Höhe proportional anpassen */
}
