/**
 * IAE Stätten-Builder · Frontend
 * Verwendet die Design-Tokens des IAE-Magazin-Themes (#FF5B2E Akzent, #FAFAF7 Sand, #0F0F0E ink).
 */

/* ════════════════════════════════════════════════════════════════
   FAKTENBOX
   ════════════════════════════════════════════════════════════════ */

.iae-sb-facts {
  background: #F5F5F0;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 24px 0 32px;
  border: 1px solid rgba(15, 15, 14, 0.08);
}

.iae-sb-facts__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 15, 14, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.iae-sb-facts__label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.iae-sb-unesco-badge {
  display: inline-flex;
  align-items: center;
  background: #FF5B2E;
  color: #FAFAF7;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.iae-sb-facts__list {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: 10px 24px;
  margin: 0;
}

.iae-sb-facts__list dt {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 4px;
  margin: 0;
}

.iae-sb-facts__list dd {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
  color: #0F0F0E;
  margin: 0 0 6px;
}

.iae-sb-facts__list dd a {
  color: #FF5B2E;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 91, 46, 0.3);
}
.iae-sb-facts__list dd a:hover {
  border-bottom-color: #FF5B2E;
}

/* Zeit-Pills */
.iae-sb-time-pill {
  display: inline-block;
  background: rgba(15, 15, 14, 0.05);
  color: #444;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
}
.iae-sb-time-pill--accent {
  background: rgba(255, 91, 46, 0.12);
  color: #B8350E;
  font-weight: 500;
}

/* Reise-Praxis-Section */
.iae-sb-facts__travel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 15, 14, 0.1);
}

.iae-sb-facts__travel-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 640px) {
  .iae-sb-facts {
    padding: 18px 20px;
  }
  .iae-sb-facts__list {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .iae-sb-facts__list dt {
    padding-top: 12px;
    font-size: 11px;
  }
  .iae-sb-facts__list dd {
    font-size: 15px;
  }
}

/* ════════════════════════════════════════════════════════════════
   PILLAR-HINWEIS am Ende
   ════════════════════════════════════════════════════════════════ */

.iae-sb-pillar-hint {
  background: #FAFAF7;
  border-left: 4px solid #FF5B2E;
  padding: 24px 28px;
  margin: 40px 0 24px;
  border-radius: 0 12px 12px 0;
}

.iae-sb-pillar-eyebrow {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #FF5B2E;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.iae-sb-pillar-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.iae-sb-pillar-title a {
  color: #0F0F0E;
  text-decoration: none;
  transition: color 0.2s;
}
.iae-sb-pillar-title a:hover { color: #FF5B2E; }

.iae-sb-pillar-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   STRUKTURIERTE ELEMENTE IM BEITRAGS-CONTENT
   (Antwort-Kapsel, Steckbrief-Tabelle, Vergleichs-Tabelle,
    Tipp-Box, Info-Box, Definitionsliste, FAQ-Schema-Wrapper)
   ════════════════════════════════════════════════════════════════ */

/* Antwort-Kapsel (für AI-Overview) */
.iae-mag-answer-capsule {
  background: #FAFAF7;
  border-left: 4px solid #FF5B2E;
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: #0F0F0E;
}
.iae-mag-answer-capsule strong:first-child {
  color: #FF5B2E;
  font-weight: 600;
}

/* Steckbrief-Tabelle (Eigenschaft → Wert) */
.iae-mag-fact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 15, 14, 0.06);
  font-family: 'Inter', sans-serif;
}
.iae-mag-fact-table th,
.iae-mag-fact-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 15, 14, 0.07);
  font-size: 15px;
  vertical-align: top;
}
.iae-mag-fact-table tr:last-child th,
.iae-mag-fact-table tr:last-child td {
  border-bottom: none;
}
.iae-mag-fact-table th {
  background: #F5F5F0;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  width: 35%;
}
.iae-mag-fact-table td {
  color: #0F0F0E;
}

/* Vergleichs-Tabelle (mehrere Spalten) */
.iae-mag-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.iae-mag-compare-table thead th {
  background: #0F0F0E;
  color: #FAFAF7;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.iae-mag-compare-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(15, 15, 14, 0.07);
}
.iae-mag-compare-table tbody tr:nth-child(even) td {
  background: #FAFAF7;
}

/* Generic wp-block-table fallback (falls Generator das Standard-Format nutzt) */
.entry-content .wp-block-table table {
  font-family: 'Inter', sans-serif;
  border-radius: 8px;
  overflow: hidden;
}

/* Info-Boxen (3 Varianten: tip, info, warning) */
.iae-mag-tip-box,
.iae-mag-info-box,
.iae-mag-warning-box {
  padding: 16px 22px;
  margin: 22px 0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
.iae-mag-tip-box {
  background: #F0F8E8;
  border-left: 4px solid #4D8B2C;
  color: #2D4F1A;
}
.iae-mag-info-box {
  background: #EAF1FB;
  border-left: 4px solid #2C5DAA;
  color: #1A3258;
}
.iae-mag-warning-box {
  background: #FFF4E5;
  border-left: 4px solid #B8350E;
  color: #5C2310;
}
.iae-mag-tip-box strong:first-child,
.iae-mag-info-box strong:first-child,
.iae-mag-warning-box strong:first-child {
  display: inline-block;
  margin-right: 4px;
}

/* Definitionsliste (Fachbegriffe) */
.iae-mag-deflist {
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: #FAFAF7;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.iae-mag-deflist dt {
  font-weight: 600;
  font-size: 15px;
  color: #FF5B2E;
  margin-top: 14px;
}
.iae-mag-deflist dt:first-child {
  margin-top: 0;
}
.iae-mag-deflist dd {
  margin: 4px 0 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #444;
}

/* FAQ-Schema-Wrapper (semantisch + dezent gestylt) */
.iae-mag-faq h3 {
  margin-top: 28px;
  font-size: 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: #0F0F0E;
  border-left: 3px solid #FF5B2E;
  padding-left: 14px;
}
.iae-mag-faq h3:first-child {
  margin-top: 8px;
}

/* Quellen-Box */
.iae-mag-sources-box {
  margin: 36px 0 24px;
  padding: 20px 24px;
  background: #F5F5F0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.iae-mag-sources-box__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.iae-mag-sources-box ul {
  margin: 0;
  padding-left: 20px;
}
.iae-mag-sources-box li {
  margin-bottom: 6px;
  line-height: 1.5;
  color: #444;
}

/* Mobile */
@media (max-width: 640px) {
  .iae-mag-fact-table th,
  .iae-mag-fact-table td {
    padding: 10px 14px;
    font-size: 14px;
  }
  .iae-mag-fact-table th {
    width: 40%;
    font-size: 10px;
  }
  .iae-mag-compare-table {
    font-size: 13px;
    overflow-x: auto;
    display: block;
  }
}
