/* machtsgut.de — emigration tools and country guides */

.mg-tool { background: linear-gradient(135deg, #fff8e8, #fff); border: 2px solid #f4d35e;
  border-radius: 12px; padding: 1.5rem; margin: 0 0 2rem; }
.mg-tool h2 { margin-top: 0; }

.mg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin: 1.5rem 0; }
.mg-card { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.2rem; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s; display: block; }
.mg-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: var(--accent); text-decoration: none; }
.mg-card-icon { font-size: 2.2rem; margin-bottom: .35rem; }
.mg-card h3 { margin: 0 0 .25rem; color: var(--accent); font-size: 1.05rem; }
.mg-card p  { color: #555; font-size: .85rem; margin: 0; }

/* Country tiles */
.mg-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .65rem; margin: 1rem 0; }
.mg-country { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: .85rem 1rem; text-decoration: none; color: inherit;
  transition: border-color .15s; display: flex; gap: .5rem; align-items: center; }
.mg-country:hover { border-color: var(--accent); }
.mg-country .flag { font-size: 1.8rem; }
.mg-country .nm   { font-weight: 600; color: var(--accent); }
.mg-country .rg   { color: #888; font-size: .75rem; }

.mg-filter { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: .8rem 1rem; margin: 1rem 0; }
.mg-filter label { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .9rem; color: #555; }

/* Country detail page */
.mg-country-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.mg-country-head .flag { font-size: 3.5rem; line-height: 1; }
.mg-country-head h1 { margin: 0; }
.mg-country-head .meta { color: #666; font-size: .9rem; }

.mg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .8rem; margin: 1rem 0 1.5rem; }
.mg-fact { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: .8rem 1rem; }
.mg-fact .lbl { color: #888; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.mg-fact .val { font-weight: 700; font-size: 1.1rem; color: var(--accent); margin-top: .2rem; }

.mg-section { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.2rem; margin: 1rem 0; }
.mg-section h2, .mg-section h3 { margin-top: 0; }
.mg-section ul { padding-left: 1.4em; }
.mg-section li { margin: .25rem 0; }

.mg-warn { background: #fff3cd; border: 1px solid #ffe69c; border-radius: 8px;
  padding: .8rem 1rem; color: #5a4500; font-size: .9rem; margin: 1rem 0; }

.mg-pill { display: inline-block; padding: .15rem .6rem; border-radius: 12px;
  background: #e8f0fe; color: var(--accent); font-size: .8rem; margin: .1rem .15rem .1rem 0; }
.mg-pill.warn { background: #fff3cd; color: #5a4500; }
.mg-pill.bad  { background: #f8d7da; color: #721c24; }
.mg-pill.good { background: #d4edda; color: #155724; }

/* Comparison matrix */
.mg-compare { width: 100%; border-collapse: collapse; margin: 1rem 0; background: #fff; }
.mg-compare th, .mg-compare td { padding: .55rem .8rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.mg-compare th { background: #f5f7fa; color: #333; }
.mg-compare th.country { font-size: 1rem; text-align: center; }
.mg-compare td { font-size: .9rem; }

/* Forms */
.mg-form { display: grid; gap: .8rem; }
.mg-form label { display: flex; flex-direction: column; gap: .25rem; color: #555; font-size: .9rem; }
.mg-form input[type=number], .mg-form input[type=text], .mg-form select {
  padding: .55rem .75rem; border: 2px solid var(--border); border-radius: 6px;
  font-family: monospace; font-size: 1rem; }
.mg-form input:focus, .mg-form select:focus { outline: none; border-color: var(--accent); }
.mg-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 600px) { .mg-form .row2 { grid-template-columns: 1fr; } }

.mg-result { background: linear-gradient(135deg, #e8f0fe, #fff); border: 2px solid var(--accent);
  border-radius: 12px; padding: 1.5rem; margin: 1rem 0; text-align: center; }
.mg-result .num { font-size: 3rem; font-weight: 800; color: var(--accent); font-family: monospace;
  font-variant-numeric: tabular-nums; }
.mg-result .lbl { color: #666; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

/* Checklist */
.mg-check-group { background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.2rem; margin: 1rem 0; }
.mg-check-group h3 { margin-top: 0; }
.mg-check-item { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .6rem; align-items: flex-start; }
.mg-check-item:last-child { border-bottom: none; }
.mg-check-item input[type=checkbox] { margin-top: .15rem; width: 1.2em; height: 1.2em; }
.mg-check-item.done .lbl { text-decoration: line-through; color: #999; }
.mg-check-item .lbl { font-weight: 500; }
.mg-check-item .lt   { color: #888; font-size: .8rem; margin-left: .5rem; white-space: nowrap; }
.mg-check-item .why  { display: block; color: #555; font-size: .85rem; margin-top: .15rem; }
.mg-progress { background: #f5f7fa; border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.mg-progress .bar { background: var(--border); height: 14px; border-radius: 7px; overflow: hidden; }
.mg-progress .fill { background: var(--accent); height: 100%; transition: width .25s; }
