﻿/* Hauptcontainer */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Stammdaten */
.stammdaten-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.stammdaten-link {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    color: #fff;
    background-color: #4CAF50;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

.nav-tabs {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.nav-tabs li {
    margin: 0;
}

.nav-tabs a {
    display: block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.nav-tabs a:hover {
    background-color: #45a049;
}

.content {
    margin-top: 20px;
}

/* Abschnitte */
.section {
    margin-bottom: 20px;
}

/* Formulargruppen */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], textarea, select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

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

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

.rotate-btn {
    background-color: #FFC107;
    margin-top: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn {
    background-color: #DC3545;
    margin-top: 5px;
    width: 60px;
    height: 30px;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.rotate-btn:hover,
button.delete-btn:hover {
    background-color: #333;
}

/* Galerie */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bild-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

.bild {
    max-width: 50%;
    max-height: 200px;
}

.bild-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 10px;
    width: 50%;
}

.bild-info p {
    margin: 0;
    word-break: break-all;
    font-size: 12px; /* Kleinere Schriftgröße für Dateiname */
}

.bild-info .bild-actions {
    display: flex;
    flex-direction: row; /* Elemente in einer Zeile */
    align-items: center;
    margin-top: 5px;
}

.bild-info .bild-actions label {
    font-size: 12px; /* Kleinere Schriftgröße für "Reihenfolge" */
    margin-right: 5px;
}

.bild-info .bild-actions input[type=number] {
    width: 50px;
}

.bild-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
}

.bild-buttons button {
    margin-left: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, .caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Karte */
#map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
}
