:root {
  --gold: #c0a000;
  --gold-dark: #8d7400;
  --ink: #2f2f2f;
  --muted: #666;
  --line: #e5e5e5;
  --bg: #fff;
  --soft: #f6f6f6;
  --danger: #9d1c32;
  --max: 1080px;
  --font: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; }
header, main { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
header { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 3px solid var(--gold); }
header h1 { font-size: 1.3rem; margin: 0; flex: 1; }
header h1 a { text-decoration: none; }
nav { display: flex; gap: 1rem; align-items: center; }
select, input, button, textarea { font: inherit; }
select { padding: 0.35rem 0.5rem; border: 1px solid var(--line); background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { border: 1px solid var(--line); padding: 1rem; background: #fff; display: flex; flex-direction: column; gap: 0.5rem; }
.card h2 { font-size: 1.05rem; margin: 0; }
.price { font-weight: 700; }
.muted { color: var(--muted); font-size: 0.9rem; }
button, .button { background: var(--gold); color: #fff; border: 0; padding: 0.55rem 0.9rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.warn { background: #fff6f6; border: 1px solid var(--danger); color: var(--danger); padding: 0.75rem 1rem; margin-top: 1rem; }
.panel { border: 1px solid var(--line); padding: 1rem; margin: 1rem 0; background: var(--soft); }
label { display: block; margin: 0.6rem 0; }
input { width: 100%; max-width: 28rem; padding: 0.45rem; border: 1px solid var(--line); }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
pre.pay { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: 0.8rem; }
.cart-count { background: var(--ink); color: #fff; border-radius: 99px; padding: 0.1rem 0.45rem; font-size: 0.8rem; }
@media (max-width: 640px) {
  header { flex-wrap: wrap; }
  .account-page input, .account-page select, .account-page button { max-width: none; width: 100%; }
  .account-page .row { display: block; }
}
button.link { background: none; color: inherit; padding: 0; text-decoration: underline; }


/* Partner-Bereich: Marketing-Aktionen und eigene Zahlen */
.pm-area { margin-top: 1.25rem; display: grid; gap: 1rem; }
.pm-area h4 { margin: 0.5rem 0 0; }
.pm-area h5 { margin: 0.25rem 0 0.5rem; font-size: 1rem; }
.pm-hint { margin: 0; padding: 0.6rem 0.8rem; border-left: 4px solid #b7791f; background: #fff8e6; border-radius: 4px; }
.pm-form { display: grid; gap: 0.5rem; max-width: 560px; }
.pm-form label { display: grid; gap: 0.2rem; }
.pm-form input, .pm-form select, .pm-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 0.45rem; }
.pm-card { border: 1px solid #ddd; border-radius: 6px; padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.pm-card p { margin: 0.3rem 0; }
.pm-status { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; background: #eee; font-size: 0.85rem; }
.pm-approved .pm-status { background: #dff3e4; color: #1d6b34; }
.pm-pending .pm-status { background: #fff1cc; color: #7a5300; }
.pm-rejected .pm-status, .pm-disabled .pm-status { background: #fde2e2; color: #8a1f1f; }
.pm-link code { word-break: break-all; }
.pm-qr { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.pm-qr img { border: 1px solid #eee; background: #fff; }
.pm-thumb { max-width: 220px; max-height: 140px; display: block; margin-bottom: 0.3rem; }
.pm-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.pm-filter label { display: grid; gap: 0.2rem; }
.pm-table .table-scroll, .pm-area .table-scroll { overflow-x: auto; }
.pm-table table { border-collapse: collapse; min-width: 560px; }
.pm-table th, .pm-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid #eee; text-align: left; }
.pm-table td.num { text-align: right; white-space: nowrap; }
.pm-area, .pm-area > *, #partner-area { min-width: 0; max-width: 100%; }
.pm-table { max-width: 100%; overflow-x: auto; }
.pm-link code { overflow-wrap: anywhere; word-break: break-all; }
.pm-link button { margin-top: 0.3rem; }
@media (max-width: 600px) { .pm-link button { width: 100%; } .pm-table table { min-width: 520px; font-size: 0.9rem; } }
.pc-area { margin: 1rem 0 1.5rem; padding: 1rem; border: 1px solid #e3d9b8; border-radius: 8px; background: #fffdf6; min-width: 0; max-width: 100%; }
.pc-status-review, .pc-status-changes { background: #ffe08a; color: #5a4300; }
.pc-status-approved { background: #c8ecd2; color: #14532d; }
.pc-status-rejected { background: #fbcaca; color: #7f1d1d; }
.pm-video { display: block; width: 100%; max-width: 360px; max-height: 220px; background: #111; border-radius: 6px; margin-bottom: 0.3rem; }
.pc-thumb-inputs { border: 1px dashed #d7c98f; border-radius: 6px; padding: 0.6rem 0.8rem; margin: 0.4rem 0 0.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.4rem 1rem; min-width: 0; }
.pc-thumb-inputs[hidden] { display: none; }
.pc-thumb-inputs legend { font-weight: 600; padding: 0 0.3rem; }
.pc-thumb-inputs > p { grid-column: 1 / -1; margin: 0; }
.pc-thumb-inputs label { display: flex; gap: 0.5rem; align-items: center; }
.pc-thumb-inputs label span { min-width: 2rem; font-weight: 600; }
.pc-thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.3rem 0; grid-column: 1 / -1; }
.pc-thumb { display: inline-flex; flex-direction: column; align-items: center; font-size: 0.75rem; text-decoration: none; color: inherit; border: 2px solid transparent; border-radius: 4px; padding: 1px; }
.pc-thumb img { width: 72px; height: 40px; object-fit: cover; border-radius: 3px; background: #eee; }
.pc-thumb-current { border-color: #c4a000; }
.pc-format { border: 1px solid #d7c98f; border-radius: 6px; padding: 0.6rem 0.8rem; margin: 0.2rem 0 0.6rem; min-width: 0; }
.pc-format[hidden] { display: none; }
.pc-format legend { font-weight: 600; padding: 0 0.3rem; }
.pc-format-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.pm-form label.pc-format-tile { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; border: 2px solid #e3d9b8; border-radius: 8px; padding: 0.6rem 0.4rem; cursor: pointer; background: #fff; }
.pc-format-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-form label.pc-format-tile.is-on { border-color: #c4a000; background: #fff3c4; box-shadow: 0 0 0 1px #c4a000; }
.pc-format-tile:focus-within { outline: 2px solid #1d3557; outline-offset: 2px; }
.pc-format-tile small { color: #666; font-size: 0.75rem; line-height: 1.2; }
.pc-ratio { height: 50px; display: flex; align-items: center; justify-content: center; }
.pc-ratio-shape { display: block; border: 2px solid #333; border-radius: 3px; background: #eee; }
.pc-res { margin-top: 0.5rem; }
.pc-res[hidden] { display: none; }
.pc-format-hint { margin: 0.4rem 0 0; font-size: 0.85rem; color: #8a5a00; }
.pc-format-chip { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; background: #e8eef9; color: #1d3557; font-size: 0.8rem; font-weight: 600; }
.pc-format-none { background: #eee; color: #777; font-weight: 400; }
.pc-format-line { margin: 0.1rem 0 0.3rem; font-size: 0.85rem; }
.pc-format-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0 0.6rem; }
.pc-filter-btn { background: #fff; color: #333; border: 1px solid #c4a000; border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.85rem; cursor: pointer; }
.pc-filter-btn.is-on { background: #c4a000; color: #fff; }
.pm-card[hidden] { display: none; }
@media (max-width: 520px) { .pc-format-tiles { grid-template-columns: 1fr; } }
.pm-form label.pc-format-tile { position: relative; }

/* Yahoo/AOL-Hinweis (Konto-Seite) */
.mail-provider-banner { background: var(--gold); color: #1a1a1a; border-bottom: 3px solid var(--gold-dark); margin: 0 0 1rem; }
.mail-provider-banner .inner { padding: 0.7rem 1rem; text-align: center; font-size: 0.95rem; line-height: 1.45; }
.mail-provider-hint { margin: 0.35rem 0 0; padding: 0.5rem 0.7rem; background: #f7f1d4; border-left: 4px solid var(--gold); color: #1a1a1a; font-size: 0.9rem; line-height: 1.4; }
.mail-provider-hint[hidden] { display: none; }
input.has-mail-hint { border-color: var(--gold-dark); }
