/* =========================================
   Fangbuch – Formular-Styles
   ========================================= */

/* Wrapper */
.fangbuch-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
}

/* Labels */
.fangbuch-form label {
    font-family: 'Mulish', sans-serif;
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 400;
    color: var(--dark-blue);
}

/* Inputs */
.fangbuch-form input[type="text"],
.fangbuch-form input[type="date"],
.fangbuch-form input[type="time"],
.fangbuch-form input[type="number"],
.fangbuch-form select {
    font-family: 'Mulish', sans-serif;
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* Fokus-Effekt */
.fangbuch-form input:focus,
.fangbuch-form select:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
    outline: none;
}

/* Checkbox */
.fangbuch-form .checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.fangbuch-form .checkbox-row input[type="checkbox"] {
    margin-right: 0.6rem;
    transform: scale(1.2);
}

/* Datei-Upload */
.fangbuch-form input[type="file"] {
    font-family: 'Mulish', sans-serif;
    margin-bottom: 1.2rem;
}

/* Button */
.fangbuch-form button[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fangbuch-form button[type="submit"]:hover {
    background: #004c99;
}
/* Wrapper für den Upload */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

/* Versteckt den echten File-Input */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
}

/* Der sichtbare Button */
.file-upload-button {
    display: inline-block; /* wichtig */
    background: var(--blue);
    color: var(--white) !important; /* erzwingt Weiß */
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.file-upload-button:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* Dateiname */
.file-upload-filename {
    font-size: 0.9rem;
    color: var(--gray);
    font-family: 'Mulish', sans-serif;
}


.fangbuch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.new-entry-link {
    background: var(--blue-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.new-entry-link:hover {
    background: var(--blue);
}
.table-search {
    width: 350px;
    padding: 0.65rem;
    margin-bottom: 1rem;
    border: 1px solid var(--blue);
    border-radius: 6px;
    font-size: 1rem;
}

.export-link {
    display: inline-block;
    margin-top: 1rem;
    background: var(--blue-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.export-link:hover {
    background: var(--blue);
}
.export-wrapper {
    text-align: center;
    margin-top: 1rem;
}


/* =========================================
   Fangbuch – Tabelle
   ========================================= */
.table-wrapper {
    max-width: 1600px;
    margin: 0 auto; /* zentriert */
    overflow-x: auto; /* falls sie kleiner wird */
}

.fangbuch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.fangbuch-table th {
    background: var(--blue-dark);
    color: white;
    padding: 0.7rem;
    text-align: left;
}

.fangbuch-table td {
    padding: 0.6rem;
    border-bottom: 1px solid #ddd;
}

.fangbuch-table tr:nth-child(even) {
    background: #f7f7f7;
}

.thumb {
    width: 80px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.actions a {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    text-decoration: none;
}

.action-edit { color: var(--blue); }
.action-delete { color: var(--red); }



/* Responsive */
@media (max-width: 480px) {
    .fangbuch-form {
        padding: 1.5rem;
    }

    .fangbuch-form h1 {
        font-size: 1.5rem;
    }
}
