/* Modern List Templates - Frontend CSS */

/* Base Container */
.mlt {
  max-width: 100%;
  margin: 2rem 0;
}

/* Container with Shadow */
.mlt-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mlt-container {
    padding: 1.5rem;
  }
}

/* Alignment Options */
.mlt-align-left {
  margin-left: 0;
  margin-right: auto;
}

.mlt-align-center {
  margin-left: auto;
  margin-right: auto;
}

.mlt-align-right {
  margin-left: auto;
  margin-right: 0;
}

/* Max-width for alignment */
.mlt-align-center,
.mlt-align-left,
.mlt-align-right {
  max-width: 1200px;
}

/* Font Size Options */
.mlt-size-s .mlt-item {
  font-size: 0.875rem;
}

.mlt-size-s .mlt-title {
  font-size: 1.25rem;
}

.mlt-size-m .mlt-item {
  font-size: 1rem;
}

.mlt-size-m .mlt-title {
  font-size: 1.5rem;
}

.mlt-size-l .mlt-item {
  font-size: 1.125rem;
}

.mlt-size-l .mlt-title {
  font-size: 1.75rem;
}

.mlt-size-xl .mlt-item {
  font-size: 1.25rem;
}

.mlt-size-xl .mlt-title {
  font-size: 2rem;
}

.mlt-title {
  font-weight: 600;
  margin: 0 0 2.5rem 0;
  color: #1a1a1a;
}

/* List Styles */
.mlt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

/* Einspaltig (default) */
.mlt-list {
  grid-template-columns: 1fr;
}

/* Zweispaltig */
.mlt-list.mlt-list-2col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem 2rem;
}

@media (max-width: 768px) {
  .mlt-list.mlt-list-2col {
    grid-template-columns: 1fr;
  }
}

.mlt-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

/* Bullet Icon */
.mlt-bullet {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  font-size: 20px;
  color: #DDAF3A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.mlt-bullet::before {
  display: inline-block;
}

/* Item Text */
.mlt-item {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Standard Mode (multiple sections stacked) */
.mlt-standard .mlt-single {
  margin-bottom: 2rem;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.mlt-standard .mlt-single:last-child {
  margin-bottom: 0;
}

/* Single section inside standard mode should not have container styling */
.mlt-standard .mlt-container.mlt-single {
  padding: 0;
  box-shadow: none;
  background: transparent;
}

/* Tabs Mode */
.mlt-tabs {
  overflow: hidden;
}

.mlt-tabs.mlt-container {
  padding: 0;
}

.mlt-tablist {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  background: #f8f8f8;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.mlt-tab {
  flex: 1;
  min-width: max-content;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mlt-tab:hover {
  background: #efefef;
  color: #333;
}

.mlt-tab.mlt-active {
  color: #DDAF3A;
  border-bottom-color: #DDAF3A;
  background: #fff;
}

.mlt-panels {
  position: relative;
}

.mlt-panel {
  display: none;
  padding: 2rem;
  animation: mltFadeIn 0.3s ease;
}

.mlt-panel.mlt-active {
  display: block;
}

@keyframes mltFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordion Mode */
.mlt-accordion {
  overflow: hidden;
}

.mlt-accordion.mlt-container {
  padding: 0;
}

.mlt-acc-item {
  border-bottom: 1px solid #e0e0e0;
}

.mlt-acc-item:last-child {
  border-bottom: none;
}

.mlt-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #f8f8f8;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: left;
  transition: background 0.2s ease;
}

.mlt-acc-btn:hover {
  background: #efefef;
}

.mlt-acc-btn.mlt-open {
  background: #fff;
  color: #DDAF3A;
}

.mlt-acc-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 1rem;
}

.mlt-acc-icon::before,
.mlt-acc-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.mlt-acc-icon::before {
  transform: translate(-50%, -50%);
}

.mlt-acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.mlt-acc-btn.mlt-open .mlt-acc-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.mlt-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #fff;
}

.mlt-acc-panel.mlt-open {
  max-height: 2000px;
}

.mlt-acc-panel .mlt-single {
  padding: 1.5rem;
  margin: 0;
}

/* Remove title in accordion/tab panels */
.mlt-panel .mlt-title,
.mlt-acc-panel .mlt-title {
  display: none;
}

/* Remove container effects from nested singles */
.mlt-panel .mlt-single,
.mlt-acc-panel .mlt-single {
  padding: 0;
  margin: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .mlt {
    margin: 1.5rem 0;
  }

  .mlt-size-s .mlt-title {
    font-size: 1.125rem;
  }

  .mlt-size-m .mlt-title {
    font-size: 1.25rem;
  }

  .mlt-size-l .mlt-title {
    font-size: 1.5rem;
  }

  .mlt-size-xl .mlt-title {
    font-size: 1.75rem;
  }

  .mlt-size-s .mlt-item {
    font-size: 0.8125rem;
  }

  .mlt-size-m .mlt-item {
    font-size: 0.95rem;
  }

  .mlt-size-l .mlt-item {
    font-size: 1.0625rem;
  }

  .mlt-size-xl .mlt-item {
    font-size: 1.125rem;
  }

  .mlt-list {
    gap: 0.875rem;
  }

  .mlt-list.mlt-list-2col {
    gap: 0.875rem;
  }

  .mlt-tab {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .mlt-panel {
    padding: 1.25rem;
  }

  .mlt-acc-btn {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .mlt-acc-panel .mlt-single {
    padding: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .mlt-tabs .mlt-tablist {
    display: none;
  }

  .mlt-tabs .mlt-panel {
    display: block !important;
    padding: 1rem 0;
  }

  .mlt-accordion .mlt-acc-btn {
    display: none;
  }

  .mlt-accordion .mlt-acc-panel {
    max-height: none !important;
    display: block !important;
  }
}
