/* Grundlayout */
body {
    background-color: #fffde6;  /* leichtes Gelb */
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Formular-Layout (zentriert und als "Karte") */
form:not(.filter-form) {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Formulareingaben */
label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

input[type="checkbox"] {
    transform: scale(1.3);
    margin-top: 5px;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

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

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #bbb;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #eee;
}

/* Bilder */
img.thumb {
    height: 60px;
    border: 1px solid #ccc;
    padding: 2px;
    background: white;
}

/* Filterformular bleibt flexibel */
form.filter-form {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
    background: none;
    box-shadow: none;
    padding: 0;
    max-width: none;
}

/* Tabellenübersicht für Hühner */
table.huehner-table {
    width: 100%;
    border-collapse: collapse;
}

table.huehner-table th,
table.huehner-table td {
    padding: 10px 15px;
    border: 1px solid #ccc;
    text-align: left;
    white-space: nowrap;
}

table.huehner-table td img {
    max-width: 100px;
    height: auto;
}

/* Kartenansicht */
.huehner-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.huhn-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 300px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.huhn-bild img, .placeholder-bild {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.huhn-info {
    padding: 0.5rem;
    flex: 1;
}

.huhn-buttons a {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #aaa;
    padding: 2px 5px;
    border-radius: 4px;
    background: #eee;
}
