/* Basis-Stile für das Projekt */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 15px;
}

header h1 {
    margin: 0;
}

main {
    padding: 20px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.gallery-item {
    margin-bottom: 20px;
}

/* Navigation */
/* Container und Grundstile */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  padding: 10px 20px;
  position: relative;
}

.logo {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

/* Hamburger-Button (mobile) */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* Standardmäßig ausgeblendet – nur im Mobile View sichtbar */
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

/* Hover- & Fokuszustände */
.nav-menu li a:hover,
.nav-menu li a:focus {
  background-color: #444;
}

/* Dropdown-Menü */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #444;
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu li a {
  padding: 10px;
}

/* Optionaler Pfeil für Dropdowns */
.arrow {
  font-size: 0.8rem;
  margin-left: 5px;
}

/* Responsives Design: Navigation bei kleineren Bildschirmen anpassen */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 60px; /* Höhe des Headers anpassen */
    left: 0;
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  /* Dropdown-Menüs im mobilen Menü */
  .dropdown-menu {
    position: relative;
    box-shadow: none;
  }
}

/* Ladeindikator: Überdeckt den Inhalt, solange eine Anfrage verarbeitet wird */
#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 10px;
    font-size: 18px;
    z-index: 1000;
}

/* Einleitungstext */
.introduction {
    text-align: center;
    margin: 30px 15px;
}

/* Flexibles Raster für die Links auf der Homepage */
.home-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 15px;
}

/* Einzelne Kachel für jeden Link */
.home-link-item {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    width: calc(33% - 40px);
    box-sizing: border-box;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.2s;
}

.home-link-item:hover {
    transform: translateY(-5px);
}

/* Bild in der Kachel */
.home-sample-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Überschrift in der Kachel */
.home-link-item h3 {
    margin: 10px 0 5px;
}

/* Responsive Anpassung: Bei kleineren Bildschirmen 2 Kacheln nebeneinander */
@media (max-width: 768px) {
    .home-link-item {
        width: calc(50% - 30px);
    }
}

/* Bei sehr kleinen Bildschirmen: Eine Kachel pro Zeile */
@media (max-width: 480px) {
    .home-link-item {
        width: 100%;
    }
}

/* Rasterlayout für die Galerie */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.gallery-item {
    width: 200px;
    text-align: center;
}

.thumbnail {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* Pagination-Stile */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 10px;
    text-decoration: none;
    color: #0066cc;
}

/* Filter-/Sortierformular */
.gallery-filter-form {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-filter-form label {
    margin-right: 5px;
}

.gallery-filter-form input,
.gallery-filter-form select {
    margin-right: 10px;
    padding: 5px;
}

/* Universelle Thumbnails (quadratisch, mit Objektanpassung) */
.thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* Hervorgehobene Buttons im Minting-Prozess */
.highlight-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.highlight-button:hover {
    background-color: #004a99;
}

/* Navigation in der Galerie-Detailansicht */
.navigation a {
    margin: 0 15px;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

/* Stil für Breadcrumbs */
.breadcrumb {
    list-style: none;
    display: flex;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}
.breadcrumb-item {
    margin-right: 10px;
}
.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item:not(:last-child)::after {
    content: " > ";
    margin-left: 10px;
    color: #6c757d;
}
.breadcrumb-item.active {
    color: #6c757d;
    font-weight: bold;
}

/* Verbessertes Design für Wiki */
/* Container für das Wiki */
.wiki-container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

/* Sidebar (Inhaltsverzeichnis) */
.wiki-sidebar {
  flex: 0 0 250px;
  border-right: 1px solid #ddd;
  padding-right: 20px;
}
.wiki-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.wiki-sidebar ul {
  list-style: none;
  padding: 0;
}
.wiki-sidebar li {
  margin-bottom: 8px;
}
.wiki-sidebar a {
  text-decoration: none;
  color: #0066cc;
  transition: color 0.2s;
}
.wiki-sidebar a:hover {
  color: #004a99;
}

/* Hauptinhalt */
.wiki-content {
  flex: 1;
  padding-left: 20px;
}
.wiki-header h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #fff;
}
.wiki-header p {
  font-size: 1.1rem;
  color: #838383;
}
.wiki-section {
  margin-bottom: 40px;
}
.wiki-section h3 {
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* Back-Link */
.back-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #0066cc;
  transition: color 0.2s;
}
.back-link:hover {
  color: #004a99;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .wiki-container {
    flex-direction: column;
  }
  .wiki-sidebar {
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  .wiki-content {
    padding-left: 0;
  }
}

/* Verbesserte Styles für Blockchain Ledger und Visualisierung */

/* Stil für Blockchain-Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #007bff;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Stil für klickbare Hash-Werte */
.hash {
    font-family: monospace;
    cursor: pointer;
    color: #007bff;
    transition: color 0.3s;
}

.hash:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Verbesserte Eingabe für die Suchfunktion */
#searchBar {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Blockchain-Visualisierung Container */
#blockchain-container {
    width: 100%;
    height: 500px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    #blockchain-container {
        height: 400px;
    }
}

/* Verbesserte Galerie-Styles */

/* Flexibles Rasterlayout für die Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Einzelnes Galerie-Item */
.gallery-item {
    text-align: center;
    transition: transform 0.2s;
    min-width: 200px;
    max-width: 250px;
}

.gallery-item p {
  word-wrap: break-word; /* Für ältere Browser */
  overflow-wrap: break-word; /* Für neuere Browser */
  margin-top: 5px; /* Füge etwas Abstand zum Bild hinzu */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Zeige maximal 2 Zeilen an */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Verstecke den restlichen Text */
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Miniaturansichten */
.thumbnail {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Pagination-Steuerung */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    padding: 5px 10px;
    border: 1px solid #007bff;
    text-decoration: none;
    color: #007bff;
    margin: 2px;
    border-radius: 4px;
}

.pagination a:hover, .pagination a.active-page {
    background-color: #007bff;
    color: white;
}

/* Bildansicht für die Detailseite */
.image-view {
    text-align: center;
    margin-bottom: 20px;
}

.main-image {
    max-width: 90%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.metadata {
    text-align: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

/* Download- und Teilen-Buttons */
.image-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.download-btn, .share-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-btn:hover, .share-btn:hover {
    background-color: #0056b3;
}

/* Navigation für vorheriges/nächstes Bild */
.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    text-decoration: none;
    color: #007bff;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-btn:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Thumbnail-Leiste unter dem Bild */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    white-space: nowrap;
}

.thumbnail-gallery img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-gallery img:hover {
    transform: scale(1.2);
}