/* Post Seite Styles - ÜBERARBEITET FÜR KONSISTENZ */

/* Reset und Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.post-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #18589b;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1001;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Header - ZENTRIERT */
.header-center {
  background: white;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo-link:hover {
  transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
  width: 100%;
  max-width: 800px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #666;
}

.breadcrumb a {
  color: #18589b;
  text-decoration: none;
  font-weight: 500;
}

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

.breadcrumb span[aria-current] {
  color: #666;
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hauptcontainer - ZENTRIERT */
.main-container {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.post-wrapper {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Post Artikel */
.post-article {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* Beitrags-Header */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
}

.post-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Meta Informationen */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon {
  flex-shrink: 0;
  fill: currentColor;
}

.post-author {
  font-weight: 500;
}

/* Beitragsbild */
.post-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-image:hover {
  transform: scale(1.02);
}

.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 0.5rem;
  font-style: italic;
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
}

/* Beitragsinhalt */
.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content > *:last-child {
  margin-bottom: 0;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 1.75rem;
  color: #18589b;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eaeaea;
}

.post-content h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 2rem 0 1rem;
}

.post-content h4 {
  font-size: 1.25rem;
  color: #18589b;
  margin: 1.5rem 0 1rem;
}

.post-content img:not(.featured-image) {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem auto;
  display: block;
}

.post-content blockquote {
  border-left: 4px solid #18589b;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  line-height: 1.5;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ddd;
}

.post-content th {
  background: #f4f4f4;
  font-weight: 600;
}

/* Beitrags-Footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eaeaea;
}

/* Tags */
.post-tags {
  margin-bottom: 2rem;
  text-align: center;
}

.tags-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: #e8f0fe;
  color: #18589b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #18589b;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Social Sharing */
.social-sharing {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}

.sharing-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.share-button.facebook {
  background: #1877f2;
  color: white;
}

.share-button.twitter {
  background: #1da1f2;
  color: white;
}

.share-button.email {
  background: #666;
  color: white;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* Navigation */
.post-navigation {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.back-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #18589b;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.back-button:hover {
  background: #357ae8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  text-decoration: none;
}

.post-nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.nav-link {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #18589b;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.nav-link:hover {
  background: #18589b;
  color: white;
  border-color: #18589b;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Scroll-to-Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #18589b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-top-btn:hover {
  background: #357ae8;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header */
  .header-center {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .breadcrumb ol {
    font-size: 0.85rem;
  }

  /* Hauptcontainer */
  .main-container {
    padding: 1rem;
  }

  .post-article {
    padding: 1.5rem;
  }

  /* Titel und Meta */
  .post-title {
    font-size: 1.8rem;
  }

  .post-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  /* Inhalt */
  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.3rem;
  }

  /* Social Sharing */
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }

  .share-button {
    width: 100%;
    max-width: 250px;
  }

  /* Navigation */
  .post-nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-link {
    width: 100%;
    max-width: 250px;
  }

  /* Scroll Button */
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .post-article {
    padding: 1rem;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .social-sharing {
    padding: 1rem;
  }

  .tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .post-page {
    background-color: #121212;
    color: #e0e0e0;
  }

  .header-center,
  .post-article {
    background: #1e1e1e;
  }

  .post-title {
    color: #f0f0f0;
  }

  .post-content {
    color: #d0d0d0;
  }

  .post-content blockquote {
    background: #2a2a2a;
    color: #ccc;
  }

  .post-content code {
    background: #2a2a2a;
  }

  .post-content pre {
    background: #2a2a2a;
  }

  .social-sharing {
    background: #2a2a2a;
  }

  .tag {
    background: #2a2a2a;
    color: #6ab0ff;
  }

  .tag:hover {
    background: #18589b;
    color: white;
  }

  .breadcrumb a {
    color: #6ab0ff;
  }

  .nav-link {
    background: #2a2a2a;
    border-color: #444;
  }

  .site-footer {
    background: #1a1a1a;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .scroll-top-btn:hover,
  .back-button:hover,
  .tag:hover,
  .share-button:hover,
  .featured-image:hover,
  .logo-link:hover,
  .nav-link:hover {
    transform: none !important;
  }
}
