/* Felt Club: Tannengrün, Messing, Papier. Schriften liegen auf dieser Domain
   (kein Google Fonts, keine externen Anfragen). */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --green: #0b241e;
  --green-soft: #12342b;
  --brass: #c9a45c;
  --paper: #f3eee3;
  --ink: #1b2a25;
  --muted: #5d6b64;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--green);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brass);
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.page {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 164, 92, 0.45);
  margin-bottom: 2rem;
}

.brand > a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  color: var(--paper);
  text-decoration: none;
}

.lang {
  font-size: 0.95rem;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.55rem, 6.5vw, 2.6rem);
  margin: 0 0 1rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
  color: var(--brass);
}

h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.3rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Rechtstexte stehen auf Papier. */
.doc {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1rem;
}

.doc h1 {
  color: var(--green);
}

.doc h2 {
  color: var(--green);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.25rem;
}

.doc a {
  color: #6a4f14;
}

.doc .muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.draft {
  border: 1px dashed #8a6d2b;
  background: #fbf3dc;
  color: #5a4510;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.97rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #d8cfba;
}

.footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(243, 238, 227, 0.75);
}

.footer a {
  margin: 0 0.6rem;
  white-space: nowrap;
}

/* Einladungsseite */
.card {
  background: var(--green-soft);
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.code {
  display: block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  word-break: break-all;
  background: var(--green);
  border: 1px solid var(--brass);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  margin: 0.5rem 0 0.8rem;
  color: var(--paper);
  user-select: all;
  -webkit-user-select: all;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--brass);
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--brass);
  color: var(--green);
}

html[data-lang="de"] .en,
html[data-lang="en"] .de {
  display: none;
}

.hidden {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.15s ease;
  }
}
