/* Everypost – Zusatzstile für Unterseiten (Hilfe-Center, Plattform-Seiten, Vergleiche, Ratgeber).
   Wird zusätzlich zu style.css geladen und nutzt dessen Farbvariablen (Light/Dark). */

/* ---------- Seitenkopf ---------- */

.page { padding: 40px 0 72px; }

.page-head {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}
.page-head .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}
.page-head .hero-actions { justify-content: center; margin-top: 24px; }
.page-head .meta {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.page-head .meta span + span::before { content: "·"; margin: 0 8px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span + span::before { content: "/"; margin-right: 6px; opacity: 0.6; }

/* ---------- Layout: Inhaltsverzeichnis + Artikel ---------- */

.page-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .page-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 88px; }
}

.toc {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.toc li { font-size: 0.93rem; line-height: 1.4; }
.toc a { color: var(--text-soft); font-weight: 500; }
.toc a:hover { color: var(--accent); }
@media (max-width: 959px) {
  .toc ol { columns: 2; column-gap: 24px; display: block; }
  .toc li { break-inside: avoid; margin: 4px 0; }
}
@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

/* ---------- Artikel ---------- */

.article { max-width: 760px; min-width: 0; }
.article > h2 { font-size: 1.6rem; margin: 48px 0 14px; scroll-margin-top: 90px; }
.article > h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.15rem; margin: 28px 0 8px; scroll-margin-top: 90px; }
.article p,
.article li { color: var(--text-soft); font-size: 1.02rem; line-height: 1.7; }
.article p { margin: 0 0 16px; }
.article ul,
.article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin: 6px 0; }
.article li p { margin-bottom: 8px; }
.article strong { color: var(--text); }
.article img { border-radius: var(--radius-sm); }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

/* Nummerierte Schritt-für-Schritt-Listen */
.article ol.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: s;
  display: grid;
  gap: 10px;
}
.article ol.steps-list > li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.article ol.steps-list > li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 14px; top: 13px;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(42, 120, 214, 0.28);
}

/* Bezeichnungen von Schaltflächen und Menüpunkten der App */
.ui {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92em;
  white-space: nowrap;
}

/* Hinweisboxen */
.callout {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }
.callout.warn {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.5);
}
.callout.ok {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.4);
}

/* Tabellen im Artikel */
.article .table-wrap { margin: 16px 0 24px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.article th,
.article td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-soft);
  line-height: 1.5;
}
.article th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.article tbody tr:last-child td { border-bottom: 0; }
.article .table-wrap table { min-width: 520px; }

/* Vergleich: Stärken nebeneinander */
.pros-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 8px 0 24px;
}
@media (min-width: 680px) { .pros-grid { grid-template-columns: 1fr 1fr; } }
.pros-grid .card { padding: 22px 22px 16px; }
.pros-grid .card:hover { transform: none; box-shadow: var(--shadow-sm); }
.pros-grid h3 { margin: 0 0 10px; font-size: 1.05rem; }
.pros-grid ul { margin: 0; padding-left: 18px; }
.pros-grid li { font-size: 0.96rem; }

/* FAQ im Artikel */
.article .faq-list { max-width: none; margin: 8px 0 0; }
.article .faq-list details p { font-size: 0.98rem; }

/* Weiterführende Links */
.related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related h2 { font-size: 1.1rem; margin: 0 0 14px; }
.related-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-grid a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-grid a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.related-grid a small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

/* Hilfe-Center: Kartenübersicht oben */
.help-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0 0 40px;
}
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .help-grid { grid-template-columns: repeat(4, 1fr); } }
.help-grid a {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-grid a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.help-grid a small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 0.88rem; }

/* Fußzeile mit fünf Spalten auf Unterseiten */
.footer-grid.wide { grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid.wide { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid.wide { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; } }
.footer-grid.wide .footer-brand { grid-column: 1 / -1; }
@media (min-width: 1000px) { .footer-grid.wide .footer-brand { grid-column: auto; } }
.footer-col .lang-switch { margin-top: 14px; }

/* Nach-oben-Link */
.toplink { display: inline-block; margin-top: 24px; font-size: 0.9rem; font-weight: 500; }

@media (min-width: 768px) {
  .page { padding: 56px 0 96px; }
}

/* ---------- Agentur-Seite (agenturen.html) ---------- */

.ag-hero { padding: 48px 0 32px; }
.ag-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
.ag-hero .hero-sub { max-width: 600px; }
@media (min-width: 900px) {
  .ag-hero { padding: 72px 0 48px; }
  .ag-hero .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}

.ag-offer {
  margin-top: 22px;
  max-width: 560px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent);
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ag-offer strong { color: var(--text); }
.ag-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0.04em;
}

.ag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.ag-pricecard {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.ag-pricecard-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ag-pricecard .plan-price { margin: 14px 0 4px; }
.ag-pricecard .plan-features { margin: 18px 0 22px; }
.ag-pricecard-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

.ag-demo { padding-top: 40px; }
.ag-demo .section-head strong { color: var(--text); }
.ag-demo-actions { display: flex; justify-content: center; margin-top: 24px; }

@media (min-width: 640px) { .ag-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ag-steps { grid-template-columns: repeat(4, 1fr); } }

.ag-calc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.ag-calc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.ag-calc-head h3 { margin: 0; font-size: 1.25rem; }
.ag-calc-rows { margin: 0; display: grid; gap: 0; }
.ag-calc-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ag-calc-rows dt { margin: 0; color: var(--text-soft); font-size: 0.97rem; line-height: 1.5; }
.ag-calc-rows dd { margin: 0; font-weight: 700; color: var(--text); white-space: nowrap; }
.ag-calc-rows .ag-calc-sum { border-bottom: 0; padding-top: 16px; }
.ag-calc-rows .ag-calc-sum dt { color: var(--text); font-weight: 600; }
.ag-calc-rows .ag-calc-sum dd { font-size: 1.5rem; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-calc-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 480px) {
  .ag-calc-rows > div { flex-direction: column; align-items: flex-start; gap: 2px; }
}

.ag-alt { background: var(--bg-soft); }

.ag-table { min-width: 900px; }
.ag-table th, .ag-table td { text-align: left; vertical-align: top; font-size: 0.92rem; line-height: 1.5; }
.ag-table td:first-child { font-weight: 600; color: var(--text); }
.ag-table thead th.popular-col { color: var(--accent); }
.ag-table tbody td:nth-child(2) { background: var(--accent-soft); color: var(--text); }
