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

body {
  background-color: #faf8f5;
  color: #3d3535;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.25rem;
  z-index: 100;
}

.lang-btn {
  background: transparent;
  border: 1px solid #c8a4a5;
  color: #c8a4a5;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: #c8a4a5;
  color: #faf8f5;
}

.lang-btn.active {
  background: #c8a4a5;
  color: #faf8f5;
  border-color: #c8a4a5;
}

.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #c8a4a5;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #c8a4a5;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 0.95rem;
  color: #a07e7f;
  margin-top: 0.5rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

.name-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #c8a4a5;
  background: transparent;
  color: #3d3535;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0.25rem;
  margin-bottom: 2rem;
  outline: none;
  transition: border-color 0.2s;
}

.name-input::placeholder {
  color: #c8a4a5;
  font-style: italic;
}

.name-input:focus {
  border-bottom-color: #a07e7f;
}

.recorder-section {
  border-top: 1px solid #e8e0dc;
  padding-top: 2rem;
  margin-top: 0.5rem;
  text-align: center;
}

.record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  background: #c8a4a5;
  color: #faf8f5;
  cursor: pointer;
  margin: 1.25rem auto 0.5rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(200, 164, 165, 0.45);
}

.record-label {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.78rem;
  color: #a07e7f;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.record-label--recording {
  color: #d94f4f;
}

.record-error {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 0.5rem;
}

.record-btn:hover {
  background: #a07e7f;
  transform: scale(1.05);
}

.record-btn--stop {
  background: #d94f4f;
  animation: pulse 1.4s ease-in-out infinite;
}

.record-btn--stop:hover {
  background: #b83b3b;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.timer {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.1rem;
  color: #a07e7f;
  letter-spacing: 0.08em;
  min-height: 1.5rem;
}

.preview-section {
  border-top: 1px solid #e8e0dc;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.preview-section audio {
  width: 100%;
  margin-bottom: 1rem;
}

.btn-keep,
.btn-delete {
  display: inline-block;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.25rem;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-right: 0.5rem;
}

.btn-keep {
  background: #5a9e7a;
  color: #faf8f5;
}

.btn-keep:hover {
  background: #4a8a6a;
}

.btn-delete {
  background: #b0a8a8;
  color: #faf8f5;
}

.btn-delete:hover {
  background: #9a9090;
}

.photo-section {
  border-top: 1px solid #e8e0dc;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.photo-section input[type="file"] {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.9rem;
  color: #3d3535;
  margin-top: 0.5rem;
}

.photo-preview {
  display: block;
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 1rem;
  object-fit: cover;
  border: 1.5px solid #e8e0dc;
}

.submit-section {
  margin-top: 2rem;
  text-align: center;
}

.btn-primary {
  display: inline-block;
  background: #c8a4a5;
  color: #faf8f5;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 2.25rem;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #a07e7f;
}

.thank-you {
  text-align: center;
  padding: 4rem 1rem;
}

.thank-you h1 {
  margin-bottom: 1rem;
}

.thank-you p {
  color: #a07e7f;
  font-style: italic;
  font-size: 1.05rem;
}

.already-saved {
  background: #f0ebe8;
  border-left: 3px solid #c8a4a5;
  border-radius: 4px;
  padding: 0.85rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #a07e7f;
}

.playback-message {
  margin-top: 1rem;
}

.playback-message audio {
  width: 100%;
}

.admin-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.admin-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #e8e0dc;
  margin-bottom: 2rem;
}

.mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mode-btn {
  background: transparent;
  border: 1.5px solid #c8a4a5;
  color: #c8a4a5;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mode-btn:hover {
  background: #c8a4a5;
  color: #faf8f5;
}

.mode-btn.active {
  background: #c8a4a5;
  color: #faf8f5;
}

.qr-section {
  margin-top: 2rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.qr-card {
  border: 1.5px solid #e8e0dc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  background: #fff;
}

.qr-card img {
  max-width: 100%;
  height: auto;
}

.qr-card-icon {
  display: block;
  width: 36px;
  height: auto;
  margin: 0.6rem auto 0;
  color: #E35548;
}

@media (max-width: 600px) {
  .qr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2rem;
  }

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

@media print {
  .lang-toggle {
    display: none;
  }

  .admin-header {
    display: none;
  }

  .qr-section > *:not(.qr-grid) {
    display: none;
  }

  .qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .qr-card {
    width: 8.5cm;
    border: 1px dashed #a07e7f;
    border-radius: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================================
   Landing & Event pages
   ============================================ */

.lang-content[hidden] {
  display: none;
}

.container--wide {
  max-width: 640px;
}

.hero {
  text-align: center;
  padding: 3rem 0 1.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.hero .subtitle {
  font-size: 1.05rem;
  max-width: 36ch;
  margin: 0.5rem auto 0;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.hero-cta-hint {
  font-size: 0.8rem;
  color: #a07e7f;
  letter-spacing: 0.04em;
  font-style: italic;
}

.qr-demo {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.qr-demo-inner {
  background: #fff;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid #e8e0dc;
  display: inline-block;
}

.qr-demo-inner canvas,
.qr-demo-inner img {
  display: block;
}

.section {
  padding: 2.5rem 0;
  border-top: 1px solid #e8e0dc;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.center {
  text-align: center;
}

.muted {
  color: #a07e7f;
  font-size: 0.9rem;
  font-style: italic;
}

.steps {
  display: grid;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c8a4a5;
  color: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.step-content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #7a5c5d;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.step-content p {
  color: #3d3535;
  font-size: 0.95rem;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.feature {
  padding-left: 1.5rem;
  position: relative;
  color: #3d3535;
  font-size: 0.95rem;
}

.feature::before {
  content: '♡';
  position: absolute;
  left: 0;
  top: 0;
  color: #c8a4a5;
  font-size: 1rem;
}

/* Demo-specific */

.demo-badge {
  background: #fdf5f5;
  border: 1px solid #e4d8d8;
  color: #7a5c5d;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.back-link {
  display: inline-block;
  color: #a07e7f;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.back-link:hover {
  color: #7a5c5d;
}

/* Help link on real recording page */

.help-link {
  display: block;
  text-align: center;
  color: #a07e7f;
  text-decoration: none;
  font-size: 0.8rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e8e0dc;
  letter-spacing: 0.04em;
}

.help-link:hover {
  color: #7a5c5d;
  text-decoration: underline;
}

/* Event page */

.event-hero {
  text-align: center;
  padding: 3.5rem 0 1rem;
}

.event-hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.event-ornament {
  color: #c8a4a5;
  letter-spacing: 0.8rem;
  margin: 1rem 0 0.25rem;
  user-select: none;
}

.event-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: #a07e7f;
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
  font-style: italic;
}

.event-greeting {
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42ch;
  margin: 0 auto;
  color: #3d3535;
}

.event-greeting p + p {
  margin-top: 0.75rem;
}

.program-list {
  list-style: none;
  padding: 0;
  max-width: 420px;
  margin: 0 auto;
}

.program-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed #e8e0dc;
  align-items: baseline;
}

.program-item:last-child {
  border-bottom: none;
}

.program-time {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: #c8a4a5;
  font-weight: 600;
}

.program-label {
  color: #3d3535;
}

.program-label small {
  display: block;
  color: #a07e7f;
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 0.15rem;
}

.directions {
  text-align: center;
  color: #3d3535;
  line-height: 1.7;
}

.directions .venue {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  color: #7a5c5d;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.directions a {
  color: #c8a4a5;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.directions a:hover {
  text-decoration: underline;
}

.qr-illustration {
  text-align: center;
  padding: 0.5rem 0 0.75rem;
  color: #c8a4a5;
}

.qr-illustration svg {
  width: 88px;
  height: 88px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #c8a4a5;
  border: 1.5px solid #c8a4a5;
  border-radius: 6px;
  padding: 0.7rem 1.75rem;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: #c8a4a5;
  color: #faf8f5;
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .event-hero h1 {
    font-size: 2.4rem;
  }

  .program-item {
    grid-template-columns: 4rem 1fr;
  }
}

/* ============================================
   Wedding event page (Lea & Lukas)
   ============================================ */

.wedding-page {
  --w-primary: #E35548;
  --w-fg: #ffffff;
  background: var(--w-primary);
  color: var(--w-fg);
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wedding-page .lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--w-fg);
  background: transparent;
}

.wedding-page .lang-btn:hover,
.wedding-page .lang-btn.active {
  background: var(--w-fg);
  color: var(--w-primary);
  border-color: var(--w-fg);
}

.wedding-main {
  flex: 1 0 auto;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.75rem 3rem;
  text-align: center;
}

.wedding-mono {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--w-fg);
  margin: 1rem 0 2.5rem;
}

.wedding-invite-title {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--w-fg);
  margin: 0 0 1.75rem;
}

.wedding-date {
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--w-fg);
  letter-spacing: 0.02em;
  margin: 0 0 2.25rem;
}

.wedding-icon {
  color: var(--w-fg);
  display: flex;
  justify-content: center;
  margin: 0 auto 2.25rem;
}

.wedding-icon svg {
  width: 72px;
  height: 62px;
}

.wedding-greeting {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--w-fg);
  max-width: 38ch;
  margin: 0 auto;
  font-weight: 300;
}

.wedding-divider {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: 3.25rem auto 2.5rem;
  border: none;
}

.wedding-section {
  margin-bottom: 2.75rem;
}

.wedding-section h3 {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--w-fg);
  margin: 0 0 1.25rem;
}

.wedding-section p {
  margin: 0.35rem 0;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--w-fg);
}

.wedding-section a {
  color: var(--w-fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding-bottom: 1px;
  transition: border-color 0.2s, opacity 0.2s;
  font-weight: 300;
}

.wedding-section a:hover {
  border-color: var(--w-fg);
  opacity: 0.88;
}

.wedding-program {
  list-style: none;
  padding: 0;
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.wedding-program li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.wedding-program li:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.wedding-program li:last-child {
  padding-bottom: 0.25rem;
}

.w-time {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  color: var(--w-fg);
}

.w-desc {
  display: block;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.wedding-venue {
  font-weight: 400 !important;
  font-size: 1rem !important;
  color: var(--w-fg);
  margin-bottom: 0.15rem !important;
}

.wedding-steps {
  list-style: none;
  padding: 0;
  max-width: 360px;
  margin: 1.1rem auto 1.3rem;
  text-align: left;
}

.wedding-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.wedding-steps li:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.wedding-steps li:last-child {
  padding-bottom: 0.25rem;
}

.w-step-num {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--w-fg);
  color: var(--w-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.w-step-text {
  flex: 1;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.w-step-text strong {
  font-weight: 700;
  color: var(--w-fg);
}

.wedding-steps-hint {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.4rem !important;
}

.wedding-page a.wedding-cta {
  display: inline-block;
  background: var(--w-fg);
  color: var(--w-primary);
  padding: 0.75rem 1.85rem;
  border: none;
  border-bottom: none;
  border-radius: 2px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wedding-page a.wedding-cta:hover {
  opacity: 0.88;
  color: var(--w-primary);
}

@media (max-width: 480px) {
  .wedding-mono {
    font-size: 2.75rem;
  }
  .wedding-invite-title {
    font-size: 1.6rem;
  }
  .wedding-date {
    font-size: 1.15rem;
  }
  .wedding-main {
    padding: 2.25rem 1.25rem 2rem;
  }
}
