/* ===== Inflationsrechner Plugin – Mobile First CSS ===== */
/* KEINE externen Fonts mehr – nur System-Standard */

#inflationsrechner-wrap,
#inflationsrechner-wrap * { box-sizing: border-box; }

.ir-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 780px;
  margin: 1.5rem auto;
  color: #1a1a2e;
  font-size: 18px;
}

/* ── KOMPAKTER HEADER (nur Titel, zentriert) ── */
.ir-header {
  background: linear-gradient(100deg, #0f3460 0%, #1a1a2e 100%);
  border-radius: 14px 14px 0 0;
  padding: 0.75rem 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.ir-title {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.ir-subtitle {
  display: none;
}

/* ── NAV TABS ── */
.ir-nav {
  display: flex;
  gap: 0;
  background: #f0f0f8;
  border-left: 1px solid #e0e0ec;
  border-right: 1px solid #e0e0ec;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ir-nav::-webkit-scrollbar { display: none; }

.ir-nav-btn {
  flex: 0 0 auto;
  padding: 0.6rem 0.9rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #777;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ir-nav-btn:hover { color: #e53935; background: #fff5f5; }
.ir-nav-btn--active {
  color: #e53935;
  border-bottom-color: #e53935;
  background: #fff;
  font-weight: 600;
}

/* ── BODY ── */
.ir-body {
  background: #fff;
  border: 1px solid #e0e0ec;
  border-top: none;
  padding: 1.4rem;
  border-radius: 0 0 14px 14px;
}

.ir-module-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 1.2rem;
  line-height: 1.5;
}

/* ── FORM GRID ── */
.ir-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.ir-form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 520px) {
  .ir-form-grid,
  .ir-form-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .ir-form-grid,
  .ir-form-grid--3 { grid-template-columns: 1fr; }
}

.ir-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ir-field--full { grid-column: 1 / -1; }

.ir-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ir-field input[type="number"],
.ir-field select {
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

/* Dropdown-Höhe auf 200px begrenzen */
.ir-field select {
  max-height: 200px;
  overflow-y: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.ir-field input:focus,
.ir-field select:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
  background: #fff;
}

/* ── SLIDER ── */
.ir-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  accent-color: #e53935;
  cursor: pointer;
  background: #e0e0ec;
  margin-top: 0.3rem;
}

/* ── WARENKORB SLIDERS ── */
.ir-sliders { display: flex; flex-direction: column; gap: 0.7rem; }
.ir-slider-row {
  background: #f8f8fc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}
.ir-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}
.ir-slider-val {
  font-weight: 700;
  color: #e53935;
  font-size: 0.85rem;
  min-width: 40px;
  text-align: right;
}

/* ── BUTTON ── */
.ir-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(229,57,53,0.3);
  margin-top: 1rem;
}
.ir-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(229,57,53,0.4); }
.ir-btn:active { transform: none; }

/* ── RESULT ── */
.ir-result {
  margin-top: 1.2rem;
  animation: ir-fadein 0.35s ease;
}
@keyframes ir-fadein {
  from { opacity:0; transform: translateY(8px); }
  to   { opacity:1; transform: translateY(0); }
}

.ir-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
@media (max-width: 480px) {
  .ir-result-grid { grid-template-columns: 1fr; }
}

.ir-res-card {
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.ir-res-card--main {
  background: linear-gradient(135deg, #0f3460, #16213e);
  color: #fff;
}
.ir-res-card--alt {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
}
.ir-res-card--warn {
  background: linear-gradient(135deg, #b71c1c, #e53935);
  color: #fff;
}
.ir-res-card--neutral {
  background: #f4f4fa;
  color: #1a1a2e;
}
.ir-res-card .ir-res-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.ir-res-card .ir-res-value {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.ir-res-card .ir-res-sub {
  font-size: 0.78rem;
  opacity: 0.75;
}

.ir-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.ir-stat-pill {
  flex: 1 1 calc(50% - 0.5rem);
  background: #f4f4fa;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}
.ir-stat-pill-label { color: #666; }
.ir-stat-pill-val { font-weight: 700; color: #1a1a2e; }
.ir-stat-pill-val.red { color: #e53935; }
.ir-stat-pill-val.green { color: #2e7d32; }

.ir-emoji-result {
  background: #fff9f0;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.ir-emoji-result p { margin: 0 0 0.5rem; font-size: 0.88rem; line-height: 1.5; }
.ir-emoji-result p:last-child { margin: 0; }
.ir-emoji-result strong { color: #b71c1c; }

.ir-verdict {
  background: #fff3e0;
  border-left: 4px solid #e53935;
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #333;
}
.ir-verdict strong { color: #b71c1c; }

.ir-chart-wrap {
  background: #f9f9fc;
  border-radius: 10px;
  padding: 0.8rem;
  margin-top: 0.8rem;
}
.ir-chart-wrap canvas { width: 100% !important; height: auto !important; display: block; }

/* ── SHARE ── */
.ir-share {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0 0.2rem;
}
.ir-share-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  color: #444;
  transition: border-color 0.15s, background 0.15s;
}
.ir-share-btn:hover { border-color: #e53935; color: #e53935; background: #fff5f5; }
.ir-share-confirm {
  font-size: 0.8rem;
  color: #2e7d32;
  font-weight: 600;
}

/* ── DISCLAIMER ── */
.ir-disclaimer {
  font-size: 0.7rem;
  color: #bbb;
  text-align: center;
  margin: 0.8rem 0 0;
  line-height: 1.5;
}

/* ── UTILITIES ── */
.ir-hidden { display: none !important; }



/* ── MEHR ABSTAND IN ERGEBNISKARTEN ── */
.ir-res-card .ir-res-sub {
  margin-top: 0.5rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Speziell für neutrale Karten (dunkler Text) */
.ir-res-card--neutral .ir-res-sub {
  border-top-color: rgba(0,0,0,0.1);
}

/* Mehr Abstand zwischen den Statistik-Pills */
.ir-stats-row {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  gap: 0.8rem;
}

/* Jede Statistik-Pill mit etwas mehr Innenabstand */
.ir-stat-pill {
  padding: 0.6rem 0.8rem;
}

/* Mehr Abstand im Verdict-Bereich */
.ir-verdict {
  margin-top: 0.8rem;
  padding: 1rem;
}

/* Abstand zwischen Ergebnis-Grid und Stats */
.ir-result-grid {
  margin-bottom: 1.2rem;
}





/* ── SCROLLBARE TABS MIT PFEILEN ── */
.ir-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f0f0f8;
  border-left: 1px solid #e0e0ec;
  border-right: 1px solid #e0e0ec;
}

.ir-nav-scroll-btn {
  flex-shrink: 0;
  width: 32px;
  height: 44px;
  background: #f0f0f8;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #e53935;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.ir-nav-scroll-btn:hover {
  background: #e53935;
  color: white;
}

.ir-nav-scroll-btn:active {
  transform: scale(0.95);
}

.ir-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Firefox: dünne Scrollbar */
  flex: 1;
}

/* Scrollbar aussehen (Chrome/Safari) */
.ir-nav::-webkit-scrollbar {
  height: 4px;
}

.ir-nav::-webkit-scrollbar-track {
  background: #e0e0ec;
}

.ir-nav::-webkit-scrollbar-thumb {
  background: #e53935;
  border-radius: 4px;
}



