/* =====================================================================
   Handy-Menue (Seitenleiste): Farben folgen automatisch dem Saison-Design
   ===================================================================== */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
html.drawer-open .drawer-backdrop { opacity: 1; }
html.drawer-open, html.drawer-open body { overflow: hidden; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 95; width: min(88vw, 370px);
  height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg, #fff);
  box-shadow: -24px 0 50px -20px rgba(15, 23, 42, .45); transform: translateX(105%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
[dir="rtl"] .drawer { transform: translateX(-105%); box-shadow: 24px 0 50px -20px rgba(15, 23, 42, .45); }
html.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-head {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; flex: none;
  padding: calc(16px + env(safe-area-inset-top)) 16px 18px; background: var(--grad); color: #fff;
}
.drawer-head::before, .drawer-head::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); pointer-events: none; }
.drawer-head::before { width: 160px; height: 160px; right: -50px; top: -70px; }
.drawer-head::after { width: 90px; height: 90px; left: 40%; bottom: -60px; }
.drawer-head .brand { position: relative; z-index: 1; color: #fff; min-width: 0; }
.drawer-head .brand img { background: #fff; border-radius: 12px; padding: 4px; }
.drawer-head .brand-name { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; }
.drawer-head .brand-sub { color: rgba(255, 255, 255, .85); display: block !important; }
.drawer-season { position: relative; z-index: 1; margin-inline-start: auto; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: .95rem; animation: season-sway 3s ease-in-out infinite; }
@keyframes season-sway { 50% { transform: rotate(-14deg) scale(1.06); } }
.drawer-close { position: relative; z-index: 1; margin-inline-start: auto; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.15rem; cursor: pointer; }
.drawer-season + .drawer-close { margin-inline-start: 8px; }
.drawer-close:active { transform: scale(.95); }
.drawer-nav { display: grid; gap: 2px; padding: 12px 10px 6px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 10px; border-radius: 14px; color: var(--ink); font-weight: 650; font-size: 1rem; }
.drawer-nav a > span { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--em-50); color: var(--em-600); font-size: .9rem; }
.drawer-nav a:active, .drawer-nav a:hover { background: var(--em-50); color: var(--em-700); }
.drawer-nav a::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: var(--muted); margin-inline-start: auto; }
[dir="rtl"] .drawer-nav a::after { content: "\f053"; }
.drawer-langs { margin: 6px 16px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer-langs small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dl-grid a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .86rem; font-weight: 600; overflow: hidden; }
.dl-grid a span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-grid a.on { border-color: var(--em-500); background: var(--em-50); color: var(--em-700); font-weight: 800; }
.dl-grid .fi { width: 1.4em; height: 1.05em; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); background-size: cover; }
.drawer-cta { display: grid; gap: 10px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); margin-top: auto; }
.drawer-cta .btn { min-height: 50px; white-space: normal; }
@media (min-width: 921px) { .drawer, .drawer-backdrop { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } .drawer-season { animation: none; } }

/* =====================================================================
   Alle Handys: Notch, Dynamic Island, Home-Leiste, kleine und grosse Geraete
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
.wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.modal-card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
@media (hover: none) {
  .plan:hover, .way:hover, .hstat:hover, .btn-primary:hover, .btn-plan:hover, .btn-white:hover { transform: none; }
}
@media (max-width: 920px) {
  .nav { display: none !important; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; }
  .topbar-inner { gap: 12px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .topbar-inner { height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .hero { padding: 32px 0 44px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 16px 0 14px; }
  .lead { font-size: 1rem; }
  .hero-cta { margin: 22px 0 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .payout-card, .agent-card, .clients-card { padding: 20px; }
  .po-note, .po-warn { padding: 18px; }
  .bonus { padding: 28px 20px; border-radius: 24px; }
  .disclaimer { flex-direction: column; padding: 18px; }
  /* Eingabefelder mit 16px: iPhone zoomt beim Antippen nicht hinein */
  .field input, .field textarea, input[type="email"], input[type="text"], textarea, select { font-size: 16px; }
  .mini-copy { width: 38px; height: 38px; }
  /* Bestell- und Bewertungsdialog als Blatt von unten */
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; max-height: 92dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1); }
  .m-actions { flex-direction: column-reverse; }
  .m-actions .btn { width: 100%; }
  .method { padding: 12px; gap: 10px; }
  .method-time { display: none; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
/* Kleine Handys (iPhone SE, kompakte Android-Geraete) */
@media (max-width: 380px) {
  .brand-name { font-size: 1.05rem; }
  .top-actions { gap: 6px; }
  .lang-btn { padding: 0 9px; }
  .plan-top { padding: 20px 16px 18px; }
  .plan-body { padding: 16px 14px; }
  .plan-price > span { font-size: 2rem; }
  .pe-row b { font-size: .8rem; }
  .pt span { font-size: .66rem; }
  .big-code { font-size: 1.3rem !important; letter-spacing: .08em; }
}
/* Sehr schmale Geraete (Aussendisplay von Klapphandys ab 280 px) */
@media (max-width: 340px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hstat { flex-direction: row; align-items: center; gap: 10px; }
  .hstat .hs-ic { margin: 0; }
  .hstat strong { min-height: 0; }
  .hstat .hs-label { flex: 1; }
  .plan-tasks { grid-template-columns: 1fr; }
  .pt { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 8px 10px; }
  .pt i { margin: 0; }
  .pe-row { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .brand-text { display: none; }
}
/* Querformat am Handy */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-card { max-height: 96vh; max-height: 96dvh; }
  .drawer-nav a { min-height: 42px; }
}

/* Raster-Spalten duerfen schmaler werden als ihr Inhalt (sonst draengt z. B. das Diagramm die Seite breit) */
.hero-grid > *, .agent-grid > *, .reviews-grid > *, .payout-grid > *, .order-grid > *, .bonus > *, .plans > *, .ways > *, .steps > *, .paygrid > *, .footer-grid > * { min-width: 0; }
.chart-box { min-width: 0; width: 100%; }
.chart-box canvas { max-width: 100% !important; }
@media (max-width: 920px) {
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
  [dir="rtl"] .fc-1 { right: 8px; left: auto; } [dir="rtl"] .fc-2 { left: 8px; right: auto; }
}

@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .po-note > div, .po-warn > div, .disclaimer > div, .fee-note > span, .fee-explain { min-width: 0; }
  .hero-visual { margin-inline: 4px; }
}

.po-side > *, .payout-card > *, .topbar-inner > *, .top-actions > * { min-width: 0; }
@media (max-width: 340px) {
  .po-note, .po-warn { flex-direction: column; gap: 10px; }
  .po-note h4, .po-warn h4, .po-note p, .po-warn p { overflow-wrap: anywhere; hyphens: auto; }
  .topbar-inner { gap: 8px; }
  .lang-btn { gap: 5px; padding: 0 8px; }
  .lang-btn .fa-chevron-down { display: none; }
}
