/* ============================================
   VARIABLEN & DARK MODE
============================================ */
:root {
    --background-color: #f9f9f9;
    --text-color: #333;
    --card-background: #fff;
    --button-background: #007bff;
    --button-text-color: #fff;
    --primary-gradient: linear-gradient(45deg, #4facfe, #00f2fe);
}
  
  body.dark-mode {
    --background-color: #1e1e1e;
    --text-color: #e0e0e0;
    --card-background: #333;
    --button-background: #444;
    --button-text-color: #e0e0e0;
    --primary-gradient: linear-gradient(45deg, #232526, #414345);
  }
  
  /* ============================================
     GLOBALE STILE
  ============================================ */
  body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* ============================================
     HEADER, NAVIGATION & DROPDOWN (Neue Posts)
  ============================================ */
  header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  .navbar-toggle {
    display: none;
  }

  .navbar-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .navbar-list li {
    display: inline-block;
    margin: 0 15px;
  }

  .navbar-list li a {
    color: #fff;
    text-decoration: none;
  }

  .theme-toggle {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .theme-toggle:hover {
    background-color: rgba(255,255,255,0.2);
  }
  
  /* Dropdown für „Neue Beiträge erstellen“ */
  .dropdown-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropbtn {
    background-color: var(--button-background);
    color: var(--button-text-color);
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .dropbtn:hover {
    background-color: #0056b3;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-background);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 1;
  }
  
  .dropdown-content a {
    color: var(--text-color);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: #f1f1f1;
  }
  
  /* Dropdown sichtbar beim Hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* ============================================
     MAIN & SECTION
  ============================================ */
  main {
    padding: 2rem;
  }
  
  section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .highlights ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .highlights li {
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* ============================================
     TITEL & FOOTER
  ============================================ */
  h1, h2 {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
  }
  
  /* ============================================
     FORMULARE (ALLGEMEIN)
  ============================================ */
  form label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
  }
  
  form input,
  form textarea,
  form select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
  }
  
  form button {
    padding: 0.5rem 1rem;
    background-color: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }

  /* ============================================
     AUTH FORMULARE (LOGIN & REGISTER)
  ============================================ */
  .login-container,
  .register-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
  }

  .login-container h2,
  .register-container h2 {
    margin-top: 0;
  }

  .login-button,
  .register-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }

  .login-button:hover,
  .register-button:hover {
    background-color: #0056b3;
  }

  .login-link,
  .register-link {
    text-align: center;
    margin-top: 1rem;
  }

  .login-link a,
  .register-link a {
    color: var(--button-background);
    text-decoration: none;
  }

  .login-link a:hover,
  .register-link a:hover {
    text-decoration: underline;
  }

  /* ============================================
     SUCHE & FILTER
  ============================================ */
  .search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
  }
  
  .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .search-form input[type="text"],
  .search-form input[type="date"],
  .search-form select {
    flex: 1;
    max-width: 180px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .search-button {
    padding: 8px 15px;
    background-color: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .search-button:hover {
    background-color: #0056b3;
  }
  
  /* ============================================
     BEITRAG ERSTELLEN / POST-FORMULAR
  ============================================ */
  .create-post-form {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* ============================================
     BLOG & KARTEN
  ============================================ */
  .blog-entries {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  /* Für normale Blogposts (weder Foodblog noch Haiku) */
  .blog-card.default {
    background-color: #e0f7ff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
  }
  
  
  .blog-card {
    width: 100%;
    max-width: 900px;    /* Gleiche maximale Breite wie der Container */
    margin: 0 auto;      /* Zentriert die Blog-Karte innerhalb des Containers */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 8px;
  }
  
  
  .blog-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  
  .post-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }
  
  .post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
  }
  
  .post-content {
    line-height: 1.6;
    color: #555;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .post-content.full-content {
    max-height: none !important;
    overflow: visible;
  }
  
  .post-content.expanded {
    max-height: none;
  }
  
  .read-more-container {
    text-align: right;
    margin-top: 10px;
  }
  
  .read-more-btn,
  .read-more-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .read-more-btn:hover,
  .read-more-link:hover {
    background-color: #0056b3;
  }
  
  /* ============================================
     BILDER
  ============================================ */
  .post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
  }
  
  /* ============================================
     POST-STATS (LIKES, VIEWS, KOMMENTARE)
  ============================================ */
  .post-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
  }
  
  .post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  /* Pseudo-Elemente für Icons */
  .like-count::before {
    content: "❤️";
    margin-right: 3px;
  }
  
  .comment-count::before {
    content: "💬";
    margin-right: 3px;
  }
  
  .view-count::before {
    content: "👁️";
    margin-right: 3px;
  }
  
  /* ============================================
     LIKE & KOMMENTARE (zusätzliche Stile)
  ============================================ */
  .like-section {
    display: flex;
    align-items: center;
    margin-top: 20px;
  }
  
  .like-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    outline: none;
  }
  
  .like-button:hover {
    color: #e74c3c;
  }
  
  /* ============================================
     COMMENTS
  ============================================ */
  .comments-section {
    margin-top: 30px;
  }
  
  .comments-list {
    list-style: none;
    padding: 0;
  }
  
  .comment-item {
    background-color: #f1f1f1;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
  }
  
  .no-comments {
    font-size: 0.9rem;
    color: #777;
  }
  
  /* ============================================
     TIMELINE – STOPP HINZUFÜGEN
  ============================================ */


  .timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .timeline-item {
    background-color: var(--card-background);
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .timeline-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
  }
  
  .timeline-content h3 {
    margin: 0 0 10px;
  }
  
  .stop-description {
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 0;
  }
  
  .timeline-image {
    margin-top: 10px;
  }
  
  .timeline-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
  

  .timeline-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background-color: var(--card-background);
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
  }
  
  .timeline-form label {
    margin-top: 1rem;
  }
  
  .timeline-form input[type="date"],
  .timeline-form input[type="text"],
  .timeline-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
  }
  
  .timeline-form button {
    background-color: var(--button-background);
    color: var(--button-text-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .timeline-form button:hover {
    background-color: #0056b3;
  }
  
  /* ============================================
     FOODBLOG STILE
  ============================================ */
  .food-blog {
    border: 2px solid #28a745;
    background-color: #f0fff0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
  }
  
  .food-blog .food-badge {
    background-color: #28a745;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    margin-left: 10px;
  }
  
  /* ============================================
     GALERIE
  ============================================ */




.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



/* Modernes Styling für das Akkordeon */
.accordion-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f7f7f7;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

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

/* Toggle-Button für Ein-/Ausklappen */
.toggle-button {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.toggle-button:hover {
  transform: scale(1.05);
}



/* Begrenze den Gesamtbereich der Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Minimale Spaltenbreite auf 100px festgelegt */
  gap: 8px;
  padding: 8px;
  max-width: 800px;  /* Gesamtbreite begrenzen */
  margin: 0 auto;    /* Zentriert den Grid-Container */
}

/* Galerie-Item: Bilder sollen nicht über den Container hinaus wachsen */
.gallery-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;  /* Bildinhalt füllt den Container, ohne das Seitenverhältnis zu verzerren */
}

/* Optionale Anpassung für kleine Bildschirme */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

  
  
  
  /* ============================================
     MODAL / LIGHTBOX
  ============================================ */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
  }
  
  .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
  }
  
  .close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* ============================================
     SPEZIELLE COMPONENTS (HAIKU, PROGRESS, RATING)
  ============================================ */
  .haiku-post {
    background-color: #fff8e1;
    border: 2px dashed #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    position: relative;
  }
  
  .haiku-badge {
    background-color: #ff9800;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.8rem;
    border-radius: 3px;
    margin-left: 10px;
  }
  
  .haiku-content {
    font-style: italic;
    white-space: pre-wrap;
    padding: 10px;
  }
  
  .progress-indicator {
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
  }
  
  .progress-indicator h2 {
    margin-bottom: 15px;
  }
  
  .progress-bar {
    position: relative;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 0 auto;
    max-width: 700px;
  }
  
  .progress-filled {
    height: 100%;
    background-color: var(--button-background);
    border-radius: 5px 0 0 5px;
  }
  
  /* ============================================
     RESPONSIVE STILE (max-width: 768px)
  ============================================ */
  @media (max-width: 768px) {
    /* Header & Navigation */
    header {
      padding: 0.5rem;
    }
    .navbar-list {
      flex-direction: column;
      width: 100%;
      display: none;
      text-align: center;
    }
    .navbar-list.active {
      display: flex;
    }
    .navbar-list li {
      display: block;
      margin: 10px 0;
    }
    
    /* Hamburger-Menü (falls genutzt) */
    .navbar-toggle {
      display: block;
      position: absolute;
      top: 15px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 1100;
    }
    .navbar-toggle span,
    .navbar-toggle span::before,
    .navbar-toggle span::after {
      display: block;
      background-color: #fff;
      height: 4px;
      width: 30px;
      margin: 6px auto;
      border-radius: 2px;
      transition: all 0.3s ease-in-out;
    }
    .navbar-toggle span {
      position: relative;
      z-index: 2;
    }
    .navbar-toggle span::before,
    .navbar-toggle span::after {
      content: "";
      position: absolute;
      left: 0;
    }
    .navbar-toggle span::before {
      top: -10px;
    }
    .navbar-toggle span::after {
      top: 10px;
    }
    .navbar-toggle.active span {
      background-color: transparent;
    }
    .navbar-toggle.active span::before {
      transform: translateY(10px) rotate(45deg);
    }
    .navbar-toggle.active span::after {
      transform: translateY(-10px) rotate(-45deg);
    }
    
    /* Main & Cards */
    main {
      padding: 1rem;
    }
    .blog-card {
      padding: 15px;
    }
    
    /* Register & Formulare */
    .login-container,
    .register-container {
      margin: 1rem;
      padding: 1rem;
    }
    
    /* Timeline: Alle Elemente auf 100% Breite */
    .timeline-item {
      width: 100%;
      padding-left: 30px;
    }
    
    /* Countdown verkleinern */
    #countdown {
      font-size: 1.5rem;
    }
  }
  

 /* ============================================
   TIMELINE (Zeitleiste) – ÜBERARBEITET
============================================ */

/* Container für den gesamten Zeitstrahl */
.timeline-container {
    position: relative;
    margin: 40px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Einzelne Timeline-Items */
  .timeline-item {
    position: relative;
    padding: 20px 20px 20px 60px;
    margin-bottom: 20px;
    background-color: #fff;
    border-left: 4px solid var(--button-background);
    border-radius: 4px;
    transition: transform 0.3s ease;
  }
  
  .timeline-item:hover {
    transform: translateY(-3px);
  }
  
  /* Der runde Marker (Punkt) am linken Rand */
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--button-background);
    border-radius: 50%;
    border: 4px solid var(--card-background);
  }
  
  /* Datum des Timeline-Items */
  .timeline-date {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--button-background);
  }
  
  /* Inhalt des Timeline-Items */
  .timeline-content {
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
  }
  
  /* ============================================
     STOPP HINZUFÜGEN BUTTON
  ============================================ */
  /* Dieser Button sollte im Template z. B. so eingebunden werden:
     <button class="add-stop-button">Stopp hinzufügen</button> */
  .add-stop-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 20px auto;
  }
  
  .add-stop-button:hover {
    background-color: #0056b3;
  }
  
  /* ============================================
     RESPONSIVE ANPASSUNGEN FÜR DEN ZEITSTRAHL
  ============================================ */
  @media (max-width: 768px) {
    .timeline-container {
      padding: 10px;
    }
    .timeline-item {
      padding: 15px 15px 15px 50px;
    }
    .timeline-item::before {
      left: -10px;
      width: 16px;
      height: 16px;
    }
    .timeline-date {
      font-size: 0.9rem;
    }
    .timeline-content {
      font-size: 0.9rem;
    }
    .add-stop-button {
      padding: 8px 16px;
      font-size: 0.9rem;
    }
  }


  .post-flex-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
  /* Bildbereich: nimmt ca. die Hälfte ein */
  .post-image-container {
    flex: 1;
    max-width: 50%;
  }
  /* Textbereich: nimmt ca. die Hälfte ein */
  .post-text-container {
    flex: 1;
    max-width: 50%;
  }
  /* Bei kleinen Bildschirmen: Anordnung in einer Spalte */
  @media (max-width: 768px) {
    .post-flex-container {
      flex-direction: column;
    }
    .post-image-container,
    .post-text-container {
      max-width: 100%;
    }
  }

/* Container für den gesamten Post */
.post-container {
  margin: 0 auto;      /* Zentriert den Container horizontal */
  max-width: 900px;    /* Passt die maximale Breite an (z. B. 900px für Desktop) */
  padding: 20px;       /* Optional: Innenabstand */
}


@media (min-width: 768px) {
  .post-container,
  .blog-card {
    max-width: 900px;
    margin: 0 auto;
  }
}


/* Editor und Inhalt-Blöcke im _post_form.html */
#editor .content-block {
  background-color: #e6ffed;           /* sanftes Grün */
  border: 2px dashed #28a745;            /* grüner, gestrichelter Rahmen */
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

/* "+"-Marker in der linken oberen Ecke */
#editor .content-block::before {
  content: "+";
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: #28a745;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}


/* Buttons zum Hinzufügen von Blöcken */
#add-text-block,
#add-image-block {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  margin: 5px 5px 5px 0;
  cursor: pointer;
}
#add-text-block:hover,
#add-image-block:hover {
  background-color: #218838;
}

/* Submit-Button */
form > button[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
}
form > button[type="submit"]:hover {
  background-color: #0069d9;
}

/* Eingabefelder */
input[type="text"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}


/* Löschen-Button in den Blöcken */
/* #editor .delete-block {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 1.2em;
  color: #dc3545;
  cursor: pointer;
} */


/* Container für den Editor */
#create-post-form, .create-post-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Editor-Bereich */
#editor {
  border: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
  margin: 20px 0;
}

/* Stelle sicher, dass der Container, in dem der Button ist, relative positioniert ist */
.content-block {
  position: relative;
}

/* Lösch-Button so positionieren, dass er immer oben rechts erscheint */
.delete-block {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 9999;  /* Sehr hoher z-index, damit er über dem TinyMCE-Editor liegt */
  background: rgba(220, 53, 69, 0.9); /* z. B. ein roter Hintergrund */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 22px;
  cursor: pointer;
  font-size: 16px;
}

/* Optional: Style für drag-and-drop Effekt */
.content-block.dragging {
  opacity: 0.5;
}

/* Modal für Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}
.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


@media (max-width: 768px) {
  .post-content {
    max-height: none;
    overflow: visible;
  }
}

.foodblog-ratings-container {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  margin: 20px 0;
}

.left-ratings {
  flex: 1;
  border-right: 1px solid #ccc;
  padding: 10px;
}

.right-rating {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-label {
  width: 100px;
  font-weight: bold;
}

.rating-value,
.rating-total {
  color: #f39c12; /* Orange-Farbton */
  font-size: 1.2em;
  margin-left: 5px;
}

.rating-total {
  font-size: 2em; /* Größerer Stern für Gesamtbewertung */
}


.blog-badge {
  background-color: #006eff;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.8rem;
  border-radius: 3px;
  margin-left: 10px;
}

@media (max-width: 600px) {
  .blog-card.default {
    margin-left: auto;
    margin-right: auto;
    /* Optional: evtl. Text zentrieren */
    text-align: center;
  }
}


@media only screen and (max-width: 768px) {
  .blog-card {
    margin-left: auto;
    margin-right: auto;
    width: 95%; /* Passe die Breite nach Bedarf an */
  }
}

  @media only screen and (max-width: 768px) {
    .full-post .post-content {
      max-height: none !important;
      overflow: visible !important;
    }
  }  

  .thumbnail-container {
    margin-bottom: 10px;
    text-align: center;
  }
  
  .thumbnail {
    max-width: 150px;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 10px;
  }
  
.gallery-move-notice {
  background-color: #f0f8ff;   /* sanftes Blau */
  border: 1px solid #007bff;   /* kräftiger blauer Rahmen */
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.gallery-move-notice p {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #007bff;
  font-weight: bold;
}

.gallery-move-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.gallery-move-link:hover {
  background-color: #0056b3;
}