/* ===================================
   WS Technik Lexikon Styles
   Farben: #2E5FA8 (WS Technik Blau)
   =================================== */

   .page-title {
       display: none !important;
   }

/* Container & Wrapper */
.lexikon-archive-wrapper,
.lexikon-single-wrapper {
}

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

/* Header */
.lexikon-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #2e5fa8 0%, #4d7fc4 100%);
  color: white;
  border-radius: 12px;
}

.lexikon-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: white;
}

.lexikon-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
}

/* Suchfeld */
.lexikon-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px;
}

.lexikon-search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
}

.lexikon-search-input:focus {
  border-color: #2e5fa8;
  box-shadow: 0 0 0 3px rgba(46, 95, 168, 0.1);
}

.lexikon-search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

/* Alphabet Navigation */
.lexikon-alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alphabet-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  background: #f5f5f5;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.alphabet-link:hover {
  background: #2e5fa8;
  color: white;
  transform: translateY(-2px);
}

.alphabet-link.active {
  background: #2e5fa8;
  color: white;
}

.alphabet-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Main Content Layout */
.lexikon-main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.lexikon-content-area {
  min-width: 0;
}

/* Letter Sections */
.lexikon-letter-section {
  margin-bottom: 50px;
  scroll-margin-top: 100px;
}

.lexikon-letter-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e5fa8;
  margin: 0 0 25px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #2e5fa8;
}

/* Neue Liste-Ansicht für Einträge statt Grid */
/* Entry List */
.lexikon-entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lexikon-entry-item {
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.lexikon-entry-item:hover {
  background: #e8f0fb;
  border-left-color: #2e5fa8;
  transform: translateX(5px);
}

.lexikon-entry-item.hidden {
  display: none;
}

.lexikon-entry-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2e5fa8;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.lexikon-entry-link:hover {
  color: #1e4278;
}

/* Alte Grid-Styles entfernt/auskommentiert */
/*
.lexikon-entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lexikon-entry-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lexikon-entry-card:hover {
  box-shadow: 0 8px 20px rgba(46, 95, 168, 0.15);
  transform: translateY(-4px);
}

.lexikon-entry-card.hidden {
  display: none;
}

.lexikon-entry-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.lexikon-entry-title a {
  color: #2e5fa8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lexikon-entry-title a:hover {
  color: #1e4278;
}

.lexikon-entry-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.lexikon-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e5fa8;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.lexikon-read-more:hover {
  color: #1e4278;
  transform: translateX(3px);
}
*/

/* Sidebar */
.lexikon-sidebar {
    display: none;
}
.lexikon-single-sidebar {
  position: sticky;
  top: 100px;
}

.lexikon-sidebar .widget,
.lexikon-single-sidebar .widget {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.lexikon-sidebar .widget-title,
.lexikon-single-sidebar .widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e5fa8;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

/* No Entries Message */
.lexikon-no-entries {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 10px;
}

.lexikon-no-entries p {
  font-size: 1.1rem;
  color: #666;
}

/* ===================================
   SINGLE LEXIKON ENTRY
   =================================== */

.lexikon-single-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.lexikon-single-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Added beautiful back to lexikon button above content */
.lexikon-back-link {
  margin-bottom: 30px;
}

.lexikon-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: #2e5fa8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #2e5fa8;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lexikon-back-button:hover {
  background: #2e5fa8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 95, 168, 0.3);
}

.lexikon-back-button svg {
  transition: transform 0.3s ease;
}

.lexikon-back-button:hover svg {
  transform: translateX(-3px);
}

/* Single Title */
.lexikon-single-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2e5fa8;
  margin: 0 0 30px 0;
  padding-bottom: 20px;
  border-bottom: 3px solid #2e5fa8;
}

/* Thumbnail */
.lexikon-single-thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.lexikon-single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content */
.lexikon-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.lexikon-content h2,
.lexikon-content h3,
.lexikon-content h4 {
  color: #2e5fa8;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.lexikon-content h2 {
  font-size: 1.8rem;
}

.lexikon-content h3 {
  font-size: 1.5rem;
}

.lexikon-content h4 {
  font-size: 1.25rem;
}

.lexikon-content p {
  margin-bottom: 20px;
}

.lexikon-content ul,
.lexikon-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.lexikon-content li {
  margin-bottom: 10px;
}

.lexikon-content a {
  color: #2e5fa8;
  text-decoration: underline;
}

.lexikon-content a:hover {
  color: #1e4278;
}

/* Redesigned post navigation with beautiful button cards */
.lexikon-post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.lexikon-nav-button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 48%;
}

.lexikon-nav-button:hover {
  background: #2e5fa8;
  border-color: #2e5fa8;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(46, 95, 168, 0.25);
}

.lexikon-nav-prev {
  justify-content: flex-start;
}

.lexikon-nav-next {
  justify-content: flex-end;
  text-align: right;
}

.lexikon-nav-placeholder {
  flex: 1;
  max-width: 48%;
}

.nav-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e5fa8;
  transition: color 0.3s ease;
  line-height: 1;
}

.lexikon-nav-button:hover .nav-arrow {
  color: white;
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-label {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.lexikon-nav-button:hover .nav-label {
  color: rgba(255, 255, 255, 0.8);
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e5fa8;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.lexikon-nav-button:hover .nav-title {
  color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .lexikon-main-content,
  .lexikon-single-main {
    grid-template-columns: 1fr;
  }

  .lexikon-sidebar,
  .lexikon-single-sidebar {
    position: static;
  }
}

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

  .lexikon-description {
    font-size: 1rem;
  }

  .lexikon-entries-list {
    padding: 20px;
  }

  .lexikon-entry-item {
    padding: 12px 15px;
  }

  .lexikon-alphabet-nav {
    gap: 5px;
    padding: 15px;
  }

  .alphabet-link {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .lexikon-letter-heading {
    font-size: 2rem;
  }

  .lexikon-single-title {
    font-size: 2rem;
  }

  .lexikon-single-content {
    padding: 25px;
  }

  .lexikon-post-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .lexikon-nav-button {
    max-width: 100%;
  }

  .lexikon-nav-next {
    text-align: left;
    flex-direction: row-reverse;
  }

  .lexikon-nav-prev {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .lexikon-archive-wrapper,
  .lexikon-single-wrapper {
    padding: 40px 0;
  }

  .lexikon-header {
    padding: 30px 15px;
  }

  .lexikon-title {
    font-size: 1.75rem;
  }

  .alphabet-link {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .lexikon-entries-list {
    padding: 15px;
  }

  .lexikon-entry-item {
    padding: 10px 12px;
  }

  .lexikon-entry-link {
    font-size: 1rem;
  }
}
