/* ============================================================
   Phonem Sprachschule — visa.phonem-sprachschule.de
   Shared stylesheet — mirrors plugin design tokens
   ============================================================ */

:root {
  --primary      : #879cfe;
  --primary-light: #a8b8ff;
  --primary-dark : #6b7ee8;
  --primary-soft : #eef0ff;
  --text         : #1e293b;
  --muted        : #64748b;
  --bg           : #ffffff;
  --soft         : #f5f7ff;
  --border       : #e2e8f4;
  --radius       : 14px;
  --radius-sm    : 8px;
  --shadow       : 0 4px 24px rgba(135,156,254,.13), 0 1px 6px rgba(0,0,0,.06);
  --shadow-sm    : 0 2px 10px rgba(135,156,254,.10);
  --green        : #10b981;
  --yellow       : #f59e0b;
  --red          : #ef4444;
  --max-width    : 820px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--soft);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switcher a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  text-decoration: none;
  letter-spacing: .1px;
  white-space: normal;
  text-align: center;
  word-break: break-word;
  height: auto;
  min-height: 44px;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px) scale(1.02); text-decoration: none; }

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,.15); }

.btn-outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.25); }

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-gradient:hover { box-shadow: var(--shadow); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { box-shadow: 0 6px 20px rgba(37,211,102,.4); }

.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Section ── */
.section {
  padding: 52px 0;
}
.section-alt {
  background: #fff;
}
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* ── Highlight box (Brazil rule + financial table) ── */
.highlight-box {
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
}
.highlight-box.green {
  border-left-color: var(--green);
  background: #f0fdf4;
}
.highlight-box.yellow {
  border-left-color: var(--yellow);
  background: #fffbeb;
}
.highlight-box-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.highlight-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.highlight-box p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Financial table ── */
.finance-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.finance-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.finance-table td {
  padding: 13px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.finance-table tr:last-child td { border-bottom: none; }
.finance-table tr:nth-child(even) td { background: var(--soft); }
.finance-table .amount {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.finance-table .label-muted { color: var(--muted); font-size: 0.82rem; }
.finance-table .course-row td:first-child { border-left: 3px solid var(--green); }

/* ── Checklist ── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.55;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
  margin-top: 2px;
}

/* ── Trust anchors ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-item-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.trust-item-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.trust-item-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Contact form ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 640px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.contact-info p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pform label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 5px;
}
.pform input,
.pform textarea,
.pform select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text);
  background: #fff;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.pform input:focus,
.pform textarea:focus,
.pform select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(135,156,254,.15);
}
.pform textarea { resize: vertical; min-height: 110px; }
.pform .field { margin-bottom: 14px; }
.pform .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .pform .field-row { grid-template-columns: 1fr; }
}
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  margin-top: 10px;
}
.form-status.success { background: #f0fdf4; color: #059669; border: 1px solid #a7f3d0; display: block; }
.form-status.error   { background: #fff5f5; color: #dc2626; border: 1px solid #fecaca; display: block; }

/* ── Legal / note box ── */
.note-box {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}
.note-box strong { color: var(--text); }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 32px 0;
  margin-top: 0;
  font-size: 0.84rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }

/* ── Utility ── */
.text-muted  { color: var(--muted); }
.text-small  { font-size: 0.82rem; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.badge-green { background: #dcfce7; color: #15803d; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .section { padding: 36px 0; }
  .hero { padding: 40px 0 36px; }
  .card { padding: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .btn-lg { width: 100%; }
  .contact-actions { align-items: stretch; }
  .contact-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ── RTL support (Arabic) ── */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .highlight-box {
  border-left: none;
  border-right: 4px solid var(--primary);
}
[dir="rtl"] .highlight-box.green {
  border-right-color: var(--green);
  border-left: none;
}
[dir="rtl"] .highlight-box.yellow {
  border-right-color: var(--yellow);
  border-left: none;
}
[dir="rtl"] .checklist li {
  flex-direction: row-reverse;
}
[dir="rtl"] .finance-table .course-row td:first-child {
  border-left: none;
  border-right: 3px solid var(--green);
}
[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-wrap {
  direction: rtl;
}
[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .hero-cta {
  direction: rtl;
}
[dir="rtl"] .note-box {
  border-left: none;
  border-right: 3px solid var(--border);
  text-align: right;
}
[dir="rtl"] .trust-item {
  direction: rtl;
}
[dir="rtl"] .pform {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .pform input,
[dir="rtl"] .pform textarea {
  text-align: right;
  direction: rtl;
}

/* ── Mobile language switcher ── */
.lang-select {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 28px 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23879cfe'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--muted);
  cursor: pointer;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}
@media (max-width: 680px) {
  .lang-switcher {
    overflow-x: auto;
    scrollbar-width: none;
    max-width: calc(100vw - 160px);
    flex-wrap: nowrap;
  }
  .lang-switcher::-webkit-scrollbar { display: none; }
  .lang-switcher a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ── Steps block ── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.step > div strong {
  display: block;
  font-size: 0.97rem;
  color: var(--text);
}
.step > div p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
[dir="rtl"] .step {
  flex-direction: row-reverse;
  text-align: right;
}

/* ── Form field hint ── */
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--muted);
}
.field-hint a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

