/* Allgemeine Stile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', Arial, sans-serif;
}

body {
  background-color: #97bcc3;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

/* Überschriften und Menüpunkte – kantiger via Montserrat */
h1, h2, h3,
.header .title,
.menu-btn,
#menuContent button,
#menuContent p,
.profile-container h2,
.profile-container h3 {
  font-family: 'Montserrat', sans-serif;
}

/* Header Basis */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #425f5e;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 12000; /* Erhöhter z-index */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  height: 60px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo .title {
  font-size: 20px;
  color: white;
  display: flex;
  flex-direction: column;
}

.logo .title span {
  font-size: 12px;
  opacity: 0.8;
}

/* Content mit Header-Abstand */
.content {
  margin-top: 60px;
  padding: 20px;
  max-width: 1000px; /* Erhöht von 800px */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(100vh - 60px);
  font-size: 18px; /* Größerer Text */
  line-height: 1.6;
}

/* Spezielle Content-Anpassung für die Kartenseite */
.map-container {
  margin-top: 60px;
  height: calc(100vh - 60px);
  padding: 0;
}

/* Footer auf der Kartenseite ausblenden */
.map-container + footer {
  display: none;
}

/* Side Menu Basis-Styles */
.side-menu {
  position: fixed;
  width: 100%;
  height: calc(100vh - 60px); /* Höhe abzüglich Header-Höhe */
  background-color: #7da7a5;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 11000; /* Niedriger als Header */
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  transform: translateY(-100%);
}

#menuContent {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#menuContent button {
  background: none;
  border: none;
  color: white;
  background-color: #2e3f47;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

#menuContent button:hover {
  background-color: #152029;
}

/* Side Menu Login Styles */
#menuContent form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

#menuContent h2 {
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

#menuContent input[type="text"],
#menuContent input[type="password"] {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

#menuContent input[type="text"]:focus,
#menuContent input[type="password"]:focus {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  outline: none;
}

#menuContent input::placeholder {
  color: #666;
}

#menuContent form button[type="submit"] {
  margin-top: 5px;
  background-color: #2e3f47;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

#menuContent form button[type="submit"]:hover {
  background-color: #152029;
}

/* Menu und Close Button Styles */
.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background-color: #2e3f47;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 11500;
}

.close-btn:hover {
  background-color: #152029;
  transform: scale(1.1);
}

/* Desktop Styles */
@media only screen and (min-width: 769px) {
  .side-menu {
    margin-top: 60px;
    width: 300px;
    right: -300px;
    top: 0;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
    border-radius: 0 0 0 8px;
  }

  .side-menu.open {
    transform: translateX(-300px);
  }
  
  .content {
    padding: 40px; /* Mehr Padding auf Desktop */
  }

  /* Größere Blog-Posts auf Desktop */
  .post {
    font-size: 18px;
    padding: 30px;
  }
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
    .content {
        padding: 5px;
        margin-top: 60px;
        font-size: 16px;
    }
    
    .header {
        padding: 5px 10px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 12000;
        background-color: #425f5e; /* Stelle sicher, dass der Header die richtige Farbe hat */
    }

    /* Überarbeitetes mobiles Side-Menu Design */
    .side-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 0.5px;
        margin: 0;
        border-radius: 0;
        z-index: 11000;
        background-color: #7da7a5;
    }

    .side-menu.open {
        transform: translateY(0);
    }

    /* Komplett deaktivierte horizontale Transformationen */
    .side-menu, .side-menu.open {
        transform-origin: top center;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-100%);
    }

    .side-menu.open {
        transform: translateY(0) !important;
    }

    #menuContent {
        opacity: 1;
        visibility: visible;
    }

    /* Verbesserte Form-Darstellung im mobilen Menü */
    #menuContent form {
        display: flex;
        flex-direction: column;
        gap: 0.5px;
        width: 100%;
    }

    #menuContent input[type="text"],
    #menuContent input[type="password"] {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
    }
}

/* Mobile Styles - Kompakteres Menü */
@media only screen and (max-width: 768px) {
  #menuContent {
    gap: 4px; /* Stark reduzierter Abstand zwischen Menüelementen */
  }
  
  #menuContent button {
    padding: 6px; /* Reduziertes Padding */
    margin: 3px 0; /* Minimaler vertikaler Abstand */
    font-size: 14px; /* Kleinere Schriftgröße */
  }

  #menuContent form {
    gap: 3px; /* Minimaler Abstand zwischen Formular-Elementen */
    margin-top: 2px; /* Reduzierter oberer Rand */
  }

  #menuContent h2 {
    margin-bottom: 4px; /* Reduzierter Abstand unter Überschriften */
    font-size: 16px; /* Kleinere Schriftgröße für Überschriften */
  }

  /* Kompaktere Eingabefelder */
  #menuContent input[type="text"],
  #menuContent input[type="password"] {
    padding: 6px 8px; /* Reduziertes Padding */
    margin-bottom: 3px; /* Reduzierter unterer Abstand */
    font-size: 14px; /* Kleinere Schriftgröße */
  }

  #menuContent form button[type="submit"] {
    padding: 6px 10px;
    font-size: 14px;
    margin-top: 3px;
  }

  /* Kompaktere Willkommens-Nachricht */
  #menuContent .menu-header p {
    margin: 0 0 2px 0;
    font-size: 14px;
  }

  .side-menu {
    padding: 8px; /* Noch stärker reduziertes Padding im Seitenmenü */
  }
}

/* Mobile Styles - Noch kompakteres Menü */
@media only screen and (max-width: 768px) {
  #menuContent {
    gap: 1px; /* Extrem reduzierter Abstand zwischen Menüelementen */
  }
  
  #menuContent button {
    padding: 4px; /* Minimales Padding */
    margin: 1px 0; /* Minimaler vertikaler Abstand */
    font-size: 14px; /* Kleinere Schriftgröße */
    min-height: 32px; /* Kleinere Mindesthöhe */
  }

  #menuContent form {
    gap: 1px; /* Minimaler Abstand zwischen Formular-Elementen */
    margin-top: 1px; /* Reduzierter oberer Rand */
  }

  #menuContent h2 {
    margin-bottom: 2px; /* Reduzierter Abstand unter Überschriften */
    font-size: 16px; /* Kleinere Schriftgröße für Überschriften */
  }

  /* Kompaktere Eingabefelder */
  #menuContent input[type="text"],
  #menuContent input[type="password"] {
    padding: 4px 8px; /* Reduziertes Padding */
    margin-bottom: 1px; /* Reduzierter unterer Abstand */
    font-size: 14px; /* Kleinere Schriftgröße */
    min-height: 28px; /* Kleinere Mindesthöhe */
  }

  #menuContent form button[type="submit"] {
    padding: 4px 8px;
    font-size: 14px;
    margin-top: 1px;
    min-height: 28px; /* Kleinere Mindesthöhe */
  }

  /* Kompaktere Willkommens-Nachricht */
  #menuContent .menu-header p {
    margin: 0 0 1px 0;
    font-size: 14px;
  }

  .side-menu {
    padding: 4px; /* Noch stärker reduziertes Padding im Seitenmenü */
  }
}

/* Post Cards - Zentrierte Ausrichtung */
.post {
  background-color: #425f5e;
  padding: 20px;
  margin: 20px auto; /* Erhöhter vertikaler Abstand */
  width: calc(100% - 30px);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,1);
  max-width: 1000px; /* Erhöht von 800px */
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

/* Post-Meta Informationen */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.meta-text {
  color: #84bebc;
  font-size: 0.9em;
  margin: 0;
  line-height: 1.4;
  font-family: 'Nunito', sans-serif;
}

/* Responsives Design für Post-Meta */
@media (max-width: 480px) {
  .post-meta {
    padding: 8px 15px;
    flex-direction: row;
    gap: 10px;
  }
  
  .meta-text {
    font-size: 0.85em;
  }
}

.post .profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.post-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-header-content {
  flex: 1;
  min-width: 200px;
}

.post-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

.post-content {
  margin: 15px 0;
  flex-grow: 1;
}

.post-content p {
  background-color: #ced4da;
  color: #212529;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Post-Footer und Metadaten */
.post-location {
  display: flex;
  align-items: center;
  margin: 0;
  color: inherit;
  pointer-events: none;
  user-select: none;
}

.post-location img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  opacity: 0.7;
}

.post-date {
  margin: 0;
  color: inherit;
}

/* Profilbild in Blog-Posts */
.post-header .profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* Einheitliche Profilbild-Stile */
.profile-pic, 
.map-profile-pic,
.current-profile img,
.post-header .profile-pic,
.map-marker img,
.gm-style .gm-style-iw-c img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2e3f47;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Profilbild-Styles für Blog-Posts und Karte */
.profile-pic,
.gm-style img[src*="/uploads/profile_images/"],
.gm-style img[src*="/image/standard_profile.png"] {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #000 !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Spezifische Größe für Kartenmarker */
.gm-style img[src*="/uploads/profile_images/"],
.gm-style img[src*="/image/standard_profile.png"] {
    width: 32px !important;
    height: 32px !important;
}

/* Zusätzliche Regeln für verschiedene Google Maps Marker-Container */
.gm-style-iw img,
.gm-style [role="img"] img,
.gm-style-iw-d img {
    border-radius: 50% !important;
    border: 2px solid #000 !important;
}

/* Größeres Profilbild für Profilseite */
.current-profile img {
    width: 80px;
    height: 80px;
}

/* Profilbild in Blog-Posts Header */
.post-header .profile-pic {
    width: 50px;
    height: 50px;
}

/* Profilbild auf der Karte (in Markern und Info-Fenstern) */
.map-marker img,
.gm-style .gm-style-iw-c img {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
}

/* Bild-Galerie Styles */
.post .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
    justify-items: center;
    align-items: center;
    width: 100%;
}

.post .gallery-item {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    background-color: #f0f0f0;
}

.post .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #eee 0px, #f5f5f5 40px, #eee 80px);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.post .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.post .gallery-item img.loaded {
    opacity: 1;
}

.post .gallery-item img.loaded + .image-skeleton {
    opacity: 0;
}

.post .gallery-item img:hover {
    transform: scale(1.05);
}

.image-skeleton {
    background: linear-gradient(90deg, #eee 0px, #f5f5f5 40px, #eee 80px);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .post .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .post .gallery-item {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .post .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .post .gallery-item {
        width: 120px;
        height: 120px;
    }
}

/* Lightbox (Vollbildmodus) mit verbessertem Close-Button */
.lightbox {
  display: none;
  position: fixed;
  top: 60px; /* Header-Höhe berücksichtigen */
  left: 0;
  width: 100%;
  height: calc(100% - 60px); /* Header-Höhe abziehen */
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 11000; /* Höher als Side-Menu aber niedriger als Header */
  overflow: hidden; /* Verhindert Scrollen innerhalb der Lightbox */
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh; /* Etwas kleiner, um auf mobilen Geräten genug Platz zu haben */
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Close-Button für Lightbox - größer und auffälliger für mobile Geräte */
.lightbox .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px; /* Größer für Touch-Geräte */
  height: 20px; /* Größer für Touch-Geräte */
  background-color: rgba(46, 63, 71, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px; /* Größer für bessere Sichtbarkeit */
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  z-index: 12000; /* Muss über dem Bild liegen */
}

/* Optionen-Button (drei Punkte) für Blog-Beiträge */
.blog-options-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.blog-options-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#blogOptionsMenu {
    position: absolute;
    background-color: #425f5e;
    border: 1px solid #2e3f5e;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 12000;
    overflow: hidden;
}

#blogOptionsMenu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

#blogOptionsMenu button:hover {
    background-color: #2e3f5e;
}

/* Verbesserte Zugänglichkeit */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Unterstützung */
@media (prefers-color-scheme: dark) {
  .post-content p {
    background-color: #2e3f5e;
    color: #ffffff;
  }
}

/* Profil Container Styles */
.profile-container {
  top: 60px;
  position: relative;
  background-color: #425f5e;
  border-radius: 12px;
  padding: 40px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.profile-container h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  font-weight: bold;
  color: white;
}

.profile-sections {
  display: flex;
  width: 100%;
  gap: 40px;
  justify-content: space-between;
}

.profile-section {
  flex: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  text-align: center;
}

.profile-section h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
}

/* Profilbild Bereich */
.current-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.current-profile img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #000000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.upload-btn {
  background-color: #97bcc3;
  color: white;
  padding: 8px 30px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.upload-btn:hover {
  background-color: #425f5e;
}

/* Passwort Ändern Bereich */
.password-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.password-input {
  background: white;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  transition: border-color 0.3s;
}

.password-input::placeholder {
  color: #666;
}

.password-input.invalid {
  border-color: #ff5d5d;
}

.password-input.valid {
  border-color: #b3ffb3;
}

.save-btn {
  background-color: #97bcc3;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: background-color 0.3s;
  width: 100%;
}

.save-btn:hover {
  background-color: #425f5e;
}

#profilePic {
  display: none;
}

/* Mobile Anpassungen für die Profilseite */
@media (max-width: 768px) {
  .profile-container {
    padding: 20px;
    margin: 10px;
  }

  .profile-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .profile-sections {
    flex-direction: column;
    gap: 20px;
  }

  .profile-section {
    width: 100%;
  }

  .profile-section h2 {
    font-size: 20px;
  }

  .current-profile img {
    width: 120px;
    height: 120px;
  }

  .password-input, .save-btn {
    font-size: 16px;
    padding: 10px;
  }
}

/* Blog Editor spezifische Container-Stile */
.blog-editor-container {
  top: 60px;
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #425f5e;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Eingabefelder im Blogeditor */
.blog-editor-container input.blog-input,
.blog-editor-container textarea.blog-textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  background-color: #ced4da;
  color: #212529;
}

/* Label im Blogeditor */
.blog-editor-container .blog-label {
  display: block;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

/* Submit-Button des Blogeditors */
.blog-editor-container .blog-submit {
  position: absolute;
  bottom: 10px;
  right: 20px;
  padding: 10px 20px;
  display: inline-block;
  background-color: #344b4a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.blog-editor-container .blog-submit:hover {
  background-color: #2e3f5e;
}

/* Blog-Eintrag Footer: Positioniert den Text am unteren rechten Rand */
.post-footer {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 12px;
  color: #84bebc;
  text-align: right;
  margin-top: 15px;
  border-top: 1px solid #eee;
}

/* Standort im Blog-Eintrag */
.post-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  position: absolute;
  bottom: 5px;
  width: calc(100% - 40px);
}

.post-location {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  margin: 5px 0;
  color: #84bebc;
  transition: color 0.3s ease;
}

.post-location:hover {
  color: #ffffff;
}

.location-marker-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
  opacity: 0.7;
}

.post-location:hover .location-marker-icon {
  filter: brightness(1);
}

.post-footer {
  text-align: right;
}

/* Location Marker Icon */
.location-marker-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Post Location Link */
.post-location {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  background: #f5f5f5;
  border-radius: 15px;
  margin: 10px 0;
}

.post-location:hover {
  background: #e5e5e5;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 12000;
}

.toast {
  background-color: #425f5e;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  animation: slideIn 0.5s ease-out;
  max-width: 300px;
}

.toast.success {
  background-color: #2e5c4d;
}

.toast.error {
  background-color: #8b3e46;
}

.toast-message {
  margin-right: 15px;
  flex-grow: 1;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 0 5px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Spezifische Styles für die Kartenansicht */
.map-container {
  position: relative;
  height: calc(100vh - 60px);
}

.map-sidebar {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 300px;
  background-color: #425f5e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 1px 4px 8px rgba(0,0,0,0.4);
  z-index: 1000;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* In style.css */
.input-with-button {
  display: flex;
  width: 100%;
}

.input-with-button input {
  flex-grow: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-with-button .add-btn {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  height: 42px;
  width: 42px;
}

/* Anpassungen für die Eingabefelder ohne Labels */
.location-input {
  display: flex;
  width: 100%;
  margin-bottom: 15px;
  align-items: center;
}

.location-input input {
  flex-grow: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
  padding: 12px;
  border-radius: 40px;
  border: none;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-input input::placeholder {
  color: #666;
  font-weight: bold;
}

/* Zentrierter Plus-Button */
.add-destination-container {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.add-btn {
  width: 42px;
  height: 42px;
  background-color: #2e3f5e;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  padding: 0;
  margin-left: 10px;
  flex-shrink: 0;
}

.add-btn:hover {
  background-color: #1a2a3a;
  transform: scale(1.1);
}

/* Eingabefeld mit Lösch-Button */
.input-with-delete {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-delete input {
  width: 100%;
  padding-right: 30px; /* Platz für den Lösch-Button */
}

.delete-destination-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.delete-destination-btn:hover {
  background-color: #ddd;
  color: #555;
}

@media (max-width: 768px) {
  .map-sidebar {
    width: calc(100% - 40px);
    max-height: 200px;
  }
}

/* Styles für die Drag-and-Drop-Funktionalität und Icons */
.route-fields-container {
    margin-top: 15px;
}

.draggable-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: grab;
}

.draggable-item:active {
    cursor: grabbing;
}

.location-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: transparent;
    border: 2px solid;
}

.start-icon {
    border-color: #27AE60;
    color: #ffffff;
}

.waypoint-icon {
    border-color: #3498DB;
    color: #ffffff;
}

.end-icon {
    border-color: #E74C3C;
    color: #ffffff;
}

.sortable-ghost {
    opacity: 0.5;
    background-color: #f0f0f0;
}

.sortable-chosen {
    background-color: #f9f9f9;
}

.sortable-drag {
    opacity: 0.8;
}

/* Anpassung der Eingabefelder für die neue Struktur */
.location-input {
    width: 100%;
}

.input-with-delete {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-delete input {
    width: 100%;
    padding-right: 30px;
}

/* Standort im Blog-Eintrag */
.post-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  position: absolute;
  bottom: 5px;
  width: calc(100% - 40px);
}

.post-location {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  margin: 5px 0;
  color: #84bebc;
  transition: color 0.3s ease;
}

.post-location:hover {
  color: #ffffff;
}

.location-icon {
  margin-right: 5px;
  font-size: 16px;

}

.post-footer {
  text-align: right;
}

/* Anpassungen für die Lightbox */
.blog-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.blog-lightbox-content {
  background-color: #425f5e;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.blog-lightbox .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* In style.css */
.location-section {
    margin: 20px 0;
}

.location-input-container {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.location-input-container input {
    flex-grow: 1;
}

.location-btn {
    padding: 0 20px;
    background-color: #ced4da;
    color: #212529;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    height: 42px; /* Gleiche Höhe wie das Eingabefeld */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif; /* Gleiche Schriftart wie andere Buttons */
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Verhindert Umbruch des Textes */
}

@media (max-width: 480px) {
    .location-btn {
        font-size: clamp(10px, 3vw, 12px); /* Responsive Textgröße */
        padding: 0 10px; /* Reduzierter Padding auf kleinen Bildschirmen */
    }
}

/* In style.css */
.map-blog-preview {
    padding: 10px;
    max-width: 300px;
}

.map-blog-preview h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #425f5e;
}

.map-blog-preview p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.map-blog-preview button {
    background-color: #425f5e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.map-blog-preview button:hover {
    background-color: #2e3f5e;
}

/* In style.css */
.location-marker-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
  opacity: 0.7;
}

.post-location {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #84bebc;
  transition: color 0.3s ease;
}

.post-location:hover {
  color: #ffffff;
}

.post-location:hover .location-marker-icon {
  filter: brightness(1);
}

.post-location span {
  font-size: 14px;
}

/* Admin-Styles */
.admin-container {
  top: 60px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.admin-section {
  background-color: #425f5e;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #ffffff;
}

.admin-btn {
  background-color: #2e3f5e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-btn:hover {
  background-color: #1a2a3a;
}

.admin-btn.small {
  padding: 5px 10px;
  font-size: 14px;
}

.admin-btn.danger {
  background-color: #8b3e46;
}

.admin-btn.danger:hover {
  background-color: #6b2e36;
}

.user-list, .blog-list {
  margin-top: 20px;
}

.user-item, .blog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #7da7a5;
  border-radius: 4px;
  margin-bottom: 10px;
}

.user-actions, .blog-actions {
  display: flex;
  gap: 10px;
}

.blog-info {
  display: flex;
  flex-direction: column;
}

.blog-title {
  font-weight: bold;
  color: #ffffff;
}

.blog-author {
    font-size: 14px;
    color: #e0e0e0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    background-color: #425f5e;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
}

.modal-content h3 {
    margin-top: 0;
    color: #ffffff;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input {
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.modal-content button {
    background-color: #2e3f5e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #1a2a3a;
}

.route-points-container {
    margin-top: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.route-point {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: grab;
}

.route-point:active {
    cursor: grabbing;
}

.route-point-info {
    flex-grow: 1;
    margin: 0 10px;
}

.route-point-info span {
    display: block;
    font-size: 14px;
}

.route-point-info small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.delete-point-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.delete-point-btn:hover {
    color: #ff4444;
}

#addPointBtn {
    margin-left: 10px;
}
/* Add these styles to style.css */

/* Point Editor Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 11000;
}

.modal-content {
    background-color: #425f5e;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    color: white;
}

.point-editor-section {
    margin: 20px 0;
}

.point-editor-section h4 {
    margin-bottom: 10px;
}

.point-editor-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.point-editor-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    border-radius: 4px;
}

.point-editor-input {
    display: flex;
    gap: 10px;
}

.point-editor-input input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background-color: white;
}

.delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.delete-btn:hover {
    color: #ff0000;
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.close-modal:hover {
    color: #ddd;
}

/* Point Info Window Styles */
.point-info-window {
    padding: 15px;
    color: #2e4f4e;
}

.point-info-window h3 {
    margin: 0 0 15px 0;
    color: #425f5e;
}

.point-info-window h4 {
    margin: 10px 0 5px 0;
    color: #425f5e;
}

.point-info-window ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.point-info-window .point-actions {
    margin-top: 15px;
    text-align: center;
}

.point-info-window .location-btn {
    background-color: #425f5e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.point-info-window .location-btn:hover {
    background-color: #2e4f4e;
}

/* Blog-Metadaten */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
    font-size: 0.9em;
}

.post-location {
    display: flex;
    align-items: center;
    margin: 0;
}

.post-location img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.post-date {
    margin: 0;
}

.location-marker-icon {
    opacity: 0.7;
}
.post-footer {
    margin-top: 15px;
    border-top: 1px solid #eee;
}

/* Bildlösch-Funktionalität im Blogeditor */
.image-preview-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.delete-image-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #8b3e46;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
}

.delete-image-btn:hover {
    background-color: #6b2e36;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ladeindikator Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 12000;
    backdrop-filter: blur(5px);
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #425f5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-progress {
    color: #ffffff;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

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

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

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #2e4f4e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-progress {
    position: absolute;
    color: white;
    font-size: 16px;
    margin-top: 100px;
}

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

/* Ladeindikator Styles */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2e3f5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

.loading-progress {
    margin-top: 10px;
    font-size: 14px;
    color: #2e3f5e;
}

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

/* Keine Blogs Anzeige */
.no-blogs {
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

.no-blogs-icon {
    font-size: 48px;
    color: #2e3f5e;
    margin-bottom: 20px;
}

.no-blogs h2 {
    color: #2e3f5e;
    margin-bottom: 10px;
}

.no-blogs p {
    color: #666;
    margin-bottom: 20px;
}

.create-first-blog-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2e3f5e;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.create-first-blog-btn:hover {
    background-color: #1a2a3a;
}

/* Keine Blogs Anzeige */
.no-blogs-container {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(46, 79, 78, 0.1);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

.no-blogs-container h3 {
    color: #2e4f4e;
    margin-bottom: 15px;
}

.no-blogs-container p {
    color: #666;
    margin-bottom: 20px;
}

.create-first-blog-btn {
    background-color: #2e4f4e;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.create-first-blog-btn:hover {
    background-color: #425f5e;
}

/* Keine Blogs Anzeige */
.no-blogs-container {
    text-align: center;
    padding: 40px 20px;
    background: rgba(66, 95, 94, 0.1);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

.no-blogs-icon {
    font-size: 48px;
    color: #425f5e;
    margin-bottom: 20px;
}

.no-blogs-message {
    font-size: 18px;
    color: #425f5e;
    margin-bottom: 15px;
}

.no-blogs-submessage {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Mobile Verbesserungen */
@media only screen and (max-width: 768px) {
    /* Verbesserte Touch-Targets */
    .menu-btn,
    .blog-options-btn,
    .close-btn,
    .post-location,
    .delete-image-btn,
    .location-btn,
    .add-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }

    /* Optimiertes Side-Menü */
    .side-menu {
        width: 100%;
        max-width: none;
        right: -100%;
        padding: 20px;
        box-sizing: border-box;
        transition: transform 0.3s ease-out;
        -webkit-overflow-scrolling: touch;
    }

    .side-menu.open {
        transform: translateX(-100%);
    }

    #menuContent button {
        padding: 15px;
        margin: 10px 0;
        font-size: 16px;
    }

    /* Verbesserte Blog-Post Darstellung */
    .post {
        margin: 10px;
        padding: 15px;
    }

    .post-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .post-content p {
        font-size: 16px;
        line-height: 1.6;
        padding: 15px;
    }

    /* Optimierte Bildergalerie */
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 10px;
    }

    .gallery-item {
        height: 140px;
    }

    /* Verbesserte Formular-Elemente */
    input[type="text"],
    input[type="password"],
    textarea,
    button {
        font-size: 16px;
        padding: 12px;
    }

    /* Optimierte Meta-Informationen */
    .post-meta {
        padding: 10px;
        gap: 12px;
    }

    .post-location {
        padding: 8px 12px;
        border-radius: 20px;
    }

    /* Verbesserte Lightbox */
    .lightbox img {
        max-width: 95%;
        max-height: 90vh;
    }

    /* Toast Benachrichtigungen */
    .toast-container {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }

    .toast {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Extreme Mobile Optimierung */
@media only screen and (max-width: 480px) {
    .header {
        padding: 10px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .post {
        margin: 8px;
        padding: 12px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .gallery-item {
        height: 120px;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Verbesserte Scrolling-Performance */
    .content,
    .side-menu,
    .image-gallery {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
}

/* Mobile Verbesserungen */
@media only screen and (max-width: 768px) {
    /* Verbesserte Touch Targets */
    .post-location,
    .blog-options-btn,
    .menu-btn,
    .close-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }

    /* Bessere Abstände für Touch */
    .draggable-item {
        padding: 15px 10px;
        margin-bottom: 20px;
    }

    /* Vergrößerte Eingabefelder */
    input[type="text"],
    input[type="password"],
    textarea {
        font-size: 16px; /* Verhindert iOS Zoom */
        padding: 12px;
        margin-bottom: 15px;
    }

    /* Bessere Buttons */
    .admin-btn,
    .add-btn {
        padding: 12px 20px;
        margin: 5px;
        font-size: 16px;
    }

    /* Verbesserte Modals */
    .modal-content {
        margin: 10% auto;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Verbesserte Menü-Navigation */
    .side-menu {
        padding-bottom: 80px; /* Extra Platz für iOS Safari */
    }

    /* Verbesserte Foto-Upload UI */
    .image-upload-container {
        padding: 20px;
    }

    .image-preview {
        margin: 15px 0;
    }

    /* Verbesserte Drag & Drop Interaktion */
    .sortable-ghost {
        opacity: 0.8;
        background-color: rgba(46, 63, 94, 0.1);
    }
}

/* Bessere Scrolling Performance */
.smooth-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Aktive Zustände für Touch Devices - nur für Buttons beibehalten */
@media (hover: none) {
    .admin-btn:active,
    .menu-btn:active,
    .blog-options-btn:active,
    .close-btn:active,
    .location-btn:active,
    .add-btn:active,
    .delete-image-btn:active,
    .upload-btn:active,
    .save-btn:active {
        transform: scale(0.95);
    }
}

/* Verhinderung des Skalierungseffekts beim Touch - entfernt vollständig */
/* Diese Regeln haben höhere Spezifität und !important, um alle anderen Regeln zu überschreiben */
.post,
.post-content,
.image-gallery,
.gallery-item,
.content,
.post *,
.post-content *,
.image-gallery *,
.post-header,
.post-meta {
    transform: none !important;
    transition: none !important;
}

/* Aktive Zustände für Touch Devices - nur für Buttons beibehalten */
@media (hover: none) {
    /* Buttons und interaktive Elemente können den Effekt behalten */
    .admin-btn:active,
    .menu-btn:active,
    .blog-options-btn:active,
    .close-btn:active,
    .location-btn:active,
    .add-btn:active,
    .delete-image-btn:active,
    .upload-btn:active,
    .save-btn:active {
        transform: scale(0.95);
    }
    
    /* Alle Post-Elemente explizit deaktivieren */
    .post:active,
    .post-content:active,
    .post-header:active,
    .post-meta:active,
    .image-gallery:active,
    .gallery-item:active,
    .gallery-item img:active {
        transform: none !important;
        transition: none !important;
    }
}

/* Die bestehende, konkurrierende Regel vollständig entfernen */
@media (hover: none) {
    .post:active,
    .admin-btn:active,
    .menu-btn:active {
        transform: none;
    }
}

/* Blog-Marker Info-Fenster */
.map-blog-preview {
    padding: 15px;
    max-width: 300px;
}

.map-blog-preview .preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.map-blog-preview .preview-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid black;
    object-fit: cover;
    margin-right: 10px;
}

.map-blog-preview h3 {
    margin: 0;
    font-size: 16px;
    color: #425f5e;
}

.map-blog-preview p {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.map-blog-preview .preview-btn {
    background-color: #425f5e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.map-blog-preview .preview-btn:hover {
    background-color: #2e3f5e;
}

/* Custom Marker Styles */
.gm-style-iw.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.gm-ui-hover-effect {
    background-color: rgba(0,0,0,0.1) !important;
    border-radius: 50% !important;
    top: 8px !important;
    right: 8px !important;
}

/* Upload-Button und Bildergalerie Anpassungen */
.blog-editor-container .upload-btn {
  display: inline-block;
  background-color: #84bebc;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin: 10px 0;
  transition: background-color 0.3s;
}

.blog-editor-container .upload-btn:hover {
  background-color: #6ba3a1;
}

.blog-editor-container .image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.image-preview-container {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delete-image-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(139, 62, 70, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.3s;
}

.delete-image-btn:hover {
  background-color: rgba(107, 46, 54, 1);
}

@media (max-width: 768px) {
  .blog-editor-container .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .image-preview-container {
    width: 120px;
    height: 120px;
  }

  .delete-image-btn {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #425f5e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #2e3f5e;
    transform: translateY(-3px);
}

.scroll-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}