/* Einheiten-Umrechner — metrisch ↔ US (seit 2026-10-27)
   Gemeinsam für /helfer/einheiten-umrechner.html und /en/tools/unit-converter.html.
   Uses global CSS variables from styles.css (Cream-Theme)
   Prefix: eu- (classes), --eu-* (custom properties); Aufbau wie heumengen-rechner.css */

.eu {
  --eu-accent:      #c89f3b;
  --eu-accent-deep: #8a6a1f;
  --eu-card-bg:     var(--bg-soft);
  --eu-card-border: var(--line);

  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 var(--pad-x, clamp(20px, 5vw, 80px));
  font-family: var(--font-body);
  color: var(--ink);
}

/* ═══════ Header ═══════ */
.eu-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 36px;
}
.eu-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--eu-accent-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.eu-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}
.eu-lede {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  opacity: 0.85;
}

/* ═══════ Layout ═══════ */
.eu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 880px) {
  .eu-grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
}

/* ═══════ Cards ═══════ */
.eu-card {
  background: var(--eu-card-bg);
  border: 1px solid var(--eu-card-border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.18);
}
.eu-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eu-card h2::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--eu-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════ Richtung (Segmente) ═══════ */
.eu-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-warm);
}
.eu-dir button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  min-height: 40px;
  cursor: pointer;
}
.eu-dir button[aria-pressed="true"] { background: var(--ink); color: var(--bg-soft); }
.eu-dir button:focus-visible { outline: 2px solid var(--eu-accent-deep); outline-offset: 2px; }

/* ═══════ Felder ═══════ */
.eu-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 520px) {
  .eu-2col { grid-template-columns: 1fr 1.3fr; }
}
.eu-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eu input,
.eu select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-soft);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.eu input:focus,
.eu select:focus {
  outline: none;
  border-color: var(--eu-accent);
  box-shadow: 0 0 0 3px rgba(200, 159, 59, 0.22);
}
.eu select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231f3a32' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.eu-help {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  opacity: 0.8;
  line-height: 1.5;
}

/* ═══════ Ergebnis ═══════ */
.eu-result {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--eu-accent);
}
.eu-result__from {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 6px 0;
}
.eu-result__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ═══════ Typische Werte ═══════ */
.eu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.eu-table th,
.eu-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--line);
}
.eu-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eu-table td:nth-child(2),
.eu-table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.eu-table small { display: block; color: var(--ink-soft); font-size: 13px; }
.eu-table a { color: var(--accent-deep, #087048); }
@media (max-width: 520px) {
  .eu-table { font-size: 14px; }
  .eu-table td:nth-child(2), .eu-table td:nth-child(3) { white-space: normal; }
}

/* ═══════ Footer / Quellen ═══════ */
.eu-footer {
  margin-top: 80px;
  padding: 64px 24px;
  background: #faf6ed;
  border-top: 1px solid rgba(15, 27, 45, 0.18);
  color: #0F1B2D;
}
.eu-footer__inner { max-width: 720px; margin: 0 auto; }
.eu-footer h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px 0;
  line-height: 1.25;
}
.eu-footer h3 + h3,
.eu-footer ul + h3 { margin-top: 32px; }
.eu-footer ul { margin: 0 0 16px 0; padding: 0; list-style: none; }
.eu-footer li {
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D45;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}
.eu-footer li::before { content: "-"; position: absolute; left: 0; color: var(--eu-accent, #c89f3b); }
.eu-disclaimer {
  margin-top: 24px;
  padding: 18px 22px;
  background: #fffdf9;
  border: 1px solid rgba(15, 27, 45, 0.12);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
  color: #1F2D45;
}

@media (max-width: 600px) {
  .eu-footer { padding: 48px 16px; }
  .eu-footer h3 { font-size: 18px; }
  .eu-footer li { font-size: 14px; }
}
