html {
    margin: 0 auto;
    max-width: 1550px;
}

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #ffffff;
}

#logo {
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.menu {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.menu div {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu div:hover {
    background-color: #0056b3;
}

.area {
    display: flex;
    justify-content: left;
    margin-bottom: 30px;
    gap: 10px;
}

.section {
    border: 1px double #777;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #fff;
    display: none; /* Standardmäßig versteckt */
}

#qr-code img {
    width: 300px; /* Größe des QR-Codes (Breite) */
    height: 300px; /* Größe des QR-Codes (Höhe) */
}

#qr-reader {
    width: 250px; /* Scannergröße anpassen */
    height: 250px; /* Scannergröße anpassen */
    margin: auto;
    display: none; /* Standardmäßig versteckt */
}

#article-info {
    margin-top: 0px;
}

#article-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#article-info input, textarea {
    margin-bottom: 15px; /* Mehr Abstand zwischen den Eingabefeldern */
    width: 100%;
    padding: 8px;
    padding-right: 0px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.fade-out {
    opacity: 50%;
}

#qr-code {
    margin-top: 20px;
}

#save-article-btn, #delete-article-btn, #send-position-btn {
    margin-top: 20px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#login {
    /*border: 1px double #777;*/
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 0px 20px 0px;
    background-color: #ffffff;
    border-radius: 5px;
    max-width: 950px;
    margin: 0 auto;
}

.login-form {
    border: #777777;
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    background-color: #cccccc;
    padding: 5px 5px 20px 5px;
    line-height: 30px;
    width: 300px;
    margin: 0 auto;
}

#header {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

#map, #spots-map {
    height: 400px;
    width: 100%;
    margin: 20px 0;
}

#properties, #attachments {
    width: 100%;
    margin: 20px 0;
}

#attachments * {
    margin-bottom: 20px;
}

video, canvas {
    display: block;
    margin: 10px 0;
}

.container {
    margin-top: 50px;
    display: none;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 10px;
    margin-top: 20px;
}

.grid-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    background-color: #f9f9f9;
    font-size: 10pt;
}

.filter-form input, .filter-form select {
    margin-right: 10px;
    padding: 5px;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, 260px);
    margin-bottom: 20px;
}

#profile {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px;
    cursor: pointer;
    text-align: center;
}

#profile svg {
    width: 48px; /* Größerer Icon-Durchmesser */
    height: 48px;
    display: inline-flex;
}

#credits {
    border: 2px solid #0056b3;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    background-color: black;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.overlay-content {
    background: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.fullsize-content {
    background: #fff;
    padding: 20px;
    width: 80%;
    height: 90%;
    max-width: 600px;
    text-align: left;
    border-radius: 10px;
    position: relative;
}

.overlay-content h2 {
    margin-top: 0;
}

.overlay-content p {
    font-size: 16px;
}

.overlay-content .button {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    line-height: 50px;
    background-color: #3f51b5;
    color: white;
}

.overlay-content .button:hover {
    background-color: #007BFF;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3f51b5;
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

.close-btn-small {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #3f51b5;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.actionicon-container {
    position: fixed;
    bottom: 30px;
    text-align: center;
    z-index: 9999;
}

/* Rundes Icon */
.actionicon {
    width: 50px;
    height: 50px;
    background-color: #4CAF50; /* Grüne Hintergrundfarbe */
    border-radius: 50%; /* Rund machen */
    border: 8px solid #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -10px; /* Abstand zum Label */
}

.actionicon:hover {
    transform: scale(1.1); /* Vergrößert das Element um 10% */
    border-radius: 50%; /* Rund machen */
    border: 8px solid #f3f3f3;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Verstärkt den Schatten */
}

.actionicon-small {
    width: 30px;
    height: 30px;
    background-color: #4CAF50; /* Grüne Hintergrundfarbe */
    border-radius: 50%; /* Rund machen */
    border: 8px solid #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -10px; /* Abstand zum Label */
}

.actionicon-small:hover {
    transform: scale(1.1); /* Vergrößert das Element um 10% */
    border-radius: 50%; /* Rund machen */
    border: 8px solid #f3f3f3;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Verstärkt den Schatten */
}

.actionicon-huge {
    width: 70px;
    height: 70px;
    background-color: #4CAF50; /* Grüne Hintergrundfarbe */
    border-radius: 50%; /* Rund machen */
    border: 8px solid #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -10px; /* Abstand zum Label */
}

.actionicon-huge:hover {
    transform: scale(1.1); /* Vergrößert das Element um 10% */
    border-radius: 50%; /* Rund machen */
    border: 8px solid #f3f3f3;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* Verstärkt den Schatten */
}

.actionicon:hover, .actionicon-small:hover, .actionicon-huge:hover {
    cursor: pointer;
}

/* Text im Icon */
.actionicon-text {
    font-size: 20pt;
    color: white; /* Weißer Text im Icon */
    font-weight: bold;
}

/* Text unter dem Icon */
.actionicon-label {
    font-size: 10pt;
    color: #333;
    font-size: clamp(0.8em, 2.8vw, 0.9em);
}

/* Hinzufügen Icon */
.actionicon.add, .actionicon-small.add, .actionicon-huge.add {
    background-color: #4CAF50; /* Grün für Hinzufügen */
}

/* Löschen Icon */
.actionicon.delete, .actionicon-small.delete, .actionicon-huge.delete {
    background-color: #f44336; /* Rot für Löschen */
}

/* Speichern Icon */
.actionicon.save, .actionicon-small.save, .actionicon-huge.save {
    background-color: #2196F3; /* Blau für Speichern */
}

/* GPS Icon */
.actionicon.gps, .actionicon-small.gps, .actionicon-huge.gps {
    background-color: #FF9800; /* Orange für GPS */
}

/* QR-Code Icon */
.actionicon.qr, .actionicon-small.qr, .actionicon-huge.qr {
    background-color: #9C27B0; /* Lila für QR-Scan */
}

.actionicon.camera, .actionicon-small.camera, .actionicon-huge.camera {
    background-color: #3F51B5; /* Dunkles Blau für Kamera */
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    z-index: 20000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.normal {
    background-color: -moz-buttondefault;
}

.red {
    background-color: red;
    animation: bounce .9s ease-in-out alternate;
}

@keyframes bounce {
    to {
        transform: scale(1.5);
    }
}

.pulse{
    animation: flash 2s;
}

@keyframes flash {
    0%   {transform:scale(1);}
    50%  {transform:scale(1.5)}
    100% {transform:scale(1);opacity:1;}
}

.icon {
    width: 120px; /* Größe des Icons */
    height: 120px;
}

.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.btn.yes {
    background-color: #4CAF50;
    color: white;
    line-height: 2.5em;
}

.btn.no {
    background-color: #f44336;
    color: white;
    line-height: 2.5em;
}

footer {
    background-color: #0056b3;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow-x: auto; /* Enables horizontal scroll */
    white-space: nowrap; /* Prevents line breaks */
}

.footer-content p {
    margin: 0;
    font-size: 12px; /* Slightly smaller font size to save space */
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px; /* Adds space between links */
}

.footer-content a:hover {
    text-decoration: underline;
}

/* For mobile, we ensure the links remain in a single line */
@media (max-width: 600px) {
    .footer-content p {
        font-size: 11px;
    }
}

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 96%;
    margin-top: 20px;
}

.article-teaser {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 und 2/3 der Breite */
    gap: 20px; /* Abstand zwischen Bild und Inhalt */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
    margin-bottom: 20px;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Thumbnail-Bereich auf der linken Seite */
.teaser-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-height: 80px;
}

/* Inhalt auf der rechten Seite */
.teaser-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teaser-title {
    font-size: 1.5em;
    margin: 0;
    color: #333;
    overflow-wrap: anywhere;
}

.teaser-description {
    font-size: 1em;
    color: #555;
    margin: 10px 0;
}

.teaser-meta-data {
    font-size: 0.9em;
    color: #777;
}

.teaser-meta-data p {
    margin-bottom: -10px;
}

/* Responsives Verhalten */
@media (max-width: 768px) {
    .article-teaser {
        grid-template-columns: 1fr 2fr; /* Auf kleinen Bildschirmen nimmt das Bild die ganze Breite ein */
    }

    .teaser-thumbnail {
        margin-bottom: 15px;
    }
}

.image-container {
    width: 80%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    margin: auto;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none; /* Deaktiviert Standard-Gesten wie Scrollen */
}

/* Bild im Container */
.image-content {
    width: 100%;
    object-fit: contain; /* Verhindert Verzerrung des Bildes */
    transform-origin: center center;
    transition: transform 0.1s ease-in-out; /* Weicher Zoom */
    cursor: grab;
}

.input-container {
    position: relative;
    display: inline-block;
    width: 99%;
}

/* Input-Feld */
.input-container input[type="text"] {
    width: 100%;
    padding-right: 30px; /* Platz für das Icon reservieren */
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Info-Icon rechts im Textfeld */
.info-icon {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 50%;
    padding: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

.info-icon:hover {
    color: #000;
    background-color: #e0e0e0;
}

.tag-input-container {
    margin-bottom: 20px;
}

#tag-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    width: 300px;
}

/* Container für die Tag-Bubbles */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/* Stil für die einzelnen Tag-Bubbles */
.tag {
    background-color: #2196F3;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* X-Button zum Entfernen der Tags */
.tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

.tag .remove-tag:hover {
    color: #000000;
}

.carousel {
    position: relative;
    width: 300px; /* Feste Breite des Karussells */
    height: 200px; /* Feste Höhe des Karussells */
    margin: auto;
    overflow: hidden;
    border: 2px solid #ccc; /* Optionaler Rahmen für das Karussell */
}

/* Bildstil */
.carousel img {
    width: 300px; /* Feste Breite des Bildes */
    height: 200px; /* Feste Höhe des Bildes */
    object-fit: cover; /* Füllt den gesamten Bereich aus und schneidet bei Bedarf */
    display: none;
}

/* Aktives Bild anzeigen */
.carousel img.active {
    display: block;
    cursor: grab;
}

/* Navigationspfeile */
.carousel .prev, .carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: white;
    padding: 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

/* Toast-Container */
#toast-container {
    position: fixed;
    top: 50%;
    right: 20%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Grundstil für Toasts */
.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    max-width: 300px;
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease, fadeOut 0.5s ease 4.5s forwards;
    cursor: pointer;
}

/* Erfolg, Warnung und Fehler-Stile */
.toast.success {
    background-color: #4caf50; /* Grün */
}

.toast.warning {
    background-color: #ff9800; /* Orange */
}

.toast.error {
    background-color: #f44336; /* Rot */
}

/* Schließen-Button */
.toast .close-btn {
    margin-left: 15px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.properties {
    border: black;
    border-radius: 3px;
    border-style: solid;
    padding: 5px;
    margin-left: -5px;
    margin-top: 25px;
}

.collapsible {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.collapsible-header:hover {
    background-color: #eaeaea;
}

.collapsible-content {
    padding: 15px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fff;
}

.toggle-icon {
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.collapsible-header.open .toggle-icon {
    transform: rotate(180deg); /* Pfeil nach oben */
}

/* Externer Link mit Arrow dahinter */
.external-link:after {
    padding-left: 2px;
    content: url("../images/external-link.png");
    vertical-align: middle;
}
