/* loxone-upgrade.css — Styles für /loxone-miniserver-gen1-upgrade
   (Kostentabelle + Schnellanfrage-Formular, ergänzt subpages.css) */

/* ── Kosten-Gegenüberstellung ─────────────────────────────── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 8px 0;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.cost-table th,
.cost-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #E5E5E5;
}
.cost-table thead th {
  background: #2B2A29;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-bottom: none;
}
.cost-table tbody tr:nth-child(even) { background: #FAFAFA; }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table .highlight-row td {
  background: #08A6A0;
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}
.cost-table td strong { font-weight: 700; }

@media (max-width: 640px) {
  .cost-table { font-size: 13.5px; }
  .cost-table th, .cost-table td { padding: 10px 10px; }
}

/* ── Schnellanfrage-Formular (gleiche Optik wie News-Seite) ── */
.upgrade-quick-request {
  background: linear-gradient(135deg, #08a6a0 0%, #068580 100%);
  color: #fff;
  padding: 32px 40px;
  border-radius: 16px;
  margin: 24px 0 8px 0;
}
.upgrade-quick-request h3 { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.upgrade-quick-request p { opacity: 0.9; margin-bottom: 20px; font-size: 0.95rem; }
.news-qr-form { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.news-qr-row { display: flex; gap: 16px; }
.news-qr-row .news-qr-field { flex: 1 1 0; }
.news-qr-field { display: flex; flex-direction: column; }
.news-qr-field label { font-size: 0.85rem; opacity: 0.85; margin-bottom: 4px; }
.news-qr-field input,
.news-qr-field textarea {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255,255,255,0.95);
  color: #2B2A29;
  width: 100%;
  box-sizing: border-box;
}
.news-qr-field textarea { resize: vertical; min-height: 44px; }
.news-qr-btn {
  background: #2B2A29;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  align-self: flex-start;
}
.news-qr-btn:hover { background: #1a1a1a; }
.news-qr-btn:disabled { opacity: 0.6; cursor: wait; }
.news-qr-status { margin-top: 4px; font-size: 0.9rem; display: none; }
.news-qr-status.success { display: block; color: #d4f7d4; }
.news-qr-status.error { display: block; color: #ffd4d4; }

@media (max-width: 640px) {
  .upgrade-quick-request { padding: 24px 20px; }
  .news-qr-row { flex-direction: column; }
  .news-qr-btn { width: 100%; }
}

/* ── Geräte-Übersicht (Gen 1 / Gen 2 / Go) ─────────────────── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 8px 0;
}
.device-card {
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.device-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #FAFAFA;
  padding: 16px;
  box-sizing: border-box;
}
.device-card figcaption {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.device-card figcaption strong {
  color: var(--color-text, #2B2A29);
  font-size: 1.05rem;
  font-weight: 700;
}
.device-card figcaption span {
  color: var(--color-text-secondary, #898989);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Inline-Bilder im Text ─────────────────────────────────── */
.inline-figure {
  margin: 28px 0;
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.inline-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.inline-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary, #898989);
  border-top: 1px solid #F0F0F0;
  background: #FAFAFA;
}

@media (max-width: 900px) {
  .device-grid { grid-template-columns: 1fr; }
  .device-card img { height: 220px; }
}