/* Verstecke Elementor-Überschrift "Telefonie" auf Seite 34 */
.page-id-34 .elementor-heading-title:contains("Telefonie"),
.page-id-34 h1:first-of-type:not(.syn-tel h1),
.page-id-34 .elementor-widget-heading:first-child .elementor-heading-title {
  display: none !important;
}

/* ==================== GLOBAL STYLES ==================== */
.syn-tel {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
  padding: 10px 40px 32px 40px;
  min-height: 100vh;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.syn-tel * {
  box-sizing: border-box;
}

/* Container - BREITER */
.syn-tel-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==================== PAGE HEADER ==================== */
.syn-tel .page-header {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.syn-tel .page-header h1 {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: white;
  margin: 0 0 4px 0;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

.syn-tel .page-header .sub {
  color: #cbd5e1;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1.6;
  margin: 0;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

/* Telefonnummern */
.syn-tel .page-header .phone-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.syn-tel .page-header .phone-item {
  color: #e2e8f0;
  font-size: 15px;
  margin: 8px 0;
  line-height: 1.6;
}

.syn-tel .page-header .phone-item strong {
  color: #cbd5e1;
  font-weight: 500;
}

.syn-tel .page-header .phone-number {
  color: white;
  font-weight: 600;
  margin: 0 6px;
  font-size: 16px;
}

.syn-tel .header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ==================== FILTER SECTION ==================== */
.syn-tel .filter-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.syn-tel .filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.syn-tel .filter-group {
  display: flex;
  flex-direction: column;
}

.syn-tel .filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 8px;
}

.syn-tel .filter-input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}

.syn-tel .filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.syn-tel .btn-filter {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-end;
  height: 42px;
}

.syn-tel .btn-filter:hover {
  opacity: 0.9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.syn-tel .btn-filter svg {
  width: 20px;
  height: 20px;
}

/* ==================== BULK ACTIONS BAR ==================== */
.syn-tel .bulk-actions-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

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

.syn-tel .bulk-info {
  color: white;
  font-size: 15px;
  font-weight: 500;
}

.syn-tel .bulk-info span {
  font-weight: 700;
  font-size: 18px;
}

.syn-tel .bulk-buttons {
  display: flex;
  gap: 12px;
}

.syn-tel .btn-bulk-delete {
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.syn-tel .btn-bulk-delete:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.syn-tel .btn-bulk-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.syn-tel .btn-bulk-delete svg {
  width: 18px;
  height: 18px;
}

.syn-tel .btn-bulk-delete svg.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.syn-tel .btn-bulk-cancel {
  background: white;
  color: #475569;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.syn-tel .btn-bulk-cancel:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* ==================== TABLE SECTION ==================== */
.syn-tel .table-section {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.syn-tel table {
  width: 100%;
  border-collapse: collapse;
}

.syn-tel thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.syn-tel thead th {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

/* NEU: Checkbox Spalte */
.syn-tel .td-checkbox {
  width: 50px;
  text-align: center;
  padding: 16px 12px !important;
}

.syn-tel .call-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.syn-tel tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.syn-tel tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

.syn-tel tbody tr:hover {
  background: #f8fafc;
}

/* NEU: Ausgewählte Zeile Styling */
.syn-tel tbody tr.selected {
  background: #ede9fe !important;
  border-left: 4px solid #667eea;
}

.syn-tel tbody tr.selected:hover {
  background: #ddd6fe !important;
}

.syn-tel tbody td {
  padding: 16px 24px;
  font-size: 14px;
}

.syn-tel .td-name {
  font-weight: 500;
  color: #1e293b;
}

.syn-tel .td-phone {
  color: #475569;
}

.syn-tel .td-date,
.syn-tel .td-time {
  color: #64748b;
}

.syn-tel .td-duration {
  color: #059669;
  font-weight: 600;
}

.syn-tel .td-summary {
  color: #64748b;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.syn-tel .empty {
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* ==================== PAGINATION ==================== */
.syn-tel .pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.syn-tel .page-numbers {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.syn-tel .pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #475569;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.syn-tel .pagination-btn:hover:not(:disabled):not(.active) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.syn-tel .pagination-btn.active {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-color: #0f172a;
}

.syn-tel .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.syn-tel .pagination-btn svg {
  width: 16px;
  height: 16px;
}

.syn-tel .pagination-info {
  color: #64748b;
  font-size: 14px;
  margin: 0 12px;
  white-space: nowrap;
}

/* ==================== BUTTONS ==================== */
.syn-tel .btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.syn-tel .btn svg {
  width: 20px;
  height: 20px;
}

.syn-tel .btn-back {
  background: white;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.syn-tel .btn-back:hover {
  background: #f1f5f9;
}

.syn-tel .btn-details {
  padding: 8px 16px;
  background: #f1f5f9;
  color: #1e293b;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.syn-tel .btn-details:hover {
  background: #e2e8f0;
}

.syn-tel .btn-danger {
  background: #ef4444;
  color: white;
}

.syn-tel .btn-danger:hover {
  background: #dc2626;
}

/* ==================== DETAIL VIEW ==================== */
.syn-tel #tel-detail-view {
  background: transparent;
  padding: 0;
}

.syn-tel .detail-container {
  max-width: 100%;
}

.syn-tel .detail-page-header {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.syn-tel .detail-page-header .header-content h1 {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

.syn-tel .detail-page-header .header-content p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.3px;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

/* Info Cards Grid */
.syn-tel .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.syn-tel .info-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.syn-tel .info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.syn-tel .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.syn-tel .info-icon svg {
  width: 24px;
  height: 24px;
}

.syn-tel .info-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.syn-tel .info-value {
  font-size: 24px;
  font-weight: bold;
  color: #1e293b;
}

.syn-tel .info-value.code {
  font-size: 18px;
  word-break: break-all;
}

/* Content Sections */
.syn-tel .content-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.syn-tel .section-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  margin-top: 0;
  letter-spacing: 0.4px;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

.syn-tel .section-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  letter-spacing: 0.3px;
}

/* Audio Section */
.syn-tel .audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.syn-tel .btn-download {
  padding: 8px 16px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.syn-tel .btn-download:hover {
  background: #e2e8f0;
}

.syn-tel .btn-download svg {
  width: 16px;
  height: 16px;
}

.syn-tel audio {
  width: 100%;
  margin-bottom: 8px;
}

.syn-tel .audio-note {
  font-size: 12px;
  color: #94a3b8;
}

.syn-tel .no-audio {
  color: #94a3b8;
  font-style: italic;
}

/* Transcript */
.syn-tel .transcript-item {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.syn-tel .transcript-item.agent {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.syn-tel .transcript-item.customer {
  background: #f8fafc;
  border-left-color: #cbd5e1;
}

.syn-tel .transcript-time {
  font-weight: 600;
  margin-right: 8px;
}

.syn-tel .transcript-item.agent .transcript-time {
  color: #2563eb;
}

.syn-tel .transcript-item.customer .transcript-time {
  color: #64748b;
}

.syn-tel .transcript-text {
  color: #1e293b;
}

.syn-tel .loading {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 16px;
}

.syn-tel .error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin: 20px 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .syn-tel .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 968px) {
  .syn-tel {
    padding: 10px 24px 24px 24px;
  }
  
  .syn-tel .info-grid {
    grid-template-columns: 1fr;
  }
  
  .syn-tel .page-header .phone-info {
    font-size: 14px;
  }
  
  .syn-tel .page-header .phone-number {
    font-size: 15px;
  }
  
  .syn-tel .bulk-actions-bar {
    flex-direction: column;
    gap: 16px;
  }
  
  .syn-tel .bulk-buttons {
    width: 100%;
  }
  
  .syn-tel .bulk-buttons button {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .syn-tel {
    padding: 10px 16px 20px 16px;
  }
  
  .syn-tel .filter-grid {
    grid-template-columns: 1fr;
  }

  .syn-tel .page-header,
  .syn-tel .detail-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .syn-tel .page-header .phone-info {
    font-size: 13px;
  }
  
  .syn-tel .page-header .phone-item {
    margin: 6px 0;
  }

  .syn-tel .header-actions {
    width: 100%;
  }

  .syn-tel .btn {
    flex: 1;
  }

  .syn-tel .table-section {
    overflow-x: auto;
  }

  .syn-tel table {
    min-width: 1000px;
  }
  
  .syn-tel .pagination {
    justify-content: flex-start;
  }
  
  .syn-tel .pagination-info {
    width: 100%;
    text-align: center;
    order: -1;
    margin-bottom: 12px;
  }
}

/* ==================== ELEMENTOR COMPATIBILITY ==================== */
.elementor-widget-container .syn-tel {
  padding: 10px 20px 32px 20px !important;
  margin: 0;
}

.elementor-element .syn-tel {
  padding: 10px 20px 32px 20px !important;
  margin: 0;
}

/* Zusätzliche Regel für Seite 34 */
body.page-id-34 .elementor-widget-heading:first-of-type h1,
body.page-id-34 .elementor-widget-heading:first-of-type h2,
body.page-id-34 .elementor-heading-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}