/* Deine Erinnerungsminute – Band über dem Hero und in Artikeln (Entwurf ChatGPT, Mindestschrift 12 px, Schriften wie Hero: Figtree + Bitter) */

/* Startseite: eigener Block über dem Hero, gleiche Breite wie der Hero. */
.dp-em-startseite { margin-top: 20px; margin-bottom: 20px; }

.dp-em {
  --dp-em-bg: #fffaf3;
  --dp-em-border: #d9b65c;
  --dp-em-text: #342340;
  --dp-em-muted: #62546c;
  --dp-em-accent: #a41461;
  --dp-em-accent-hover: #800e4c;
  --dp-em-on-accent: #ffffff;
  --dp-em-field-bg: #ffffff;
  --dp-em-field-border: #9c8ca8;
  --dp-em-soft: #f4e9f1;
  --dp-em-focus: #a41461;
  --dp-em-meter: #a41461;
  --dp-em-track: #d7c8d9;

  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--dp-em-bg);
  border: 1px solid var(--dp-em-border);
  border-radius: 12px;
  color: var(--dp-em-text);
  font-family: Figtree, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

html.dp-dark .dp-em {
  --dp-em-bg: #221538;
  --dp-em-border: #42286a;
  --dp-em-text: #f5f0fa;
  --dp-em-muted: #c8b8e0;
  --dp-em-accent: #e83d9f;
  --dp-em-accent-hover: #ff75bd;
  --dp-em-on-accent: #21102f;
  --dp-em-field-bg: #302044;
  --dp-em-field-border: #8771a7;
  --dp-em-soft: #302044;
  --dp-em-focus: #ff9dd3;
  --dp-em-meter: #ff75bd;
  --dp-em-track: #5b4673;
}

.dp-em *, .dp-em *::before, .dp-em *::after { box-sizing: border-box; }
.dp-em [hidden] { display: none !important; }

.dp-em::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--dp-em-border) 0.8px, transparent 1px),
    radial-gradient(circle, var(--dp-em-border) 0.7px, transparent 1px);
  background-size: 137px 89px, 211px 113px;
  background-position: 23px 17px, 91px 48px;
  opacity: 0.22;
}

.dp-em__inner { width: 100%; max-width: 100%; margin: 0 auto; padding: 20px 26px; }
.dp-em__state { width: 100%; min-width: 0; color: var(--dp-em-text); }

.dp-em__state--start, .dp-em__state--active, .dp-em__state--status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.dp-em__intro { flex: 1 1 auto; min-width: 0; max-width: 850px; }

.dp-em__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 5px;
  color: var(--dp-em-accent);
  font-family: Figtree, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dp-em__star { color: var(--dp-em-accent); font-size: 15px; line-height: 1; }

.dp-em .dp-em__title {
  margin: 0 0 5px;
  padding: 0;
  color: var(--dp-em-text);
  font-family: Figtree, Arial, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.dp-em .dp-em__title:focus { outline: none; }

.dp-em .dp-em__description {
  margin: 0;
  padding: 0;
  color: var(--dp-em-muted);
  font-family: Bitter, Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.dp-em__cta { flex: 0 0 225px; display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; }

.dp-em .dp-em__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 0;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: Figtree, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.dp-em .dp-em__button--primary { background-color: var(--dp-em-accent); border-color: var(--dp-em-accent); color: var(--dp-em-on-accent); }
.dp-em .dp-em__button--primary:hover { background-color: var(--dp-em-accent-hover); border-color: var(--dp-em-accent-hover); color: var(--dp-em-on-accent); transform: translateY(-1px); }
.dp-em .dp-em__button--secondary { background-color: var(--dp-em-soft); border-color: var(--dp-em-field-border); color: var(--dp-em-text); }
.dp-em .dp-em__button--secondary:hover { background-color: var(--dp-em-bg); color: var(--dp-em-text); }

.dp-em__button:focus-visible, .dp-em__input:focus-visible, .dp-em__checkbox:focus-visible,
.dp-em__file:focus-visible, .dp-em__link:focus-visible, .dp-em__audio:focus-visible {
  outline: 3px solid var(--dp-em-focus);
  outline-offset: 4px;
}

.dp-em .dp-em__button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.dp-em__icon { display: block; width: 17px; height: 17px; flex: 0 0 17px; color: currentColor; }

.dp-em .dp-em__hint { margin: 0; color: var(--dp-em-muted); font-family: Figtree, Arial, sans-serif; font-size: 12px; line-height: 1.45; text-align: center; }

.dp-em__recorder { flex: 0 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.dp-em__recording-status { display: flex; align-items: center; gap: 9px; color: var(--dp-em-text); }
.dp-em__pulse { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background-color: var(--dp-em-accent); animation: dp-em-pulse 1.6s ease-in-out infinite; }
.dp-em__recording-label { color: var(--dp-em-text); font-size: 13px; font-weight: 650; }
.dp-em__timer { margin-left: auto; color: var(--dp-em-text); font-family: Figtree, Arial, sans-serif; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-em__meter { display: flex; align-items: center; justify-content: center; gap: 5px; height: 26px; overflow: hidden; }
.dp-em__meter-bar { display: block; flex: 1 1 0; height: 4px; min-width: 0; border-radius: 3px; background-color: var(--dp-em-meter); opacity: 0.75; transition: height 100ms ease; }
.dp-em__stop-icon { display: inline-block; width: 11px; height: 11px; flex: 0 0 11px; border-radius: 2px; background-color: currentColor; }

.dp-em__state--review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.dp-em__review { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dp-em__audio { display: block; width: 100%; max-width: 100%; min-width: 0; color: var(--dp-em-text); accent-color: var(--dp-em-accent); }
.dp-em .dp-em__field-label { display: block; color: var(--dp-em-text); font-family: Figtree, Arial, sans-serif; font-size: 13px; font-weight: 650; line-height: 1.5; }

.dp-em .dp-em__input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--dp-em-field-border);
  border-radius: 7px;
  background-color: var(--dp-em-field-bg);
  color: var(--dp-em-text);
  font-family: Figtree, Arial, sans-serif;
  font-size: 16px;
}
.dp-em__input::placeholder { color: var(--dp-em-muted); opacity: 1; }

.dp-em__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--dp-em-field-border);
  border-radius: 7px;
  background-color: var(--dp-em-soft);
  color: var(--dp-em-text);
  cursor: pointer;
}
.dp-em__checkbox { flex: 0 0 19px; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--dp-em-accent); cursor: pointer; }
.dp-em__consent-text { min-width: 0; color: var(--dp-em-text); font-family: Figtree, Arial, sans-serif; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dp-em .dp-em__link { color: var(--dp-em-accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.dp-em .dp-em__link:hover { color: var(--dp-em-accent-hover); }

.dp-em__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.dp-em__actions .dp-em__button { flex: 1 1 120px; }

.dp-em__honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dp-em__progress-wrap { flex: 0 1 290px; min-width: 0; }
.dp-em__progress { position: relative; width: 100%; height: 8px; overflow: hidden; border-radius: 20px; background-color: var(--dp-em-track); }
.dp-em__progress-fill { display: block; width: 0%; height: 100%; border-radius: inherit; background-color: var(--dp-em-accent); transition: width 200ms ease; }
.dp-em__progress-label { display: block; margin-top: 8px; color: var(--dp-em-muted); font-size: 12px; line-height: 1.5; }

.dp-em__closing-star { flex: 0 0 auto; color: var(--dp-em-accent); font-size: 35px; line-height: 1; opacity: 0.8; }

.dp-em__file-wrap { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.dp-em__file { display: block; width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--dp-em-field-border); border-radius: 8px; background-color: var(--dp-em-field-bg); color: var(--dp-em-text); font-family: Figtree, Arial, sans-serif; font-size: 13px; }
.dp-em__file::file-selector-button { min-height: 44px; margin-right: 10px; padding: 8px 12px; border: 1px solid var(--dp-em-field-border); border-radius: 6px; background-color: var(--dp-em-soft); color: var(--dp-em-text); font-family: Figtree, Arial, sans-serif; font-size: 13px; font-weight: 650; cursor: pointer; }

@keyframes dp-em-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 transparent; }
  50% { opacity: 0.65; box-shadow: 0 0 0 6px var(--dp-em-soft); }
}

@media (max-width: 900px) {
  .dp-em__inner { padding: 18px 20px; }
  .dp-em__state--start, .dp-em__state--active, .dp-em__state--status { gap: 18px; }
  .dp-em__cta { flex-basis: 200px; }
  .dp-em .dp-em__title { font-size: 22px; }
}

@media (max-width: 640px) {
  .dp-em { border-radius: 10px; }
  .dp-em__inner { padding: 19px 17px; }
  .dp-em__state--start, .dp-em__state--active, .dp-em__state--status, .dp-em__state--review {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .dp-em__intro { width: 100%; max-width: 100%; flex: 0 1 auto; }
  .dp-em .dp-em__title { font-size: 23px; line-height: 1.2; }
  .dp-em__cta, .dp-em__recorder, .dp-em__progress-wrap, .dp-em__file-wrap { width: 100%; flex: 0 1 auto; }
  .dp-em .dp-em__button { width: 100%; min-height: 46px; }
  .dp-em__review { width: 100%; }
  .dp-em__closing-star { display: none; }
}

@media (max-width: 359px) {
  .dp-em__inner { padding: 16px 12px; }
  .dp-em .dp-em__title { font-size: 21px; }
  .dp-em__kicker { letter-spacing: 0.06em; }
  .dp-em__consent { padding: 9px; }
  .dp-em__actions { flex-direction: column; }
  .dp-em__actions .dp-em__button { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-em *, .dp-em *::before, .dp-em *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dp-em__pulse { opacity: 1; box-shadow: none; }
  .dp-em .dp-em__button:hover { transform: none; }
}
