/* Marketing Budget Rechner – Stylesheet */

.mbr-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 0;
  color: #1a1a1a;
}

/* Section */
.mbr-section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

/* Grid */
.mbr-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .mbr-grid3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 601px) { .mbr-grid3 { grid-template-columns: 1fr 1fr; } }

/* Fields */
.mbr-field { display: flex; flex-direction: column; gap: 5px; }
.mbr-label { font-size: 12px; font-weight: 500; color: #555; }

.mbr-input,
.mbr-select {
  width: 100%;
  padding: 8px 11px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.mbr-input:focus, .mbr-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.mbr-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

/* Buttons */
.mbr-actions { display: flex; gap: 10px; margin: 1.25rem 0 1.5rem; flex-wrap: wrap; }
.mbr-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mbr-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.mbr-btn--primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.mbr-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* Summary cards */
.mbr-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 520px) { .mbr-summary-grid { grid-template-columns: 1fr 1fr; } }

.mbr-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.mbr-summary-card-label {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.mbr-summary-card-value {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.mbr-summary-card-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.mbr-summary-card--blue  .mbr-summary-card-value { color: #2563eb; }
.mbr-summary-card--green .mbr-summary-card-value { color: #16a34a; }
.mbr-summary-card--amber .mbr-summary-card-value { color: #d97706; }

/* Channel bars */
.mbr-channels { display: flex; flex-direction: column; gap: 12px; }
.mbr-channel {
  display: grid;
  grid-template-columns: 130px 1fr 70px 80px;
  align-items: center;
  gap: 12px;
}
@media (max-width: 520px) {
  .mbr-channel { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 6px 10px; }
  .mbr-channel-bar-wrap { grid-column: 1 / -1; }
}
.mbr-channel-name { font-size: 13px; font-weight: 500; color: #334155; }
.mbr-channel-bar-wrap { background: #f1f5f9; border-radius: 99px; height: 10px; overflow: hidden; }
.mbr-channel-bar { height: 100%; border-radius: 99px; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.mbr-channel-pct  { font-size: 13px; font-weight: 600; color: #334155; text-align: right; }
.mbr-channel-euro { font-size: 13px; color: #64748b; text-align: right; white-space: nowrap; }

/* Channel colors */
.mbr-bar--seo     { background: #3b82f6; }
.mbr-bar--ads     { background: #f59e0b; }
.mbr-bar--social  { background: #8b5cf6; }
.mbr-bar--content { background: #10b981; }
.mbr-bar--email   { background: #ef4444; }

/* Empfehlung */
.mbr-empfehlung {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mbr-tip {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}
.mbr-tip-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.mbr-tip--green  { border-left-color: #16a34a; }
.mbr-tip--amber  { border-left-color: #d97706; }
.mbr-tip--purple { border-left-color: #7c3aed; }

/* Fahrplan */
.mbr-fahrplan { display: flex; flex-direction: column; gap: 0; }
.mbr-phase-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.mbr-phase-row:last-child { border-bottom: none; }
.mbr-phase-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.mbr-phase-content { font-size: 13px; line-height: 1.65; color: #334155; }
.mbr-phase-content strong { font-weight: 600; color: #1e293b; }

/* Result fade-in */
.mbr-result { animation: mbr-fadein 0.35s ease; }
@keyframes mbr-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
