/* Dorfgemeinschaft Airlenbach e.V. – temporäre Website */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe7;
  --paper-deep: #ebe3d6;
  --surface: #fffcf7;
  --ink: #2b2420;
  --ink-2: #4f4640;
  --brand: #6b5f57;
  --line: #ddd2c3;
  --line-strong: #b9ab99;
  --accent: #43603a;
  --accent-hover: #354d2d;
  --accent-soft: #e5eadb;
  --danger: #a1321c;
  --danger-soft: #f8e6df;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-small: 8px;
  --wrap: 1160px;
  --wrap-narrow: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow: 0 1px 2px rgb(43 36 32 / 0.05), 0 8px 24px -8px rgb(43 36 32 / 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  accent-color: var(--accent);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--paper);
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

::selection { background: var(--accent); color: #fff; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;

}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease-out);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 0.25s var(--ease-out); }


.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; }

.btn--ghost { border-color: var(--line-strong); }

.btn--link { padding-inline: 8px; color: var(--accent); }

.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

.btn--large { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }

.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header / Footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(244 239 231 / 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  text-decoration: none;
}
.brand img { width: 30px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__top { font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand__bottom { font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; }

.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}
.site-footer__name { color: var(--ink); font-weight: 650; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__nav a { color: var(--ink-2); text-decoration: none; }

/* ---------- Startseite ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  padding-block: clamp(32px, 6vw, 80px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero__title {
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 0.98;

}
.hero__title em {
  font-style: italic;
  color: var(--brand);
  font-weight: 480;
}
.hero__lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.hero__note .icon { color: var(--accent); }

.hero__tree {
  margin: 0;
  justify-self: center;
  width: min(100%, 400px);
}
.hero__tree img { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero__actions, .hero__note {
    animation: rise 0.9s var(--ease-out) both;
  }
  .hero__lead { animation-delay: 0.08s; }
  .hero__actions { animation-delay: 0.16s; }
  .hero__note { animation-delay: 0.24s; }
  .hero__tree img {
    transform-origin: 50% 100%;
    animation: grow 1.4s var(--ease-out) 0.1s both;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}
@keyframes grow {
  from { opacity: 0; transform: scale(0.94); filter: blur(6px); }
}

.contact {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr auto;
  gap: 24px 48px;
  align-items: start;
}
.contact__title { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.contact__name { font-weight: 650; font-size: 1.125rem; }
.contact__role { color: var(--ink-2); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list .icon { color: var(--brand); }
.contact__list a { color: var(--ink); text-decoration: none; }
.contact__action { justify-self: end; }

@media (max-width: 420px) {
  .brand__top { font-size: 0.75rem; }
  .brand__bottom { font-size: 1rem; }
  .btn--small { padding: 0 14px; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__tree { order: -1; width: min(40vw, 240px); justify-self: start; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__action { justify-self: stretch; }
  .contact__action .btn { width: 100%; }
}

/* ---------- Formular ---------- */

.form-intro { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.form-intro__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;

}
.form-intro__lead {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 34em;
}

.member-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice__option {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 18px 20px 18px 52px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice__option input {
  position: absolute;
  left: 20px; top: 21px;
  width: 20px; height: 20px;
  margin: 0;
}
.choice__title { font-weight: 650; }
.choice__text { color: var(--ink-2); font-size: 0.9375rem; }
.choice__option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.choice__option:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.choice .field__error { grid-column: 1 / -1; }

.member-form .section {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--line) !important;
}
.section__title {
  float: left;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section__title + * { clear: both; }
.section__text { color: var(--ink-2); margin-bottom: 20px; max-width: 36em; }
.section__note { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; max-width: 68ch; }

.sub-title {
  margin: 36px 0 16px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
}

.grid { display: grid; gap: 16px; }
.grid + .grid { margin-top: 16px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1fr 1fr 0.9fr; }
.grid--address { grid-template-columns: 2fr 0.8fr 1.4fr; }
.grid--iban { grid-template-columns: 2fr 1fr; }

@media (max-width: 680px) {
  .choice, .grid--2, .grid--3, .grid--iban { grid-template-columns: 1fr; }
  .grid--address { grid-template-columns: 7rem 1fr; }
  .grid--address .field:first-child { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label, .amounts__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--ink-2); font-size: 0.875rem; }

.field input, .field textarea, .amount-free input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder, .amount-free input::placeholder { color: #6f655e; }
.field input:focus, .field textarea:focus, .amount-free input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(67 96 58 / 0.18);
}
.field--mono input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field--mono input::placeholder { text-transform: none; letter-spacing: 0.02em; }

.field__hint { font-size: 0.875rem; color: var(--ink-2); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--danger);
}
.field__error .icon { margin-top: 0.2em; width: 1em; height: 1em; }
.has-error input, .has-error textarea, input[aria-invalid="true"] { border-color: var(--danger) !important; }
.has-error input:focus { box-shadow: 0 0 0 3px rgb(161 50 28 / 0.16) !important; }

/* Checkboxen */
.check {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 1px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  color: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}
.check__box .icon { width: 16px; height: 16px; stroke-width: 2.5; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--ease-out); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box, .check.has-error .check__box { border-color: var(--danger); }
.check__body { display: grid; gap: 6px; }
.check__label { font-weight: 600; }
.check__text { font-size: 0.9375rem; color: var(--ink-2); max-width: 68ch; }
.check--strong {
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
}
.check--strong:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* Spende aufklappen (ohne JS über :has) */
.donation {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  /* Zuklappen schneller als Aufklappen */
  transition: grid-template-rows 0.2s var(--ease-out), opacity 0.15s ease, visibility 0s linear 0.2s;
}
.donation__inner { overflow: hidden; min-height: 0; }
.section:has(#f-spende:checked) .donation {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition: grid-template-rows 0.3s var(--ease-out), opacity 0.25s ease 0.05s, visibility 0s;
}
.donation__inner > :first-child { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  .donation, .section:has(#f-spende:checked) .donation { transition: none; }
}

.amounts { display: grid; gap: 10px; }
.amounts__row { display: flex; flex-wrap: wrap; gap: 8px; }
.amount { position: relative; cursor: pointer; }
.amount input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.amount span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.amount input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.amount input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.amounts.has-error .amount span { border-color: var(--danger); }

.amount-free { display: none; position: relative; max-width: 220px; }
.amounts:has(#f-betrag-frei-radio:checked) .amount-free { display: block; }
.amount-free input { padding-right: 40px; font-variant-numeric: tabular-nums; }
.amount-free__unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; }

.mandate { margin-top: 28px; padding: 20px; background: var(--paper-deep); border-radius: var(--radius); }
.mandate__text { font-size: 0.875rem; color: var(--ink-2); max-width: 62ch; }
.mandate__text + .mandate__text { margin-top: 8px; }
.mandate .check { margin-top: 18px; }
.submit__text { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 16px; max-width: 62ch; }
.mandate .field__error { margin-top: 10px; }

/* Absenden */
.submit {
  margin-top: clamp(40px, 6vw, 56px);
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.submit > .field__error { margin-top: 10px; }
.submit__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}
.submit__secure { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.875rem; }
@media (max-width: 520px) {
  .submit__row .btn { width: 100%; }
}

/* Fehlerhinweis oben */
.alert {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px 20px;
  background: var(--danger-soft);
  border: 1px solid rgb(161 50 28 / 0.25);
  border-radius: var(--radius);
  color: var(--ink);
}
.alert:focus { outline: none; }
.alert > .icon { color: var(--danger); width: 22px; height: 22px; margin-top: 1px; }
.alert__title { font-weight: 650; }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert a { color: var(--danger); }

/* Bestätigung */
.done { padding-block: clamp(48px, 9vw, 112px) 0; }
.done__card {
  padding: clamp(28px, 6vw, 56px);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.done__card:focus { outline: none; }
.done__mark {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.done__mark .icon { width: 28px; height: 28px; stroke-width: 2.25; }
.done__title { margin-top: 28px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
.done__lead { margin-top: 16px; font-size: 1.1875rem; color: var(--ink); max-width: 34em; }
.done__small { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; max-width: 40em; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) {
  .done__mark { animation: pop 0.6s var(--ease-out) 0.1s both; }
  .done__mark .icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.5s var(--ease-out) 0.35s forwards; }
  .done__title, .done__lead, .done__small, .done__actions { animation: rise 0.8s var(--ease-out) both; }
  .done__lead { animation-delay: 0.06s; }
  .done__small { animation-delay: 0.12s; }
  .done__actions { animation-delay: 0.18s; }
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

.prose { padding-block: clamp(36px, 6vw, 72px) 0; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.03em; margin-bottom: 32px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin: 28px 0 8px; }
.prose p, .prose ul, .prose dl { max-width: 68ch; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0; }
.prose li + li { margin-top: 4px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.prose dt { color: var(--ink-2); }
.prose dd { margin: 0; overflow-wrap: anywhere; }
.prose .meta { margin-top: 48px; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 520px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 8px; } }

/* ---------- Verwaltung ---------- */

.admin { padding-block: 40px 0; }
.admin h1 { font-size: 2.25rem; margin-bottom: 8px; }
.admin__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.admin__login { max-width: 420px; margin-top: 24px; display: grid; gap: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.9375rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--paper-deep); font-weight: 650; font-size: 0.875rem; }
.admin-table td { font-variant-numeric: tabular-nums; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .is-done td { color: var(--ink-2); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-hover); }
.badge--muted { background: var(--paper-deep); color: var(--ink-2); }
.admin-detail { margin-top: 24px; padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-detail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 24px; margin: 16px 0 0; }
.admin-detail h2 { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .admin-detail { padding: 20px; }
  .admin-detail dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .admin-detail dl dd { margin-bottom: 10px; }
}
.admin-table td:nth-child(4) { min-width: 12rem; }
.admin-detail dt { color: var(--ink-2); }
.admin-detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.admin-actions form { margin: 0; }
.btn--danger { border-color: rgb(161 50 28 / 0.4); color: var(--danger); }
.table-scroll { overflow-x: auto; }

/* ---------- Touch & Hover ---------- */

a, button, label, input[type="checkbox"], input[type="radio"] { touch-action: manipulation; }
.amount span { -webkit-user-select: none; user-select: none; }
.amount:active span { transform: scale(0.97); }
.amount span { transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.1s var(--ease-out); }
.choice__option:active, .check--strong:active { transform: scale(0.995); }

.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Hover nur, wo es einen echten Mauszeiger gibt – sonst bleibt der Zustand nach dem Tippen hängen */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
  a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
  .btn--primary:hover { --btn-bg: var(--accent-hover); color: #fff; text-decoration: none; }
  .btn--ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
  .btn--link:hover { text-decoration: underline; }
  .btn--small.btn--ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
  .brand:hover { color: var(--ink); }
  .site-footer__nav a:hover { color: var(--ink); text-decoration: underline; }
  .contact__list a:hover { color: var(--accent); text-decoration: underline; }
  .choice__option:hover { border-color: var(--line-strong); }
  .field input:hover, .field textarea:hover, .amount-free input:hover { border-color: var(--line-strong); }
  .check:hover .check__box { border-color: var(--ink-2); }
  .amount:hover span { border-color: var(--line-strong); }
  .btn--danger:hover { border-color: var(--danger); color: var(--danger); }
}
