/* CSS für Datensatz-Detailseiten */

.dataset-detail-container {
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px;
}

.breadcrumb {
  margin-bottom: 20px; 
  font-size: 0.9em;
}

.breadcrumb a {
  color: #666; 
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.dataset-title {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.dataset-meta {
  margin-bottom: 2rem;
}

.dataset-description {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.dataset-tags {
  margin: 1.5rem 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.tag {
  background: #f1f1f1;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
}

.tag:hover {
  background: #e0e0e0;
  text-decoration: none;
}

.dataset-organization {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.org-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.org-description {
  font-size: 0.9rem;
  color: #666;
}

.dataset-license {
  margin-bottom: 2rem;
}

.dataset-resources {
  margin: 2rem 0;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #eee;
}

.resource-link {
  display: block;
  font-weight: bold;
  color: #07A299;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.resource-link:hover {
  text-decoration: underline;
}

.resource-format {
  display: inline-block;
  background: #e0e0e0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.resource-description {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.dataset-extras {
  margin: 2rem 0;
}

.extras-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
}

.extras-list dt {
  font-weight: bold;
  color: #555;
}

.dataset-original-link {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.dataset-original-link a {
  color: #07A299;
  text-decoration: none;
}

.dataset-original-link a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #07A299;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-weight: bold;
}

.back-link:hover {
  background-color: #058a82;
  text-decoration: none;
  color: white !important;
}

.dataset-field {
  margin-bottom: 1rem;
}

.dataset-field h3 {
  margin-bottom: 0.3rem;
  color: #555;
}

.api-note {
  margin: 1.5rem 0;
  padding: 0.8rem;
  background-color: #f8f9fa;
  border-left: 4px solid #07A299;
}

.api-note.error {
  background-color: #fff0f0;
  border-left: 4px solid #f44336;
}

/* Ressourcen-Detail Styling */
.resource-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.resource-title-section {
  flex: 1;
}

.resource-title {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.resource-subtitle {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.4;
}

.resource-actions {
  flex-shrink: 0;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #07A299, #059a91);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(7, 162, 153, 0.2);
}

.btn-download:hover {
  background: linear-gradient(135deg, #059a91, #047a74);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(7, 162, 153, 0.3);
  color: white;
  text-decoration: none;
}

.download-icon {
  font-size: 1.2rem;
}

.download-format {
  opacity: 0.8;
  font-weight: normal;
  font-size: 0.9rem;
}

.resource-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.resource-info h2,
.dataset-info h2 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-grid {
  display: grid;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #07A299;
}

.info-label {
  font-weight: 600;
  color: #555;
  min-width: 100px;
  margin-right: 1rem;
}

.info-value {
  color: #333;
  flex: 1;
}

.dataset-link-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dataset-link-card:hover {
  border-color: #07A299;
  box-shadow: 0 2px 8px rgba(7, 162, 153, 0.1);
}

.dataset-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  text-decoration: none;
  color: #333;
}

.dataset-link:hover {
  text-decoration: none;
  color: #07A299;
}

.dataset-title {
  font-weight: 600;
  color: inherit;
}

.dataset-arrow {
  font-size: 1.2rem;
  color: #07A299;
  transition: transform 0.2s ease;
}

.dataset-link:hover .dataset-arrow {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .resource-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .resource-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .btn-download {
    justify-content: center;
  }
}
