@font-face {
  font-family: "PT Sans";
  src: url("/static/fonts/PTSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("/static/fonts/PTSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat Brush";
  src: url("/static/fonts/CaveatBrush-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --green: #087443;
  --green-dark: #055a33;
  --green-light: #e7f3eb;
  --ayuda-blue: #343b8f;
  --text: #252422;
  --muted: #5d605d;
  --border: #d8d8d2;
  --error: #a5221b;
  --error-light: #fce8e6;
}

body {
  margin: 0;
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: #f8f5ef;
}

main {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}

.brand-header {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
}

.brand {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto;
}

h1 {
  margin: 0 0 12px;
  font-family: "Caveat Brush", "PT Sans", sans-serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--green);
}

.hero-title {
  position: relative;
  margin: 0 0 14px;
}

.hero-title h1 {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  margin: 0;
  font-size: 3rem;
  text-align: center;
  text-shadow: 0 1px 3px rgb(255 255 255 / 80%);
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgb(54 43 25 / 12%);
}

.lead {
  margin: 20px 0 24px;
  color: var(--muted);
}

.lead strong {
  color: var(--text);
}

.closing {
  font-family: "Caveat Brush", "PT Sans", sans-serif;
  font-size: 2.4rem;
  color: var(--green);
}

fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

legend {
  padding: 0 4px;
  font-weight: 700;
}

.quantity {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.quantity button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green);
  cursor: pointer;
}

.quantity button:disabled {
  color: var(--border);
  cursor: default;
}

.quantity input {
  width: 72px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.5rem;
  text-align: center;
}

.option {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.option input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--green);
}

.option.highlight {
  border-color: var(--green);
  background: var(--green-light);
}

.option:has(input:checked) {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.option-kind {
  min-height: 106px;
  padding: 0 0 0 12px;
  overflow: hidden;
}

.option-kind span {
  flex: 1;
  padding: 12px 0;
}

.option-kind img {
  align-self: stretch;
  width: 42%;
  height: auto;
  min-height: 104px;
  object-fit: cover;
  object-position: center;
}

.custom-amount {
  display: none;
  gap: 8px;
  align-items: center;
  margin: 4px 0 0 46px;
}

.payment-options:has(#option-custom:checked) .custom-amount {
  display: flex;
}

.custom-amount span {
  white-space: nowrap;
}

.custom-amount input {
  flex: 1;
  width: auto;
  max-width: 9em;
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
}

.hint {
  font-weight: 400;
  color: var(--muted);
}

.small {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ayuda-blue);
  outline-offset: 2px;
}

.project-share {
  margin: 14px 0;
  font-family: "Caveat Brush", "PT Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1.2;
  color: #bd4b40;
  text-align: center;
}

.project-share[hidden] {
  display: none;
}

.pay {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.pay:hover {
  background: var(--green-dark);
}

.pay:disabled {
  opacity: 0.6;
  cursor: default;
}

.error {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--error-light);
  color: var(--error);
}

a {
  color: var(--green-dark);
}

footer {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px 24px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

footer a {
  color: var(--muted);
}

.legal h1 {
  font-size: 2.8rem;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
}

.legal h3 {
  margin: 22px 0 6px;
  font-size: 1.05rem;
}

#impressum {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.legal p,
.legal li {
  overflow-wrap: anywhere;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin: 0 0 8px;
}
