/* Wiki Template Styles - Unique Classes */

/* Container */
.wiki-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section - Now using standard hero class */
/* Wiki-Hero styles are deprecated and replaced with standard .hero class */

/* Ensure all hero sections have exact same height */
.hero,
.hero-with-title {
  height: 7rem !important;
  width: 100%;
}

/* Hero with Title Styles */
.hero-with-title {
  position: relative;
  height: 7rem;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-with-title img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.hero-with-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media all and (min-width: 37.5em) {
  .hero-content {
    padding: 0 40px;
  }
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.3rem;
  }
}

/* Main Content */
.wiki-main {
  background: #fff;
}

/* Wiki Main Section Styles */
.wiki-main-section {
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wiki-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  padding-bottom: 1rem;
  position: relative;
}

.wiki-main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #a62424;
}

.wiki-main-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
  flex: 1;
}

.wiki-main-actions {
  margin-top: auto;
  text-align: right;
}

.wiki-main-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #a62424;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.wiki-main-button:hover {
  background: #8b1e1e;
  transform: translateY(-1px);
}

/* Page Header */
.wiki-page-header {
  text-align: center;
  padding: 3rem 0 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.wiki-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.wiki-page-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Split Section */
.wiki-split-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.wiki-split-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
}

.wiki-split-left,
.wiki-split-right {
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wiki-split-divider {
  width: 2px;
  height: 200px;
  background: #a62424;
  margin: 0 auto;
  align-self: center;
}

.wiki-split-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
}

.wiki-split-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 1.5rem 0;
}

.wiki-split-button {
  display: inline-block;
  background: #a62424;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.wiki-split-button:hover {
  background: #8a1f1f;
  color: #fff;
}

/* Info Section */
.wiki-info-section {
  padding: 3rem 0;
  background: #fff;
}

.wiki-info-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #a62424;
}

.wiki-info-icon {
  color: #a62424;
  flex-shrink: 0;
}

.wiki-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.25rem 0;
}

.wiki-info-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Categories Section */
.wiki-categories-section {
  padding: 4rem 0;
  background: #fff;
}

.wiki-categories-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0 0 3rem 0;
}

.wiki-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.wiki-category-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.wiki-category-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.wiki-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.wiki-category-icon {
  color: #a62424;
  margin-bottom: 1rem;
}

.wiki-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.75rem 0;
}

.wiki-category-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Articles Section */
.wiki-articles-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.wiki-articles-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin: 0 0 3rem 0;
}

.wiki-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

/* Wiki Home Article Cards - Separate from Category Cards */
.wiki-home-article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  padding: 1.5rem;
}

.wiki-home-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.wiki-home-article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.wiki-home-article-link {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wiki-home-article-link:hover {
  color: #a62424;
}

.wiki-home-article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.wiki-article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.wiki-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Desktop Galerie - separate Ebene */
.wiki-article-gallery {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1rem 0;
  padding: 0 1.5rem;
}

.wiki-article-gallery-item {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.wiki-article-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
}

.wiki-article-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  image-rendering: auto;
  -webkit-image-rendering: auto;
  -moz-image-rendering: auto;
  -ms-image-rendering: auto;
}

.wiki-article-card:hover .wiki-article-gallery-item img {
  transform: scale(1.05);
}

/* Mobile: Einzelnes großes Bild */
@media (max-width: 768px) {
  .wiki-article-gallery {
    display: block;
    margin-top: 1rem;
    padding: 0;
    background: none;
    border: none;
  }
  
  .wiki-article-gallery-item {
    width: 100%;
    height: 200px;
    margin-bottom: 0;
  }
  
  .wiki-article-gallery-item:first-child {
    display: block;
  }
  
  .wiki-article-gallery-item:not(:first-child) {
    display: none;
  }
}

.wiki-article-content {
  padding: 1.5rem;
}

.wiki-article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.wiki-article-link {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wiki-article-link:hover {
  color: #a62424;
}

.wiki-article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 1.5rem 0;
}

.wiki-article-meta {
  margin-top: auto;
}

.wiki-article-read-more {
  display: inline-block;
  color: #a62424;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.wiki-article-read-more:hover {
  color: #8a1f1f;
}

/* Pagination */
.wiki-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.wiki-pagination-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #a62424;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.wiki-pagination-link:hover {
  background: #8a1f1f;
}

.wiki-pagination-info {
  font-size: 0.9rem;
  color: #666;
}

/* Sidebar Blocks - Portfolio & Blog */
.sidebar-portfolio-block,
.sidebar-blog-block {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.sidebar-block-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin: 0 0 1rem 0;
}

.sidebar-block-link {
  display: inline-block;
  color: #a62424;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-block-link:hover {
  color: #8a1f1f;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wiki-page-title {
    font-size: 2rem;
  }
  
  .wiki-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .wiki-split-divider {
    width: 100%;
    height: 2px;
  }
  
  .wiki-info-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .wiki-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .wiki-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .wiki-article-card {
    margin-bottom: 1rem;
  }
  
  .wiki-article-gallery-item {
    height: 200px;
  }
  
  .wiki-article-gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  .wiki-article-content {
    padding: 1rem;
  }
  
  .wiki-article-title {
    font-size: 1.1rem;
  }
  
  .wiki-article-excerpt {
    font-size: 0.9rem;
  }
  
  .wiki-categories-title,
  .wiki-articles-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .wiki-page-title {
    font-size: 1.5rem;
  }
  
  .wiki-split-title {
    font-size: 1.5rem;
  }
  
  .wiki-split-text {
    font-size: 1rem;
  }
}

/* Wiki Sidebar Layout */
.wiki-content-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.wiki-content-section .wiki-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wiki-layout-wrapper {
  display: flex;
  gap: 2rem;
  align-items: start;
}

.wiki-main-content {
  flex: 3;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wiki-sidebar-wrapper {
  flex: 1;
  max-width: 280px;
  min-width: 250px;
}

.wiki-main-content .wiki-main-section {
  padding: 2.5rem;
}

/* New Single Column Design */
.wiki-intro-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wiki-intro-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
  position: relative;
}

.wiki-intro-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #a62424 0%, #d63384 100%);
  border-radius: 2px;
}

.wiki-intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 2rem 0;
}

.wiki-intro-actions {
  display: flex;
  justify-content: flex-end;
}

.wiki-intro-button {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: #a62424;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(166, 36, 36, 0.2);
}

.wiki-intro-button:hover {
  background: #8b1e1e;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(166, 36, 36, 0.3);
}

.wiki-experience-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wiki-experience-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #a62424 0%, #8b1e1e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(166, 36, 36, 0.3);
}

.wiki-experience-number {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wiki-experience-content {
  flex: 1;
}

.wiki-experience-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.wiki-experience-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

.wiki-main-content .wiki-info-section {
  padding: 1.5rem 2.5rem;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.wiki-main-content .wiki-additional-content-section {
  padding: 1.5rem 2.5rem;
}

.wiki-main-content .wiki-categories-section {
  padding: 3rem;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.wiki-main-content .wiki-articles-section {
  padding: 3rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* Full Width Sections */
.wiki-categories-section {
  padding: 4rem 0;
  background: #fff;
}

.wiki-articles-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

/* Wiki Sidebar Blocks */
.sidebar-portfolio-block,
.sidebar-blog-block {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-block-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.75rem 0;
}

.sidebar-block-text {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.sidebar-block-link {
  display: inline-block;
  color: #a62424;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.sidebar-block-link:hover {
  color: #8b1e1e;
  text-decoration: underline;
}

/* Three Column Layout for Wiki Articles */
.wiki-three-column-layout {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wiki-left-sidebar {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.wiki-main-content {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wiki-right-sidebar {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

/* Sidebar Image Styles */
.sidebar-image {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.sidebar-text {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-text p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: #333;
}

.sidebar-text p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive for Wiki Layout */
@media (max-width: 1024px) {
  .wiki-three-column-layout {
    grid-template-columns: 250px 1fr 280px;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  .wiki-left-sidebar,
  .wiki-right-sidebar {
    padding: 1rem;
  }
  
  .wiki-main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .wiki-three-column-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .wiki-left-sidebar {
    display: none; /* Verstecke die linke Sidebar auf mobilen Geräten */
  }
  
  .wiki-right-sidebar {
    position: static;
    padding: 1rem;
  }
  
  .wiki-main-content {
    padding: 1.5rem;
  }
  
  .wiki-layout-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .wiki-sidebar-wrapper {
    max-width: none;
    order: -1;
  }
  
  .wiki-content-section .wiki-container {
    padding: 0 1rem;
  }
  
  .wiki-main-content .wiki-main-section {
    padding: 2rem;
  }
  
  .wiki-intro-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .wiki-intro-title {
    font-size: 1.75rem;
  }
  
  .wiki-intro-title::after {
    width: 50px;
    height: 2.5px;
  }
  
  .wiki-experience-card {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .wiki-experience-icon {
    width: 56px;
    height: 56px;
  }
  
  .wiki-experience-number {
    font-size: 1.5rem;
  }
  
  .wiki-experience-title {
    font-size: 1.25rem;
  }
  
  .wiki-main-content .wiki-info-section,
  .wiki-main-content .wiki-additional-content-section {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .wiki-content-section .wiki-container {
    padding: 0 1rem;
  }
  
  .wiki-main-content .wiki-main-section {
    padding: 1.5rem;
  }
  
  .wiki-intro-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .wiki-intro-title {
    font-size: 1.5rem;
  }
  
  .wiki-intro-title::after {
    width: 40px;
    height: 2px;
  }
  
  .wiki-intro-text {
    font-size: 1rem;
  }
  
  .wiki-experience-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .wiki-experience-icon {
    width: 48px;
    height: 48px;
    align-self: center;
  }
  
  .wiki-experience-number {
    font-size: 1.25rem;
  }
  
  .wiki-experience-title {
    font-size: 1.2rem;
  }
  
  .wiki-main-content .wiki-info-section,
  .wiki-main-content .wiki-additional-content-section {
    padding: 1rem 1.5rem;
  }
  
  .sidebar-portfolio-block,
  .sidebar-blog-block {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
} 