/* ---------------------------------------------------------
   Wedding Voicemail Briefkasten – style.css
   US-Briefkasten-Ästhetik: warmes Rot/Navy, rundliche Boxen,
   klare, freundliche Typografie.
--------------------------------------------------------- */

:root {
  --mailbox-red: #b5342a;
  --mailbox-red-dark: #8f271f;
  --mailbox-navy: #1f3350;
  --mailbox-navy-dark: #142338;
  --cream: #fdf6ec;
  --cream-dark: #f2e7d5;
  --text-dark: #2b2620;
  --text-muted: #6b6255;
  --error-red: #a92323;
  --error-bg: #fbe4e1;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(31, 51, 80, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--text-dark);
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(31, 51, 80, 0.08);
}

.screen.active {
  display: block;
  animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--mailbox-navy);
}

p {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 14px;
  color: var(--text-dark);
}

small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Mailbox-Visual (Intro-Screen) --- */

.mailbox-visual {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50% 50% 8px 8px / 60% 60% 8px 8px;
  background: linear-gradient(160deg, var(--mailbox-red) 0%, var(--mailbox-red-dark) 100%);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.15), var(--shadow-soft);
  position: relative;
}

.mailbox-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 60px;
  height: 14px;
  transform: translateX(-50%);
  background: var(--mailbox-navy);
  border-radius: 4px;
}

/* --- Themenliste (Intro-Screen) --- */

#intro-themes {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#intro-themes li {
  background: var(--cream);
  border: 1px solid rgba(31, 51, 80, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

#intro-themes li:hover,
#intro-themes li:focus {
  background: var(--cream-dark);
  transform: translateY(-1px);
  outline: none;
}

/* --- Buttons --- */

button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin-top: 6px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--mailbox-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(181, 52, 42, 0.28);
  transition: background 0.15s ease, transform 0.1s ease;
}

button:hover {
  background: var(--mailbox-red-dark);
  transform: translateY(-1px);
}

button:disabled {
  background: #c9beae;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

#rec-stop-button {
  background: var(--mailbox-navy);
  box-shadow: 0 4px 12px rgba(31, 51, 80, 0.28);
}

#rec-stop-button:hover {
  background: var(--mailbox-navy-dark);
}

/* --- Recording-Screen --- */

#rec-name-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#rec-name-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(31, 51, 80, 0.2);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

#rec-name-input:focus {
  outline: none;
  border-color: var(--mailbox-red);
}

#rec-status {
  margin-top: 16px;
  font-style: italic;
  color: var(--mailbox-navy);
}

#rec-timer {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mailbox-red);
  font-family: "Courier New", monospace;
}

.error-message {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--error-bg);
  color: var(--error-red);
  font-size: 0.9rem;
}

/* --- Success-Screen --- */

#success-headline {
  color: var(--mailbox-red);
}

#success-privacy-hint,
#success-extra {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Responsive Feinschliff --- */

@media (max-width: 380px) {
  .screen {
    padding: 24px 18px;
  }

  h1 {
    font-size: 1.3rem;
  }
}
