/* 60er Martin – plain CSS, no build step */

:root {
  --bg: #182620;
  --card: #f7f4ee;
  --accent: #c85a32;
  --accent-hover: #b04b26;
  --muted: #ebe5d8;
  --text: #2c3531;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 4rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
button, input, textarea, select { font: inherit; }
.hidden { display: none !important; }

/* Layout shell */
.wrap {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #fff;
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }
.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--stone-600);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--stone-300);
  text-decoration: none;
  transition: 0.15s;
}
.nav-admin:hover,
.nav-admin.is-active {
  border-color: var(--accent);
  color: #fff;
}
.site-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.site-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}
.site-footer a:hover { color: rgba(255, 255, 255, 0.8); }

/* Admin banner */
.admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #10b981;
  border-radius: 0 0 0.75rem 0.75rem;
  background: #047857;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.admin-banner-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-banner-logout {
  border: 0;
  border-radius: 0.25rem;
  background: #064e3b;
  color: #fff;
  font-size: 11px;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
}
.admin-banner-logout:hover { background: #022c22; }

/* Flash */
.flash {
  border-radius: var(--radius);
  border: 1px solid var(--stone-200);
  background: var(--card);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.flash-success { border-color: #a7f3d0; background: #ecfdf5; color: #064e3b; }
.flash-error { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: rgba(231, 229, 228, 0.85);
  color: var(--stone-800);
}
.btn-secondary:hover { background: var(--stone-300); }
.btn-danger {
  background: #dc2626;
  color: #fff;
  padding: 0.625rem 1.5rem;
}
.btn-danger:hover { background: #b91c1c; }
.btn-muted {
  background: var(--stone-300);
  color: var(--stone-800);
  padding: 0.625rem 1.5rem;
}
.btn-muted:hover { background: var(--stone-400); }
.btn-block { width: 100%; }
.btn-inline { width: auto; }

/* Forms */
.field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stone-700);
}
.field-input {
  width: 100%;
  border: 1px solid var(--stone-300);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.625rem;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
}
.field-input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.field-input::placeholder { color: var(--stone-400); }
textarea.field-input { min-height: 7rem; resize: vertical; }
.field-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 11px;
  color: var(--stone-400);
}
.field-errors {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: #b91c1c;
}
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-stack-lg { display: flex; flex-direction: column; gap: 1.25rem; }
.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Cards */
.card,
.surface-card {
  background: var(--card);
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .surface-card { padding: 2rem; }
}
.card-sm { border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08); }
.card-white {
  background: #fff;
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.stack-6 { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-5 { display: flex; flex-direction: column; gap: 1.25rem; }
.stack-4 { display: flex; flex-direction: column; gap: 1rem; }

.title-serif { font-family: var(--font-serif); font-weight: 700; }
.title-xl { font-size: 1.875rem; }
.title-lg { font-size: 1.5rem; }
.title-md { font-size: 1.25rem; }
.muted { color: var(--stone-500); font-size: 0.75rem; }
.text-soft { color: var(--stone-600); font-size: 0.875rem; line-height: 1.625; white-space: pre-line; }
.accent { color: var(--accent); }
.link-accent {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.link-accent:hover { color: var(--accent-hover); text-decoration: underline; }
.link-quiet {
  font-size: 0.75rem;
  color: var(--stone-600);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.link-quiet:hover { color: var(--stone-900); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
.hero-copy { display: flex; flex-direction: column; gap: 1rem; }
.hero-badge {
  display: inline-block;
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(200, 90, 50, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.hero-lead {
  max-width: 32rem;
  color: var(--stone-600);
  font-size: 1rem;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }
.hero-60-wrap { display: none; justify-content: center; }
.hero-60 {
  width: 11rem;
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(to bottom right, var(--accent), rgba(180, 83, 9, 0.8));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .hero { padding: 3rem; }
  .hero-grid { grid-template-columns: 2fr 1fr; }
  .hero-lead { font-size: 1.125rem; }
  .hero-60-wrap { display: flex; }
}

/* Info grid */
.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
.info-card { }
.info-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 1.125rem;
}
.info-icon-place { background: rgba(200, 90, 50, 0.1); color: var(--accent); }
.info-icon-weather { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.info-icon-food { background: rgba(5, 150, 105, 0.1); color: #047857; }
.info-icon-agenda { background: rgba(147, 51, 234, 0.1); color: #7e22ce; }
.weather-label { font-size: 0.75rem; color: var(--stone-400); }
.weather-status { margin-top: 0.5rem; font-size: 0.875rem; color: var(--stone-500); }
.weather-days {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--stone-600);
}
.weather-days li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
}
.weather-days li:last-child { border-bottom: 0; }
.weather-days strong { color: var(--stone-800); font-weight: 600; }

/* Signup / tabs */
.section-head {
  border-bottom: 1px solid var(--stone-200);
  padding-bottom: 1rem;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--stone-300);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone-500);
  cursor: pointer;
}
.tab:hover { color: var(--stone-800); }
.tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.unlock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: #fffbeb;
  padding: 1rem;
}
.credential-box { display: flex; flex-direction: column; gap: 0.75rem; }
.credential-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.or-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-top: 0.25rem;
}
.or-badge {
  display: inline-flex;
  justify-content: center;
  margin: -0.25rem 0;
}
.or-badge span,
.or-badge-desktop span {
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.or-badge-desktop { display: none; }
@media (min-width: 768px) {
  .or-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .or-badge { display: none; }
  .or-badge-desktop {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
}
.mark { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; }

/* Guest list */
.guest-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  padding-bottom: 1rem;
}
@media (min-width: 768px) {
  .guest-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.375rem 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.stat i { color: var(--stone-400); }
.stat span { color: var(--stone-500); }
.stat strong { color: var(--accent); font-weight: 700; }
.star { color: #f59e0b; font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.table thead {
  background: rgba(245, 245, 244, 0.8);
  color: var(--stone-600);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--stone-200);
}
.table th,
.table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}
.table tbody tr { border-bottom: 1px solid var(--stone-100); }
.table tbody tr:hover { background: rgba(250, 250, 249, 0.8); }
.table tbody tr.is-unlocked { background: rgba(255, 251, 235, 0.6); }
.table .num { text-align: center; font-weight: 700; color: var(--accent); }
.table .center { text-align: center; }
.table .empty { text-align: center; color: var(--stone-500); padding: 2rem 1rem; }

/* Admin / QR helpers */
.page-title-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}
.admin-logout {
  border: 1px solid var(--stone-600);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.admin-logout:hover { border-color: var(--accent); color: #fff; }
.divider { border-top: 1px solid var(--stone-200); padding-top: 1.25rem; margin-top: 0.25rem; }
.qr-admin-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .qr-admin-grid {
    grid-template-columns: 1fr 240px;
    align-items: start;
  }
}
.qr-preview {
  text-align: center;
}
.qr-preview img {
  margin: 0 auto;
  width: 100%;
  max-width: 200px;
}
.narrow { width: min(100%, 28rem); margin-inline: auto; }
.narrow-lg { width: min(100%, 42rem); margin-inline: auto; }
.center { text-align: center; }
.qr-frame {
  display: inline-block;
  margin-inline: auto;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.qr-frame img { width: min(100%, 320px); margin: 0 auto; }
.qr-meta {
  width: min(100%, 28rem);
  margin: 0 auto;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  background: rgba(235, 229, 216, 0.6);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--stone-700);
}
.qr-meta ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hint { font-size: 0.75rem; color: var(--stone-400); }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
