* { box-sizing: border-box; }

:root {
  --forest: #33513c;
  --forest-dark: #22392a;
  --amber: #d9822b;
  --amber-dark: #b8681c;
  --cream: #fbf3e7;
}

body {
  font-family: system-ui, sans-serif;
  color: #241f1a;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  background: var(--cream);
}

.container {
  max-width: 480px;
  margin: 32px auto;
  padding: 28px 20px;
  background: #fffcf6;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(34, 25, 15, 0.10);
}
.container.wide { max-width: 900px; }

h1 { font-size: 1.35rem; line-height: 1.3; color: var(--forest-dark); margin-top: 0; }
h2 { font-size: 1.05rem; margin-top: 28px; color: var(--forest-dark); }

form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
form.form-row { flex-direction: row; flex-wrap: wrap; }
form.form-row input, form.form-row select { flex: 1 1 160px; }
.container.wide form:not(.form-row) { max-width: 480px; margin-left: auto; margin-right: auto; }

/* font-size 16px verhindert automatisches Reinzoomen beim Fokussieren auf iOS */
input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6cabb;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--amber); outline-offset: 1px; }

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease;
}
button:hover { background: var(--forest-dark); }
button:disabled { opacity: 0.6; cursor: default; }

.card {
  background: #fff;
  border: 1px solid #e8ddcb;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 3px 10px rgba(34, 25, 15, 0.06);
}
.code { font-size: 1.3rem; font-weight: bold; letter-spacing: 1px; word-break: break-all; color: var(--forest-dark); }
.error { color: #b3261e; font-size: 0.9rem; }
.hint { font-size: 0.85rem; color: #6b6055; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
table.table-wide { min-width: 640px; }
th { text-align: left; padding: 10px 8px; font-size: 0.85rem; background: var(--forest); color: #fff; }
td { text-align: left; padding: 8px; border-bottom: 1px solid #eee2d1; font-size: 0.9rem; white-space: nowrap; }

a { color: var(--forest); font-weight: 600; }
a:hover { color: var(--amber-dark); }
.btn-link { display: inline-block; padding: 8px 14px; border-radius: 8px; color: white; text-decoration: none; font-size: 0.9rem; font-weight: 600; }

.wallet-btn { display: block; text-align: center; text-decoration: none; padding: 12px; border-radius: 8px; margin-top: 10px; font-weight: bold; min-height: 44px; }
.apple-btn { background: #000; color: #fff; }
.google-btn { background: #fff; color: var(--forest); border: 1px solid var(--forest); }

.logo-header { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto 20px; border-radius: 12px; }
.container.wide .logo-header { max-width: 100%; }

@media (max-width: 480px) {
  .container { margin: 16px auto; padding: 20px 16px; border-radius: 14px; }
  h1 { font-size: 1.15rem; }
}
