/* /de/ homepage additions on top of funnel.css (copied from funnel-ru.css, ru- renamed de-): safe-limit and rival tables,
   the German legal cards, the guides block and the country chooser. Uses funnel.css tokens only. */

/* ---------- tables (safe daily limits, rivals) ---------- */
.de-table-wrap { margin-top: clamp(28px, 4vw, 44px); background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--sh-lg); overflow: hidden; }
.de-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; text-align: left; }
.de-table caption { padding: 16px 18px 0; text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.de-table th, .de-table td { padding: 13px 18px; vertical-align: top; border-bottom: 1.5px solid var(--line); }
.de-table thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 2px solid var(--ink); }
.de-table tbody tr:last-child th, .de-table tbody tr:last-child td { border-bottom: 0; }
.de-table tbody th { font-weight: 750; letter-spacing: -.01em; }
.de-table .num { font-weight: 800; font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
.de-table .us th, .de-table .us td { background: #F1FFE9; }
.de-table small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* rivals table inside the dark price section */
.dark .de-table-wrap { background: var(--p-surface); border-color: var(--p-line); box-shadow: none; }
.dark .de-table { color: var(--p-text); font-size: 14.5px; }
.dark .de-table caption, .dark .de-table thead th { color: var(--p-muted); }
.dark .de-table thead th { background: var(--p-bg); border-bottom-color: var(--p-line); }
.dark .de-table th, .dark .de-table td { border-bottom-color: var(--p-line); }
.dark .de-table small { color: var(--p-muted); }
.dark .de-table .us th, .dark .de-table .us td { background: rgba(57, 255, 20, .08); }
.dark .de-table .us th { color: var(--lime); }

.de-cmp { margin-top: clamp(64px, 8vw, 104px); }
.de-cmp-h { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; max-width: 820px; }
.de-cmp-sub { margin-top: 12px; max-width: 760px; color: var(--p-muted); font-size: 16px; line-height: 1.5; }
.de-cmp-meta { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.6; color: var(--p-muted); }
.de-cmp-meta a { color: var(--p-text); text-decoration: underline; text-decoration-color: var(--lime-3); text-underline-offset: 3px; }
.de-cmp-note { margin-top: 22px; max-width: 820px; font-size: 15.5px; line-height: 1.55; color: var(--p-muted); }
.de-cmp-note b { color: var(--p-text); }
.de-cmp-note a { color: var(--p-text); font-weight: 650; text-decoration: underline; text-decoration-color: var(--lime-3); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- safe daily limits ---------- */
.de-limits { margin-top: clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
.de-limits .de-table-wrap { margin-top: 0; }
.de-pace h3 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.de-pace .tools-st em { background: var(--elevated); }
.de-note { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: var(--body); }
.de-note b { color: var(--ink); }

/* ---------- six-country legal cards (dark) ---------- */
.legal .triggers { margin-top: clamp(32px, 4vw, 48px); }
.legal .trig .n { color: var(--lime); }
.legal .trig p a, .legal .de-legal-foot a { color: var(--p-text); text-decoration: underline; text-decoration-color: var(--lime-3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal .trig p a:hover, .legal .de-legal-foot a:hover { text-decoration-color: var(--p-text); }
.de-legal-foot { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 860px; display: grid; gap: 10px; text-align: center; color: var(--p-muted); font-size: 15px; line-height: 1.55; }
.de-legal-foot b { color: var(--p-text); }

/* ---------- guides ---------- */
.de-guides { margin-top: clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.de-guide { padding: 22px 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
.de-guide h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.de-guide h3 svg { width: 20px; height: 20px; flex: none; }
.de-guide ul { margin-top: 12px; display: grid; gap: 2px; }
.de-guide li a { display: block; padding: 7px 0; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1.5px dashed var(--line); text-decoration: none; }
.de-guide li:last-child a { border-bottom: 0; }
.de-guide li a:hover { text-decoration: underline; text-decoration-color: var(--lime-3); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.de-guide li a small { font-weight: 500; color: var(--muted); }
.de-guide-ban { grid-column: span 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.de-guide-ban figure { margin: 0; }
.de-guide-ban img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 14px; }
.de-guide-ban figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- country chooser ---------- */
.ct-grid.de-3 { grid-template-columns: repeat(3, 1fr); max-width: 1000px; }
.de-cc { font-family: var(--mono); font-size: 14px; font-weight: 800; letter-spacing: .04em; }

@media (max-width: 960px) {
  .de-limits { grid-template-columns: 1fr; }
  .de-guides { grid-template-columns: 1fr 1fr; }
  .de-guide-ban { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ct-grid.de-3 { grid-template-columns: repeat(2, 1fr); }
  .de-guides { grid-template-columns: 1fr; }
  .de-guide-ban { grid-template-columns: 1fr; }
  /* stacked tables: one card per row, the header cell becomes the card title */
  .de-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .de-table.stack tr { display: block; padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
  .dark .de-table.stack tr { border-bottom-color: var(--p-line); }
  .de-table.stack tbody tr:last-child { border-bottom: 0; }
  .de-table.stack th, .de-table.stack td { display: block; padding: 3px 0; border: 0; }
  .de-table.stack tbody th { font-size: 16.5px; padding-bottom: 6px; }
  .de-table.stack td[data-label]::before { content: attr(data-label) ': '; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .dark .de-table.stack td[data-label]::before { color: var(--p-muted); }
  .de-table th, .de-table td { padding: 11px 14px; }
}
@media (max-width: 480px) {
  .ct-grid.de-3 { grid-template-columns: 1fr; }
  .de-table { font-size: 14px; }
}

/* ---------- hero and spacing: German headlines run longer than English ---------- */
@media (min-width: 761px) { .hero .h1 { font-size: clamp(41px, 7vw, 78px); } }
.countries .sec-head { margin-bottom: clamp(30px, 4vw, 46px); }
@media (max-width: 760px) {
  .h1 .de-br { display: none; }
}
/* beside the headline (wide screens) the card would cover the end of the longer first line: lift it next to the eyebrow */
@media (min-width: 1181px) {
  .susp { top: calc(4% - 64px); }
}

/* ---------- German compounds are long (Massennachrichten, Sperrrisiko): hyphenate headings and table cells rather than overflow ---------- */
.h1, .h2, .lead, .xp-txt h3, .step h3, .trig h3, .de-table th, .de-table td, .ct-card b, .ct-card small, .inc li, .plan-list li { overflow-wrap: break-word; hyphens: auto; }
/* the German buy label ("Lebenslange Lizenz 2.499 US$ 397 US$") is wide: let the big buttons wrap and tighten them
   on phones so they never stick out of the price calculator or the CTA strips */
@media (max-width: 480px) {
  .btn-xl { padding-left: 16px; padding-right: 16px; font-size: 16px; }
  .dl-pair .btn, .cta-row .btn, .offer-cta { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* ---------- headline words: funnel.js wraps every word of a [data-split] headline in an inline-block span with
   white-space: pre, so one long German compound ("WhatsApp-Massennachrichten") sets the width of the whole hero on
   phones. Let those spans wrap at their hyphen, a soft hyphen or a hyphenation point instead. ---------- */
.js [data-split] .w, .js [data-split] .w > i { white-space: normal; max-width: 100%; }
@media (max-width: 480px) { .hero .h1 { font-size: clamp(30px, 9vw, 41px); } }
/* the eyebrow inside the headline is a flex row of those word spans: let it wrap on the narrowest phones */
.h1 .h1-brand { flex-wrap: wrap; justify-content: center; max-width: 100%; }
