/* ═══════════════════════════════════════════════════════════════
   TVETMap Ausbildung — Shared Stylesheet
   Used by both single-ausbildung_trade.php and archive template
═══════════════════════════════════════════════════════════════ */

.tvma-wrap *, .tvma-wrap *::before, .tvma-wrap *::after,
.tvma-archive *, .tvma-archive *::before, .tvma-archive *::after { box-sizing: border-box; }

.tvma-wrap, .tvma-archive {
  --navy:#0B1F3A; --amber:#E8930A; --sage:#3D7A5B;
  --chalk:#F7F5F0; --smoke:#6B7280; --white:#FFFFFF;
  --radius:8px; --max-w:1080px;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--navy); background:var(--chalk);
  font-size:16px; line-height:1.65; -webkit-font-smoothing:antialiased;
}

/* BREADCRUMB */
.tvma-breadcrumb{max-width:var(--max-w);margin:16px auto;padding:0 24px;font-size:.8rem;color:var(--smoke);display:flex;gap:8px;flex-wrap:wrap;}
.tvma-breadcrumb a{color:var(--smoke);text-decoration:none;}
.tvma-breadcrumb a:hover{color:var(--amber);}
.tvma-breadcrumb span{color:var(--amber);}

/* TOC */
.tvma-toc{background:var(--white);border-bottom:1px solid #E5E3DD;padding:12px 24px;position:sticky;top:0;z-index:40;overflow-x:auto;}
.tvma-toc-in{max-width:var(--max-w);margin:0 auto;display:flex;gap:14px;align-items:center;white-space:nowrap;font-size:.8rem;}
.tvma-toc-in strong{color:var(--navy);flex-shrink:0;}
.tvma-toc-in a{color:var(--smoke);text-decoration:none;font-weight:600;}
.tvma-toc-in a:hover{color:var(--amber);}

/* HERO */
.tvma-hero{background:var(--navy);padding:56px 24px 64px;position:relative;overflow:hidden;}
.tvma-hero::after{content:'';position:absolute;right:-80px;top:-60px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(232,147,10,.12) 0%,transparent 70%);pointer-events:none;}
.tvma-hero-inner{max-width:var(--max-w);margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:start;}
.tvma-eyebrow{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--amber);font-weight:700;margin-bottom:14px;}
.tvma-hero h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.9rem,5vw,3.1rem);font-weight:700;color:var(--white);line-height:1.1;margin:0 0 20px;}
.tvma-hero h1 .de-title{display:block;font-size:.52em;font-weight:300;color:rgba(255,255,255,.55);margin-top:6px;}
.tvma-hero-meta{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:24px;}
.tvma-badge{display:flex;flex-direction:column;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius);padding:12px 18px;min-width:120px;}
.tvma-badge .val{font-family:Georgia,serif;font-size:1.55rem;font-weight:700;color:var(--amber);line-height:1;}
.tvma-badge .lbl{font-size:.7rem;color:rgba(255,255,255,.5);margin-top:4px;}
.tvma-demand-pill{display:inline-flex;align-items:center;gap:6px;border-radius:40px;padding:6px 14px;font-size:.78rem;font-weight:700;}
.tvma-demand-pill::before{content:'●';font-size:.6rem;}
.tvma-demand-pill.critical{background:rgba(220,38,38,.18);border:1px solid rgba(220,38,38,.4);color:#fca5a5;}
.tvma-demand-pill.high{background:rgba(232,147,10,.18);border:1px solid rgba(232,147,10,.4);color:var(--amber);}
.tvma-demand-pill.medium{background:rgba(61,122,91,.2);border:1px solid rgba(61,122,91,.4);color:#7fd4a4;}
.tvma-visa-note{font-size:.82rem;color:rgba(255,255,255,.5);border-left:2px solid var(--amber);padding-left:12px;max-width:480px;margin-top:18px;}
.tvma-visa-note strong{color:rgba(255,255,255,.85);}
.tvma-flag-card{background:var(--white);border-radius:var(--radius);overflow:hidden;min-width:130px;box-shadow:0 8px 32px rgba(0,0,0,.25);display:flex;flex-direction:column;}
.tvma-flag-strip.black{background:#1a1a1a;height:10px;}
.tvma-flag-strip.red{background:#DD0000;height:10px;}
.tvma-flag-strip.gold{background:#FFCE00;height:10px;}
.tvma-flag-body{padding:14px 16px;text-align:center;}
.tvma-flag-body .cat-icon{font-size:1.9rem;display:block;margin-bottom:8px;}
.tvma-flag-body .cat-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;color:var(--smoke);font-weight:600;}

/* SECTION */
.tvma-section{max-width:var(--max-w);margin:48px auto 0;padding:0 24px;}
.tvma-section-h{font-family:Georgia,serif;font-size:1.55rem;font-weight:700;color:var(--navy);margin-bottom:6px;}
.tvma-section-sub{color:var(--smoke);font-size:.9rem;margin-bottom:24px;}
.tvma-h3{font-family:Georgia,serif;font-size:1.1rem;font-weight:700;color:var(--navy);margin:24px 0 12px;}
.tvma-prose{font-size:.94rem;color:var(--navy);margin-bottom:14px;line-height:1.75;}
.tvma-prose-sm{font-size:.86rem;color:var(--smoke);margin-bottom:10px;line-height:1.7;}

/* SALARY */
.tvma-salary-track{background:var(--white);border-radius:12px;padding:36px;box-shadow:0 2px 12px rgba(11,31,58,.07);position:relative;overflow:hidden;}
.tvma-salary-years{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:28px;}
.tvma-year-col{display:flex;flex-direction:column;align-items:flex-start;}
.tvma-year-lbl{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--smoke);font-weight:600;margin-bottom:5px;}
.tvma-year-amt{font-family:Georgia,serif;font-size:1.75rem;font-weight:700;color:var(--navy);line-height:1;}
.tvma-year-amt span{font-size:.85rem;font-weight:400;color:var(--smoke);}
.tvma-year-note{font-size:.7rem;color:var(--smoke);margin-top:4px;}
.tvma-bar-track{background:#E5E7EB;border-radius:6px;height:12px;overflow:hidden;margin-bottom:8px;}
.tvma-bar-fill{height:100%;border-radius:6px;width:0;transition:width 1.2s cubic-bezier(.25,1,.5,1);background:linear-gradient(90deg,var(--sage) 0%,var(--amber) 100%);}
.tvma-bar-labels{display:flex;justify-content:space-between;font-size:.7rem;color:var(--smoke);}
.tvma-note-box{background:#EFF6FF;border-left:3px solid #3B82F6;border-radius:0 var(--radius) var(--radius) 0;padding:12px 16px;font-size:.82rem;color:#1E40AF;margin:18px 0;}
.tvma-warning-box{background:#FEF2F2;border-left:3px solid #EF4444;border-radius:0 var(--radius) var(--radius) 0;padding:12px 16px;font-size:.82rem;color:#991B1B;margin:14px 0;}
.tvma-notes-list{margin-top:16px;}

/* TABLES */
.tvma-attr{width:100%;border-collapse:collapse;margin-bottom:8px;}
.tvma-attr tr:not(:last-child) td{border-bottom:1px solid #F1F0ED;}
.tvma-attr td{padding:11px 0;vertical-align:top;font-size:.87rem;}
.tvma-attr td:first-child{color:var(--navy);font-size:.84rem;width:42%;font-weight:600;}
.tvma-attr td:last-child{color:var(--smoke);}
.tvma-level-badge{display:inline-flex;align-items:center;background:#FFF3CD;color:#92400E;border-radius:4px;padding:2px 8px;font-size:.78rem;font-weight:700;}
.tvma-mini-pill{font-size:.65rem;font-weight:700;padding:2px 7px;border-radius:20px;margin-left:6px;}
.status-needed{background:#FEF3C7;color:#92400E;}
.status-bonus{background:#D1FAE5;color:#065F46;}
.status-optional{background:#F3F4F6;color:var(--smoke);}

.tvma-compare{width:100%;border-collapse:collapse;background:var(--white);border-radius:10px;overflow:hidden;box-shadow:0 2px 12px rgba(11,31,58,.07);margin-bottom:24px;}
.tvma-compare th{background:var(--navy);color:#fff;padding:12px 14px;text-align:left;font-size:.8rem;}
.tvma-compare td{padding:11px 14px;font-size:.85rem;border-bottom:1px solid #F1F0ED;}
.tvma-compare tr:last-child td{border-bottom:none;}

/* CARDS */
.tvma-card{background:var(--white);border-radius:12px;padding:24px;box-shadow:0 2px 12px rgba(11,31,58,.07);}
.tvma-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px;}
.tvma-three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px;}
.tvma-mini-card{background:var(--white);border:1px solid #E5E3DD;border-radius:10px;padding:18px;}
.tvma-bullet-list{margin:0 0 16px;padding-left:20px;}
.tvma-bullet-list li{font-size:.86rem;color:var(--smoke);margin-bottom:7px;line-height:1.6;}

/* STEPS */
.tvma-steps-deep{display:flex;flex-direction:column;gap:24px;}
.tvma-step-deep{background:var(--white);border-radius:12px;padding:24px;box-shadow:0 2px 12px rgba(11,31,58,.07);scroll-margin-top:60px;}
.tvma-step-deep-head{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.tvma-step-num{background:var(--navy);color:#fff;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;}
.tvma-step-icon{font-size:1.4rem;}
.tvma-step-time{font-size:.75rem;color:var(--amber);font-weight:600;}

/* COUNTRY BLOCKS */
.tvma-country-block{background:var(--white);border-radius:12px;padding:24px;box-shadow:0 2px 12px rgba(11,31,58,.07);margin-bottom:18px;}

/* CAREER TRACK */
.tvma-career-track{display:flex;flex-direction:column;gap:16px;margin-bottom:20px;}
.tvma-career-stage{display:grid;grid-template-columns:48px 1fr;gap:16px;background:var(--white);border-radius:10px;padding:18px;box-shadow:0 2px 12px rgba(11,31,58,.07);}
.tvma-career-num{background:var(--amber);color:var(--navy);width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;}
.tvma-career-salary{display:inline-block;background:#D1FAE5;color:#065F46;font-size:.78rem;font-weight:700;padding:2px 10px;border-radius:20px;margin-left:10px;}

/* THEMES */
.tvma-theme-block{background:var(--white);border-left:3px solid var(--sage);border-radius:0 10px 10px 0;padding:18px 20px;margin-bottom:14px;box-shadow:0 2px 12px rgba(11,31,58,.05);}

/* CTA */
.tvma-cta-card-full{background:var(--navy);border-radius:12px;padding:32px;text-align:center;}
.tvma-cta-card-full h3{font-family:Georgia,serif;color:#fff;font-size:1.3rem;margin:0 0 10px;}
.tvma-cta-card-full p{color:rgba(255,255,255,.6);font-size:.9rem;margin:0 0 20px;}
.tvma-btn-primary-inline{display:inline-block;background:var(--amber);color:var(--navy);font-weight:700;padding:13px 32px;border-radius:var(--radius);text-decoration:none;}

/* CHECKLIST */
.tvma-checklist-ul{list-style:none;padding:0;margin:0 0 20px;}
.tvma-checklist-ul li{background:var(--white);padding:10px 14px;border-radius:6px;margin-bottom:6px;font-size:.85rem;border-left:3px solid var(--sage);}
.tvma-checklist-ul li.optional{border-left-color:#D1D5DB;}

/* FAQ */
.tvma-faq-section{max-width:var(--max-w);margin:48px auto;padding:0 24px;}
.tvma-faq-item{border-bottom:1px solid #E5E3DD;background:var(--white);margin-bottom:2px;border-radius:6px;}
.tvma-faq-q{width:100%;text-align:left;background:none;border:none;cursor:pointer;padding:17px 16px;display:flex;justify-content:space-between;align-items:center;font-family:system-ui,sans-serif;font-size:.92rem;font-weight:700;color:var(--navy);gap:16px;}
.tvma-faq-q .arrow{color:var(--amber);font-size:1.2rem;flex-shrink:0;transition:transform .25s;}
.tvma-faq-q[aria-expanded="true"] .arrow{transform:rotate(45deg);}
.tvma-faq-a{font-size:.86rem;color:var(--smoke);max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s;padding:0 16px;}
.tvma-faq-a.open{max-height:320px;padding:0 16px 17px;}

/* RELATED / SCHOOLS */
.tvma-related{background:var(--white);padding:44px 24px;}
.tvma-related-in{max-width:var(--max-w);margin:0 auto;}
.tvma-related h2{font-family:Georgia,serif;font-size:1.45rem;color:var(--navy);margin:0 0 20px;}
.tvma-schools-section{max-width:var(--max-w);margin:0 auto 48px;padding:0 24px;}
.tvma-trades-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;}
.tvma-trade-card{border:1px solid #E5E3DD;border-radius:var(--radius);padding:16px;text-decoration:none;display:flex;flex-direction:column;gap:5px;background:var(--white);transition:box-shadow .15s,border-color .15s;}
.tvma-trade-card:hover{box-shadow:0 4px 16px rgba(11,31,58,.1);border-color:var(--amber);}
.tvma-trade-card .tc-cat{font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;color:var(--smoke);font-weight:600;}
.tvma-trade-card .tc-name{font-size:.9rem;font-weight:700;color:var(--navy);line-height:1.3;}
.tvma-trade-card .tc-sal{font-size:.77rem;color:var(--sage);font-weight:600;}

/* RESPONSIVE */
@media(max-width:768px){
  .tvma-hero-inner{grid-template-columns:1fr;}
  .tvma-flag-card{display:none;}
  .tvma-salary-years{grid-template-columns:1fr;gap:12px;}
  .tvma-two-col,.tvma-three-col{grid-template-columns:1fr;}
  .tvma-hero h1{font-size:1.85rem;}
  .tvma-compare{font-size:.78rem;display:block;overflow-x:auto;}
}
@media(prefers-reduced-motion:reduce){.tvma-bar-fill,.tvma-faq-a{transition:none;}}
