:root {
  color-scheme: light;
  --ink: #24160f;
  --brown: #2b1a12;
  --brown-soft: #5b3b27;
  --gold: #ad7f2f;
  --gold-soft: #e2c078;
  --paper: #f4efe6;
  --white: #fffdf8;
  --blue: #135f9f;
  --blue-dark: #0d3d67;
  --sage: #6f7e67;
  --line: rgba(43, 26, 18, 0.16);
  --muted: #6d6158;
  --shadow: 0 22px 52px rgba(43, 26, 18, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(19, 95, 159, 0.08) 0, rgba(19, 95, 159, 0) 320px),
    linear-gradient(90deg, rgba(43, 26, 18, 0.045) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(0deg, rgba(173, 127, 47, 0.07) 1px, transparent 1px) 0 0 / 92px 92px,
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.site-head,
.head-tools,
.language-switcher,
.hero-actions,
.button,
.site-foot,
.footer-links,
.rsvp-choice,
.text-button {
  display: flex;
  align-items: center;
}

.site-head {
  min-height: 94px;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brown);
  font-weight: 800;
  text-decoration: none;
}

.identity img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-tools {
  justify-content: flex-end;
  gap: 18px;
}

.head-link {
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.head-link:hover,
.site-foot a:hover,
.text-button:hover {
  color: var(--blue-dark);
}

.language-switcher {
  gap: 8px;
}

.language-switcher a {
  min-width: 52px;
  min-height: 38px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.language-switcher a.is-active {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.language-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(36, 22, 15, 0.18);
}

.flag-de {
  background: linear-gradient(#111 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}

.flag-by {
  background:
    linear-gradient(135deg, #fff 0 24%, transparent 24% 100%) 0 0 / 12px 12px,
    linear-gradient(135deg, transparent 0 50%, #fff 50% 74%, transparent 74% 100%) 0 0 / 12px 12px,
    #1682c5;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 60px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gold);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: 5.4rem;
  line-height: 1;
}

h2 {
  font-size: 3.2rem;
  line-height: 1.02;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--brown-soft);
  font-size: 1.34rem;
  line-height: 1.52;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.text-button {
  min-height: 48px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brown);
  color: #fff;
  box-shadow: 0 14px 34px rgba(43, 26, 18, 0.22);
}

.button-primary:hover {
  background: #452817;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--brown);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.text-button {
  width: fit-content;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brown);
}

.hero-mark {
  width: min(100%, 310px);
  justify-self: center;
  margin: 0;
}

.hero-signet {
  aspect-ratio: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(43, 26, 18, 0.16));
}

.calendar-status,
.initiator-role {
  display: block;
  margin-bottom: 9px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.initiator-card p {
  margin: 0;
  color: var(--brown-soft);
}

.section {
  padding: 74px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-intro p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--brown-soft);
  font-size: 1.12rem;
}

.history-copy {
  display: grid;
  gap: 22px;
  max-width: 880px;
}

.history-copy p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 1.05rem;
}

.initiator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calendar-board {
  max-width: 980px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 18px;
  padding: 0 22px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-list {
  display: grid;
  gap: 12px;
}

.calendar-event {
  min-width: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(43, 26, 18, 0.08);
}

.calendar-date,
.calendar-main,
.calendar-impulse {
  min-width: 0;
  padding: 20px 22px;
}

.calendar-date {
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: rgba(19, 95, 159, 0.08);
}

.calendar-date span,
.calendar-impulse span {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-date strong {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
}

.calendar-main h3 {
  font-size: 1.6rem;
}

.calendar-main p,
.calendar-impulse p {
  margin: 9px 0 0;
  color: var(--brown-soft);
}

.calendar-impulse {
  border-left: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.42);
}

.calendar-link {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--brown);
  font-weight: 850;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(43, 26, 18, 0.08);
}

.faq-item summary {
  width: 100%;
  color: var(--brown);
  font-size: 1.05rem;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--brown-soft);
}

.initiator-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(43, 26, 18, 0.08);
}

.initiator-card {
  overflow: hidden;
}

.initiator-face {
  position: relative;
  aspect-ratio: 1.2;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 253, 248, 0.74), transparent 58%),
    linear-gradient(135deg, rgba(19, 95, 159, 0.18), rgba(173, 127, 47, 0.26));
}

.initiator-face img {
  width: 52%;
  height: 52%;
  object-fit: contain;
}

.initiator-face.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 44%;
}

.initiator-face figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  background: rgba(36, 22, 15, 0.74);
  color: #fffdf8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.initiator-body {
  padding: 22px;
}

details {
  margin-top: 14px;
}

summary {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 850;
  cursor: pointer;
}

details p {
  margin-top: 12px;
}

.cta-band {
  margin: 54px 0 0;
  padding: 32px;
  border-radius: 8px;
  background: var(--brown);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: 2.35rem;
}

.cta-band p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-foot {
  min-height: 112px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-foot div {
  display: grid;
  gap: 4px;
}

.site-foot strong {
  color: var(--brown);
}

.site-foot span,
.site-foot a {
  color: var(--muted);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.imprint-page,
.rsvp-page,
.signature-page {
  padding: 58px 0 72px;
}

.legal-section {
  max-width: 850px;
  display: grid;
  gap: 28px;
}

.legal-section section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-section p {
  margin: 10px 0 0;
  color: var(--brown-soft);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 38px;
  align-items: start;
}

.rsvp-note {
  padding: 26px;
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rsvp-note p {
  margin: 12px 0 0;
  color: var(--brown-soft);
}

.rsvp-note h1 {
  font-size: 2.9rem;
  line-height: 1.02;
}

.form-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid-two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--brown);
  font-weight: 800;
}

label span,
.form-label {
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(43, 26, 18, 0.22);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(19, 95, 159, 0.18);
  border-color: var(--blue);
}

.rsvp-choice-group {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.rsvp-choice {
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(244, 239, 230, 0.48);
  cursor: pointer;
}

.rsvp-choice input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue-dark);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--brown-soft);
  font-weight: 500;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--blue-dark);
}

.form-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.companion-fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.companion-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(244, 239, 230, 0.42);
}

.companion-card legend {
  padding: 0 6px;
  color: var(--blue-dark);
  font-weight: 850;
}

.form-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.signature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.signature-preview-panel,
.signature-actions-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signature-preview-panel {
  padding: 28px;
}

.signature-preview {
  overflow-x: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
}

.signature-actions-panel {
  padding: 24px;
}

.signature-actions {
  margin-top: 0;
}

.signature-code {
  min-height: 280px;
  margin-top: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.backend-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(19, 95, 159, 0.06) 0, rgba(19, 95, 159, 0) 300px),
    var(--paper);
}

.backend-shell {
  width: min(100% - 36px, 1240px);
  margin: 0 auto;
}

.backend-head,
.backend-brand,
.backend-user,
.backend-nav,
.compact-title,
.panel-head,
.filter-bar,
.action-list {
  display: flex;
  align-items: center;
}

.backend-head {
  min-height: 82px;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.backend-brand {
  min-width: 0;
  gap: 11px;
  color: var(--brown);
  font-weight: 900;
  text-decoration: none;
}

.backend-brand img {
  width: 42px;
  height: 42px;
}

.backend-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backend-user {
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.backend-user a,
.panel-head a,
.backend-table a {
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.backend-nav {
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.backend-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--brown);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.backend-nav a.is-active {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.backend-main {
  padding: 34px 0 76px;
}

.backend-title {
  max-width: 900px;
  margin-bottom: 24px;
}

.backend-title h1,
.auth-copy h1 {
  font-size: 3.4rem;
  line-height: 0.98;
}

.backend-title p:not(.eyebrow),
.auth-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--brown-soft);
  font-size: 1.05rem;
}

.compact-title {
  max-width: none;
  justify-content: space-between;
  gap: 18px;
}

.backend-alert,
.metric-tile,
.backend-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(43, 26, 18, 0.08);
}

.backend-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-left: 6px solid var(--gold);
}

.backend-alert-warning {
  border-left-color: var(--gold);
}

.backend-alert-ok {
  border-left-color: var(--sage);
}

.backend-alert span,
.metric-tile span,
.muted {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-tile {
  padding: 20px;
}

.metric-tile span {
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1;
}

.backend-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.backend-panel {
  min-width: 0;
  padding: 22px;
}

.panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2,
.form-panel h2 {
  font-size: 1.7rem;
}

.action-list {
  flex-wrap: wrap;
  gap: 10px;
}

.audit-list {
  display: grid;
  gap: 12px;
}

.audit-list div {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.audit-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.8);
}

.filter-bar label {
  min-width: min(100%, 220px);
}

.filter-bar button {
  align-self: flex-end;
}

.table-panel {
  overflow-x: auto;
}

.backend-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.backend-table th,
.backend-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.backend-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(19, 95, 159, 0.18);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(19, 95, 159, 0.08);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.backend-form-wide {
  max-width: 940px;
}

.auth-layout {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.7fr);
  gap: 42px;
  align-items: center;
}

.auth-panel {
  display: grid;
  gap: 16px;
}

.secret-box {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(244, 239, 230, 0.48);
}

.secret-box span {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

code {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 5px;
  padding: 2px 4px;
  background: rgba(43, 26, 18, 0.08);
  color: var(--brown);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
}

.status-box {
  margin-bottom: 22px;
  border-radius: 8px;
  padding: 18px;
}

.status-success {
  border: 1px solid rgba(111, 126, 103, 0.42);
  background: rgba(111, 126, 103, 0.12);
}

.status-error {
  border: 1px solid rgba(138, 36, 65, 0.34);
  background: rgba(138, 36, 65, 0.1);
}

.status-warning {
  border: 1px solid rgba(173, 127, 47, 0.42);
  background: rgba(173, 127, 47, 0.12);
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(420px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(43, 26, 18, 0.2);
}

.cookie-consent[hidden],
[hidden] {
  display: none !important;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brown);
}

.cookie-consent p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 0.92rem;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  direction: ltr;
  gap: 9px;
  margin-top: 14px;
}

.cookie-consent button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  background: var(--white);
  color: var(--brown);
  cursor: pointer;
}

.cookie-consent button[data-cookie-accept] {
  border-color: var(--brown);
  background: var(--brown);
  color: #fff;
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 28px, 760px);
  }

  .site-head {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .head-tools {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .rsvp-layout,
  .signature-layout,
  .backend-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 34px;
    padding: 46px 0 44px;
  }

  .hero-mark {
    width: min(100%, 360px);
    justify-self: center;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .lead {
    font-size: 1.16rem;
  }

  .initiator-grid {
    grid-template-columns: 1fr;
  }

  .calendar-head {
    display: none;
  }

  .calendar-event {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calendar-date,
  .calendar-impulse {
    border: 0;
  }

  .calendar-date {
    align-content: start;
  }

  .calendar-impulse {
    border-top: 1px solid var(--line);
  }

  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backend-title h1,
  .auth-copy h1 {
    font-size: 2.7rem;
  }

  .compact-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .identity span {
    white-space: normal;
  }

  .language-switcher a {
    min-width: 45px;
  }

  .language-code {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 54px 0;
  }

  .cta-band,
  .form-panel,
  .rsvp-note {
    padding: 22px;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-foot {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }

  .site-foot nav {
    justify-content: flex-start;
  }

  .backend-shell {
    width: min(100% - 24px, 480px);
  }

  .backend-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .backend-user {
    width: 100%;
    justify-content: space-between;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar label {
    min-width: 0;
  }
}
